@import url('https://cdn.jsdelivr.net/npm/vazirmatn@33.0.0/misc/Farsi-Digits/Vazirmatn-FD-font-face.css');

@font-face {
  font-family: 'IRENYekan';
  src: url('../fonts/IRENYekan.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; max-width: 100%; }
html, body { max-width: 100vw; overflow-x: hidden; }

.fas, .far, .fab, .fal, i[class*="fa-"] { line-height: 1; }

:root {
  
  --gold:          #1e5fa8;
  --gold-light:    #4a8fd1;
  --gold-dark:     #123a63;
  --gold-glow:     rgba(30, 95, 168, 0.28);
  --primary:       var(--gold);
  --primary-dark:  var(--gold-dark);
  --primary-glow:  var(--gold-glow);
  --accent:        #1f7a4d;
  --accent-dark:   #14562f;
  --accent-glow:   rgba(31, 122, 77, 0.22);
  --ink:           #0c1b2a;
  --ink2:          #12293d;
  --ink3:          #1a3a54;
  --navy:          var(--ink);
  --navy2:         var(--ink2);
  --navy3:         var(--ink3);
  --cream:         #f5f7f6;
  --cream2:        #e9eef0;
  --warm:          var(--cream);
  --warm2:         var(--cream2);
  --white:         #ffffff;
  --text:          #17222a;
  --muted:         #75838a;
  --border:        rgba(12,27,42,0.09);
  --border-dark:   rgba(255,255,255,0.10);
  --radius-sm:     4px;
  --radius:        16px;
  --radius-lg:     24px;
  --shadow-sm:     0 2px 10px rgba(12,27,42,0.06);
  --shadow:        0 10px 30px rgba(12,27,42,0.09);
  --shadow-lg:     0 24px 60px rgba(12,27,42,0.16);
  --shadow-gold:   0 14px 34px rgba(30,95,168,0.28);
  --transition:    0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --spring:        0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: 'IRENYekan', 'Vazirmatn FD', Tahoma, sans-serif;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(30,95,168,0.05) 0%, transparent 40%),
    radial-gradient(circle at 88% 92%, rgba(31,122,77,0.05) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h, 132px);
  margin: 0;
  line-height: 1.7;
}
body.admin-body { padding-top: 0; }

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }

img { display: block; max-width: 100%; }

::selection { background: var(--gold-light); color: var(--ink); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--cream2); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ═══════════════ هدر سایت (دو ردیفی) ═══════════════ */
:root { --promo-bar-h: 38px; --promo-h: calc(var(--promo-bar-h) * 2); --header-h: calc(132px + var(--promo-h)); --sh-navy: var(--ink); --sh-line: #dfe2e8; }
.site-header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1030;
  height: var(--header-h); background: #fff;
  border-bottom: 1px solid var(--sh-line);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(12,27,42,0.08); }
