/* ==========================================================================
   DESIGN.md Implementation — فروشگاه اینترنتی پوشاک فارفالا (FARFALLA WOMEN COUTURE)
   Inspired by Digistyle Multi-Layer Fashion Architecture (Specializing in Women's Apparel)
   Scalability: GPU-Accelerated Transforms, Zero CLS, Strict RTL Layout Isolation
   ========================================================================== */

:root,
[data-theme="light"] {
  color-scheme: light;
  /* High-Readability Unified Light Theme */
  --bg-canvas: #F8FAFC;            /* بوم روشن و چشم‌نواز */
  --bg-surface: #FFFFFF;           /* کارت‌ها و هدر سفید خالص */
  --bg-elevated: #FFFFFF;          /* منوها و دراپ‌داون‌های برجسته */
  --bg-layer-blush: #F1F5F9;       /* لایه تفکیک بخش‌ها در تم روشن */
  --bg-layer-warm: #F8FAFC;        /* لایه گرم مجله و ضمانت‌ها */
  --bg-layer-dark: #FFFFFF;        /* هماهنگ با تم روشن */
  --bg-subtle: #EEF2F6;            /* پس‌زمینه فیلدها و چیپ‌های غیرفعال */
  --bg-control: #FFFFFF;           /* پس‌زمینه دکمه‌ها و سلکت‌ها */
  --bg-glass: rgba(255, 255, 255, 0.94);

  --text-primary: #0F172A;         /* کنتراست حداکثری برای خوانایی کامل در تم روشن */
  --text-secondary: #334155;       /* متن فرعی کاملاً واضح و خوانا */
  --text-muted: #475569;           /* متن راهنما با خوانایی استاندارد */

  --brand-primary: #E11D48;        /* رز-یاقوتی شاخص فارفالا */
  --brand-primary-hover: #BE123C;
  --brand-primary-soft: rgba(225, 29, 72, 0.09);
  --brand-secondary: #B45309;      /* طلایی لوکس فارفالا */
  --brand-gradient: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
  --dark-luxury-gradient: linear-gradient(180deg, #F1F5F9 0%, #FFFFFF 100%);

  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.1);
  --shadow-card: 0 8px 24px -8px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 40px -12px rgba(225, 29, 72, 0.15), 0 8px 18px -4px rgba(15, 23, 42, 0.08);
  --shadow-modal: 0 28px 65px -15px rgba(15, 23, 42, 0.35);

  --status-success: #059669;
  --status-warning: #D97706;
  --status-danger: #DC2626;
  --status-info: #2563EB;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --font-sans: 'Vazirmatn', 'IRANSansX', 'Yekan Bakh', 'Tahoma', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  /* High-Readability Unified Dark Theme */
  --bg-canvas: #0B0F17 !important;
  --bg-surface: #151C28 !important;
  --bg-elevated: #1E293B !important;
  --bg-layer-blush: #111722 !important;
  --bg-layer-warm: #111722 !important;
  --bg-layer-dark: #0B0F17 !important;
  --bg-subtle: #1E293B !important;
  --bg-control: #1E293B !important;
  --bg-glass: rgba(21, 28, 40, 0.94) !important;
  --dark-luxury-gradient: linear-gradient(180deg, #111722 0%, #0B0F17 100%) !important;
  --text-primary: #F8FAFC !important;
  --text-secondary: #E2E8F0 !important;
  --text-muted: #CBD5E1 !important;
  --brand-primary: #F43F5E !important;
  --brand-primary-hover: #E11D48 !important;
  --brand-secondary: #FBBF24 !important;
  --brand-gradient: linear-gradient(135deg, #E11D48 0%, #BE123C 100%) !important;
  --border-subtle: rgba(255, 255, 255, 0.15) !important;
  --border-strong: rgba(255, 255, 255, 0.28) !important;
  --brand-primary-soft: rgba(244, 63, 94, 0.18) !important;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
  --shadow-md: 0 10px 24px -4px rgba(0, 0, 0, 0.55) !important;
  --shadow-card: 0 12px 32px -10px rgba(0, 0, 0, 0.65) !important;
  --neon-title-color: #F8FAFC !important;
  --neon-title-halo: transparent !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-canvas: #0B0F17;
    --bg-surface: #151C28;
    --bg-elevated: #1E293B;
    --bg-layer-blush: #111722;
    --bg-layer-warm: #111722;
    --bg-layer-dark: #0B0F17;
    --bg-subtle: #1E293B;
    --bg-control: #1E293B;
    --bg-glass: rgba(21, 28, 40, 0.94);
    --dark-luxury-gradient: linear-gradient(180deg, #111722 0%, #0B0F17 100%);
    --text-primary: #F8FAFC;
    --text-secondary: #E2E8F0;
    --text-muted: #CBD5E1;
    --brand-primary: #F43F5E;
    --brand-primary-hover: #E11D48;
    --brand-secondary: #FBBF24;
    --brand-gradient: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
    --border-subtle: rgba(255, 255, 255, 0.15);
    --border-strong: rgba(255, 255, 255, 0.28);
    --brand-primary-soft: rgba(244, 63, 94, 0.18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 10px 24px -4px rgba(0, 0, 0, 0.55);
    --shadow-card: 0 12px 32px -10px rgba(0, 0, 0, 0.65);
    --neon-title-color: #F8FAFC;
    --neon-title-halo: transparent;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.85;
  word-spacing: 0.015em;
  letter-spacing: 0;
  font-feature-settings: "ss01" 1, "tnum" 1;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.85;
  word-spacing: 0.015em;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6, strong {
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.45;
  letter-spacing: -0.01em;
  word-spacing: 0.01em;
}

p {
  line-height: 1.9;
  word-spacing: 0.015em;
  overflow-wrap: break-word;
}

button, input, select, textarea, option {
  font-family: var(--font-sans);
  font-size: inherit;
  color: inherit;
  font-feature-settings: "ss01" 1, "tnum" 1;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   LAYER 1: Top Promotional Discount Banner (Multi-Color Blinking & Promo Image)
   ========================================================================== */
@keyframes multiColorBarPulse {
  0%   { background: linear-gradient(90deg, #141417 0%, #B91C47 50%, #141417 100%); box-shadow: 0 2px 12px rgba(239, 57, 78, 0.25); }
  20%  { background: linear-gradient(90deg, #141417 0%, #B45309 50%, #141417 100%); box-shadow: 0 2px 12px rgba(245, 158, 11, 0.25); }
  40%  { background: linear-gradient(90deg, #141417 0%, #9D174D 50%, #141417 100%); box-shadow: 0 2px 12px rgba(236, 72, 153, 0.25); }
  60%  { background: linear-gradient(90deg, #141417 0%, #047857 50%, #141417 100%); box-shadow: 0 2px 12px rgba(16, 185, 129, 0.25); }
  80%  { background: linear-gradient(90deg, #141417 0%, #5B21B6 50%, #141417 100%); box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25); }
  100% { background: linear-gradient(90deg, #141417 0%, #B91C47 50%, #141417 100%); box-shadow: 0 2px 12px rgba(239, 57, 78, 0.25); }
}

@keyframes multiColorBadgeBlink {
  0%, 100% { background-color: #EF394E; box-shadow: 0 0 8px rgba(239, 57, 78, 0.55); transform: scale(1); }
  16%      { opacity: 0.55; box-shadow: none; transform: scale(0.98); }
  20%      { opacity: 1; background-color: #D97706; box-shadow: 0 0 8px rgba(217, 119, 6, 0.55); transform: scale(1.02); }
  36%      { opacity: 0.55; box-shadow: none; transform: scale(0.98); }
  40%      { opacity: 1; background-color: #DB2777; box-shadow: 0 0 8px rgba(219, 39, 119, 0.55); transform: scale(1.02); }
  56%      { opacity: 0.55; box-shadow: none; transform: scale(0.98); }
  60%      { opacity: 1; background-color: #059669; box-shadow: 0 0 8px rgba(5, 150, 105, 0.55); transform: scale(1.02); }
  76%      { opacity: 0.55; box-shadow: none; transform: scale(0.98); }
  80%      { opacity: 1; background-color: #7C3AED; box-shadow: 0 0 8px rgba(124, 58, 237, 0.55); transform: scale(1.02); }
}

.top-promo-bar {
  background: linear-gradient(90deg, #141417 0%, #881337 50%, #141417 100%);
  color: #FFFFFF;
  font-size: 0.84rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  animation: multiColorBarPulse 9s infinite ease-in-out;
  transition: background 0.4s ease;
}

.top-promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-promo-banner-img {
  width: 56px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.promo-pill {
  background: var(--brand-primary);
  color: #FFFFFF;
  padding: 0.22rem 0.85rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.77rem;
  animation: multiColorBadgeBlink 4.8s infinite;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.promo-code-blink {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 8px;
  background: #FFFFFF;
  color: #141417;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  animation: multiColorBadgeBlink 4.8s infinite reverse;
}

.seed-transparency-banner {
  background: var(--bg-layer-warm);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.76rem;
  padding: 0.35rem 0;
  text-align: center;
}

/* ==========================================================================
   LAYER 2: Digistyle-Inspired Masthead Header with Designed Bilingual Logo
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.75rem;
  padding: 1rem 0;
}

/* Official Farfalla Butterfly Brand Logo & Editorial Swash Wordmark */
.bilingual-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease;
}

.bilingual-brand-logo:hover {
  transform: translateY(-1px);
}

.brand-crest {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: #F6EFE8;
  border: 1.5px solid rgba(180, 83, 9, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 22px -6px rgba(15, 23, 42, 0.18);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-crest-en {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-secondary);
  line-height: 1;
  letter-spacing: 0.05em;
}

.brand-crest-fa {
  font-size: 0.68rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 2px;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
}

.brand-wordmark-row {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.brand-butterfly-inline {
  width: 24px;
  height: 20px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-fa-title {
  font-size: 1.38rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.brand-divider-line {
  height: 1.2px;
  width: 100%;
  background: linear-gradient(90deg, var(--text-primary) 0%, var(--brand-primary) 55%, transparent 100%);
  opacity: 0.35;
  margin: 0.18rem 0 0.14rem;
}

.brand-en-designed {
  font-family: 'Cormorant Garamond', 'Didot', 'Bodoni MT', 'Georgia', serif;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--text-primary);
  text-transform: uppercase;
  direction: ltr;
  text-align: right;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sr-only-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.farfalla-wordmark-svg {
  width: 176px;
  height: 28px;
  display: block;
  color: var(--text-primary);
  overflow: visible;
}

.farfalla-serif-char {
  font-family: 'Cormorant Garamond', 'Didot', 'Bodoni MT', 'Georgia', serif;
  font-size: 32px;
  font-weight: 500;
  fill: currentColor;
}

.brand-en-sub {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  direction: ltr;
  text-align: right;
  margin-top: 1px;
}

/* Smart Glassmorphic Fuzzy Search Bar & Live Dropdown */
.search-box-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.search-input-group,
.glass-search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(20, 20, 23, 0.11);
  border-radius: 999px;
  padding: 0.2rem 0.85rem 0.2rem 0.3rem;
  box-shadow: 0 4px 18px -6px rgba(20, 20, 23, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: all 0.22s ease;
}

[data-theme="dark"] .search-input-group,
[data-theme="dark"] .glass-search-bar {
  background: rgba(30, 30, 36, 0.65);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-input-group:focus-within {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--brand-primary);
  box-shadow: 0 6px 22px -6px rgba(239, 57, 78, 0.18), 0 0 0 3px var(--brand-primary-soft);
}

[data-theme="dark"] .search-input-group:focus-within {
  background: rgba(38, 38, 46, 0.88);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.48rem 0.35rem;
  color: var(--text-primary);
  font-size: 0.86rem;
  min-width: 0;
}

.search-input:focus {
  outline: none;
}

.search-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 23, 0.08);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

[data-theme="dark"] .search-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.search-icon-btn:hover {
  transform: scale(1.06);
  background: var(--brand-primary-soft);
  border-color: var(--brand-primary);
}

.search-suggest-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  z-index: 150;
  display: none;
  overflow: hidden;
}

.search-suggest-dropdown.open {
  display: block;
}

.suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.suggest-item:hover {
  background: var(--bg-layer-blush);
}

.suggest-item img {
  width: 42px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-control);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
}

.action-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.action-btn.primary {
  background: var(--brand-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 6px 16px -4px rgba(225, 29, 72, 0.38);
}

.action-btn.primary:hover {
  background: var(--brand-primary-hover);
  border-color: transparent;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.action-btn.admin-btn {
  background: linear-gradient(135deg, #C59B27 0%, #9A7411 100%);
  color: #FFFFFF;
  border-color: transparent;
}

.badge-counter {
  background: #FFFFFF;
  color: #BE123C;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.action-btn:not(.primary) .badge-counter {
  background: var(--brand-primary);
  color: #FFFFFF;
}

/* Department & Quick Navigation Sub-bar (Adaptive System Light/Dark Menu Colors) */
.dept-ribbon {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 0.6rem 0;
  overflow: visible;
  position: relative;
  z-index: 65;
}

.dept-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.dept-tabs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.dept-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 1.05rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  white-space: nowrap;
  transition: all 0.18s ease;
}

.dept-tab:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.dept-tab.active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 4px 14px -4px rgba(225, 29, 72, 0.42);
}

[data-theme="dark"] .dept-tab.active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #FFFFFF;
}

.dept-count-pill {
  font-size: 0.73rem;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.09);
  color: var(--text-primary);
  font-weight: 800;
}

[data-theme="dark"] .dept-count-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #F8FAFC;
}

.dept-tab.active .dept-count-pill {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.quick-nav-links {
  display: none;
}

/* ==========================================================================
   LAYER 3: Digistyle Editorial Hero & Circular Visual Categories
   ========================================================================== */
.layer-blush-wrapper {
  background: var(--bg-layer-blush);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.45rem 0 1.6rem;
}

.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 2.4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 0.95rem;
  border-radius: 999px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.hero-title {
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  font-weight: 900;
  line-height: 1.48;
  word-spacing: 0.015em;
  margin-bottom: 0.9rem;
}

.hero-title .highlight {
  color: var(--brand-primary);
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.95;
  word-spacing: 0.018em;
  max-width: 780px;
  margin-bottom: 1.5rem;
  text-align: justify;
  text-align-last: right;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-hero-primary {
  background: var(--brand-gradient);
  color: #FFFFFF;
  padding: 0.82rem 1.65rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: 0 10px 24px -6px rgba(225, 29, 72, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(225, 29, 72, 0.55);
}

.btn-hero-secondary {
  background: var(--bg-control);
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.4;
  transition: all 0.18s ease;
}

.btn-hero-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.hero-visual-panel {
  background: var(--bg-layer-blush);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Digistyle Circular Illustrated Category Icons Row */
.circular-categories-section {
  margin-top: 0.5rem;
}

.circular-categories-header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.circular-categories-header h3 {
  font-size: 1.25rem;
  font-weight: 900;
}

.circular-categories-header p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.circular-categories-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.65rem;
  overflow-x: auto;
  padding: 0.5rem 0.5rem 0.85rem;
  scrollbar-width: none;
}

.circle-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  min-width: 140px;
  cursor: pointer;
}

.circle-cat-avatar {
  width: 134px;
  height: 134px;
  border-radius: 50%;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: 0 12px 28px -6px rgba(20, 20, 23, 0.18);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease;
  overflow: hidden;
}

.circle-cat-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
  border: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-cat-inner img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: none !important;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.circle-cat-item:hover .circle-cat-avatar,
.circle-cat-item.active .circle-cat-avatar {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 18px 34px -6px rgba(239, 57, 78, 0.36);
}

.circle-cat-item:hover .circle-cat-inner img {
  transform: scale(1.1);
}

.circle-cat-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  transition: color 0.18s ease;
}

.circle-cat-item.active .circle-cat-title,
.circle-cat-item:hover .circle-cat-title {
  color: var(--brand-primary);
}

.circle-cat-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: -4px;
}

/* ==========================================================================
   LAYER 4: Farfalla Signature Styles Showcase (Unified with Light & Dark Theme)
   ========================================================================== */
.farfara-styles-layer {
  background: var(--bg-layer-blush);
  color: var(--text-primary);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.styles-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.styles-header h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
}

.styles-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.styles-fluid-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
}

.style-lookbook-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.style-lookbook-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-hover);
}

.style-lookbook-media {
  position: relative;
  aspect-ratio: 4 / 4.3;
  overflow: hidden;
}

.style-lookbook-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.style-lookbook-card:hover .style-lookbook-media img {
  transform: scale(1.06);
}

.style-lookbook-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.86);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.45);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.style-lookbook-body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.style-en-label {
  font-family: 'Georgia', serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--brand-secondary);
  margin-bottom: 0.2rem;
}

.style-lookbook-body h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.style-lookbook-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.style-explore-cta {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   LAYER 5: Main Product Catalog Section & Fuzzy Search Banner
   ========================================================================== */
.catalog-section {
  padding: 2.5rem 0 3rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.section-title-group h2 {
  font-size: 1.45rem;
  font-weight: 900;
}

.section-title-group p {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.fuzzy-search-notice {
  background: var(--brand-primary-soft);
  border: 1px solid rgba(239, 57, 78, 0.28);
  color: var(--text-primary);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
  display: none;
}

.filter-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.95rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  box-shadow: var(--shadow-card);
}

.filter-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-select {
  padding: 0.52rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-control);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--brand-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-primary-soft);
}

.filter-select option,
.form-control option {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.4rem;
}

.filter-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-control);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.filter-checkbox-label:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.filter-checkbox-label input[type="checkbox"] {
  accent-color: var(--brand-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.45rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(239, 57, 78, 0.35);
}

.product-media-wrap {
  position: relative;
  aspect-ratio: 4 / 4.6;
  background: var(--bg-subtle);
  overflow: hidden;
  cursor: pointer;
}

.product-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-media-wrap img {
  transform: scale(1.04);
}

.card-badges-top {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.badge-tag {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-discount {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.badge-featured {
  background: rgba(20, 20, 23, 0.84);
  color: #FFFFFF;
}

.wishlist-btn {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #18181B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.wishlist-btn.active {
  background: #FFE4E6;
  color: #EF394E;
}

.product-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.product-rating {
  color: var(--brand-secondary);
  font-weight: 800;
}

.product-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  line-height: 1.55;
  word-spacing: 0.01em;
  cursor: pointer;
}

.product-title:hover {
  color: var(--brand-primary);
}

.product-subtitle {
  font-size: 0.82rem;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  text-align: justify;
  text-align-last: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.variant-chips-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-bottom: 0.9rem;
}

.size-chip-mini {
  font-size: 0.72rem;
  padding: 0.16rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 700;
}

.color-dot-mini {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
}

.product-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.price-block {
  display: flex;
  flex-direction: column;
}

.price-current-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-old {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-current {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--brand-primary);
}

.price-unit {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.card-discount-pill {
  font-size: 0.68rem;
  font-weight: 800;
  color: #E11D48;
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.2);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.btn-card-action {
  background: #0F172A;
  color: #FFFFFF;
  height: 36px;
  min-height: 36px;
  width: 100%;
  padding: 0 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-card-action:hover {
  background: var(--brand-gradient);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.22);
}

.btn-card-action:active {
  transform: translateY(0);
}

.btn-card-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

/* ==========================================================================
   LAYER 6: Farfara Fashion & Craftsmanship Blog / Magazine Section
   ========================================================================== */
.blog-magazine-layer {
  background: var(--bg-layer-blush);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-primary);
}

.blog-card-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-subtle);
  overflow: hidden;
  position: relative;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-category-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--brand-gradient);
  color: #FFFFFF;
  padding: 0.22rem 0.72rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
}

.blog-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-body h3 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.blog-card-body p {
  font-size: 0.83rem;
  line-height: 1.88;
  color: var(--text-secondary);
  margin-bottom: 0.95rem;
  text-align: justify;
  text-align-last: right;
}

.blog-meta-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   LAYER 7: Core Store Service Guarantees + Bottom Craftsmanship & Quality Manifesto
   ========================================================================== */
.guarantees-ribbon-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2rem 0;
}

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.pillar-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.pillar-text h4 {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 0.2rem;
}

.pillar-text p {
  font-size: 0.79rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.site-footer {
  background: var(--bg-surface);
  padding: 3rem 0 2rem;
}

.site-footer ul li {
  line-height: 1.85;
}

.site-footer ul li button,
.site-footer ul li a {
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 0.18s ease;
}

.site-footer ul li button:hover,
.site-footer ul li a:hover {
  color: var(--brand-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.enamad-badges {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.trust-seal {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

/* Bottom Brand Craftsmanship, Fabric, Design & Tailoring Manifesto Box */
.craftsmanship-manifesto-box {
  background: var(--bg-layer-warm);
  border: 1px solid var(--border-subtle);
  border-right: 4px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}

.craftsmanship-manifesto-box h3 {
  font-size: 1.14rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.craftsmanship-manifesto-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.98;
  word-spacing: 0.015em;
  margin-bottom: 0.65rem;
  text-align: justify;
  text-align-last: right;
}

.craftsmanship-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-strong);
}

.craft-item strong {
  display: block;
  font-size: 0.84rem;
  color: var(--brand-primary);
}

.craft-item span {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Modals, Drawers & Utilities
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.65);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  padding: 1.75rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.modal-close-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.75rem;
}

.variant-selector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.65rem 0 1.25rem;
}

.variant-option-btn {
  padding: 0.56rem 1rem;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-control);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.variant-option-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.variant-option-btn.selected {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--brand-primary-soft);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 1rem 0;
}

.spec-item {
  background: var(--bg-subtle);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
}

.spec-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 450px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  z-index: 250;
  transform: translateX(-105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.cart-drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.cart-item-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  margin-bottom: 0.85rem;
}

.cart-item-card img {
  width: 68px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-control);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.15rem 0.45rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  font-weight: 800;
  color: var(--brand-primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-control {
  padding: 0.68rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-control);
  color: var(--text-primary);
  font-size: 0.88rem;
  line-height: 1.5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-control:focus {
  border-color: var(--brand-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-primary-soft);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.data-table th, .data-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: right;
}

.data-table th {
  background: var(--bg-subtle);
  font-weight: 800;
}

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast-msg {
  background: #141417;
  color: #FFFFFF;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border-right: 4px solid var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
}

@media (max-width: 992px) {
  .header-main {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .hero-card,
  .product-detail-grid,
  .footer-grid,
  .craftsmanship-highlights {
    grid-template-columns: 1fr;
  }
  .trust-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .trust-pillars,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PHASE 7 & 8: Borderless Soft-Flickering Neon Titles Directly on Page & Interactive Image Studio
   ========================================================================== */
:root {
  --neon-title-color: #EF394E;
  --neon-title-halo: #FF2A85;
  --neon-glow-spread: 9px;
}

@keyframes realisticNeonOnOff {
  0%, 19%, 23%, 52%, 58%, 100% {
    color: var(--neon-title-color, #EF394E);
    text-shadow:
      0 0 3px rgba(239, 57, 78, 0.32),
      0 0 var(--neon-glow-spread, 9px) var(--neon-title-halo, rgba(255, 42, 133, 0.38));
    opacity: 1;
  }
  20%, 22%, 54%, 56% {
    color: var(--neon-title-color, #EF394E);
    text-shadow: 0 0 1px rgba(239, 57, 78, 0.12);
    opacity: 0.56;
  }
}

.neon-white-title-box {
  background: transparent !important;
  color: inherit;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  animation: none !important;
  margin-bottom: 0.25rem;
}

.neon-tube-dot {
  display: none !important;
}

.neon-flicker-title {
  font-family: var(--font-sans) !important;
  font-weight: 900 !important;
  color: var(--text-primary) !important;
  text-shadow: none !important;
  opacity: 1 !important;
  animation: none !important;
  letter-spacing: -0.01em;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
}

[data-theme="dark"] .neon-flicker-title,
.farfara-styles-layer .neon-flicker-title {
  font-family: var(--font-sans) !important;
  font-weight: 900 !important;
  color: var(--text-primary) !important;
  text-shadow: none !important;
  opacity: 1 !important;
  animation: none !important;
}

[data-theme="dark"] .action-btn.primary,
[data-theme="dark"] .btn-card-action,
[data-theme="dark"] .dept-tab.active,
[data-theme="dark"] .admin-tab-btn.active,
[data-theme="dark"] .dk-detail-tab-btn.active {
  background: var(--brand-gradient) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}

[data-theme="dark"] .action-btn.primary:hover,
[data-theme="dark"] .btn-card-action:hover {
  background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%) !important;
  border-color: transparent !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .action-btn:not(.primary):not(.admin-btn),
[data-theme="dark"] .btn-hero-secondary,
[data-theme="dark"] .variant-option-btn:not(.selected),
[data-theme="dark"] .filter-select,
[data-theme="dark"] .filter-checkbox-label,
[data-theme="dark"] .form-control {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.24);
  color: #F8FAFC;
}

[data-theme="dark"] .action-btn:not(.primary):not(.admin-btn):hover,
[data-theme="dark"] .btn-hero-secondary:hover,
[data-theme="dark"] .variant-option-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: rgba(244, 63, 94, 0.16);
}

[data-theme="dark"] .brand-crest {
  background: #F6EFE8;
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .brand-fa-title,
[data-theme="dark"] .brand-butterfly-inline {
  color: #F8FAFC !important;
}

[data-theme="dark"] .brand-en-designed,
[data-theme="dark"] .farfalla-wordmark-svg {
  color: #F6EFE8 !important;
}

[data-theme="dark"] .brand-en-sub {
  color: #CBD5E1 !important;
}

[data-theme="dark"] select option,
[data-theme="dark"] select.form-control option,
[data-theme="dark"] select.filter-select option {
  background-color: #151C28;
  color: #F8FAFC;
}

[data-theme="light"] select option,
[data-theme="light"] select.form-control option,
[data-theme="light"] select.filter-select option {
  background-color: #FFFFFF;
  color: #0F172A;
}

[data-theme="dark"] .wishlist-btn {
  background: rgba(21, 28, 40, 0.92);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .wishlist-btn.active {
  background: rgba(244, 63, 94, 0.28);
  color: #FB7185;
}

/* Admin Panel Tabs & HTML5 Canvas Image Cropper / Rotator Studio */
.admin-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-tab-btn {
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all 0.18s ease;
}

.admin-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--brand-primary);
}

.admin-tab-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 6px 16px rgba(239, 57, 78, 0.28);
}

.image-studio-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}

.image-studio-canvas-wrap {
  background: #141417;
  border-radius: 16px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.studio-canvas-interactive-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.image-studio-canvas-wrap canvas {
  max-width: 100%;
  max-height: 380px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: repeating-conic-gradient(#27272A 0% 25%, #18181B 0% 50%) 50% / 16px 16px;
  user-select: none;
  -webkit-user-select: none;
}

.studio-tool-btn {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.studio-tool-btn:hover,
.studio-tool-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
}

@media (max-width: 820px) {
  .image-studio-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SEO Magazine & Fabric Encyclopedia Full-Page Reader Styles (/blog/:slug)
   ========================================================================== */
.blog-filter-chip {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-filter-chip:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.blog-filter-chip.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(239, 57, 78, 0.28);
}

.blog-read-full-cta {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-subtle);
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  background: var(--bg-surface);
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.article-breadcrumb a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 700;
}

.article-full-card {
  background: var(--bg-surface);
  border-radius: 22px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.article-hero-banner {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #141417;
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.25rem;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.94) 15%, rgba(10, 12, 16, 0.35) 100%);
  color: #FFFFFF;
}

.article-badge-pill {
  align-self: flex-start;
  background: var(--brand-primary);
  color: #FFFFFF;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.article-main-h1 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1.45;
  color: #FFFFFF;
  margin-bottom: 0.85rem;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.83rem;
  color: #E2E8F0;
}

.article-rich-content {
  padding: 2.25rem;
  line-height: 2.05;
  word-spacing: 0.016em;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.article-rich-content h2 {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 2.1rem 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid rgba(239, 57, 78, 0.22);
}

.article-rich-content h3 {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--brand-primary);
  margin: 1.4rem 0 0.55rem;
}

.article-rich-content p {
  margin-bottom: 1.05rem;
  line-height: 2.02;
  color: var(--text-primary);
  text-align: justify;
  text-align-last: right;
}

.article-rich-content ul,
.article-rich-content ol {
  padding-right: 1.35rem;
  margin-bottom: 1.25rem;
}

.article-rich-content li {
  margin-bottom: 0.5rem;
}

.article-lead-box {
  background: var(--bg-subtle);
  border-right: 4px solid var(--brand-primary);
  padding: 1.15rem 1.35rem;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.article-toc {
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 1.15rem 1.4rem;
  margin-bottom: 1.75rem;
}

.article-toc h4 {
  font-size: 0.98rem;
  font-weight: 900;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.45rem 1rem;
}

.article-toc a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
}

.article-seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.article-seo-table th {
  background: #18181B;
  color: #FFFFFF;
  font-weight: 800;
  text-align: right;
  padding: 0.85rem 1rem;
}

.article-seo-table td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.article-seo-table tr:nth-child(even) td {
  background: var(--bg-subtle);
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  margin: 1.25rem 0 1.75rem;
}

.pros-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
}

.pros-box h4 {
  color: #059669;
  font-size: 0.98rem;
  font-weight: 900;
  margin-bottom: 0.65rem;
}

.cons-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
}

.cons-box h4 {
  color: #D97706;
  font-size: 0.98rem;
  font-weight: 900;
  margin-bottom: 0.65rem;
}

[data-theme="dark"] .pros-box h4 {
  color: #34D399;
}

[data-theme="dark"] .cons-box h4 {
  color: #FBBF24;
}

.article-faq-box {
  background: var(--bg-subtle);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border-strong);
}

.article-faq-box h4 {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin: 0.75rem 0 0.35rem;
}

.article-cta-banner {
  margin: 0 2.25rem 2.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #18181B 0%, #27272A 100%);
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.article-cta-banner h3 {
  font-size: 1.1rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.article-cta-banner p {
  font-size: 0.86rem;
  color: #D4D4D8;
  max-width: 600px;
  margin: 0;
}

.related-products-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.related-prod-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-prod-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.related-prod-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.related-prod-info {
  padding: 0.9rem;
}

.related-prod-fabric {
  font-size: 0.74rem;
  color: var(--brand-primary);
  font-weight: 800;
  display: block;
  margin-bottom: 0.25rem;
}

.related-prod-info h4 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.related-prod-price {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--emerald-trust);
}

@media (max-width: 640px) {
  .article-rich-content {
    padding: 1.25rem;
  }
  .article-cta-banner {
    margin: 0 1.25rem 1.25rem;
  }
  .article-hero-banner {
    height: 290px;
  }
}

/* ==========================================================================
   DEPARTMENT HOVER MEGA-MENU / DROPDOWN, BLOG SHOW-MORE & BESTSELLER BADGES
   ========================================================================== */
.dept-tab-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dept-caret {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-right: 2px;
  transition: transform 0.2s ease;
}

.dept-tab-dropdown-wrap:hover .dept-caret {
  transform: rotate(180deg);
}

.dept-hover-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 310px;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(20, 20, 23, 0.11);
  border-radius: 18px;
  padding: 0.85rem;
  box-shadow: 0 22px 48px -12px rgba(20, 20, 23, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 250;
  pointer-events: none;
}

[data-theme="dark"] .dept-hover-menu {
  background: rgba(24, 24, 30, 0.94);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 52px -12px rgba(0, 0, 0, 0.65);
}

/* Bridge the 6px hover gap so moving mouse to menu never closes it */
.dept-hover-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  right: 0;
  left: 0;
  height: 12px;
}

.dept-tab-dropdown-wrap:hover .dept-hover-menu,
.dept-tab-dropdown-wrap:focus-within .dept-hover-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dept-hover-menu-header {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand-primary);
  padding: 0.2rem 0.4rem 0.55rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dept-hover-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 0.45rem;
  max-height: 310px;
  overflow-y: auto;
}

.dept-hover-cat-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  text-align: right;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
}

.dept-hover-cat-item:hover,
.dept-hover-cat-item.active {
  background: var(--brand-primary-soft);
  border-color: rgba(239, 57, 78, 0.25);
}

.dept-hover-cat-thumb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dept-hover-cat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dept-hover-cat-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dept-hover-cat-meta {
  font-size: 0.69rem;
  color: var(--text-muted);
}

/* Blog Show More Button */
.blog-show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.65rem;
}

.btn-show-more-blogs {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--brand-primary);
  color: var(--brand-primary);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px -6px rgba(239, 57, 78, 0.22);
  transition: all 0.22s ease;
}

[data-theme="dark"] .btn-show-more-blogs {
  background: rgba(30, 30, 38, 0.82);
}

.btn-show-more-blogs:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(239, 57, 78, 0.35);
}

.btn-show-more-arrow {
  font-size: 1rem;
  line-height: 1;
}

/* Bestseller Badge */
.badge-bestseller {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* ==========================================================================
   FULL MULTI-DEVICE & SMART TV / 4K ADAPTIVE RESPONSIVE ENGINE
   (Smartphones 320px+, Tablets 768px+, Laptops/Desktops, & Smart TVs 1920px–3840px)
   ========================================================================== */

/* Ultra-Wide Desktop & Smart TV (1600px+) */
@media (min-width: 1600px) {
  .container {
    max-width: 1580px;
  }
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.65rem;
  }
  .blog-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Large Smart TV / 4K Displays (2100px+) */
@media (min-width: 2100px) {
  html {
    font-size: 118%;
  }
  .container {
    max-width: 2040px;
  }
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.85rem;
  }
  .blog-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
  }
}

/* Standard Desktop for 4-card Blog Grid (1150px–1599px) */
@media (min-width: 1150px) and (max-width: 1599px) {
  .blog-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }
}

/* Tablets & Compact Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .header-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .search-box-wrap {
    order: 3;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Smartphones & Phablets (max-width: 768px) */
@media (max-width: 768px) {
  .top-promo-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
  .bilingual-brand-logo {
    gap: 0.55rem;
  }
  .brand-crest {
    width: 42px;
    height: 42px;
  }
  .brand-fa-title {
    font-size: 1.15rem;
  }
  .header-actions {
    gap: 0.35rem;
    flex-wrap: wrap;
  }
  .action-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.76rem;
  }
  .dept-hover-menu {
    position: fixed;
    top: auto;
    right: 0.75rem;
    left: 0.75rem;
    min-width: auto;
    max-width: none;
  }
  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .filter-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact Smartphones (max-width: 480px) */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .filter-controls {
    grid-template-columns: 1fr;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-group button {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Phase 12: Digikala-Style Multi-Angle Gallery, Numeric Size Pills,
   Key Garment Features, Full Spec Table & 4-Tab Product Detail View
   ========================================================================== */
.dk-gallery-main-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  aspect-ratio: 3 / 3.7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dk-gallery-main-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.dk-gallery-view-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dk-gallery-thumbs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.dk-gallery-thumb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.18s ease;
  overflow: hidden;
}

.dk-gallery-thumb-btn:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.dk-gallery-thumb-btn.active {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
  box-shadow: 0 4px 12px rgba(239, 57, 78, 0.2);
}

.dk-gallery-thumb-btn img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.dk-thumb-caption {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dk-gallery-thumb-btn.active .dk-thumb-caption {
  color: var(--brand-primary);
}

/* Numeric Size Pills in Product Detail Modal */
.dk-numeric-size-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  font-size: 0.83rem;
}

.dk-size-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.dk-size-num-badge {
  font-weight: 900;
  font-size: 0.88rem;
}

.dk-size-color-name {
  font-size: 0.78rem;
  opacity: 0.92;
}

.dk-size-stock-tag {
  font-size: 0.72rem;
  opacity: 0.78;
}

/* Digikala-Style Top Key Features Box */
.dk-key-features-box {
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.dk-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.dk-feature-chip {
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dk-feature-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}

.dk-feature-val {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 800;
}

.dk-view-all-specs-btn {
  margin-top: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: var(--bg-surface);
  color: var(--brand-primary);
  border: 1px dashed var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.dk-view-all-specs-btn:hover {
  background: var(--brand-primary-soft);
}

.dk-inline-link-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

.dk-inline-link-btn:hover {
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

/* 4-Tab Navigation Bar (معرفی | مشخصات | دیدگاه‌ها | پرسش‌ها) */
.dk-detail-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0.55rem;
}

.dk-detail-tab-btn {
  padding: 0.58rem 1.15rem;
  border-radius: 10px;
  background: var(--bg-control);
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.dk-detail-tab-btn:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.dk-detail-tab-btn.active {
  background: var(--brand-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 5px 14px rgba(225, 29, 72, 0.32);
}

.dk-intro-box {
  padding: 1.35rem;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  line-height: 2.05;
  text-align: justify;
  text-align-last: right;
}

.dk-specs-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dk-spec-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0.75rem;
  padding: 0.8rem 1.05rem;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  align-items: center;
}

.dk-spec-key {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.dk-spec-value {
  font-size: 0.87rem;
  color: var(--text-primary);
  line-height: 1.75;
}

.dk-review-card,
.dk-question-card {
  padding: 1.15rem;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.8rem;
  line-height: 1.9;
  text-align: justify;
  text-align-last: right;
}

.dk-admin-reply-box {
  margin-top: 0.65rem;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  background: var(--bg-surface);
  border-right: 4px solid var(--brand-primary);
}

@media (max-width: 768px) {
  .dk-gallery-thumbs-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .dk-features-grid {
    grid-template-columns: 1fr;
  }
  .dk-spec-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ==========================================================================
   Footer Icon-Only Theme Toggle Button (Phase 14: 🌙 / ☀️ without text)
   ========================================================================== */
.footer-theme-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-theme-icon-btn:hover {
  transform: scale(1.08);
  border-color: var(--brand-primary);
  background: var(--bg-subtle);
  box-shadow: var(--shadow-md);
}

.footer-theme-icon-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   Customer Testimonials Section (Phase 19: نظرات مشتریان — Weekly 7-Review Rotation)
   ========================================================================== */
.customer-testimonials-section {
  padding: 3rem 0 2.75rem;
  background: var(--bg-canvas);
  position: relative;
}

.testimonials-dashed-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  margin-bottom: 2.1rem;
}

.testimonials-dashed-line {
  flex: 1;
  max-width: 390px;
  height: 0;
  border-top: 2px dashed rgba(109, 40, 217, 0.32);
}

[data-theme="dark"] .testimonials-dashed-line {
  border-top-color: rgba(196, 181, 253, 0.28);
}

.testimonials-main-title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 900;
  color: #4c1d95;
  margin: 0;
  white-space: nowrap;
  letter-spacing: -0.015em;
}

[data-theme="dark"] .testimonials-main-title {
  color: #e9d5ff;
}

.testimonials-carousel-wrapper {
  position: relative;
}

.testimonials-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.testimonial-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem 1.65rem 1.85rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.07), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px -10px rgba(76, 29, 149, 0.14);
  border-color: rgba(109, 40, 217, 0.22);
}

[data-theme="dark"] .testimonial-card {
  background: #171722;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px -8px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .testimonial-card:hover {
  border-color: rgba(196, 181, 253, 0.35);
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.72);
}

.testimonial-quote-icon {
  position: absolute;
  width: 38px;
  height: 32px;
  color: rgba(148, 163, 184, 0.28);
  pointer-events: none;
  user-select: none;
}

[data-theme="dark"] .testimonial-quote-icon {
  color: rgba(148, 163, 184, 0.18);
}

.testimonial-quote-icon.top-left {
  top: 1.35rem;
  left: 1.35rem;
}

.testimonial-quote-icon.mid-right {
  top: 6.4rem;
  right: 1.55rem;
}

.testimonial-avatar-wrap {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.testimonial-avatar-svg {
  width: 74px;
  height: 74px;
  display: block;
}

.testimonial-avatar-head {
  fill: #9ca3af;
}

.testimonial-avatar-body {
  fill: #0f172a;
}

[data-theme="dark"] .testimonial-avatar-head {
  fill: #cbd5e1;
}

[data-theme="dark"] .testimonial-avatar-body {
  fill: #94a3b8;
}

.testimonial-author-name {
  font-size: 1.08rem;
  font-weight: 900;
  color: #4c1d95;
  margin: 0 0 0.35rem;
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .testimonial-author-name {
  color: #d8b4fe;
}

.testimonial-topic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.testimonial-quote-text {
  font-size: 0.88rem;
  line-height: 1.95;
  color: var(--text-secondary);
  margin: 0;
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 96%;
}

[data-theme="dark"] .testimonial-quote-text {
  color: #e2e8f0;
}

.testimonials-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.testimonials-pagination-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.testimonial-dot {
  height: 9px;
  width: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(109, 40, 217, 0.24);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
}

.testimonial-dot.active {
  width: 26px;
  background: #4c1d95;
}

[data-theme="dark"] .testimonial-dot {
  background: rgba(216, 180, 254, 0.25);
}

[data-theme="dark"] .testimonial-dot.active {
  background: #c084fc;
}

.testimonial-nav-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.testimonial-nav-arrow:hover {
  border-color: #4c1d95;
  color: #4c1d95;
  transform: scale(1.06);
}

[data-theme="dark"] .testimonial-nav-arrow:hover {
  border-color: #c084fc;
  color: #c084fc;
}

@media (max-width: 1024px) {
  .testimonials-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .testimonials-cards-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-dashed-header {
    gap: 0.75rem;
  }
}

/* ==========================================================================
   Accordion Rules & FAQ Section (Phase 20: قوانین و سوالات پرتکرار)
   ========================================================================== */
.faq-rules-section {
  padding: 2.75rem 0 3.25rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

[data-theme="dark"] .faq-rules-section {
  background: #101016;
}

.faq-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 2.15rem;
}

.faq-section-title {
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.faq-section-underline {
  display: block;
  width: 52px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  opacity: 0.75;
}

.faq-accordion-list {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.faq-accordion-item {
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.faq-accordion-item:hover {
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.06);
}

.faq-accordion-item.open {
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .faq-accordion-item {
  background: #181822;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .faq-accordion-item.open {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.55);
}

.faq-question-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  color: var(--text-primary);
  transition: background-color 0.18s ease;
}

.faq-question-bar:hover {
  background: rgba(15, 23, 42, 0.018);
}

[data-theme="dark"] .faq-question-bar:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-question-text {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.65;
}

.faq-chevron-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, color 0.2s ease;
}

.faq-accordion-item.open .faq-chevron-badge {
  transform: rotate(180deg);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

[data-theme="dark"] .faq-chevron-badge {
  background: #272736;
  color: #cbd5e1;
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: #f8f9fa;
  border-top: 0 solid transparent;
  transition: max-height 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, padding 0.24s ease;
  padding: 0 1.4rem;
}

.faq-accordion-item.open .faq-answer-panel {
  max-height: 360px;
  opacity: 1;
  padding: 1.1rem 1.4rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .faq-answer-panel {
  background: #13131b;
}

[data-theme="dark"] .faq-accordion-item.open .faq-answer-panel {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.faq-answer-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.95;
  color: var(--text-secondary);
  text-align: right;
}

/* ==========================================================================
   Phase 22: First-Layer Interactive Color Swatches on Product Cards
   ========================================================================== */
.card-colors-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.color-pill-first-layer {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.color-pill-first-layer:hover,
.color-pill-first-layer.active {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

.color-pill-first-layer .color-dot-mini {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

/* ==========================================================================
   Phase 23: Dedicated New-Tab Product Page, Side Image Arrows & Accordion Color/Size Selectors
   ========================================================================== */
.dedicated-product-page-section {
  padding: 1.5rem 0 2.5rem;
}

.dedicated-product-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dedicated-product-breadcrumb {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.dedicated-product-page-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.dk-gallery-main-stage {
  position: relative;
}

.dk-gallery-side-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.92);
  color: #18181B;
  font-size: 1.15rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: all 0.2s ease;
}

[data-theme="dark"] .dk-gallery-side-arrow {
  background: rgba(24, 24, 27, 0.88);
  color: #F4F4F6;
  border-color: rgba(255, 255, 255, 0.22);
}

.dk-gallery-side-arrow:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  transform: translateY(-50%) scale(1.07);
}

.dk-gallery-side-arrow.prev {
  right: 12px;
}

.dk-gallery-side-arrow.next {
  left: 12px;
}

.dk-gallery-dots-bar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 4;
}

.dk-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dk-gallery-dot.active {
  width: 20px;
  border-radius: 999px;
  background: #FFFFFF;
}

/* Accordion Dropdown Box for Color & Numeric Size */
.frf-accordion-dropdown-wrap {
  margin-bottom: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.frf-accordion-dropdown-wrap.open {
  border-color: var(--brand-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.frf-accordion-select-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: right;
  transition: background 0.18s ease;
}

.frf-accordion-select-btn:hover {
  background: var(--brand-primary-soft);
}

.frf-select-btn-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.frf-select-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.frf-accordion-dropdown-wrap.open .frf-select-arrow {
  transform: rotate(180deg);
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
}

.frf-accordion-options-panel {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  max-height: 270px;
  overflow-y: auto;
}

.frf-accordion-dropdown-wrap.open .frf-accordion-options-panel {
  display: flex;
}

.frf-accordion-option-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  background: transparent;
  color: var(--text-primary);
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: right;
  transition: background 0.15s ease;
}

.frf-accordion-option-row:last-child {
  border-bottom: none;
}

.frf-accordion-option-row:hover:not(:disabled) {
  background: var(--bg-subtle);
}

.frf-accordion-option-row.selected {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-weight: 900;
}

.frf-accordion-option-row:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.frf-option-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.frf-stock-status {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.frf-stock-status.in-stock {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

[data-theme="dark"] .frf-stock-status.in-stock {
  background: rgba(16, 185, 129, 0.22);
  color: #34D399;
}

.frf-stock-status.out-of-stock {
  background: rgba(239, 68, 68, 0.14);
  color: #DC2626;
}

[data-theme="dark"] .frf-stock-status.out-of-stock {
  background: rgba(239, 68, 68, 0.22);
  color: #F87171;
}

/* ==========================================================================
   Phase 24 (v6.18.0): Strict Separation of /admin (Admin Only) & / (Customer Only)
   ========================================================================== */
body:not(.admin-route-only) #btnAdminPanel,
body:not(.admin-route-only) #btnHeroDemoAdminLogin,
body:not(.admin-route-only) #seedTransparencyBanner {
  display: none !important;
}

body.admin-route-only #topPromoBar,
body.admin-route-only #seedTransparencyBanner,
body.admin-route-only .site-header,
body.admin-route-only .layer-blush-wrapper,
body.admin-route-only #farfaraStylesSection,
body.admin-route-only main.container,
body.admin-route-only #customerTestimonialsSection,
body.admin-route-only #blogMagazineSection,
body.admin-route-only #faqRulesSection,
body.admin-route-only .guarantees-ribbon-section,
body.admin-route-only .site-footer,
body.admin-route-only #cartDrawer,
body.admin-route-only #cartBackdrop,
body.admin-route-only #productDetailModal,
body.admin-route-only #wishlistModal,
body.admin-route-only #sizeFinderModal,
body.admin-route-only #checkoutModal,
body.admin-route-only #orderTrackModal,
body.admin-route-only #blogPostModal {
  display: none !important;
}

body.admin-route-only #adminModal [data-close-modal="adminModal"],
body.admin-route-only #authModal [data-close-modal="authModal"] {
  display: none !important;
}

body.admin-route-only #authModal.open {
  background: var(--bg-canvas) !important;
  backdrop-filter: none !important;
}

body.admin-route-only #adminModal.open {
  position: static !important;
  display: block !important;
  min-height: 100vh !important;
  width: 100% !important;
  padding: 1.5rem 1rem 3rem !important;
  background: var(--bg-canvas) !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  overflow: visible !important;
}

body.admin-route-only #adminModal.open .modal-dialog {
  max-width: 1280px !important;
  width: 100% !important;
  margin: 0 auto !important;
  max-height: none !important;
  overflow: visible !important;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Phase 28: Digikala-Style Compact Color & Size Selectors with Tooltips & Q&A
   ========================================================================== */
.dk-color-selection-section {
  margin-bottom: 1.15rem;
}

.dk-selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
}

.dk-color-header-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  color: var(--text-primary);
}

.dk-color-badge-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.dk-color-circles-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dk-color-circle-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dk-color-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 2.5px;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease;
  position: relative;
}

.dk-color-circle-btn:hover:not(:disabled) {
  transform: scale(1.08);
}

.dk-color-circle-btn.active {
  border-color: #18181B;
}

[data-theme="dark"] .dk-color-circle-btn.active {
  border-color: #FAFAFA;
}

.dk-color-circle-fill {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dk-color-check {
  font-size: 0.72rem;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  line-height: 1;
}

/* Floating dark tooltip on hover showing ONLY the color name */
.dk-color-floating-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #212121;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 60;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.dk-color-floating-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: #212121 transparent transparent transparent;
}

.dk-color-circle-wrapper:hover .dk-color-floating-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Compact Digikala-Style Numeric Size Selectors */
.dk-size-selection-section {
  margin-bottom: 1.25rem;
}

.dk-size-guide-link-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0284C7;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.dk-size-guide-link-btn:hover {
  color: #0369A1;
  text-decoration: underline;
}

.dk-size-boxes-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.dk-size-box-btn {
  min-width: 48px;
  height: 38px;
  padding: 0 0.85rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.dk-size-box-btn:hover:not(:disabled) {
  border-color: var(--brand-primary);
  background: var(--bg-subtle);
}

.dk-size-box-btn.active {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  font-weight: 900;
  box-shadow: 0 1px 3px rgba(225, 29, 72, 0.15);
}

.dk-size-check {
  font-size: 0.72rem;
  color: var(--brand-primary);
  line-height: 1;
}

.dk-size-box-btn:disabled,
.dk-size-box-btn.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
  background: var(--bg-subtle);
  border-color: var(--border-subtle);
}

/* Digikala Q&A Section Matching Screenshot */
.dk-qa-box {
  background: var(--bg-surface);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
}

.dk-qa-headline {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.dk-qa-textarea-wrap {
  position: relative;
  margin-bottom: 0.65rem;
}

.dk-qa-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.7;
  resize: vertical;
  min-height: 90px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dk-qa-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.dk-qa-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.dk-qa-rules-note {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.dk-qa-char-counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.dk-qa-submit-btn {
  padding: 0.65rem 1.75rem;
  border-radius: 8px;
  background: var(--brand-primary);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.dk-qa-submit-btn:hover {
  background: var(--brand-primary-hover, #BE123C);
  transform: translateY(-1px);
}

