/* =====================================================
   Material Design E-commerce — گوشی جانبی
   ===================================================== */

:root {
    --primary:        #EB1C22;
    --primary-rgb:    235, 28, 34;
    --primary-dark:   #c8171d;
    --primary-light:  #ff4a50;
    --primary-bg:     #fff5f5;
    --secondary:      #1a1a2e;
    --secondary-light:#16213e;
    --accent:         #0f3460;
    --success:        #2e7d32;
    --warning:        #f57f17;
    --info:           #0277bd;
    --surface:        #ffffff;
    --surface-variant:#f5f5f5;
    --on-surface:     #212121;
    --on-surface-muted:#757575;
    --divider:        #e0e0e0;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
    --shadow-md:      0 3px 6px rgba(0,0,0,.15), 0 2px 4px rgba(0,0,0,.12);
    --shadow-lg:      0 10px 20px rgba(0,0,0,.15), 0 3px 6px rgba(0,0,0,.10);
    --shadow-xl:      0 15px 25px rgba(0,0,0,.15), 0 5px 10px rgba(0,0,0,.05);
    --radius-sm:      6px;
    --radius-md:      12px;
    --radius-lg:      18px;
    --radius-xl:      24px;
    --transition:     all .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Vazirmatn', system-ui, sans-serif;
    background: #f8f9fa;
    color: var(--on-surface);
    direction: rtl;
    line-height: 1.7;
    font-size: 15px;
    font-feature-settings: "ss01";  /* اعداد فارسی */
}
/* اعداد لاتین برای عناصر LTR (تلفن، کد پستی، شناسه سفارش و ...) */
[dir="ltr"], input[type="number"], input[type="tel"], input[type="email"],
code, pre, .ltr, .dir-ltr {
    font-feature-settings: normal;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.text-primary { color: var(--primary) !important; }
.bg-primary   { background: var(--primary) !important; }

/* ── TOP BAR ── */
.topbar {
    background: var(--secondary);
    color: rgba(255,255,255,.8);
    font-size: 12px;
    padding: 6px 0;
}
.topbar a { color: rgba(255,255,255,.8); }
.topbar a:hover { color: #fff; }
.topbar .sep { margin: 0 8px; opacity: .4; }

/* ── HEADER ── */
.site-header {
    background: var(--surface);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header .header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo .logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px;
    box-shadow: 0 4px 12px rgba(235,28,34,.35);
}
.site-logo .logo-text { line-height: 1.2; }
.site-logo .logo-text strong { display: block; font-size: 18px; font-weight: 800; color: var(--primary); }
.site-logo .logo-text span { font-size: 11px; color: var(--on-surface-muted); }

/* Search */
.header-search { flex: 1; position: relative; }
.header-search input {
    width: 100%; height: 46px;
    border: 2px solid var(--divider);
    border-radius: 100px;
    padding: 0 20px 0 52px;
    font-family: 'Vazirmatn', sans-serif; font-size: 14px;
    background: var(--surface-variant);
    transition: var(--transition); color: var(--on-surface);
}
.header-search input:focus {
    outline: none; border-color: var(--primary);
    background: #fff; box-shadow: 0 0 0 4px rgba(235,28,34,.1);
}
.header-search .search-btn {
    position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
    background: var(--primary); color: #fff; border: none; border-radius: 100px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition);
}
.header-search .search-btn:hover { background: var(--primary-dark); }

/* Search dropdown */
.search-results-dropdown {
    position: absolute; top: calc(100% + 6px); right: 0; left: 0;
    background: #fff; border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); border: 1px solid var(--divider);
    z-index: 9999; display: none; max-height: 420px; overflow-y: auto;
}
.search-results-dropdown.show { display: block; }
.search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--divider);
    cursor: pointer; transition: var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--primary-bg); }
