/* ============================================================
   assets/css/main.css - استایل اصلی آرزون فروش (RTL)
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary:       #8F0B13;
    --primary-dark:  #380F17;
    --primary-light: #EFDFC5;
    --secondary:     #380F17;
    --accent:        #8F0B13;
    --success:       #28a745;
    --warning:       #ffc107;
    --danger:        #dc3545;
    --dark:          #1a1a2e;
    --gray-100:      #f8f9fa;
    --gray-200:      #e9ecef;
    --gray-300:      #dee2e6;
    --gray-500:      #adb5bd;
    --gray-700:      #495057;
    --gray-900:      #212529;
    --text:          #2d3436;
    --text-muted:    #6c757d;
    --border:        #e0e0e0;
    --card-shadow:   0 2px 12px rgba(0,0,0,.08);
    --card-hover:    0 8px 30px rgba(143,11,19,.20);
    --radius:        12px;
    --radius-sm:     8px;
    --radius-lg:     20px;
    --transition:    all .25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    direction: rtl;
    color: var(--text);
    background: #f5f5f7;
    font-size: 14px;
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: inherit; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; }

.col-lg-20 { flex: 0 0 auto; width: 20%; }
@media (max-width: 991px) { .col-lg-20 { width: 33.333%; } }
@media (max-width: 575px) { .col-lg-20 { width: 50%; } }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--dark);
    color: #ccc;
    font-size: 12.5px;
}
.top-bar-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.top-bar-links a {
    color: #ccc;
    text-decoration: none;
}
.top-bar-links a:hover { color: var(--primary); }

/* ============================================================
   MAIN HEADER
   ============================================================ */
.main-header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
    z-index: 1000;
}

/* Logo */
.logo-link { gap: 8px; }
.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
}
.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* Search */
.search-form { position: relative; }
.search-input {
    border: 2px solid var(--border);
    padding: 10px 16px;
    font-family: inherit;
    font-size: 13.5px;
    transition: var(--transition);
    background: var(--gray-100);
}
.search-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(143,11,19,.1);
}
.search-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}
.search-btn:hover { background: linear-gradient(135deg, var(--primary-dark), var(--secondary)); color: #fff; }

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%; right: 0; left: 0;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
    z-index: 999;
    border: 1px solid var(--border);
    max-height: 350px;
    overflow-y: auto;
}
.suggestion-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-200);
}
.suggestion-item:hover { background: var(--primary-light); color: var(--primary); }
.suggestion-item img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); }
.suggestion-item span { font-size: 13px; }

/* Header Actions */
.header-actions { flex-wrap: wrap; }
.action-btn {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px;
    color: var(--text);
    text-decoration: none;
    font-size: 11px;
    transition: var(--transition);
    padding: 5px;
    border-radius: var(--radius-sm);
}
.action-btn i { font-size: 22px; }
.action-btn:hover { color: var(--primary); background: var(--primary-light); }

.cart-btn { position: relative; }
.cart-badge {
    position: absolute;
    top: -6px; left: -6px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    width: 18px; height: 18px;
    font-size: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    line-height: 1;
}

.mobile-menu-toggle { color: var(--dark); border: none; }

/* ============================================================
   MAIN NAV
   ============================================================ */
.main-nav {
    background: #fff;
    border-top: 1px solid var(--gray-200);
}
.nav-menu {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
}
.nav-item { position: relative; }
.nav-link {
    display: block;
    padding: 12px 14px;
    color: var(--text);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}
.nav-link:hover { color: var(--primary); }
.all-cats-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    border-radius: var(--radius-sm);
    margin: 6px 0;
    font-weight: 600;
}
.all-cats-btn:hover { opacity: .9; }

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%; right: 0;
    min-width: 600px;
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 999;
    border-top: 3px solid var(--primary);
}
.has-mega:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-cat-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--transition);
}
.mega-cat-item:hover { background: var(--primary-light); color: var(--primary); }
.mega-cat-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Dropdown Nav */
.dropdown-nav {
    position: absolute;
    top: 100%; right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 999;
    list-style: none;
    padding: 8px 0;
    border-top: 3px solid var(--primary);
}
.has-dropdown:hover .dropdown-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-nav li a {
    display: flex; align-items: center;
    padding: 9px 18px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}
.dropdown-nav li a:hover { background: var(--primary-light); color: var(--primary); padding-right: 24px; }
.dropdown-divider { border-top: 1px solid var(--gray-200); margin: 4px 0; }

/* ============================================================
   MOBILE SIDEBAR
   ============================================================ */
