@import url('https://cdn.jsdelivr.net/npm/vazirmatn@33.0.0/misc/Farsi-Digits/Vazirmatn-FD-font-face.css');

/* ══════════════════════════════════════════════
   TURBO SPORT — Design System v4
══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; max-width: 100%; }
html, body { max-width: 100vw; overflow-x: hidden; }

:root {
  --primary:       #0d6efd;
  --primary-dark:  #0b5ed7;
  --primary-glow:  rgba(13, 110, 253, 0.3);
  --accent:        #198754;
  --accent-dark:   #146c43;
  --accent-glow:   rgba(25, 135, 84, 0.3);
  --navy:          #0b1e3a;
  --navy2:         #0f2a4a;
  --navy3:         #15355f;
  --warm:          #f5f5f5;
  --warm2:         #e9ecef;
  --white:         #ffffff;
  --text:          #212529;
  --muted:         #6c757d;
  --border:        rgba(0,0,0,0.08);
  --border-dark:   rgba(255,255,255,0.08);
  --radius-sm:     2px;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
  --shadow:        0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.16);
  --transition:    0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Vazirmatn FD', sans-serif;
  background-color: var(--warm);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-top: calc(64px + 42px);
  margin: 0;
  line-height: 1.7;
}
body.no-announcement { padding-top: 64px; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { display: block; max-width: 100%; }

/* ═══ نوار اطلاعیه ═══ */
#announcement-bar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1040;
  background: linear-gradient(45deg, #f09433, #e95950, #bc2a8d, #d6249e);
  color: #fff; text-align: center; padding: 6px 40px 6px 15px;
  font-size: 0.9rem; font-weight: 500; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 6px;
}
#announcement-bar .close-btn {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; opacity: 0.9;
}
#announcement-bar .close-btn:hover { opacity: 1; }
#announcement-bar a { color: #fff; font-weight: 700; }
#announcement-bar a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   HEADER (نوار ناوبری)
══════════════════════════════════════════════ */
.main-header {
  background: rgba(11, 30, 58, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 2px 48px rgba(0,0,0,0.55);
  position: fixed; top: 42px; right: 0; left: 0; z-index: 1030; height: 64px;
  transition: top 0.3s;
}
body.no-announcement .main-header { top: 0; }
.main-header .container { height: 100%; display: flex; align-items: center; gap: 8px; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.header-brand { display: flex; align-items: center; }
.logo-circle { border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); padding: 2px; background: #fff; transition: all 0.3s; }
.logo-circle:hover { border-color: var(--accent); box-shadow: 0 0 12px var(--primary-glow); }
.navbar-collapse { flex: 1; display: flex; align-items: center; }
.navbar-nav { display: flex; align-items: center; flex-direction: row; list-style: none; margin: 0 12px 0 0; padding: 0; gap: 2px; }
.nav-link {
  color: rgba(255,255,255,0.72) !important; font-weight: 500; font-size: 0.88rem;
  padding: 8px 13px !important; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap; display: flex; align-items: center; gap: 5px;
}
.nav-link:hover, .nav-link:focus, .nav-link.active { color: #fff !important; background: rgba(13, 110, 253, 0.2); }

/* Dropdown */
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-header .dropdown-menu {
  background: rgba(11, 30, 58, 0.98); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); margin-top: 10px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6); min-width: 190px;
}
.main-header .dropdown-item {
  color: rgba(255,255,255,0.72); padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: 0.87rem; font-weight: 500; transition: color 0.15s, background 0.15s, padding 0.15s;
  display: flex; align-items: center; gap: 8px;
}
.main-header .dropdown-item:hover { color: #fff; background: rgba(13, 110, 253, 0.2); padding-right: 18px; }
.main-header .dropdown-divider { border-top: 1px solid rgba(255,255,255,0.07); margin: 6px 0; }

/* Cart icon */
.cart-icon {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  color: rgba(255,255,255,0.8) !important; transition: all var(--transition); margin-right: 4px;
}
.cart-icon i { font-size: 1.1rem; }
.cart-icon:hover { background: rgba(13, 110, 253, 0.2); border-color: rgba(13, 110, 253, 0.4); color: #fff !important; }
.cart-icon .badge {
  position: absolute; top: -5px; right: -5px; background: var(--accent); color: #fff;
  font-size: 0.62rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--navy); padding: 0; animation: cartPulse 2.5s infinite;
}
@keyframes cartPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.6); }
  60%      { box-shadow: 0 0 0 6px rgba(25, 135, 84, 0); }
}