.search-result-item img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.search-result-item .sr-name { font-size: 13px; font-weight: 600; color: var(--on-surface); }
.search-result-item .sr-price { font-size: 12px; color: var(--primary); font-weight: 700; margin-top: 2px; }
.search-result-item .sr-all { font-size: 12px; color: var(--primary); text-align: center; padding: 10px; font-weight: 600; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-action-btn {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 12px; border-radius: var(--radius-md);
    color: var(--on-surface); font-size: 11px; position: relative;
    transition: var(--transition); cursor: pointer; border: none; background: transparent;
    font-family: 'Vazirmatn', sans-serif;
}
.header-action-btn:hover { background: var(--primary-bg); color: var(--primary); }
.header-action-btn i { font-size: 20px; }
.header-action-btn .badge {
    position: absolute; top: 4px; left: 8px;
    background: var(--primary); color: #fff; font-size: 10px;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ── MAIN NAV ── */
.main-nav { background: var(--secondary); }
.main-nav .container { display: flex; align-items: stretch; }
.main-nav .nav-item { position: relative; }
.main-nav .nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 13px 18px; color: rgba(255,255,255,.85);
    font-size: 13.5px; font-weight: 500;
    transition: var(--transition); white-space: nowrap;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: #fff; background: rgba(255,255,255,.08); }

/* Dropdown */
.nav-dropdown {
    position: absolute; top: 100%; right: 0; min-width: 200px;
    background: var(--surface);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg); z-index: 999;
    opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: var(--transition);
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 18px; color: var(--on-surface); font-size: 13px;
    border-bottom: 1px solid var(--divider); transition: var(--transition);
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: var(--primary-bg); color: var(--primary); padding-right: 24px; }

/* ── HERO SWIPER ── */
.hero-slider-section { position: relative; overflow: hidden; }
.hero-swiper { width: 100%; }
.hero-swiper .swiper-slide { position: relative; height: 480px; overflow: hidden; }
.hero-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-swiper .slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,.7) 0%, rgba(26,26,46,.2) 60%, transparent 100%);
    display: flex; align-items: center;
}
.hero-swiper .slide-content { padding: 40px; color: #fff; max-width: 520px; }
.hero-swiper .slide-badge {
    display: inline-block; background: var(--primary); color: #fff;
    font-size: 12px; font-weight: 700; padding: 4px 14px;
    border-radius: 100px; margin-bottom: 14px; letter-spacing: .5px;
}
.hero-swiper .slide-title { font-size: 34px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hero-swiper .slide-subtitle { font-size: 16px; opacity: .9; margin-bottom: 24px; }
.hero-swiper .slide-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: #fff;
    padding: 12px 28px; border-radius: 100px;
    font-weight: 700; font-size: 14px;
    box-shadow: 0 4px 20px rgba(235,28,34,.5); transition: var(--transition);
}
.hero-swiper .slide-btn:hover { background: var(--primary-dark); transform: translateY(-2px); color: #fff; }
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    background: rgba(255,255,255,.2); backdrop-filter: blur(10px);
    width: 48px; height: 48px; border-radius: 50%; color: #fff;
}
.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after { font-size: 18px; font-weight: 900; }
.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover { background: var(--primary); }
.hero-swiper .swiper-pagination-bullet { background: rgba(255,255,255,.6); width: 8px; height: 8px; }
.hero-swiper .swiper-pagination-bullet-active { background: #fff; width: 24px; border-radius: 4px; }

/* ── SECTION HEADERS ── */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; padding-bottom: 14px;
    border-bottom: 2px solid var(--divider); position: relative;
}
.section-header::after {
    content: ''; position: absolute; bottom: -2px; right: 0;
    width: 60px; height: 2px; background: var(--primary); border-radius: 2px;
}
.section-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 22px; font-weight: 800; color: var(--secondary);
}
.section-title i { color: var(--primary); font-size: 20px; }
.section-title .title-badge {
    background: var(--primary); color: #fff; font-size: 11px;
    padding: 2px 10px; border-radius: 100px; font-weight: 700;
}
.section-link { font-size: 13px; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.section-link:hover { color: var(--primary-dark); }

/* ── FEATURE BANNERS ── */
.feature-banners { padding: 24px 0; background: var(--surface); }
.feature-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px; border-radius: var(--radius-md);
    background: var(--surface-variant); transition: var(--transition);
    border: 1px solid transparent;
}
.feature-card:hover { background: var(--primary-bg); border-color: rgba(235,28,34,.2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-card .fc-icon {
    width: 50px; height: 50px; border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.feature-card .fc-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--secondary); }
.feature-card .fc-text span { font-size: 12px; color: var(--on-surface-muted); }

/* ── CATEGORIES ── */
.category-section { padding: 40px 0; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.cat-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 20px 12px; background: var(--surface);
    border-radius: var(--radius-lg); border: 2px solid transparent;
    transition: var(--transition); cursor: pointer; box-shadow: var(--shadow-sm);
}
.cat-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(235,28,34,.2); }
.cat-card .cat-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--primary-bg);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; transition: var(--transition);
}
.cat-card:hover .cat-icon { background: var(--primary); }
.cat-card .cat-icon img { width: 40px; height: 40px; object-fit: contain; }
.cat-card .cat-icon i { font-size: 26px; color: var(--primary); transition: var(--transition); }
.cat-card:hover .cat-icon i { color: #fff; }
.cat-card .cat-name { font-size: 12.5px; font-weight: 600; color: var(--on-surface); text-align: center; }

/* ── PRODUCT CARD ── */
.product-card {
    background: var(--surface); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: var(--transition); position: relative;
    display: flex; flex-direction: column; height: 100%;
    border: 1px solid var(--divider);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }

.product-card .pc-badges { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; flex-direction: column; gap: 5px; }
.product-card .badge-sale {
    background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 100px;
}
.product-card .badge-new {
    background: var(--success); color: #fff; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 100px;
}

.product-card .pc-actions {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    display: flex; flex-direction: column; gap: 6px;
    opacity: 0; transform: translateX(10px); transition: var(--transition);
}
.product-card:hover .pc-actions { opacity: 1; transform: translateX(0); }
.pc-action-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-sm);
    color: var(--on-surface); transition: var(--transition); font-size: 14px;
}
.pc-action-btn:hover { background: var(--primary); color: #fff; transform: scale(1.1); }

.product-card .pc-image {
    position: relative; padding-top: 75%; overflow: hidden; background: var(--surface-variant);
}
.product-card .pc-image img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; padding: 12px;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .pc-image img { transform: scale(1.06); }

.product-card .pc-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card .pc-brand { font-size: 11px; color: var(--on-surface-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.product-card .pc-name {
    font-size: 14px; font-weight: 600; color: var(--on-surface); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.product-card .pc-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--on-surface-muted); }
.pc-stars { color: #f59e0b; font-size: 11px; }

.product-card .pc-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.product-card .pc-price-block { display: flex; flex-direction: column; gap: 2px; }
.product-card .pc-price-original { font-size: 12px; color: var(--on-surface-muted); text-decoration: line-through; }
.product-card .pc-price { font-size: 17px; font-weight: 800; color: var(--primary); line-height: 1; }
.product-card .pc-price span { font-size: 11px; font-weight: 400; margin-right: 2px; }

.product-card .pc-add-btn {
    background: var(--primary); color: #fff; border: none;
    border-radius: var(--radius-md); padding: 9px 14px;
    font-size: 13px; font-weight: 600; font-family: 'Vazirmatn', sans-serif;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.product-card .pc-add-btn:hover { background: var(--primary-dark); transform: scale(1.04); }
.product-card .pc-out-of-stock {
    background: var(--surface-variant); color: var(--on-surface-muted);
    border: none; border-radius: var(--radius-md); padding: 9px 14px;
    font-size: 13px; font-family: 'Vazirmatn', sans-serif; cursor: default;
    display: flex; align-items: center; gap: 6px;
}

/* ── PRODUCT SWIPER ── */
.products-section { padding: 40px 0; }
.product-swiper { padding: 8px 4px 40px !important; }
.product-swiper .swiper-slide { height: auto; }
.product-swiper .swiper-pagination-bullet { background: var(--divider); width: 8px; height: 8px; }
.product-swiper .swiper-pagination-bullet-active { background: var(--primary); width: 24px; border-radius: 4px; }
.product-swiper .swiper-button-next,
.product-swiper .swiper-button-prev {
    color: var(--primary); background: var(--surface);
    width: 40px; height: 40px; border-radius: 50%; box-shadow: var(--shadow-md); top: 38%;
}
.product-swiper .swiper-button-next::after,
.product-swiper .swiper-button-prev::after { font-size: 16px; font-weight: 900; }
.product-swiper .swiper-button-disabled { opacity: .3; }

/* ── BANNER STRIP ── */
.banner-strip { padding: 30px 0; }
.banner-card {
    border-radius: var(--radius-lg); overflow: hidden;
    position: relative; height: 200px; display: block; box-shadow: var(--shadow-md);
}
.banner-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.banner-card:hover img { transform: scale(1.04); }
.banner-card .bc-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,.75) 0%, transparent 70%);
    display: flex; align-items: center; padding: 24px;
}
.banner-card .bc-content { color: #fff; }
.banner-card .bc-content small { font-size: 11px; opacity: .8; }
.banner-card .bc-content h3 { font-size: 18px; font-weight: 800; margin: 4px 0 8px; }
.banner-card .bc-btn { display: inline-block; background: var(--primary); color: #fff; padding: 6px 18px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.banner-card .bc-btn:hover { background: var(--primary-dark); color: #fff; }

/* ── BRANDS ── */
.brands-section { padding: 30px 0; background: var(--surface); }
.brand-item {
    display: flex; align-items: center; justify-content: center;
    padding: 14px 20px; border-radius: var(--radius-md);
    border: 1px solid var(--divider); transition: var(--transition); height: 70px;
}
.brand-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.brand-item img { max-height: 40px; max-width: 110px; object-fit: contain; filter: grayscale(1); transition: var(--transition); }
.brand-item:hover img { filter: grayscale(0); }

/* ── BLOG ── */
.blog-section { padding: 40px 0; }
.blog-card {
    background: var(--surface); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--divider);
    transition: var(--transition); display: flex; flex-direction: column; height: 100%;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.blog-card .bc-image { aspect-ratio: 16/9; overflow: hidden; }
.blog-card .bc-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .bc-image img { transform: scale(1.05); }
.blog-card .bc-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.blog-card .bc-cat { display: inline-block; background: var(--primary-bg); color: var(--primary); font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 100px; align-self: flex-start; }
.blog-card .bc-title { font-size: 15px; font-weight: 700; color: var(--on-surface); line-height: 1.5; flex: 1; }
.blog-card .bc-title:hover { color: var(--primary); }
.blog-card .bc-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--on-surface-muted); margin-top: auto; }

/* ── FOOTER ── */
.site-footer { background: var(--secondary); color: rgba(255,255,255,.8); padding-top: 50px; margin-top: 60px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo .fl-icon { width: 42px; height: 42px; background: var(--primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
.footer-logo .fl-name { font-size: 18px; font-weight: 800; color: #fff; }
.site-footer p { font-size: 13px; line-height: 1.8; opacity: .75; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-heading { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.footer-links a::before { content: '›'; color: var(--primary); font-size: 16px; font-weight: 700; }
.footer-links a:hover { color: #fff; padding-right: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; margin-bottom: 12px; opacity: .8; }
.footer-contact-item i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.footer-newsletter .fn-input-group { display: flex; border-radius: var(--radius-md); overflow: hidden; }
.footer-newsletter input { flex: 1; border: none; background: rgba(255,255,255,.1); color: #fff; padding: 10px 14px; font-family: 'Vazirmatn', sans-serif; font-size: 13px; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,.5); }
.footer-newsletter input:focus { outline: none; background: rgba(255,255,255,.15); }
.footer-newsletter button { background: var(--primary); color: #fff; border: none; padding: 0 20px; cursor: pointer; font-family: 'Vazirmatn', sans-serif; font-size: 13px; font-weight: 700; transition: var(--transition); }
.footer-newsletter button:hover { background: var(--primary-dark); }
.footer-bottom { background: rgba(0,0,0,.2); margin-top: 40px; padding: 16px 0; font-size: 12px; opacity: .7; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ── CART ── */
.cart-item { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--divider); margin-bottom: 12px; transition: var(--transition); }
.cart-item:hover { box-shadow: var(--shadow-md); }
.cart-item img { width: 80px; height: 80px; object-fit: contain; border-radius: var(--radius-sm); background: var(--surface-variant); padding: 4px; }
.cart-item-info { flex: 1; }
.cart-item-info h6 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-info .price { font-size: 15px; font-weight: 700; color: var(--primary); }
.cart-summary-box { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--divider); box-shadow: var(--shadow-sm); position: sticky; top: 80px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.cart-summary-row.total { font-size: 16px; font-weight: 800; color: var(--primary); }

/* ── BUTTONS ── */
.btn-primary-custom { background: var(--primary); color: #fff; border: none; border-radius: var(--radius-md); padding: 12px 24px; font-family: 'Vazirmatn', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 14px rgba(235,28,34,.35); }
.btn-primary-custom:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(235,28,34,.4); }

/* ── TOAST ── */
#toast-container { position: fixed; bottom: 24px; left: 24px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; }
.toast-item { display: flex; align-items: center; gap: 12px; background: var(--secondary); color: #fff; padding: 14px 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-xl); font-size: 14px; min-width: 280px; animation: toastIn .3s cubic-bezier(.4,0,.2,1); border-right: 4px solid var(--primary); }
.toast-item.success { border-right-color: #2e7d32; }
.toast-item i { font-size: 20px; flex-shrink: 0; }
.toast-item.success i { color: #4caf50; }
@keyframes toastIn { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

/* ── FORMS ── */
.form-material { background: var(--surface); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-md); border: 1px solid var(--divider); }
.form-material .form-label { font-size: 13px; font-weight: 600; color: var(--secondary); margin-bottom: 6px; }
.form-material .form-control { border: 2px solid var(--divider); border-radius: var(--radius-md); padding: 10px 14px; font-family: 'Vazirmatn', sans-serif; font-size: 14px; transition: var(--transition); }
.form-material .form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(235,28,34,.1); }

/* ── FILTERS ── */
.filter-sidebar { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--divider); position: sticky; top: 80px; }
.filter-group { margin-bottom: 24px; }
.filter-group-title { font-size: 14px; font-weight: 700; color: var(--secondary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--divider); }
.filter-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; cursor: pointer; }
.filter-item input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }
.filter-btn { width: 100%; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-md); padding: 10px; font-family: 'Vazirmatn', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.filter-btn:hover { background: var(--primary-dark); }

/* Sort toolbar */
.sort-toolbar { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--divider); flex-wrap: wrap; gap: 10px; }
.sort-toolbar .result-count { font-size: 13px; color: var(--on-surface-muted); }
.sort-toolbar select { border: 1px solid var(--divider); border-radius: var(--radius-sm); padding: 6px 12px; font-family: 'Vazirmatn', sans-serif; font-size: 13px; }

/* ── PAGINATION ── */
.pagination-custom { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination-custom .page-item a,
.pagination-custom .page-item span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-md); border: 1px solid var(--divider); background: var(--surface); color: var(--on-surface); font-size: 14px; transition: var(--transition); }
.pagination-custom .page-item.active span,
.pagination-custom .page-item a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── MOBILE BOTTOM NAV ── */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); box-shadow: 0 -2px 10px rgba(0,0,0,.1); z-index: 999; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.mobile-bottom-nav .mbn-items { display: flex; justify-content: space-around; }
.mbn-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 12px; color: var(--on-surface-muted); font-size: 10px; border-radius: var(--radius-md); transition: var(--transition); position: relative; }
.mbn-item i { font-size: 20px; }
.mbn-item.active, .mbn-item:hover { color: var(--primary); }
.mbn-item .badge { position: absolute; top: 2px; right: 8px; background: var(--primary); color: #fff; font-size: 9px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1100; backdrop-filter: blur(3px); }
.mobile-nav-overlay.open { display: block; }
.mobile-nav-drawer { position: fixed; top: 0; right: -320px; width: 300px; height: 100%; background: var(--surface); z-index: 1200; transition: right .3s cubic-bezier(.4,0,.2,1); overflow-y: auto; display: flex; flex-direction: column; }
.mobile-nav-drawer.open { right: 0; }
.mobile-nav-header { background: var(--secondary); color: #fff; padding: 20px; display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-header h5 { font-size: 16px; font-weight: 700; margin: 0; }
.mobile-nav-close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }
.mobile-nav-item { display: flex; align-items: center; gap: 12px; padding: 13px 20px; color: var(--on-surface); font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--divider); transition: var(--transition); }
.mobile-nav-item i { width: 22px; text-align: center; color: var(--primary); }
.mobile-nav-item:hover { background: var(--primary-bg); color: var(--primary); padding-right: 28px; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .site-header .header-inner { flex-wrap: wrap; }
    .header-search { order: 3; flex: 0 0 100%; }
    .main-nav { display: none; }
    .mobile-bottom-nav { display: block; }
    body { padding-bottom: 70px; }
    .hero-swiper .swiper-slide { height: 340px; }
    .hero-swiper .slide-title { font-size: 24px; }
}
@media (max-width: 767px) {
    .hero-swiper .swiper-slide { height: 260px; }
    .hero-swiper .slide-title { font-size: 18px; }
    .hero-swiper .slide-subtitle { display: none; }
    .hero-swiper .swiper-button-next, .hero-swiper .swiper-button-prev { display: none; }
    .section-title { font-size: 17px; }
    .topbar { display: none; }
}
@media (max-width: 575px) {
    .hero-swiper .slide-content { padding: 16px; }
    .hero-swiper .slide-badge { display: none; }
    .hero-swiper .slide-btn { padding: 8px 18px; font-size: 12px; }
    .product-card .pc-body { padding: 12px; }
    .product-card .pc-price { font-size: 14px; }
    .category-grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: 10px; }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface-variant); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ── UTILITIES ── */
.bg-gradient-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.section-pad { padding: 50px 0; }
.sticky-top-custom { position: sticky; top: 80px; }

/* ── PRODUCT CARD v2 (rp-card) — used in _card.php & product page ── */
.rp-card { background: #fff; border-radius: 14px; border: 1px solid #f0f0f0; overflow: hidden; transition: all .25s; display: flex; flex-direction: column; height: 100%; }
.rp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.10); border-color: transparent; }
.rp-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: #fafafa; }
.rp-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .3s; }
.rp-card:hover .rp-img-wrap img { transform: scale(1.06); }
.rp-discount-badge { position: absolute; top: 10px; right: 10px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 100px; }
.rp-body { padding: 14px 14px 10px; flex: 1; display: flex; flex-direction: column; }
.rp-brand { font-size: 11px; color: #aaa; font-weight: 600; margin-bottom: 4px; }
.rp-name { font-size: 13px; font-weight: 700; color: #1a1a2e; line-height: 1.4; margin-bottom: 8px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp-rating { display: flex; align-items: center; gap: 3px; margin-bottom: 8px; }
.rp-rating i { font-size: 11px; color: #f59e0b; }
.rp-rating span { font-size: 11px; color: #aaa; margin-right: 3px; }
.rp-footer { padding: 10px 14px 14px; border-top: 1px solid #f5f5f5; display: flex; align-items: center; justify-content: space-between; }
.rp-price { font-size: 14px; font-weight: 800; color: var(--primary); }
.rp-price del { display: block; font-size: 11px; font-weight: 400; color: #bbb; }
.rp-add-btn { width: 34px; height: 34px; background: var(--primary); color: #fff; border: none; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all .2s; }
.rp-add-btn:hover { background: var(--primary-dark); transform: scale(1.1); }

/* ── محتوای HTML وارد شده از وردپرس (توضیحات دسته‌بندی) ── */
.category-desc { color: #555; line-height: 1.9; margin-top: 6px; }
.category-desc h1 { font-size: 16px; font-weight: 700; color: #1a1a2e; margin: 16px 0 8px; }
.category-desc h2 { font-size: 15px; font-weight: 700; color: #1a1a2e; margin: 14px 0 6px; }
.category-desc h3 { font-size: 14px; font-weight: 700; color: #1a1a2e; margin: 12px 0 6px; }
.category-desc p  { margin-bottom: 10px; font-size: 13px; }
.category-desc a  { color: var(--primary); text-decoration: none; }
.category-desc a:hover { text-decoration: underline; }
.category-desc strong { color: #1a1a2e; }
.category-desc ul,.category-desc ol { padding-right: 20px; margin-bottom: 10px; font-size: 13px; }
.category-desc li { margin-bottom: 4px; }

/* category-desc */