/* نوار تبلیغ ترب‌پی */
.sh-promo {
  height: var(--promo-bar-h); display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #9ef278; color: #0d3b0d; padding: 0 12px; overflow: hidden;
}
.sh-promo-text { font-size: 0.9rem; font-weight: 800; white-space: nowrap; }
.sh-promo-icon { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; }
.sh-promo-pay { height: 26px; width: auto; object-fit: contain; flex: 0 0 auto; }
.sh-promo-digipay { background: #dee1e6; color: #0d2a6e; }
.sh-promo-dp { height: 24px; width: auto; object-fit: contain; flex: 0 0 auto; }
@media (max-width: 575.98px) {
  .sh-promo { gap: 8px; padding: 0 8px; }
  .sh-promo-text { font-size: 0.74rem; }
  .sh-promo-icon { width: 22px; height: 22px; }
  .sh-promo-pay { height: 21px; }
  .sh-promo-dp { height: 19px; }
}

.sh-container { max-width: 1520px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ردیف اول */
.sh-top { height: 80px; }
.sh-top-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.sh-menu-btn { display: none; }
.sh-brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; text-decoration: none; }
.sh-brand img { height: 54px; width: 54px; border-radius: 50%; object-fit: cover; display: block; border: 1px solid var(--sh-line); background: #fff; }
.sh-brand-name { color: var(--sh-navy); font-size: 1.15rem; font-weight: 800; white-space: nowrap; line-height: 1.2; }

.header-search { position: relative; flex: 1 1 auto; max-width: 750px; margin: 0 auto; }
.sh-search-form {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 6px;
  background: #fff; border: 1px solid var(--sh-line); border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sh-search-form:focus-within { border-color: var(--sh-navy); box-shadow: 0 0 0 3px rgba(12,27,42,0.08); }
.sh-search-btn {
  flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--sh-navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; transition: transform 0.2s, background 0.2s;
}
.sh-search-btn:hover { background: var(--ink3); transform: scale(1.06); }
.sh-search-form input {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 0.92rem; font-weight: 500; color: var(--text); padding: 0 6px;
}
.sh-search-form input::placeholder { color: #222; opacity: 1; }
.sh-search-form input::-webkit-search-cancel-button { display: none; }
.header-search .live-search-results {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 1040;
  background: #fff; border: 1px solid var(--sh-line); border-radius: 16px;
  box-shadow: var(--shadow-lg); max-height: 70vh; overflow-y: auto;
}

.sh-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.sh-cart {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; color: var(--sh-navy); font-size: 1.45rem; text-decoration: none;
}
.sh-cart:hover { color: var(--ink3); }
.sh-cart .badge {
  position: absolute; top: -2px; left: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--sh-navy); color: #fff; font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.sh-divider { width: 1px; height: 34px; background: var(--sh-line); }
.sh-login-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  border: 1px solid #b9bec9; border-radius: 8px; background: #fff; color: var(--sh-navy);
  font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.sh-login-btn i { font-size: 1.35rem; line-height: 1; }
.sh-login-btn:hover { background: #f5f6f9; border-color: var(--sh-navy); color: var(--sh-navy); }
.sh-login-btn.dropdown-toggle::after, .sh-user .sh-login-btn::after { display: none; }

/* ردیف دوم: منو */
.sh-nav { height: 52px; }
.sh-nav .sh-container { height: 100%; }
.sh-menu { height: 100%; display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.sh-item { position: relative; height: 100%; display: flex; align-items: center; }
.sh-link {
  display: inline-flex; align-items: center; gap: 9px; color: #1c2230; text-decoration: none;
  font-size: 0.95rem; font-weight: 500; white-space: nowrap; transition: color 0.2s;
}
.sh-link i { font-size: 1.15rem; line-height: 1; color: #1c2230; width: 1.3em; text-align: center; }
.sh-item-strong .sh-link { font-weight: 800; }
.sh-link:hover, .sh-item.dropdown:hover > .sh-link { color: var(--gold); }
.sh-link:hover i, .sh-item.dropdown:hover > .sh-link i { color: var(--gold); }
.sh-link.dropdown-toggle::after { display: none; }

.sh-dropdown {
  background: #fff; border: 1px solid var(--sh-line); border-radius: 14px; padding: 8px; min-width: 200px;
  box-shadow: var(--shadow-lg); margin-top: 0 !important;
}
.sh-dropdown .dropdown-item {
  padding: 9px 14px; border-radius: 8px; font-size: 0.88rem; font-weight: 500; color: #1c2230;
}
.sh-dropdown .dropdown-item:hover { background: rgba(30,95,168,0.08); color: var(--gold-dark); }
.sh-dropdown .dropdown-divider { margin: 6px 0; border-top-color: var(--sh-line); }
@media (min-width: 992px) {
  .sh-item.dropdown > .dropdown-menu { display: block; opacity: 0; visibility: hidden; transform: translateY(6px);
    top: 100%; transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
  .sh-item.dropdown:hover > .dropdown-menu,
  .sh-item.dropdown:focus-within > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
}

/* تبلت و موبایل */
@media (max-width: 991.98px) {
  :root { --promo-bar-h: 34px; --header-h: calc(118px + var(--promo-h)); }
  .sh-nav { display: none; }
  .sh-top { height: auto; padding: 10px 0 0; }
  .sh-top-inner { flex-wrap: wrap; gap: 10px 12px; }
  .sh-menu-btn {
    display: flex; align-items: center; justify-content: center; order: 1;
    width: 42px; height: 42px; border: 1px solid var(--sh-line); border-radius: 10px; background: #fff;
    color: var(--sh-navy); font-size: 1.15rem;
  }
  .sh-brand { order: 2; margin-inline-end: auto; }
  .sh-brand { gap: 8px; }
  .sh-brand img { height: 42px; width: 42px; }
  .sh-brand-name { font-size: 0.98rem; }
  .sh-actions { order: 3; gap: 10px; }
  .sh-divider { display: none; }
  .header-search { order: 4; flex: 0 0 100%; max-width: none; }
  .sh-search-form { height: 46px; }
  .sh-login-text { display: none; }
  .sh-login-btn { width: 42px; padding: 0; justify-content: center; }
}


.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: 6px; }
.nav-link {
  position: relative;
  color: rgba(27,26,23,0.72) !important; font-weight: 600; font-size: 0.89rem;
  letter-spacing: 0.1px;
  padding: 10px 15px !important; border-radius: 9px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap; display: flex; align-items: center; gap: 5px;
}
.nav-link::before {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 6px; height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform 0.25s ease;
}
.nav-link:hover, .nav-link:focus, .nav-link.active { color: var(--ink) !important; background: rgba(30,95,168,0.1); }
.nav-link:hover::before, .nav-link.active::before { transform: scaleX(1); }
.dropdown-toggle::after {
  content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; border: none !important;
  font-size: 0.72rem; margin-inline-start: 3px; vertical-align: 0; transition: transform 0.25s ease;
  background: none !important;
}
.nav-item.dropdown:hover .dropdown-toggle::after,
.nav-item.dropdown:focus-within .dropdown-toggle::after { transform: rotate(180deg); }

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu.show {
  opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important;
}


.navbar-toggler {
  background: rgba(30,95,168,0.08); border: 1px solid rgba(30,95,168,0.25);
  border-radius: var(--radius-sm); padding: 8px 11px; color: var(--ink);
  transition: all var(--transition);
}
.navbar-toggler:hover { background: rgba(30,95,168,0.16); border-color: var(--gold); }
.navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(30,95,168,0.35); }
.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(30,95,168,1)' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.mobile-sidebar {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink2) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-inline-start: 1px solid rgba(30,95,168,0.2);
  box-shadow: var(--shadow-lg);
  width: 280px;
}
.mobile-sidebar .offcanvas-header { border-bottom: 1px solid rgba(30,95,168,0.15); padding: 16px 18px; }
.mobile-sidebar .offcanvas-body { padding: 12px; }
.mobile-sidebar .nav-link {
  color: rgba(255,255,255,0.82) !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(30,95,168,0.22);
}
.mobile-sidebar .dropdown-menu {
  position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important;
  background: rgba(255,255,255,0.05); 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.75); 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(30,95,168,0.22); }
.mobile-sidebar .dropdown-divider { border-top: 1px solid rgba(255,255,255,0.08); margin: 6px 0; }
.mobile-sidebar .offcanvas-title { font-weight: 700; }

.glass-modal {
  background: rgba(255, 253, 249, 0.97); backdrop-filter: blur(24px);
  border: 1px solid rgba(30,95,168,0.2); border-radius: var(--radius);
  color: var(--text); box-shadow: var(--shadow-lg);
}
.glass-modal .modal-header { border-bottom: 1px solid rgba(30,95,168,0.15); }
.glass-modal .modal-title { color: var(--ink) !important; font-weight: 800; }
.glass-modal .btn-close-white { filter: none; }
.glass-modal .modal-body { max-height: 60vh; overflow-y: auto; }

.glass-modal .text-white { color: var(--ink) !important; }
.glass-modal .text-white-50 { color: var(--muted) !important; }
.glass-modal .text-warning { color: var(--gold-dark) !important; }
.glass-modal .border-light,
.glass-modal .border-top { border-color: var(--border) !important; }
.glass-modal .btn-outline-light { background: transparent; border: 1.5px solid rgba(30,95,168,0.4); color: var(--ink); }
.glass-modal .btn-outline-light:hover { background: rgba(30,95,168,0.1); border-color: var(--gold); color: var(--ink); }

.btn {
  font-family: 'IRENYekan', 'Vazirmatn FD', Tahoma, sans-serif; font-weight: 600; font-size: 0.88rem;
  padding: 10px 22px; border-radius: 8px !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: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-danger { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 8px 22px 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: linear-gradient(135deg, #6b8f5a, #4d6b3f); color: #fff; }
.btn-success:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(77,107,63,0.3); }
.btn-warning { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--ink); }
.btn-warning:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-outline-dark { background: transparent; border: 1.5px solid var(--ink3); color: var(--ink3); }
.btn-outline-dark:hover { background: var(--ink3); color: #fff; transform: translateY(-1px); }
.btn-light { background: rgba(30,95,168,0.1); border: 1.5px solid rgba(30,95,168,0.3); color: var(--ink); }
.btn-light:hover { background: rgba(30,95,168,0.18); color: var(--ink); transform: translateY(-1px); }
.btn-sm { font-size: 0.78rem; padding: 7px 14px; }
.btn-lg { font-size: 0.98rem; padding: 14px 32px; }

/* ═══════════════ اسلایدر بنر (hero) ═══════════════ */
.hero-slider { position: relative; overflow: hidden; padding: 24px 0; background: #e9edf2; }
/* پس‌زمینهٔ محو‌شده از خود بنر؛ فضای خالی دو طرف کارت را پر می‌کند */
.hs-ambient { position: absolute; inset: 0; z-index: 0; }
.hs-amb {
  position: absolute; inset: -150px; max-width: none; background-size: cover; background-position: center;
  filter: blur(38px) saturate(1.3); opacity: 0; transition: opacity 0.7s ease;
}
.hs-amb.is-active { opacity: 1; }
.hs-ambient::after { content: ''; position: absolute; inset: 0; background: rgba(12,27,42,0.12); }

.hs-inner { position: relative; z-index: 1; max-width: 1104px; margin: 0 auto; padding: 0 20px; }   /* ۷۰٪ عرض قبلی (۳۰٪ کوچک‌تر) */
.hs-frame {
  position: relative; border-radius: 22px; overflow: hidden; background: #fff; width: 100%;
  aspect-ratio: var(--hs-ratio, 16 / 5);
  box-shadow: 0 14px 44px rgba(0,0,0,0.28);
}
.hs-track { display: grid; height: 100%; }
.hs-slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.hs-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hs-slide a, .hs-slide picture { display: block; height: 100%; }
.hs-slide img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }

.hs-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--sh-navy, var(--ink)); font-size: 1rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 16px rgba(12,27,42,0.18);
  opacity: 0; transition: opacity 0.25s, background 0.2s, transform 0.2s;
}
.hs-prev { right: 16px; }
.hs-next { left: 16px; }
.hs-frame:hover .hs-arrow, .hero-slider:focus-within .hs-arrow { opacity: 1; }
.hs-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }

.hs-dots {
  position: absolute; bottom: 14px; right: 0; left: 0; z-index: 3;
  display: flex; justify-content: center; gap: 8px;
}
.hs-dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.65); box-shadow: 0 1px 4px rgba(12,27,42,0.35);
  transition: width 0.3s, background 0.3s;
}
.hs-dot.is-active { width: 28px; background: #fff; }

/* موبایل: بنر تمام‌عرض و بلندتر (فقط گوشی). برای بزرگ‌تر/کوچک‌تر کردنش عدد --hs-ratio-m را عوض کنید:
   هرچه عدد دوم (ارتفاع) بزرگ‌تر باشد بنر بلندتر می‌شود. بدون نسخهٔ موبایل، عکس کمی از دو طرف برش می‌خورد. */
@media (max-width: 767.98px) {
  .hero-slider { padding: 8px 0; }
  .hs-inner { padding: 0; }
  .hs-frame { border-radius: 0; aspect-ratio: var(--hs-ratio-m, 16 / 9); box-shadow: none; }
  .hs-slide img { object-fit: cover; object-position: center; }
  .hs-arrow { display: none; }
  .hs-dots { bottom: 10px; gap: 6px; }
  .hs-dot { width: 7px; height: 7px; }
  .hs-dot.is-active { width: 20px; }
}
@media (prefers-reduced-motion: reduce) { .hs-slide, .hs-amb { transition: none; } }

.carousel-wrap { position: relative; }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x proximity; padding-bottom: 10px; margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { height: 6px; }
.carousel-track::-webkit-scrollbar-thumb { background: rgba(30,95,168,0.75); border-radius: 4px; }
.carousel-track > * { scroll-snap-align: start; flex: 0 0 auto; padding: 0 4px; }
.carousel-item-col { width: 212px; display: flex; flex-direction: column; }
.carousel-item-col .product-card { width: 100%; flex: 1 1 auto; }
.carousel-btn {
  position: absolute; top: 45%; transform: translateY(-50%); z-index: 6;
  width: 46px; height: 46px; border-radius: 50%; background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer; transition: all var(--transition); font-size: 1.1rem;
}
.carousel-btn.prev { right: 0; }
.carousel-btn.next { left: 0; }
.carousel-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.deals-section .carousel-btn { background: rgba(255,255,255,0.08); border-color: rgba(74,143,209,0.3); color: #fff; }
.deals-section .carousel-btn:hover { background: var(--gold); border-color: var(--gold); }

@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  
  .carousel-track { padding-inline: 54px; }
}
@media (max-width: 991.98px), (hover: none) {
  .carousel-btn { display: none !important; }
}

.deals-section { position: relative; }
.special-offer-ribbon {
  position: absolute; top: 50%; right: clamp(10px, 4vw, 40px); z-index: 5;
  transform: translateY(-50%);
  width: clamp(56px, 8vw, 108px); height: auto;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.4));
  pointer-events: none; user-select: none;
}
@media (max-width: 767.98px) {
  .special-offer-ribbon {
    top: 14px; right: auto; left: 14px; transform: none;
    width: 52px;
  }
}