.mobile-sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1100;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.mobile-sidebar-overlay.active { opacity: 1; visibility: visible; }
.mobile-sidebar {
    position: fixed;
    top: 0; right: -300px;
    width: 280px; height: 100vh;
    background: #fff;
    z-index: 1200;
    overflow-y: auto;
    transition: right .3s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,.15);
}
.mobile-sidebar.active { right: 0; }
.sidebar-header { background: var(--primary-light); border-bottom: 1px solid var(--border); }
.sidebar-close { color: var(--text); }
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li a {
    display: flex; align-items: center;
    padding: 12px 8px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
    transition: var(--transition);
}
.sidebar-nav li a:hover { color: var(--primary); padding-right: 14px; background: var(--primary-light); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section { margin-bottom: 8px; }
.hero-swiper { height: 380px; border-radius: 0 0 0 0; }
@media (max-width: 991px) { .hero-swiper { height: 250px; } }
@media (max-width: 575px) { .hero-swiper { height: 200px; } }

.hero-slide {
    display: flex; align-items: center; justify-content: space-between;
    padding: 40px 60px;
    position: relative; overflow: hidden;
}
@media (max-width: 575px) { .hero-slide { padding: 20px; } }

.slide-content { position: relative; z-index: 2; }
.slide-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.slide-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}
@media (max-width: 575px) { .slide-title { font-size: 18px; } }
.slide-subtitle {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 20px;
}
.slide-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    border: none;
    border-radius: var(--radius);
    padding: 10px 24px;
    font-weight: 700;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(143,11,19,.3);
    transition: var(--transition);
}
.slide-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(143,11,19,.4); }

.slide-illustration {
    position: absolute;
    left: 60px; top: 50%;
    transform: translateY(-50%);
}
.slide-circle-1 {
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(143,11,19,.08);
    position: absolute; top: -100px; left: -100px;
}
.slide-circle-2 {
    width: 150px; height: 150px;
    border-radius: 50%;
    background: rgba(102,16,242,.06);
    position: absolute; bottom: -80px; right: -80px;
}
.slide-emoji { font-size: 100px; position: relative; z-index: 2; }
@media (max-width: 767px) { .slide-emoji { font-size: 60px; } .slide-illustration { left: 20px; } }

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    color: var(--primary);
}
.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after { display: none; }
.hero-swiper .swiper-button-next i,
.hero-swiper .swiper-button-prev i { font-size: 16px; }
.hero-pagination .swiper-pagination-bullet-active { background: var(--primary); }