/* Mobile toggler */
.navbar-toggler {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm); padding: 8px 11px; color: rgba(255,255,255,0.8);
  transition: all var(--transition);
}
.navbar-toggler:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.2); }
.navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.45); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(13,110,253,1)' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Offcanvas منوی موبایل */
.mobile-sidebar {
  background: rgba(11, 30, 58, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-inline-start: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-lg);
  width: 280px;
}
.mobile-sidebar .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 16px 18px; }
.mobile-sidebar .offcanvas-body { padding: 12px; }
.mobile-sidebar .nav-link {
  color: rgba(255,255,255,0.78) !important; padding: 12px 14px !important;
  border-radius: var(--radius-sm); font-weight: 500; transition: color var(--transition), background var(--transition);
}
.mobile-sidebar .nav-link:hover, .mobile-sidebar .nav-link:focus, .mobile-sidebar .nav-link.active {
  color: #fff !important; background: rgba(13, 110, 253, 0.2);
}
.mobile-sidebar .dropdown-menu {
  position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm); margin: 4px 0 6px 18px; padding: 6px; box-shadow: none;
}
.mobile-sidebar .dropdown-item {
  color: rgba(255,255,255,0.72); padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: 0.87rem; font-weight: 500; transition: color 0.15s, background 0.15s;
}
.mobile-sidebar .dropdown-item:hover { color: #fff; background: rgba(13, 110, 253, 0.2); }
.mobile-sidebar .dropdown-divider { border-top: 1px solid rgba(255,255,255,0.07); margin: 6px 0; }
.mobile-sidebar .offcanvas-title { font-weight: 700; }

/* Modal سبد خرید */
.glass-modal {
  background: rgba(11, 30, 58, 0.95); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius);
  color: #fff; box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}
.glass-modal .modal-header { border-bottom: 1px solid rgba(255,255,255,0.1); }
.glass-modal .btn-close-white { filter: invert(1) grayscale(100%) brightness(200%); }
.glass-modal .modal-body { max-height: 60vh; overflow-y: auto; }

/* ══════════════════════════════════════════════
   BUTTONS (همه با border‑radius ۲px)
══════════════════════════════════════════════ */
.btn {
  font-family: 'Vazirmatn FD', sans-serif; font-weight: 600; font-size: 0.88rem;
  padding: 10px 22px; border-radius: 2px !important;
  border: none; cursor: pointer; transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 7px; line-height: 1; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px var(--primary-glow); }
.btn-danger { background: var(--accent); color: #fff; }
.btn-danger:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-outline-danger { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn-outline-danger:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-success { background: var(--accent); color: #fff; }
.btn-success:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-warning { background: #ffc107; color: #212529; }
.btn-warning:hover { background: #e0a800; transform: translateY(-1px); }
.btn-outline-dark { background: transparent; border: 1.5px solid var(--navy2); color: var(--navy2); }
.btn-outline-dark:hover { background: var(--navy2); color: #fff; transform: translateY(-1px); }
.btn-light { background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.2); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,0.18); color: #fff; transform: translateY(-1px); }
.btn-sm { font-size: 0.78rem; padding: 7px 14px; }
.btn-lg { font-size: 0.98rem; padding: 14px 32px; }

/* ══════════════════════════════════════════════
   HERO (ذرات + تصویر بلور + جستجو + انیمیشن)
══════════════════════════════════════════════ */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
    background: #0b1e3a; /* رنگ پایه */
    padding: 120px 0 60px;
}

/* تصویر پس‌زمینه با بلور */
.hero-bg-image {
    position: absolute;
    inset: -20px;
    background: url('../images/background.png') center / cover no-repeat;
    filter: blur(20px);
    -webkit-filter: blur(20px);
    z-index: 0;
    opacity: 0.4;
}

#heroParticles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(circle at 30% 50%, rgba(13,110,253,0.12) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(25,135,84,0.1) 0%, transparent 50%),
                rgba(0, 0, 0, 0.3);
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 0.85rem; font-weight: 600;
    padding: 8px 20px; border-radius: 50px; margin-bottom: 30px; letter-spacing: 0.5px;
    animation: badgePulse 3s ease-in-out infinite;
}
.hero-badge i { color: #ffc107; font-size: 0.9rem; }
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,193,7,0.4); }
    50%      { box-shadow: 0 0 0 12px rgba(255,193,7,0); }
}

.hero-title {
    font-weight: 900; font-size: clamp(2.2rem, 5.5vw, 3.8rem); line-height: 1.2; margin-bottom: 20px;
    color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,0.3); letter-spacing: -0.5px;
}
.hero-highlight { position: relative; color: #ffc107; display: inline-block; }
.hero-highlight::after {
    content: ''; position: absolute; bottom: 4px; left: 0; right: 0; height: 8px;
    background: rgba(255,193,7,0.2); border-radius: 4px; z-index: -1;
}
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.75); max-width: 550px; line-height: 1.8; margin-bottom: 35px; }