.new-arrivals-section {
  position: relative;
  background-color: #0c0906;
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
  padding-top: 60px;
  padding-bottom: 60px;
  border-radius: 0;
  overflow: hidden;
}
.new-arrivals-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,8,6,0.75) 0%, rgba(10,8,6,0.55) 40%, rgba(10,8,6,0.85) 100%);
  border-radius: 0;
  z-index: 0;
}
.new-arrivals-section > .container { position: relative; z-index: 1; }
.new-arrivals-section .section-title { color: #fbf7ef; }
.new-arrivals-section .section-eyebrow { color: var(--gold-light); }

@media (max-width: 768px) {
  .new-arrivals-section {
    background-size: cover;
    background-position: center center;
  }
}

.category-products-wrapper {
  position: relative;
  background-color: #f4f4f4;
  background-image: url('../../uploads/category-products-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.category-products-section {
  position: relative;
  background: transparent;
  border-radius: 0;
}
.category-products-section .section-title,
.category-products-section .section-title span { color: var(--text); }

.section-header { margin-bottom: 40px; }
.section-eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--gold-dark); 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(--gold-dark); }
.section-line { width: 48px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; margin-top: 14px; }

.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--spring), box-shadow var(--spring), border-color var(--transition);
  cursor: pointer; position: relative;
  transform-style: preserve-3d; perspective: 1000px; will-change: transform;
}
.product-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(30,95,168,0.35); transform: translateY(-6px); }
.product-card::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
  transform: scaleX(0); transform-origin: right; transition: transform var(--transition);
}
.product-card:hover::before { transform: scaleX(1); }
.product-card::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(circle 220px at var(--mx,50%) var(--my,50%), rgba(74,143,209,0.20), transparent 70%);
  transition: opacity 0.3s;
}
.product-card:hover::after { opacity: 1; }
.product-card .img-wrap { position: relative; overflow: hidden; background: var(--cream2); height: 175px; }
.product-card .img-wrap::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(27,26,23,0.10) 100%);
}
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1); }
.product-card:hover img { transform: scale(1.08); }

.product-badge { position: absolute; top: 12px; right: 12px; font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; line-height: 1; z-index: 2; }
.badge-discount { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.badge-new { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #ffffff; }
.badge-out-of-stock { background: rgba(32,30,26,0.82); color: #fff; }

.product-card.is-out-of-stock .img-wrap img { filter: grayscale(0.6); opacity: 0.6; }
.product-card.is-out-of-stock .card-title { color: var(--muted); }
.btn-add-cart.btn-out-of-stock {
  background: var(--cream2); color: var(--muted); border: 1px solid var(--border);
  cursor: not-allowed;
}
.btn-add-cart.btn-out-of-stock:hover { box-shadow: none; transform: none; }

.product-card .wishlist-btn {
  position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%; z-index: 2;
  background: rgba(255,255,255,0.94); border: none; color: #9fb0bb;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
  cursor: pointer; transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(12,27,42,0.12);
}
.product-card .wishlist-btn:hover { color: var(--accent); transform: scale(1.12); }
.product-card .wishlist-btn.active,
.product-card .wishlist-btn.active i { color: #e0533d; }
.product-card .wishlist-btn.active i { font-weight: 900; }

.wishlist-btn-inline {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--ink2, #2c2822), var(--ink, #201e1a));
  color: rgba(255,255,255,0.75); border: none; border-radius: 10px;
  font-size: 0.95rem; cursor: pointer; transition: all var(--transition);
}
.wishlist-btn-inline:hover { box-shadow: 0 5px 16px rgba(20,18,15,0.28); transform: translateY(-1px); color: #fff; }
.wishlist-btn-inline.active { color: #e0533d; }
.wishlist-btn-inline.active i { font-weight: 900; }
.qty-stepper { flex: 1 1 auto; }

.category-label { font-size: 0.74rem; color: var(--gold); font-weight: 700; margin-bottom: 4px; letter-spacing: 0.2px; }

.product-card .card-body { padding: 18px 18px 20px; position: relative; z-index: 2; background: var(--white); display: flex; flex-direction: column; flex: 1 1 auto; }
.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;
  min-height: calc(1.4em * 2);
}
.product-card:hover .card-title { color: var(--gold-dark); }
.product-card .brand-name { font-size: 0.75rem; color: var(--muted); font-weight: 500; margin-bottom: 12px; letter-spacing: 0.3px; min-height: 1.1em; }

.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-height: 26px; }
.price-now { font-size: 1.15rem; font-weight: 900; color: var(--text); }
.price-old { font-size: 0.82rem; color: #9fb0bb; 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: auto; padding-top: 14px; border-top: 1px solid var(--border); gap: 8px; }

.btn-add-cart {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--ink2, #2c2822), var(--ink, #201e1a));
  color: #fff; border: none; border-radius: 10px; padding: 10px 14px;
  font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all var(--transition);
}
.btn-add-cart:hover { box-shadow: 0 5px 16px rgba(20,18,15,0.28); transform: translateY(-1px); }

.qty-stepper {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between;
  background: var(--cream2); border: 1px solid var(--border); border-radius: 10px; padding: 4px;
}
.qty-stepper .qty-btn {
  width: 30px; height: 30px; border-radius: 8px; border: none; background: var(--white);
  color: var(--text); font-size: 1rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
  box-shadow: 0 1px 4px rgba(12,27,42,0.08);
}
.qty-stepper .qty-btn:hover { background: var(--gold); color: #fff; }
.qty-stepper .qty-value { font-weight: 800; font-size: 0.92rem; min-width: 20px; text-align: center; }

.row > div:has(> .product-card),
.row > div:has(> a > .product-card) {
  display: flex;
}
.row > div:has(> .product-card) > .product-card,
.row > div:has(> a > .product-card) > a {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.row > div:has(> a > .product-card) > a > .product-card {
  width: 100%;
}
.product-card {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.product-card .img-wrap { flex: 0 0 auto; }

.stars { display: flex; gap: 2px; align-items: center; }
.stars i { font-size: 0.75rem; color: var(--gold); }
.stars .count { font-size: 0.72rem; color: var(--muted); margin-right: 4px; }

.deals-section {
  background: linear-gradient(160deg, rgba(10,8,6,0.82) 0%, rgba(10,8,6,0.88) 100%),
              url('../../uploads/deals-bg.jpg') center center / cover no-repeat;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.deals-section::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(30,95,168,0.02) 0, rgba(30,95,168,0.02) 1px, transparent 1px, transparent 20px);
  pointer-events: none;
}
.deals-section .section-title { color: #fbf7ef; }
.deals-section .section-eyebrow { color: var(--gold-light); }
.discount-slider-container { overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--gold) rgba(255,255,255,0.06); }
.discount-slider-container::-webkit-scrollbar { height: 4px; }
.discount-slider-container::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 2px; }
.discount-slider-container::-webkit-scrollbar-thumb { background: var(--gold); 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.045);
  border: 1px solid rgba(74,143,209,0.16); border-radius: var(--radius);
  overflow: hidden; transition: all var(--transition); cursor: pointer; color: #fff;
  transform-style: preserve-3d; perspective: 800px; will-change: transform;
}
.discount-card:hover { background: rgba(255,255,255,0.075); border-color: rgba(74,143,209,0.4); box-shadow: var(--shadow-gold); }
.discount-card img { height: 150px; width: 100%; object-fit: cover; }
.discount-card .card-body { padding: 14px; }
.discount-badge {
  width: 44px; height: 44px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); 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);
}
.discount-card .text-warning { color: var(--gold-light) !important; }

.breadcrumb { background: transparent; padding: 0; margin-bottom: 8px; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }
.breadcrumb-item a { color: var(--gold-dark); font-size: 0.85rem; }
.breadcrumb-item.active { color: var(--muted); font-size: 0.85rem; }

.product-gallery .main-img {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--cream2); 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(--cream2);
}
.product-gallery .thumb.active, .product-gallery .thumb:hover { border-color: var(--gold); }
.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(--cream2); border-radius: var(--radius); padding: 20px 24px; margin: 22px 0;
  border-right: 3px solid var(--gold);
}
.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: var(--gold); }
.favorite-toggle {
  background: none; border: 1.5px solid var(--border); 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(31,122,77,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(107,143,90,0.12); color: #4d6b3f; border: 1px solid rgba(107,143,90,0.25); }
.stock-badge.in-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4d6b3f; }
.stock-badge.out-of-stock { background: rgba(31,122,77,0.08); color: var(--accent); border: 1px solid rgba(31,122,77,0.2); }

.form-control, .form-select {
  font-family: 'IRENYekan', 'Vazirmatn FD', Tahoma, sans-serif; border: 1.5px solid var(--border);
  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(--gold); box-shadow: 0 0 0 3px rgba(30,95,168,0.14); 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 var(--border);
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
}
.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: var(--border); }
.auth-divider span { position: relative; background: var(--white); padding: 0 12px; font-size: 0.8rem; color: var(--muted); }