/* Side Banners */
.side-banners { padding: 0; }
.side-banner {
    display: flex; align-items: flex-end;
    border-radius: var(--radius);
    padding: 20px;
    position: relative; overflow: hidden;
    transition: var(--transition);
}
.side-banner:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.side-banner-1 {
    background: linear-gradient(135deg, #EFDFC5, #d5bf96);
}
.side-banner-2 {
    background: linear-gradient(135deg, #faf3e6, #EFDFC5);
}
.side-banner-content { position: relative; z-index: 2; }
.side-banner-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}
.side-banner h5 { font-weight: 700; margin-bottom: 4px; color: var(--dark); }
.side-banner p { font-size: 12px; color: var(--gray-700); margin-bottom: 8px; }
.side-banner-arrow { color: var(--primary); font-size: 22px; }
.side-banner .promo-deco { position: absolute; left: 15px; bottom: 10px; font-size: 50px; opacity: .3; }

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.categories-section { background: #fff; padding: 20px 0; }
.category-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; padding: 12px 8px;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}
.category-card:hover { background: var(--primary-light); transform: translateY(-3px); }
.category-icon-wrap {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    border: 2px solid;
    transition: var(--transition);
}
.category-card:hover .category-icon-wrap { transform: scale(1.1); }
.category-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 1.3;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { border-bottom: 2px solid var(--gray-200); padding-bottom: 16px; }
.section-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.deals-icon { background: #fff3e0; color: var(--accent); }
.featured-icon { background: var(--primary-light); color: var(--primary); }
.section-title { font-size: 18px; font-weight: 800; color: var(--dark); }
.section-subtitle { font-size: 12px; color: var(--text-muted); }
.see-all-btn {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 600;
    display: flex; align-items: center; gap: 4px;
}
.see-all-btn:hover { background: var(--primary); color: #fff; }

/* ============================================================
   COUNTDOWN TIMER
   ============================================================ */
.countdown-wrap { flex-wrap: wrap; gap: 8px; }
.countdown-label { font-size: 12px; color: var(--text-muted); }
.countdown {
    display: flex; align-items: center; gap: 4px;
    background: var(--dark);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
}
.countdown-item {
    display: flex; flex-direction: column; align-items: center;
    min-width: 38px;
}
.countdown-num {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.countdown-lbl { font-size: 9px; color: #aaa; margin-top: 2px; }
.countdown-sep { color: var(--primary); font-size: 18px; font-weight: 800; }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
}

/* Badges */
.product-badges {
    position: absolute;
    top: 10px; right: 10px;
    display: flex; flex-direction: column; gap: 4px;
    z-index: 3;
}
.badge-new, .badge-discount, .badge-oos {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}
.badge-new { background: var(--success); color: #fff; }
.badge-discount { background: var(--danger); color: #fff; }
.badge-oos { background: var(--gray-500); color: #fff; }

/* Wishlist */
.wishlist-btn {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 3;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition);
    backdrop-filter: blur(4px);
    opacity: 0;
}
.product-card:hover .wishlist-btn { opacity: 1; }
.wishlist-btn:hover, .wishlist-btn.active { color: var(--danger); transform: scale(1.1); }
.wishlist-btn.active i::before { content: "\f415"; } /* bi-heart-fill */

/* Product Image */
.product-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
}
.product-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-img { transform: scale(1.06); }

/* Product Info */
.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}
.product-brand {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.product-name {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}
.product-name a { color: var(--text); text-decoration: none; }
.product-name a:hover { color: var(--primary); }

/* Rating */
.product-rating {
    display: flex; align-items: center; gap: 2px;
    color: var(--warning);
    font-size: 12px;
}
.rating-count { color: var(--text-muted); font-size: 11px; margin-right: 4px; }

/* Price */
.product-price-wrap {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap;
}
.price-original {
    font-size: 11.5px;
    color: var(--gray-500);
    text-decoration: line-through;
}
.price-discount {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
}

/* Add to Cart */
.add-to-cart-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    margin-top: auto;
    width: 100%;
    transition: var(--transition);
}
.product-card:hover .add-to-cart-btn { opacity: 1; }
.add-to-cart-btn:hover { background: var(--primary-dark); color: #fff; }
.btn-oos {
    background: var(--gray-200);
    color: var(--gray-500);
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px;
    font-family: inherit;
    font-size: 12.5px;
    width: 100%;
    margin-top: auto;
    cursor: not-allowed;
}

/* ============================================================
   PRODUCT TABS
   ============================================================ */
.product-tabs {
    display: flex; gap: 6px;
    flex-wrap: wrap;
}
.tab-btn {
    border: 1.5px solid var(--border);
    background: transparent;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(143,11,19,.3);
}
.tab-content-panel { display: none; }
.tab-content-panel.active { display: block; }

/* ============================================================
   DAILY DEALS
   ============================================================ */
.daily-deals-section { background: #fff; }
.deals-swiper { padding: 8px 4px !important; }
.deals-swiper .swiper-button-next,
.deals-swiper .swiper-button-prev {
    width: 36px; height: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    color: var(--primary);
    top: 50%;
}
.deals-swiper .swiper-button-next::after,
.deals-swiper .swiper-button-prev::after { display: none; }

/* ============================================================
   PROMO BANNERS
   ============================================================ */
.promo-banners-section { background: #f5f5f7; }
.promo-banner {
    display: flex; align-items: center; justify-content: space-between;
    border-radius: var(--radius);
    padding: 24px 20px;
    min-height: 130px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}
.promo-banner:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.promo-banner-1 { background: linear-gradient(135deg, #fce4ec 0%, #f48fb1 100%); }
.promo-banner-2 { background: linear-gradient(135deg, #e0f7fa 0%, #80deea 100%); }
.promo-banner-3 { background: linear-gradient(135deg, #EFDFC5 0%, #d5bf96 100%); }
.promo-banner-content { position: relative; z-index: 2; }
.promo-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}
.promo-banner h4 { font-size: 18px; font-weight: 800; margin-bottom: 4px; color: var(--dark); }
.promo-banner p { font-size: 12px; color: var(--gray-700); margin-bottom: 10px; }
.promo-btn {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--dark);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
}
.promo-deco {
    position: absolute;
    left: 20px; top: 50%;
    transform: translateY(-50%);
    font-size: 55px;
    opacity: .2;
}

/* Wide Banner */
.wide-banner {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, var(--dark) 0%, #2d1b69 100%);
    border-radius: var(--radius);
    padding: 28px 40px;
    position: relative; overflow: hidden;
    transition: var(--transition);
    flex-wrap: wrap;
    gap: 20px;
}
.wide-banner:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(26,26,46,.3); }
.wide-banner-text { color: #fff; }
.wide-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}
.wide-banner-text h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.wide-banner-text p { font-size: 13px; color: rgba(255,255,255,.7); margin: 0; }
.wide-banner-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(143,11,19,.4);
}
.wide-banner-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(143,11,19,.5); }
.wide-banner-deco {
    position: absolute;
    right: 20%; top: 50%; transform: translateY(-50%);
    display: flex; gap: 20px;
    font-size: 50px;
    opacity: .08;
}

.animate-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

/* ============================================================
   BRANDS SECTION
   ============================================================ */
.brands-section { background: #fff; padding: 30px 0; }
.brand-item {
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: #fff;
    transition: var(--transition);
    height: 80px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}
.brand-item:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 5px 15px rgba(143,11,19,.12); }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section { background: var(--dark); padding: 40px 0; }
.newsletter-box {
    background: linear-gradient(135deg, rgba(143,11,19,.15), rgba(56,15,23,.1));
    border: 1px solid rgba(143,11,19,.2);
    border-radius: var(--radius-lg);
    padding: 30px 40px;
}
@media (max-width: 767px) { .newsletter-box { padding: 20px; } }
.newsletter-text h4 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.newsletter-text p { color: rgba(255,255,255,.65); font-size: 13px; margin: 0; }
.newsletter-form .form-control {
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.15);
    color: #fff;
    padding: 12px 16px;
    font-family: inherit;
}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form .form-control:focus { background: rgba(255,255,255,.15); border-color: var(--primary); box-shadow: none; }
.newsletter-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-family: inherit;
    font-weight: 700;
}
.newsletter-btn:hover { opacity: .9; color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer { background: #16213e; color: rgba(255,255,255,.75); }
.footer-logo { font-size: 22px; font-weight: 800; color: #fff; display: flex; align-items: center; }
.footer-logo i { color: var(--primary); margin-left: 8px; }
.footer-about { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 10px; }
.social-link {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,.1);
}
.social-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }

.footer-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(143,11,19,.4);
    display: inline-block;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li a {
    display: flex; align-items: center;
    padding: 5px 0;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}
.footer-links li a:hover { color: var(--primary); padding-right: 4px; }
.footer-links li a i { font-size: 10px; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 6px 0;
    color: rgba(255,255,255,.6);
    font-size: 13px;
}
.footer-contact li i { color: var(--primary); font-size: 14px; margin-top: 2px; flex-shrink: 0; }

/* Trust Badges */
.trust-badges { display: flex; flex-direction: column; gap: 10px; }
.trust-badge {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: var(--transition);
}
.trust-badge:hover { background: rgba(143,11,19,.1); border-color: rgba(143,11,19,.2); }
.badge-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}
.badge-text { display: flex; flex-direction: column; }
.badge-text strong { color: #fff; font-size: 12.5px; }
.badge-text span { color: rgba(255,255,255,.5); font-size: 11px; }

/* Footer Benefits */
.footer-benefits-bar {
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.benefit-item {
    display: flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,.75);
}
.benefit-item i { font-size: 28px; color: var(--primary); flex-shrink: 0; }
.benefit-item strong { display: block; font-size: 13px; color: #fff; }
.benefit-item span { font-size: 11px; color: rgba(255,255,255,.5); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom p { color: rgba(255,255,255,.5); font-size: 12.5px; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px; left: 30px;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(143,11,19,.4);
    z-index: 999;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(143,11,19,.5); }

/* ============================================================
   CATEGORY / PRODUCT LIST PAGE
   ============================================================ */
.page-header-section {
    background: linear-gradient(135deg, var(--dark) 0%, #2d1b69 100%);
    padding: 30px 0;
    color: #fff;
}
.page-header-section h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,.9); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* Filter Sidebar */
.filter-sidebar {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 80px;
    box-shadow: var(--card-shadow);
}
.filter-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
.filter-group { margin-bottom: 20px; }
.filter-group-title {
    font-size: 13px; font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex; justify-content: space-between; cursor: pointer;
}
.filter-option {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-700);
    transition: var(--transition);
}
.filter-option:hover { color: var(--primary); }
.filter-option input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; }
.filter-count { color: var(--gray-500); font-size: 11px; }

/* Price Range */
.price-range-inputs { display: flex; gap: 8px; }
.price-input {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-family: inherit;
    font-size: 12.5px;
    width: 100%;
    text-align: center;
}
.price-input:focus { border-color: var(--primary); outline: none; }

/* Sort Bar */
.sort-bar {
    background: #fff;
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: var(--card-shadow);
    margin-bottom: 16px;
}
.sort-label { font-size: 13px; color: var(--text-muted); }
.sort-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-btn {
    border: 1.5px solid var(--border);
    background: transparent;
    padding: 5px 14px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.sort-btn:hover, .sort-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.result-count { font-size: 12.5px; color: var(--text-muted); }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail-section { padding: 30px 0; }
.product-gallery { position: sticky; top: 90px; }
.product-main-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--gray-100);
    padding: 20px;
    cursor: zoom-in;
}
.product-thumbnails {
    display: flex; gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
}
.product-thumb {
    width: 70px; height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.product-thumb:hover, .product-thumb.active { border-color: var(--primary); }

.product-detail-brand { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.product-detail-title { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.product-detail-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--warning); margin-bottom: 14px; }
.product-detail-rating span { color: var(--text-muted); }
.product-detail-price-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.detail-price-discount { font-size: 26px; font-weight: 900; color: var(--primary); }
.detail-price-original { font-size: 15px; color: var(--gray-500); text-decoration: line-through; }
.detail-discount-badge {
    background: var(--danger);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
}
.product-desc { font-size: 13.5px; color: var(--gray-700); line-height: 1.8; }
.qty-selector {
    display: flex; align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}
.qty-btn {
    width: 36px; height: 36px;
    border: none; background: var(--gray-100);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input {
    width: 50px; height: 36px;
    border: none; border-right: 1.5px solid var(--border); border-left: 1.5px solid var(--border);
    text-align: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
}
.qty-input:focus { outline: none; }
.detail-add-cart {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 12px 32px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(143,11,19,.3);
}
.detail-add-cart:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(143,11,19,.4); color: #fff; }
.detail-wishlist-btn {
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: var(--radius);
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}
.detail-wishlist-btn:hover { border-color: var(--danger); color: var(--danger); background: #fff0f0; }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-section { padding: 30px 0; min-height: 60vh; }
.cart-table th { font-size: 12.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; border-bottom: 2px solid var(--border); }
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-name { font-size: 13.5px; font-weight: 600; color: var(--dark); }
.cart-item-brand { font-size: 11px; color: var(--text-muted); }
.cart-total-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 90px;
}
.cart-total-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.cart-total-row.total { font-weight: 800; font-size: 16px; border-bottom: none; color: var(--primary); }
.checkout-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(143,11,19,.3);
    transition: var(--transition);
}
.checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(143,11,19,.4); color: #fff; }

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.search-header {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}
.search-header h2 { font-size: 18px; font-weight: 700; }
.search-header p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ============================================================
   SWIPER OVERRIDES
   ============================================================ */
.categories-swiper .swiper-wrapper { align-items: stretch; }
.categories-swiper { padding-bottom: 5px !important; }

/* ============================================================
   TOAST
   ============================================================ */
#liveToast { border-radius: var(--radius); }
#liveToast.bg-success { background: var(--success) !important; color: #fff; }
#liveToast.bg-danger { background: var(--danger) !important; color: #fff; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 60px; opacity: .3; margin-bottom: 16px; display: block; }
.empty-state h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.empty-state p { font-size: 13.5px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.page-item .page-link {
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    color: var(--text);
    border-color: var(--border);
    font-family: inherit;
}
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.page-item .page-link:hover { color: var(--primary); }


/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 991px) {
    .logo-text { font-size: 16px; }
    .main-nav { display: none !important; }
    .side-banners { display: none; }
}
@media (max-width: 767px) {
    .newsletter-box { padding: 20px; }
    .wide-banner { padding: 20px; }
    .wide-banner-text h3 { font-size: 16px; }
    .hero-slide { padding: 16px 20px; }
    .slide-title { font-size: 16px; }
    .slide-btn { padding: 7px 16px; font-size: 12px; }
    .promo-banner { min-height: 100px; padding: 16px; }
    .promo-banner h4 { font-size: 15px; }
    .benefit-item i { font-size: 22px; }
    .back-to-top { bottom: 20px; left: 20px; width: 38px; height: 38px; }
}
@media (max-width: 575px) {
    body { font-size: 13px; }
    .search-input { font-size: 12.5px; }
    .slide-illustration { display: none; }
    .countdown-num { font-size: 15px; }
}