/* ═══ جعبه جستجو (آیکون باکس ۱px) ═══ */
.hero-search-wrapper { max-width: 650px; margin: 0 auto 35px; position: relative; }
.hero-search-box {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.06); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    border: 2px solid rgba(255,255,255,0.18); border-radius: 1px;
    overflow: hidden; transition: all 0.4s;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.hero-search-box:focus-within {
    border-color: rgba(255,193,7,0.6); background: rgba(255,255,255,0.12);
    box-shadow: 0 20px 60px rgba(255,193,7,0.25), 0 0 0 4px rgba(255,193,7,0.1);
    transform: scale(1.02);
}
.hero-search-box .form-control {
    background: transparent; border: none; color: #fff; font-size: 1rem;
    padding: 18px 20px; height: auto; flex: 1; font-weight: 500;
}
.hero-search-box .form-control::placeholder { color: rgba(255,255,255,0.45); font-weight: 400; }
.hero-search-box .form-control:focus { box-shadow: none; outline: none; }

/* آیکون باکس (دکمه جستجو) */
.search-icon-box-submit {
    width: 55px; height: 55px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 1px;
    margin: 5px; cursor: pointer; transition: all 0.3s; flex-shrink: 0;
}
.search-icon-box-submit:hover { background: rgba(255,193,7,0.25); border-color: #ffc107; }
.search-icon-box-submit .search-icon { color: rgba(255,255,255,0.8); font-size: 1.2rem; transition: 0.3s; }
.search-icon-box-submit:hover .search-icon { color: #ffc107; transform: scale(1.1); }

/* دکمه‌های CTA – border‑radius ۱px */
.hero-cta { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.btn-hero-primary {
    background: linear-gradient(135deg, #198754, #146c43); color: #fff; font-weight: 700;
    font-size: 1rem; padding: 14px 32px; border-radius: 1px !important;
    border: none; transition: all 0.3s; box-shadow: 0 8px 25px rgba(25,135,84,0.4);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(25,135,84,0.6); color: #fff; }
.btn-hero-outline {
    background: transparent; color: #fff; font-weight: 700; font-size: 1rem;
    padding: 14px 32px; border-radius: 1px !important;
    border: 2px solid rgba(255,255,255,0.4); transition: all 0.3s; backdrop-filter: blur(10px);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; transform: translateY(-2px); color: #fff; }

/* بنر اسکرول */
.hero-ticker { width: 100%; overflow: hidden; background: rgba(255,255,255,0.06); backdrop-filter: blur(15px); border-radius: 2px; border: 1px solid rgba(255,255,255,0.1); padding: 14px 0; }
.ticker-wrap { width: 100%; overflow: hidden; }
.ticker-track { display: flex; animation: tickerMove 30s linear infinite; white-space: nowrap; gap: 40px; }
.ticker-track span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.ticker-track span i { color: #ffc107; font-size: 0.85rem; }
.ticker-separator { color: rgba(255,193,7,0.5) !important; font-size: 0.7rem !important; }
@keyframes tickerMove { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }

/* موج */
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3; line-height: 0; }
.hero-wave svg { width: 100%; height: 80px; }

/* ══════════════════════════════════════════════
   SECTION TITLES
══════════════════════════════════════════════ */
.section-header { margin-bottom: 40px; }
.section-eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; color: var(--text); line-height: 1.2; margin: 0; }
.section-title span { color: var(--primary); }
.section-line { width: 48px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: 14px; }

/* ══════════════════════════════════════════════
   PRODUCT CARD
══════════════════════════════════════════════ */
.product-card {
  background: var(--white); border: 1px solid rgba(0,0,0,0.07); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer; position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(13,110,253,0.25); }
.product-card::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform var(--transition);
}
.product-card:hover::before { transform: scaleX(1); }
.product-card .img-wrap { position: relative; overflow: hidden; background: var(--warm); height: 220px; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover img { transform: scale(1.06); }

.product-badge { position: absolute; top: 12px; right: 12px; font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; line-height: 1; }
.badge-discount { background: var(--accent); color: #fff; }
.badge-new { background: var(--primary); color: #fff; }

.product-card .wishlist-btn {
  position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none; color: #bbb;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
  cursor: pointer; transition: all var(--transition); opacity: 0;
}
.product-card:hover .wishlist-btn { opacity: 1; }
.product-card .wishlist-btn:hover { color: var(--accent); transform: scale(1.12); }

.product-card .card-body { padding: 18px 18px 20px; }
.product-card .card-title {
  font-size: 0.97rem; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.4;
  transition: color var(--transition); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card:hover .card-title { color: var(--primary); }
.product-card .brand-name { font-size: 0.75rem; color: var(--muted); font-weight: 500; margin-bottom: 12px; letter-spacing: 0.3px; }

.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-now { font-size: 1.15rem; font-weight: 900; color: var(--text); }
.price-old { font-size: 0.82rem; color: #bbb; text-decoration: line-through; }
.price-unit { font-size: 0.75rem; color: var(--muted); font-weight: 500; }

.card-footer-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.06); }

.stars { display: flex; gap: 2px; align-items: center; }
.stars i { font-size: 0.75rem; color: #fbbf24; }
.stars .count { font-size: 0.72rem; color: var(--muted); margin-right: 4px; }

/* ══════════════════════════════════════════════
   DISCOUNT / DEAL SLIDER
══════════════════════════════════════════════ */
.deals-section { background: var(--navy2); padding: 56px 0; position: relative; overflow: hidden; }
.deals-section::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(13,110,253,0.015) 0, rgba(13,110,253,0.015) 1px, transparent 1px, transparent 20px);
  pointer-events: none;
}
.deals-section .section-title { color: #fff; }
.deals-section .section-eyebrow { color: var(--accent); }
.discount-slider-container { overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--primary) rgba(255,255,255,0.05); }
.discount-slider-container::-webkit-scrollbar { height: 4px; }
.discount-slider-container::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 2px; }
.discount-slider-container::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
.discount-slider { display: flex; gap: 16px; flex-wrap: nowrap; }
.discount-card {
  flex-shrink: 0; width: 220px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius);
  overflow: hidden; transition: all var(--transition); cursor: pointer; color: #fff;
}
.discount-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(13,110,253,0.3); transform: translateY(-3px); }
.discount-card img { height: 150px; width: 100%; object-fit: cover; }
.discount-card .card-body { padding: 14px; }
.discount-badge {
  width: 44px; height: 44px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.8rem;
  color: #fff; flex-shrink: 0; box-shadow: 0 4px 12px var(--accent-glow);
}

/* ══════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════ */
.breadcrumb { background: transparent; padding: 0; margin-bottom: 8px; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }
.breadcrumb-item a { color: var(--primary); font-size: 0.85rem; }
.breadcrumb-item.active { color: var(--muted); font-size: 0.85rem; }

/* ══════════════════════════════════════════════
   PRODUCT PAGE — DETAIL
══════════════════════════════════════════════ */
.product-gallery .main-img {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--warm2); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
}
.product-gallery .main-img img { max-height: 360px; width: auto; margin: auto; object-fit: contain; transition: transform 0.4s; }
.product-gallery .main-img:hover img { transform: scale(1.03); }
.product-gallery .thumbnails { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-gallery .thumb {
  width: 72px; height: 72px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  overflow: hidden; cursor: pointer; transition: border-color var(--transition); background: var(--warm2);
}
.product-gallery .thumb.active, .product-gallery .thumb:hover { border-color: var(--primary); }
.product-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-meta h1 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 900; color: var(--text); line-height: 1.3; }
.product-price-block {
  background: var(--warm2); border-radius: var(--radius); padding: 20px 24px; margin: 22px 0;
  border-right: 3px solid var(--accent);
}
.product-price-block .price-main { font-size: 2rem; font-weight: 900; color: var(--text); }
.product-price-block .price-main small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.rating-stars { direction: ltr; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-stars input[type="radio"] { display: none; }
.rating-stars label { color: #ddd; font-size: 1.4rem; cursor: pointer; transition: color 0.15s; }
.rating-stars input[type="radio"]:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label { color: #fbbf24; }
.favorite-toggle {
  background: none; border: 1.5px solid rgba(0,0,0,0.12); border-radius: var(--radius-sm);
  color: var(--muted); padding: 10px 14px; transition: all var(--transition); font-size: 0.9rem; cursor: pointer;
}
.favorite-toggle:hover, .favorite-toggle.active { border-color: var(--accent); color: var(--accent); background: rgba(25,135,84,0.06); }
.stock-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; padding: 5px 12px; border-radius: 50px; }
.stock-badge.in-stock { background: rgba(26,158,110,0.1); color: #1a9e6e; border: 1px solid rgba(26,158,110,0.2); }
.stock-badge.in-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #1a9e6e; }
.stock-badge.out-of-stock { background: rgba(233,69,96,0.08); color: var(--red); border: 1px solid rgba(233,69,96,0.2); }

/* ══════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════ */
.form-control, .form-select {
  font-family: 'Vazirmatn FD', sans-serif; border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm); padding: 11px 16px; font-size: 0.9rem;
  color: var(--text); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,110,253,0.12); outline: none; }
.form-label { font-size: 0.87rem; font-weight: 600; color: var(--text); margin-bottom: 7px; display: block; }
.form-text { font-size: 0.78rem; color: var(--muted); margin-top: 5px; }
.auth-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 40px 36px; max-width: 440px; margin: 0 auto; border: 1px solid rgba(0,0,0,0.05);
}
.auth-card h2 { font-size: 1.6rem; font-weight: 900; color: var(--text); margin-bottom: 6px; }
.auth-divider { position: relative; text-align: center; margin: 22px 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: rgba(0,0,0,0.08); }
.auth-divider span { position: relative; background: var(--white); padding: 0 12px; font-size: 0.8rem; color: var(--muted); }

/* ══════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════ */
.pagination { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 32px 0 0; }
.page-item .page-link {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--radius-sm); border: 1.5px solid rgba(0,0,0,0.1);
  background: var(--white); color: var(--text); font-size: 0.9rem; font-weight: 600;
  font-family: 'Vazirmatn FD', sans-serif; transition: all var(--transition); text-decoration: none;
}
.page-item .page-link:hover { border-color: var(--primary); color: var(--primary); background: rgba(13,110,253,0.05); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px var(--primary-glow); }
.page-item.disabled .page-link { opacity: 0.4; pointer-events: none; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.65); padding: 64px 0 0; margin-top: 80px;
  position: relative; overflow: hidden;
}
.footer::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer h5 { color: #fff; font-weight: 800; font-size: 1rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.footer p { font-size: 0.88rem; line-height: 1.8; color: rgba(255,255,255,0.5); }
.social-icons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.social-icons a {
  width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55);
  font-size: 1.1rem; transition: all var(--transition); text-decoration: none;
}
.social-icons a:hover { border-color: var(--accent); color: var(--accent); background: rgba(25,135,84,0.1); transform: translateY(-2px); }
.trust-badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.trust-badges img { width: 76px; height: auto; border-radius: var(--radius-sm); filter: grayscale(30%) brightness(0.9); transition: all var(--transition); }
.trust-badges img:hover { filter: none; transform: scale(1.05); }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.3); margin: 0; }