.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 var(--border);
  background: var(--white); color: var(--text); font-size: 0.9rem; font-weight: 600;
  font-family: 'IRENYekan', 'Vazirmatn FD', Tahoma, sans-serif; transition: all var(--transition); text-decoration: none;
}
.page-item .page-link:hover { border-color: var(--gold); color: var(--gold-dark); background: rgba(30,95,168,0.06); }
.page-item.active .page-link { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); border-color: var(--gold); color: #fff; box-shadow: var(--shadow-gold); }
.page-item.disabled .page-link { opacity: 0.4; pointer-events: none; }

.footer {
  background: linear-gradient(180deg, var(--ink) 0%, #14130f 100%); 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(--gold), transparent);
}
.footer h5 { color: #fbf7ef; font-weight: 800; font-size: 1rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.footer h5 i { color: var(--gold-light); }
.footer p { font-size: 0.88rem; line-height: 1.8; color: rgba(255,255,255,0.5); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a {
  color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: color 0.2s, padding-right 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-links a::before { content: '\f104'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.7rem; color: var(--gold-light); }
.footer-links a:hover { color: var(--gold-light); }
.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(74,143,209,0.18);
  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(--gold); color: var(--gold-light); background: rgba(30,95,168,0.12); 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(20%) brightness(1); 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.08); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.32); margin: 0; }

.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: linear-gradient(180deg, var(--ink) 0%, var(--ink2) 100%); flex-shrink: 0; padding: 24px 0;
  border-left: 1px solid rgba(74,143,209,0.12); display: flex; flex-direction: column;
}
.admin-sidebar .brand-block { padding: 0 20px 24px; border-bottom: 1px solid rgba(74,143,209,0.15); margin-bottom: 16px; }
.admin-sidebar h4 { color: #fbf7ef; font-weight: 800; margin-bottom: 4px; }
.admin-sidebar .text-white-50 { font-size: 0.8rem; }
.admin-sidebar nav { flex: 1; padding: 0 12px; overflow-y: auto; }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.62); 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(74,143,209,0.1); }
.admin-sidebar nav a.active { color: #ffffff; background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: var(--shadow-gold); font-weight: 700; }
.admin-content { flex: 1; padding: 32px; background: var(--cream); min-width: 0; }

.admin-mobile-topbar {
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; top: 0; z-index: 1030; background: var(--ink); color: #fff;
  padding: 12px 16px; box-shadow: 0 2px 10px rgba(12,27,42,0.25);
}
.admin-menu-toggle {
  background: rgba(255,255,255,0.1); border: none; color: #fff; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0;
}
.admin-mobile-title { font-size: 0.92rem; font-weight: 700; display: flex; align-items: center; gap: 8px; flex: 1; }
.admin-mobile-logout { color: #e88; font-size: 1.1rem; flex-shrink: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }

.admin-sidebar-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(12,27,42,0.55); z-index: 1040;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
}
.admin-sidebar-backdrop.open { opacity: 1; visibility: visible; }

@media (max-width: 991.98px) {
  .admin-mobile-topbar { display: flex; }
  .admin-sidebar-backdrop { display: block; }

  .admin-wrapper { flex-direction: column; }

  
  .admin-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0; width: 82vw; max-width: 300px; z-index: 1050;
    transform: translateX(100%); transition: transform var(--spring, 0.35s ease); overflow-y: auto;
    padding-top: 16px;
  }
  .admin-sidebar.open { transform: translateX(0); }

  .admin-content { padding: 18px 14px 40px; }
}

@media (max-width: 575.98px) {
  .admin-content { padding: 14px 10px 36px; }
  .stat-card { padding: 16px 16px; gap: 12px; }
  .stat-card .icon-box { width: 42px; height: 42px; font-size: 1.15rem; }
  .stat-card .info .num { font-size: 1.35rem; }
}

.admin-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table table { min-width: 640px; }
@media (max-width: 575.98px) {
  .admin-table thead th, .admin-table tbody td { padding: 10px 12px; font-size: 0.82rem; }
  .admin-table .btn, .admin-table button { padding: 7px 12px; font-size: 0.78rem; }
  .admin-table form.d-flex { flex-wrap: wrap; }
}

.stat-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 20px 24px; display: flex; align-items: center; gap: 18px; transition: box-shadow var(--transition), transform var(--transition); box-shadow: var(--shadow-sm);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.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(31,122,77,0.1); color: var(--accent); }
.stat-card .icon-box.blue  { background: rgba(30,95,168,0.12); color: var(--gold-dark); }
.stat-card .icon-box.green { background: rgba(107,143,90,0.12); color: #4d6b3f; }
.stat-card .icon-box.amber { background: rgba(30,95,168,0.12); color: var(--gold-dark); }
.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-table { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.admin-table table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table thead th {
  background: var(--cream2); 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 var(--border);
}
.admin-table tbody td { padding: 14px 18px; border-bottom: 1px solid rgba(27,26,23,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(30,95,168,0.035); }

.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(77,107,63,0.1); color: #4d6b3f; }
.status-badge.pending  { background: rgba(30,95,168,0.12); color: var(--gold-dark); }
.status-badge.danger   { background: rgba(31,122,77,0.1); color: var(--accent); }
.status-badge.info     { background: rgba(30,95,168,0.1); color: var(--gold-dark); }

.panel-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; margin-bottom: 24px; }
.panel-card h5 { font-weight: 800; font-size: 1rem; margin-bottom: 18px; color: var(--text); }

@media (max-width: 576px) {
  .discount-card { width: 185px; }
  .product-card .img-wrap { height: 185px; }
  .auth-card { padding: 28px 20px; }
}

.glass-cart-item {
    background: rgba(30,95,168,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}
.glass-cart-item:hover {
    background: rgba(30,95,168,0.09);
    border-color: rgba(30,95,168,0.3);
}
.mini-cart-remove-btn {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 9px;
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--transition);
}
.mini-cart-remove-btn:hover {
    background: linear-gradient(135deg, #b8202f, #8a1622);
    border-color: #b8202f;
    color: #fff;
    box-shadow: 0 5px 14px rgba(184,32,47,0.35);
    transform: translateY(-1px);
}
.mini-cart-remove-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.mini-cart-btn-secondary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: rgba(30,95,168,0.06);
    border: 1.5px solid rgba(30,95,168,0.3);
    color: var(--ink3, #1a3a54); font-weight: 700; font-size: 0.9rem;
    padding: 12px; border-radius: 10px;
    transition: all var(--transition);
}
.mini-cart-btn-secondary:hover {
    background: rgba(30,95,168,0.12);
    border-color: var(--gold);
    color: var(--gold-dark);
    transform: translateY(-1px);
}
.mini-cart-btn-primary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    color: #fff; font-weight: 700; font-size: 0.9rem;
    padding: 12px; border-radius: 10px;
    box-shadow: 0 6px 18px var(--accent-glow);
    transition: all var(--transition);
}
.mini-cart-btn-primary i { transition: transform 0.25s ease; }
.mini-cart-btn-primary:hover {
    filter: brightness(1.08);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 9px 22px var(--accent-glow);
}
.mini-cart-btn-primary:hover i { transform: translateX(-3px); }
.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-accent:hover {
    filter: brightness(1.08);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .product-card, .discount-card, .logo-circle { animation: none !important; transition: none !important; }
}

.buy-box-sticky-wrap {
  position: sticky; top: calc(88px + var(--promo-h));
}
.buy-box {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink2) 100%);
  border-radius: var(--radius-lg); padding: 24px; color: #fff;
  box-shadow: var(--shadow-lg);
}
.buy-box-meta { list-style: none; padding: 0; margin: 0 0 18px; }
.buy-box-meta li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.86rem;
  color: rgba(255,255,255,0.85);
}
.buy-box-meta li:first-child { padding-top: 0; }
.buy-box-meta li:last-child { border-bottom: none; padding-bottom: 0; }
.buy-box-meta li > span {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  min-width: 0;
}
.buy-box-meta li > strong {
  font-weight: 700; color: #fff; text-align: left; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.buy-box-meta .meta-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(74,143,209,0.16); color: var(--gold-light); font-size: 0.9rem;
}
.buy-box-price { padding: 2px 0 16px; }
.buy-box-price .discount-pill {
  display: inline-flex; align-items: center; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 0.85rem; padding: 4px 10px; border-radius: 8px; margin-left: 8px;
}
.buy-box-price .old-price { color: rgba(255,255,255,0.4); text-decoration: line-through; font-size: 0.85rem; }
.buy-box-price .final-price { display: block; font-size: 1.6rem; font-weight: 900; color: #fff; margin-top: 8px; letter-spacing: -0.3px; }
.buy-box-price .final-price small { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.6); }
.price-update-bar {
  display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 10px 12px;
  font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-bottom: 18px;
}
.price-update-bar .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #3fb872; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(63,184,114,0.5); animation: dotPulse 2s infinite;
}
@keyframes dotPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(63,184,114,0.5); } 70% { box-shadow: 0 0 0 6px rgba(63,184,114,0); } }
.buy-box-purchase-row { display: flex; align-items: stretch; gap: 8px; }
.buy-box-qty {
  display: inline-flex; align-items: center; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; overflow: hidden; background: rgba(255,255,255,0.05);
}
.buy-box-qty button {
  width: 36px; height: 46px; background: transparent; border: none; color: #fff;
  font-size: 1.1rem; cursor: pointer; transition: background 0.2s; flex-shrink: 0;
}
.buy-box-qty button:hover { background: rgba(255,255,255,0.1); }
.buy-box-qty input {
  width: 40px; height: 46px; background: transparent; border: none; color: #fff;
  text-align: center; font-weight: 700; font-size: 0.95rem;
}
.buy-box-qty input::-webkit-outer-spin-button, .buy-box-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-box-actions { display: flex; gap: 10px; margin-top: 16px; }
.btn-buy-main {
  flex: 1 1 auto; min-width: 0; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
  border: none; border-radius: 10px; padding: 13px 10px; font-weight: 700; font-size: 0.9rem;
  white-space: nowrap; transition: all var(--transition); display: flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-buy-main:hover { filter: brightness(1.08); color: #fff; }
.btn-buy-main:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-whatsapp-contact {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: linear-gradient(135deg, #25d366, #1aa851); color: #fff; border: none;
  border-radius: 10px; padding: 13px; font-weight: 700; font-size: 0.9rem; margin-top: 12px;
  transition: all var(--transition); text-decoration: none;
}
.btn-whatsapp-contact:hover { filter: brightness(1.06); color: #fff; transform: translateY(-1px); }
.btn-whatsapp-contact small { display: block; font-weight: 400; font-size: 0.72rem; opacity: 0.85; }

@media (max-width: 380px) {
  .btn-buy-main { font-size: 0.82rem; padding: 12px 6px; }
  .buy-box-qty button { width: 32px; }
  .buy-box-qty input { width: 34px; }
}

.trust-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.trust-mini-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 8px; text-align: center; font-size: 0.72rem; color: var(--muted); font-weight: 600;
}
.trust-mini-item i { display: block; font-size: 1.35rem; color: var(--gold-dark); margin-bottom: 8px; }

.feature-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.feature-mini-item {
  background: var(--cream2); border-radius: var(--radius-sm); padding: 12px 14px;
}
.feature-mini-item .f-label { font-size: 0.74rem; color: var(--muted); margin-bottom: 4px; }
.feature-mini-item .f-value { font-size: 0.87rem; font-weight: 700; color: var(--text); }

.product-meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.85rem; color: var(--muted); margin: 10px 0 4px; }
.product-meta-row strong { color: var(--text); font-weight: 700; }

.product-tabs { margin-top: 56px; }
.product-tabs-nav {
  display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 28px;
}
.product-tabs-nav button {
  background: none; border: none; padding: 14px 18px; font-family: 'IRENYekan', 'Vazirmatn FD', Tahoma, sans-serif;
  font-size: 0.9rem; font-weight: 700; color: var(--muted); cursor: pointer; position: relative;
  display: flex; align-items: center; gap: 7px; transition: color 0.2s;
}
.product-tabs-nav button .tab-badge {
  background: var(--cream2); color: var(--muted); font-size: 0.68rem; font-weight: 700;
  padding: 1px 7px; border-radius: 50px;
}
.product-tabs-nav button.active { color: var(--gold-dark); }
.product-tabs-nav button.active .tab-badge { background: var(--gold); color: #fff; }
.product-tabs-nav button::after {
  content: ''; position: absolute; bottom: -1px; left: 18px; right: 18px; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform 0.25s;
}
.product-tabs-nav button.active::after { transform: scaleX(1); }
.product-tabs-panel { display: none; animation: fadeInTab 0.3s ease; }
.product-tabs-panel.active { display: block; }
@keyframes fadeInTab { from { opacity: 0; } to { opacity: 1; } }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 14px 12px; font-size: 0.87rem; }
.spec-table td:first-child { color: var(--muted); width: 45%; }
.spec-table td:last-child { color: var(--text); font-weight: 700; }
.spec-table tr:nth-child(odd) { background: var(--cream2); }

@media (max-width: 991.98px) {
  .buy-box-sticky-wrap { position: static; margin-top: 24px; }
}

.products-page-header {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink2) 60%, var(--ink3) 100%);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.products-page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(74,143,209,0.05) 0, rgba(74,143,209,0.05) 1px, transparent 1px, transparent 20px);
  pointer-events: none;
}
.products-page-header .section-eyebrow { color: var(--gold-light); }
.products-page-header .section-title { color: #fbf7ef; }
.products-page-header .section-title span { color: var(--gold-light); }
.products-page-header .section-line { margin-top: 12px; }
.products-page-header .products-count-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  background: rgba(255,255,255,0.08); color: #dce7ef; border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 600;
}