/* ══════════════════════════════════════════════
   ADMIN PANEL STYLES
══════════════════════════════════════════════ */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--navy); flex-shrink: 0; padding: 24px 0;
  border-left: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column;
}
.admin-sidebar .brand-block { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 16px; }
.admin-sidebar h4 { color: #fff; font-weight: 800; margin-bottom: 4px; }
.admin-sidebar .text-white-50 { font-size: 0.8rem; }
.admin-sidebar nav { flex: 1; padding: 0 12px; }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.6); font-size: 0.9rem; font-weight: 500;
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 4px; transition: all var(--transition); text-decoration: none;
}
.admin-sidebar nav a i { font-size: 1.1rem; width: 20px; text-align: center; }
.admin-sidebar nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.admin-sidebar nav a.active { color: #fff; background: var(--primary); box-shadow: 0 4px 12px var(--primary-glow); font-weight: 700; }
.admin-content { flex: 1; padding: 32px; background: var(--warm); overflow-x: auto; }

/* Stat cards */
.stat-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.07);
  padding: 20px 24px; display: flex; align-items: center; gap: 18px; transition: box-shadow var(--transition); box-shadow: var(--shadow-sm);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card .icon-box { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-card .icon-box.red   { background: rgba(25,135,84,0.1); color: var(--accent); }
.stat-card .icon-box.blue  { background: rgba(13,110,253,0.1); color: var(--primary); }
.stat-card .icon-box.green { background: rgba(25,135,84,0.1); color: var(--accent); }
.stat-card .icon-box.amber { background: rgba(255,193,7,0.1); color: #ffc107; }
.stat-card .info .num { font-size: 1.75rem; font-weight: 900; color: var(--text); line-height: 1; margin-bottom: 4px; }
.stat-card .info .label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }

/* Admin tables */
.admin-table { background: var(--white); border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.07); overflow: hidden; }
.admin-table table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table thead th {
  background: var(--warm2); color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 14px 18px; text-align: right; border-bottom: 1px solid rgba(0,0,0,0.07);
}
.admin-table tbody td { padding: 14px 18px; border-bottom: 1px solid rgba(0,0,0,0.05); color: var(--text); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: rgba(13,110,253,0.025); }