.filter-form-title {
  display: flex; align-items: center; gap: 9px; font-size: 0.95rem; font-weight: 800;
  color: var(--text); margin-bottom: 16px;
}
.filter-form-title i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #fff; font-size: 0.85rem;
}
.filter-group { display: flex; flex-direction: column; gap: 7px; flex: 1 1 170px; min-width: 150px; }
.filter-group label {
  font-size: 0.78rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px;
}
.filter-group label i { color: var(--gold-light); font-size: 0.78rem; }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 34px; }
.filter-group select, .filter-group input[type="number"], .sidebar-price-inputs input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 14px; font-size: 0.86rem;
  background: var(--white); color: var(--text); font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
}
.filter-group select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='none' stroke='%234a8fd1' stroke-width='2.4'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: left 12px center;
}
.filter-group select:focus, .filter-group input[type="number"]:focus {
  outline: none; border-color: var(--gold-light); box-shadow: 0 0 0 3px var(--gold-glow);
}
.filter-price-group { display: flex; gap: 10px; flex: 1 1 240px; }
.filter-price-group .filter-group { flex: 1 1 auto; }
.filter-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.btn-filter-apply {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #fff; border: none;
  padding: 11px 26px; border-radius: 12px; font-weight: 700; font-size: 0.86rem; cursor: pointer;
  transition: transform var(--spring), box-shadow var(--spring); box-shadow: 0 4px 14px var(--gold-glow);
}
.btn-filter-apply:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 6px 18px var(--gold-glow); }
.btn-filter-reset {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--white); color: var(--muted); border: 1.5px solid var(--border);
  padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: 0.86rem; cursor: pointer; text-decoration: none;
  transition: all var(--spring);
}
.btn-filter-reset:hover { background: var(--cream2); color: var(--accent-dark); border-color: var(--accent); }

.mobile-filter-trigger {
  display: none; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: var(--white); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 12px 16px; margin-bottom: 18px; font-size: 0.88rem; font-weight: 700; color: var(--text);
  box-shadow: var(--shadow-sm); cursor: pointer; transition: all var(--spring);
}
.mobile-filter-trigger i.fa-sliders-h { color: var(--gold-dark); }
.mobile-filter-trigger:active { transform: scale(0.97); }
.mobile-filter-trigger .active-filter-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: none;
}
.mobile-filter-trigger.has-filters .active-filter-dot { display: inline-block; }

.filter-sheet-backdrop {
  position: fixed; inset: 0; background: rgba(20,25,30,0.55); z-index: 1050;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
}
.filter-sheet-backdrop.open { opacity: 1; visibility: visible; }
.filter-sheet {
  position: fixed; right: 0; left: 0; bottom: 0; z-index: 1051;
  background: var(--white); border-radius: 20px 20px 0 0;
  max-height: 82vh; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform var(--spring);
  box-shadow: 0 -10px 40px rgba(12,27,42,0.25);
}
.filter-sheet.open { transform: translateY(0); }
.filter-sheet-handle { width: 42px; height: 4px; border-radius: 3px; background: var(--border); margin: 10px auto 0; }
.filter-sheet-header {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.filter-sheet-header .filter-form-title { margin-bottom: 0; }
.filter-sheet-close {
  width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--cream2);
  color: var(--muted); font-size: 0.95rem; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.filter-sheet-body { padding: 18px; overflow-y: auto; flex: 1 1 auto; }
.filter-sheet-body form { display: flex; flex-direction: column; gap: 16px; }
.filter-sheet-body .filter-price-group { flex-direction: row; }
.filter-sheet-body .filter-actions { flex-direction: column; gap: 10px; padding-top: 4px; }

@media (max-width: 991.98px) {
  .mobile-filter-trigger { display: flex; }
}

.products-grid-empty {
  text-align: center; padding: 60px 20px; color: var(--muted);
  background: var(--cream); border-radius: var(--radius);
}
.products-grid-empty i { font-size: 2.2rem; color: var(--gold-light); margin-bottom: 14px; display: block; }

.products-grid .product-card .img-wrap { height: auto; aspect-ratio: 4 / 3; }

@media (max-width: 767.98px) {
  .products-page-header { padding: 24px 18px; }
  .products-grid .product-card .img-wrap { aspect-ratio: 1 / 1; }
}

.products-layout { display: flex; align-items: flex-start; gap: 22px; }
.products-main { flex: 1 1 auto; min-width: 0; }

.products-sidebar {
  width: 272px; flex: 0 0 272px;
  position: sticky; top: calc(90px + var(--promo-h));
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.products-sidebar-header {
  display: flex; align-items: center; gap: 8px; padding: 16px 18px;
  border-bottom: 1px solid var(--border); font-weight: 800; font-size: 0.92rem; color: var(--text);
}
.products-sidebar-header i { color: var(--gold-light); }
.sidebar-filter-section { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.sidebar-filter-section:last-of-type { border-bottom: none; }
.sidebar-filter-title { font-size: 0.82rem; font-weight: 800; color: var(--muted); margin-bottom: 12px; }

.sidebar-cat-list { display: flex; flex-direction: column; gap: 2px; }
.sidebar-cat-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  font-size: 0.87rem; color: var(--text); cursor: pointer; text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.sidebar-cat-item:hover { background: var(--cream); color: var(--accent-dark); }
.sidebar-cat-item.active { background: linear-gradient(135deg, rgba(74,143,209,0.12), rgba(184,32,47,0.06)); color: var(--accent-dark); font-weight: 700; }
.sidebar-cat-item .radio-dot {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; transition: border-color var(--transition);
}
.sidebar-cat-item.active .radio-dot { border-color: var(--accent); }
.sidebar-cat-item.active .radio-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.sidebar-price-inputs { display: flex; align-items: center; gap: 8px; }
.sidebar-price-inputs input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 10px; font-size: 0.83rem;
  background: var(--cream); color: var(--text); font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.sidebar-price-inputs input:focus { outline: none; border-color: var(--gold-light); box-shadow: 0 0 0 3px var(--gold-glow); }
.sidebar-price-inputs span { color: var(--muted); font-size: 0.78rem; }

.sidebar-filter-actions { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.sidebar-filter-actions .btn-filter-apply { width: 100%; justify-content: center; }
.sidebar-filter-actions .btn-filter-reset { width: 100%; justify-content: center; }

.products-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 18px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.products-toolbar .toolbar-count { font-size: 0.86rem; color: var(--muted); font-weight: 600; }
.products-toolbar .toolbar-count strong { color: var(--text); font-weight: 800; }
.products-toolbar .toolbar-sort { display: flex; align-items: center; gap: 8px; }
.products-toolbar .toolbar-sort label { font-size: 0.82rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.products-toolbar select {
  border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 30px 8px 12px; font-size: 0.84rem;
  background: var(--cream); color: var(--text); font-family: inherit; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='none' stroke='%234a8fd1' stroke-width='2.4'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: left 10px center; cursor: pointer; transition: border-color 0.2s;
}
.products-toolbar select:focus { outline: none; border-color: var(--gold-light); }

.products-sidebar { display: none; }
.products-toolbar { display: none; }
@media (min-width: 992px) {
  .products-sidebar { display: block; }
  .products-toolbar { display: flex; }
  .mobile-filter-trigger { display: none !important; }
}

.btn-otp-send {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin: 4px auto 0; min-width: 230px;
  background: linear-gradient(135deg, #e14b5a, #b8202f);
  color: #fff; border: none; border-radius: 50px;
  padding: 13px 34px; font-size: 0.95rem; font-weight: 700;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 6px 18px rgba(184,32,47,0.30);
  transition: transform var(--spring), box-shadow var(--spring), opacity 0.18s ease;
}
.btn-otp-send i { font-size: 0.9rem; transition: transform 0.25s ease; }
.btn-otp-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(184,32,47,0.38);
}
.btn-otp-send:hover i { transform: translateX(-3px); }
.btn-otp-send:active { transform: translateY(0); }
.btn-otp-send:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

@media (max-width: 480px) {
  .btn-otp-send { width: 100%; min-width: 0; }
}

.card-footer-row { gap: 8px; flex-wrap: wrap; }
.card-footer-row .add-to-cart { flex: 1 1 auto; }

@media (max-width: 767.98px) {
  .admin-table.cards-on-mobile table { min-width: 0; border: none; }
  .admin-table.cards-on-mobile thead { display: none; }
  .admin-table.cards-on-mobile tbody, .admin-table.cards-on-mobile tr { display: block; width: 100%; }
  .admin-table.cards-on-mobile tbody { padding: 12px; display: block; }
  .admin-table.cards-on-mobile tr {
    background: var(--white); border: 1px solid var(--border); border-radius: 12px;
    margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm);
  }
  .admin-table.cards-on-mobile tr:last-child { margin-bottom: 0; }
  .admin-table.cards-on-mobile td {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 11px 14px; border-bottom: 1px solid rgba(27,26,23,0.06); text-align: left; width: auto;
  }
  .admin-table.cards-on-mobile td:last-child { border-bottom: none; }
  .admin-table.cards-on-mobile td::before {
    content: attr(data-label); font-weight: 700; color: var(--muted); font-size: 0.76rem; flex-shrink: 0;
  }
  .admin-table.cards-on-mobile td.img-cell {
    justify-content: center; padding: 0; border-bottom: none;
  }
  .admin-table.cards-on-mobile td.img-cell img {
    width: 100% !important; height: 200px !important; max-width: 100% !important;
    border-radius: 12px 12px 0 0 !important; object-fit: cover;
  }
  .admin-table.cards-on-mobile td.img-cell::before { display: none; }
  .admin-table.cards-on-mobile td.actions-cell { flex-direction: column; align-items: stretch; gap: 8px; }
  .admin-table.cards-on-mobile td.actions-cell::before { margin-bottom: 2px; }
  .admin-table.cards-on-mobile td.actions-cell .btn { width: 100%; text-align: center; }
  .admin-table.cards-on-mobile td.actions-cell form { width: 100%; }
  .admin-table.cards-on-mobile td.actions-cell form:not(.d-flex) { display: block; }
  .admin-table.cards-on-mobile td.actions-cell form.d-flex .btn { width: auto; flex-shrink: 0; }
}

.dashboard-section-title {
  font-size: 0.8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 12px; margin-top: 4px;
}
.dashboard-alerts { display: flex; flex-direction: column; gap: 10px; }
.dashboard-alert {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px;
  text-decoration: none; font-size: 0.87rem; font-weight: 700; transition: transform var(--spring, 0.2s);
  border: 1px solid transparent;
}
.dashboard-alert:hover { transform: translateY(-2px); }
.dashboard-alert i:first-child { font-size: 1.1rem; flex-shrink: 0; }
.dashboard-alert span { flex: 1; }
.dashboard-alert i:last-child { font-size: 0.78rem; opacity: 0.6; flex-shrink: 0; }
.dashboard-alert.danger { background: rgba(184,32,47,0.07); color: #8a1622; border-color: rgba(184,32,47,0.18); }
.dashboard-alert.amber { background: rgba(240,173,78,0.12); color: #8a5a10; border-color: rgba(240,173,78,0.3); }

.custom-select { position: relative; width: 100%; max-width: 100%; }
.custom-select-trigger {
  width: 100%; max-width: 100%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 14px; font-size: 0.92rem; color: var(--text); cursor: pointer;
  text-align: right;
}
.custom-select-trigger:hover { border-color: var(--gold-light); }
.custom-select-trigger i { font-size: 0.78rem; color: var(--muted); transition: transform 0.2s ease; flex-shrink: 0; }
.custom-select.open .custom-select-trigger i { transform: rotate(180deg); }
.custom-select-options {
  display: none; position: absolute; top: calc(100% + 4px); right: 0; left: 0;
  width: 100%; max-width: 100%; box-sizing: border-box;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(12,27,42,0.14); list-style: none; margin: 0; padding: 6px;
  max-height: 280px; overflow-y: auto; z-index: 50;
}
.custom-select.open .custom-select-options { display: block; }
.custom-select-options li {
  padding: 9px 12px; border-radius: 6px; font-size: 0.88rem; color: var(--text);
  cursor: pointer; white-space: normal; word-break: break-word;
}
.custom-select-options li:hover { background: rgba(30,95,168,0.08); }
.custom-select-options li.active { background: var(--gold); color: #fff; font-weight: 700; }

.actions-cell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.actions-cell form { display: contents; }
.btn-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border: none; border-radius: 8px; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: all 0.2s ease; white-space: nowrap;
}
.btn-action i { font-size: 0.78rem; }
.btn-action-edit {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff !important; box-shadow: 0 3px 10px rgba(30,95,168,0.25);
}
.btn-action-edit:hover { box-shadow: 0 5px 16px rgba(30,95,168,0.38); transform: translateY(-1px); color: #fff !important; }
.btn-action-delete {
  background: rgba(184,32,47,0.08); color: #b8202f !important; border: 1px solid rgba(184,32,47,0.25);
}
.btn-action-delete:hover {
  background: linear-gradient(135deg, #b8202f, #8a1622); color: #fff !important;
  box-shadow: 0 5px 16px rgba(184,32,47,0.3); transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  .admin-table.cards-on-mobile td.actions-cell { flex-direction: column; align-items: stretch; gap: 8px; }
  .admin-table.cards-on-mobile td.actions-cell .btn-action { width: 100%; }
  .admin-table.cards-on-mobile td.actions-cell form { width: 100%; display: block; }
}

/* ══════════════════════════════════════════════════════════════
   کارت محصول — طرح جدید (pc2)
   قاب تصویر گرد + بج تخفیف | عنوان | قیمت (چپ) + دکمه‌ی سبد (راست)
   ══════════════════════════════════════════════════════════════ */
.product-card.pc2 {
  background: #fff; border: 1px solid rgba(12,27,42,0.07); border-radius: 20px;
  padding: 12px 12px 14px; overflow: hidden;
  box-shadow: 0 2px 14px rgba(12,27,42,0.06);
  display: flex; flex-direction: column;
}
.product-card.pc2:hover { box-shadow: 0 10px 28px rgba(12,27,42,0.12); border-color: rgba(12,27,42,0.10); transform: translateY(-4px); }
.product-card.pc2::before, .product-card.pc2::after { content: none; display: none; }

/* قاب تصویر */
.product-card.pc2 .pc-media {
  position: relative; background: #f9fafb; border-radius: 16px; padding: 8px; flex: 0 0 auto;
}
.product-card.pc2 .pc-media img {
  display: block; width: 100%; aspect-ratio: 1 / 1; height: auto;
  object-fit: contain; background: #fff; border-radius: 10px;
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
.product-card.pc2:hover .pc-media img { transform: scale(1.04); }
.product-card.pc2.is-out-of-stock .pc-media img { filter: grayscale(0.7); opacity: 0.55; }

/* بج تخفیف */
.pc-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  padding: 6px 14px; border-radius: 999px; line-height: 1;
  font-size: 0.88rem; font-weight: 800; color: #fff; letter-spacing: 0.2px;
  background: linear-gradient(135deg, #e63946, #c2212c);
  box-shadow: 0 4px 12px rgba(194,33,44,0.30);
}
.pc-badge.pc-badge-out { background: rgba(32,30,26,0.85); box-shadow: none; font-weight: 700; font-size: 0.78rem; }

/* علاقه‌مندی (دایره‌ی کوچک گوشه‌ی پایین-چپ قاب تصویر) */
.pc-fav {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  width: 30px; height: 30px; padding: 0; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.95); color: #9aa3b0; font-size: 0.82rem;
  box-shadow: 0 2px 8px rgba(12,27,42,0.14); cursor: pointer; transition: all var(--transition);
}
.pc-fav:hover { color: #e63946; transform: scale(1.1); }
.pc-fav.active, .pc-fav.active i { color: #e63946; }

/* عنوان */
.product-card.pc2 .pc-title {
  margin: 14px 2px 0; font-size: 0.85rem; font-weight: 500; line-height: 1.85; color: #1e2938;
  text-align: right; min-height: calc(1.85em * 2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card.pc2:hover .pc-title { color: #1e2938; }
.product-card.pc2.is-out-of-stock .pc-title { color: #8a93a0; }

/* ردیف پایین: دکمه (راست) | قیمت (چپ) */
.product-card.pc2 .pc-foot {
  margin-top: auto; padding: 14px 4px 0; border: none;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.pc-cart-btn {
  flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: none; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer;
  background: linear-gradient(145deg, #cc0050 0%, #8a1250 45%, #2b2347 100%);
  box-shadow: 0 6px 16px rgba(138,18,80,0.28); transition: transform var(--transition), box-shadow var(--transition);
}
.pc-cart-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(138,18,80,0.36); }
.pc-cart-btn:active { transform: scale(0.96); }
.pc-cart-btn.is-disabled { background: #e6e9ee; color: #9aa3b0; box-shadow: none; cursor: not-allowed; }
.pc-cart-btn.is-disabled:hover { transform: none; box-shadow: none; }

.pc-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; text-align: left; }
.pc-price-old { font-size: 0.74rem; color: #a3abb7; text-decoration: line-through; line-height: 1.3; }
.pc-price-now { font-size: 1.12rem; font-weight: 800; color: #111828; line-height: 1.4; white-space: nowrap; }
.pc-price-unit { font-size: 0.72rem; font-weight: 500; color: #707987; }

/* نوار تعداد بعد از افزودن به سبد: ردیف جدا زیر قیمت */
.product-card.pc2 .qty-stepper {
  order: 3; flex: 1 0 100%; display: flex; align-items: center; justify-content: space-between;
  background: #f6f7f9; border: 1px solid #eceef2; border-radius: 13px; padding: 4px;
}
.product-card.pc2 .qty-stepper .qty-btn { width: 34px; height: 34px; border-radius: 10px; background: #fff; }
.product-card.pc2 .qty-stepper .qty-btn:hover { background: #8a1250; color: #fff; }

@media (max-width: 576px) {
  .product-card.pc2 { padding: 9px 9px 12px; border-radius: 16px; }
  .product-card.pc2 .pc-media { padding: 6px; border-radius: 13px; }
  .pc-badge { top: 11px; right: 11px; padding: 5px 11px; font-size: 0.78rem; }
  .product-card.pc2 .pc-title { font-size: 0.8rem; margin-top: 10px; }
  .pc-price-now { font-size: 0.98rem; }
  .pc-cart-btn { width: 40px; height: 40px; border-radius: 12px; }
}

/* ══════════════════════════════════════════════════════════════
   جدیدترین محصولات — پنل گرد و جدا از لبه‌ها (نه تمام‌عرض)
   ══════════════════════════════════════════════════════════════ */
.new-arrivals-section {
  background: none !important; background-image: none !important;
  padding: 44px 0 20px; border-radius: 0; overflow: visible;
}
.new-arrivals-section::before { content: none; display: none; }

.na-panel {
  display: flex; align-items: center; gap: 24px;
  background: linear-gradient(90deg, rgba(7, 1, 117, 1) 0%, rgba(15, 15, 133, 1) 35%, rgba(0, 212, 255, 1) 100%);
  border-radius: 32px; padding: 34px 30px;
  box-shadow: 0 18px 44px rgba(15,15,133,0.28);
}
.na-info {
  flex: 0 0 230px; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff;
}
.na-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.09); color: #fff; font-size: 0.78rem; font-weight: 700;
}
.na-chip i { color: #ffc83d; }
.na-icon { margin: 22px 0 14px; opacity: 0.95; }
.na-title { font-size: 1.3rem; font-weight: 900; color: #fff; margin: 0; line-height: 1.5; text-shadow: 0 1px 10px rgba(0,30,110,0.35); }
.na-sub { font-size: 0.78rem; color: rgba(255,255,255,0.92); margin: 6px 0 0; line-height: 1.8; text-shadow: 0 1px 8px rgba(0,30,110,0.35); }
.na-info .hc-all { margin-top: 16px; }

.na-slider { flex: 1 1 0; min-width: 0; }
.na-panel .carousel-track { padding-inline: 0 !important; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.35) transparent; }
.na-panel .carousel-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.35); }
.na-panel .carousel-btn.prev { right: -16px; }
.na-panel .carousel-btn.next { left: -16px; }

@media (max-width: 991.98px) {
  .new-arrivals-section { padding: 28px 0 12px; }
  .na-panel { flex-direction: column; align-items: stretch; gap: 16px; border-radius: 26px; padding: 22px 14px 18px; }
  .na-info { flex: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; text-align: right; gap: 6px 10px; padding: 0 6px; }
  .na-icon { display: none; }
  .na-title { order: 1; flex: 1 1 auto; font-size: 1.15rem; }
  .na-info .hc-all { order: 2; margin-top: 0; padding: 7px 14px; }
  .na-sub { order: 3; flex: 1 0 100%; margin: 0; }
}

/* ══════════════════════════════════════════════════════════════
   سکشن دسته‌بندی فروشگاه (صفحه‌ی اصلی)
   ══════════════════════════════════════════════════════════════ */
.home-cats-section { padding: 28px 0 36px; }
.hc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.hc-title { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 900; color: #111828; margin: 0; line-height: 1.5; }
.hc-title span { color: #111828; }
.hc-all {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  padding: 9px 20px; border-radius: 999px; background: #fff; border: 1px solid #e6e9ee;
  font-size: 0.82rem; font-weight: 700; color: #1e2938; text-decoration: none; transition: all var(--transition);
}
.hc-all i { font-size: 0.7rem; }
.hc-all:hover { background: #111828; color: #fff; border-color: #111828; }

.hc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hc-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 108px; padding: 14px 20px; background: #fff; border: 1px solid #eceef2; border-radius: 20px;
  text-decoration: none; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.hc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(12,27,42,0.10); border-color: #dfe3ea; }
.hc-name { align-self: flex-start; padding-top: 6px; font-size: 1rem; font-weight: 800; color: #1e2938; line-height: 1.6; }
.hc-card img {
  flex: 0 0 auto; width: 96px; height: 96px; object-fit: contain; object-position: center;
  margin-block: -4px; transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1);
}
.hc-card:hover img { transform: scale(1.08) rotate(-2deg); }

@media (max-width: 1199.98px) { .hc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991.98px)  { .hc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) {
  .home-cats-section { padding: 18px 0 24px; }
  .hc-grid { gap: 10px; }
  .hc-card { flex-direction: column-reverse; justify-content: center; align-items: center; gap: 6px; min-height: 0; padding: 14px 10px; border-radius: 16px; text-align: center; }
  .hc-name { align-self: center; padding-top: 0; font-size: 0.88rem; }
  .hc-card img { width: 72px; height: 72px; margin-block: 0; }
  .hc-all { padding: 7px 14px; }
}

/* بنر اینستاگرام */
.ig-banner-section { padding: 8px 0 28px; }
.ig-banner {
  display: block; border-radius: 20px; overflow: hidden; line-height: 0;
  box-shadow: 0 8px 26px rgba(12,27,42,0.10);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ig-banner img { display: block; width: 100%; height: auto; }
.ig-banner:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(12,27,42,0.16); }
@media (max-width: 575.98px) {
  .ig-banner-section { padding: 4px 0 18px; }
  .ig-banner { border-radius: 14px; }
}

/* هدر سکشن‌های دسته‌بندی: عنوان (راست) — دکمه‌ی «مشاهده همه» (چپ) */
.section-header.sh-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sh-row .sh-titles { min-width: 0; }
.sh-row .hc-all { margin-top: 0; }
@media (max-width: 575.98px) {
  .section-header.sh-row { margin-bottom: 26px; }
  .sh-row .hc-all { padding: 7px 14px; }
}