/* Status badges */
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.success  { background: rgba(26,158,110,0.1); color: #1a9e6e; }
.status-badge.pending  { background: rgba(255,193,7,0.1); color: #ffc107; }
.status-badge.danger   { background: rgba(233,69,96,0.1); color: #dc3545; }
.status-badge.info     { background: rgba(13,110,253,0.1); color: var(--primary); }

/* Panel cards */
.panel-card { background: var(--white); border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.07); padding: 24px; margin-bottom: 24px; }
.panel-card h5 { font-weight: 800; font-size: 1rem; margin-bottom: 18px; color: var(--text); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (min-width: 992px) {
  .main-header .navbar-collapse { display: flex !important; align-items: center; flex: 1; }
  .navbar-nav { flex-direction: row; }
}
@media (max-width: 991.98px) {
  body { padding-top: 64px; }
  .main-header .navbar-collapse {
    position: fixed; top: 64px; right: 0; left: 0;
    background: rgba(12, 12, 26, 0.98); backdrop-filter: blur(20px);
    padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
    max-height: calc(100vh - 64px); overflow-y: auto; flex-direction: column; align-items: stretch;
  }
  .navbar-nav { flex-direction: column !important; gap: 2px; }
  .main-header .dropdown-menu {
    position: static !important; transform: none !important; opacity: 1 !important; visibility: visible !important;
    background: rgba(255,255,255,0.04); margin: 6px 0 0 16px; padding: 6px; border: 1px solid rgba(255,255,255,0.06);
  }
}
@media (max-width: 576px) {
  .hero h1 { font-size: 1.5rem; }
  .discount-card { width: 185px; }
  .product-card .img-wrap { height: 185px; }
}
/* مودال سبد خرید */
.glass-modal {
    background: rgba(11, 30, 58, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    color: #fff;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}
.glass-modal .modal-header { border-bottom: 1px solid rgba(255,255,255,0.1); }
.glass-modal .btn-close-white { filter: invert(1) grayscale(100%) brightness(200%); }
.glass-modal .modal-body { max-height: 60vh; overflow-y: auto; }

/* آیتم‌های سبد خرید */
.glass-cart-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s;
}
.glass-cart-item:hover {
    background: rgba(13,110,253,0.1);
    border-color: rgba(13,110,253,0.3);
}
.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
}