/* Sara Hermes — Main Stylesheet | Luxury Fashion E-commerce */

:root {
  --bg: #fffcf8;
  --ivory: #f7f3ed;
  --nude: #e8dccf;
  --champagne: #d8c3a5;
  --black: #111;
  --gold: #b89a6a;
  --muted: rgba(17, 17, 17, 0.68);
  --border: rgba(17, 17, 17, 0.08);
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
  --radius: 20px;
  --container: 1320px;
  --t: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-vazir: "Vazirmatn", sans-serif;
  --font-serif: "Cormorant Garamond", serif;
  --font-fa-display: "El Messiri", "Vazirmatn", sans-serif;
  --neon-orange: #e07020;
  --neon-coffee: #d4a574;
  --neon-glow-en: 0 0 6px rgba(224, 112, 32, 0.75), 0 0 18px rgba(224, 112, 32, 0.45), 0 0 36px rgba(201, 120, 60, 0.25);
  --neon-glow-fa: 0 0 8px rgba(212, 165, 116, 0.7), 0 0 20px rgba(224, 112, 32, 0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-vazir);
  background: linear-gradient(180deg, var(--bg), var(--ivory));
  color: var(--black);
  direction: rtl;
  text-align: right;
  line-height: 1.9;
  overflow-x: hidden;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section.section-pad-top { padding-top: clamp(88px, 14vw, 120px); }
.page-hero { padding: 120px 0 48px; text-align: center; }
.page-hero .title { margin-bottom: 12px; }
.serif { font-family: var(--font-serif); letter-spacing: -0.03em; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-weight: 700; }
.title { font-size: clamp(2rem, 4vw, 4.5rem); line-height: 0.95; margin-bottom: 14px; }
.copy { color: var(--muted); max-width: 760px; font-size: 1rem; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* Buttons */
.btn-row, .buy-row, .social-bar { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; cursor: pointer; transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--black); color: #fff; box-shadow: 0 12px 26px rgba(17, 17, 17, 0.12); }
.btn-secondary { background: rgba(255, 255, 255, 0.55); border-color: rgba(17, 17, 17, 0.12); }
.btn-small { flex: 1; padding: 12px 14px; border-radius: 14px; font-size: 0.9rem; }
.btn-cart-lg {
  flex: 1.4; min-height: 52px; font-size: 1rem; gap: 10px;
  padding: 14px 20px;
}
.btn-cart-lg svg { width: 22px; height: 22px; }

/* Header — neon dark orange / coffee */
.header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(48, 26, 14, 0.96), rgba(32, 18, 10, 0.94));
  border-bottom: 1px solid rgba(224, 112, 32, 0.4);
  box-shadow: 0 0 28px rgba(224, 112, 32, 0.18), inset 0 -1px 0 rgba(212, 165, 116, 0.15);
}
.header.scrolled { box-shadow: 0 10px 36px rgba(224, 112, 32, 0.22), 0 0 40px rgba(48, 26, 14, 0.5); }
.nav-shell { padding-top: 10px; padding-bottom: 12px; }
.nav-row-brand {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  min-height: 64px;
  direction: ltr;
}
.menu-btn-corner {
  display: grid !important;
  justify-self: start;
  width: 46px; height: 46px;
}
.nav-brand-spacer { width: 46px; height: 46px; }
.logo-center {
  justify-self: center;
  text-align: center;
}
.logo-center .logo-en {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: 0.2em;
}
.logo-center .logo-fa {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: 0.14em;
  margin-top: 2px;
}
.nav-row-tools {
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px auto 10px;
  max-width: 720px;
}
.nav-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  color: rgba(255, 236, 214, 0.82);
  font-size: 0.92rem;
  flex-wrap: wrap;
}
.nav-links a { position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-orange), var(--neon-coffee));
  box-shadow: 0 0 8px rgba(224, 112, 32, 0.6);
  transform: scaleX(0); transform-origin: right; transition: transform var(--t);
}
.nav-links a:hover { color: #ffe0b8; }
.nav-links a:hover::after { transform: scaleX(1); }
.header .icon-btn {
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid rgba(224, 112, 32, 0.35);
  background: rgba(255, 176, 104, 0.08);
  color: #ffe0b8;
  display: grid; place-items: center; cursor: pointer;
  transition: transform var(--t), background var(--t), box-shadow var(--t);
}
.header .icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(224, 112, 32, 0.22);
  box-shadow: 0 0 14px rgba(224, 112, 32, 0.35);
}
.header .icon-btn-lg { width: 50px; height: 50px; }
.header .icon-btn-lg svg { width: 26px; height: 26px; }
.header .icon-btn-cart {
  box-shadow: 0 0 16px rgba(224, 112, 32, 0.35);
  border-color: rgba(255, 176, 104, 0.55);
}
.header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(224, 112, 32, 0.45);
  background: rgba(255, 176, 104, 0.1);
  color: #ffe8cc;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t), background var(--t), box-shadow var(--t);
}
.header-action:hover {
  transform: translateY(-2px);
  background: rgba(224, 112, 32, 0.22);
  box-shadow: 0 0 14px rgba(224, 112, 32, 0.35);
  color: #ffe8cc;
}
.header-action-cart,
.header-action-account {
  min-width: 148px;
  justify-content: center;
}
.header-action-cart {
  box-shadow: 0 0 14px rgba(224, 112, 32, 0.28);
}
.header-action-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.header-action-ico svg { width: 20px; height: 20px; display: block; }
.header-action-label {
  font-size: 0.88rem;
  font-weight: 600;
}
.header-action .cart-badge-lg {
  top: -6px;
  left: -4px;
}
.icon-wrap { position: relative; }
.cart-badge {
  min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--neon-orange); color: #fff;
  font-size: 0.7rem; display: grid; place-items: center;
  position: absolute; top: -4px; left: -4px; padding: 0 5px;
  box-shadow: 0 0 10px rgba(224, 112, 32, 0.55);
}
.cart-badge-lg {
  min-width: 20px; height: 20px; font-size: 0.75rem; top: -6px; left: -6px;
}
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  padding: 0 14px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(224, 112, 32, 0.45);
  background: rgba(255, 176, 104, 0.08);
  box-shadow: inset 0 0 0 1px rgba(212, 165, 116, 0.12), 0 0 12px rgba(224, 112, 32, 0.12);
  direction: rtl;
}
.header-search-ico { color: #ffb068; display: grid; place-items: center; flex-shrink: 0; }
.header-search-ico svg { width: 18px; height: 18px; }
.header-search input {
  flex: 1; min-width: 0; border: none; background: transparent; color: #ffe8cc;
  outline: none; font-size: 0.92rem;
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
.header-search input::placeholder {
  color: rgba(255, 224, 184, 0.55);
  direction: rtl;
  text-align: right;
  opacity: 1;
}
.header-search-results {
  position: absolute; top: calc(100% + 8px); right: 0; left: 0;
  background: #2a1810; border: 1px solid rgba(224, 112, 32, 0.35);
  border-radius: 16px; padding: 8px; z-index: 80; max-height: 320px; overflow: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.header-search-results .search-result { color: #ffe8cc; border-color: rgba(224,112,32,0.25); }
.search-icon-mobile { display: none !important; }
.logo, .neon-logo { white-space: nowrap; text-decoration: none; }
.neon-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.05;
}
.logo-en {
  font-family: var(--font-serif);
  font-weight: 700;
  text-transform: uppercase;
  color: #ffb068;
  text-shadow: var(--neon-glow-en);
}
.logo-fa {
  font-family: var(--font-fa-display);
  font-weight: 600;
  color: #f0d2a8;
  text-shadow: var(--neon-glow-fa);
}
.hide-mobile { display: grid; }
.float-social { display: none !important; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.5); display: grid; place-items: center; cursor: pointer;
  transition: transform var(--t), background var(--t);
}
.icon-btn:hover { transform: translateY(-2px); background: rgba(216, 195, 165, 0.14); }
.icon-btn svg, .bn-ico svg { width: 1.15em; height: 1.15em; display: block; }

/* Bottom mobile nav — physical left → right */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 55;
  direction: ltr;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(40, 22, 12, 0.97), rgba(24, 14, 8, 0.98));
  border-top: 1px solid rgba(224, 112, 32, 0.4);
  box-shadow: 0 -8px 28px rgba(224, 112, 32, 0.15);
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
.bottom-nav a, .bottom-nav .bn-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 0.68rem; color: rgba(255, 224, 184, 0.65);
  border-radius: 12px; padding: 6px 2px; position: relative;
  transition: color var(--t), background var(--t);
  background: transparent; border: none; cursor: pointer; font-family: inherit;
}
.bottom-nav a.active,
.bottom-nav a:hover,
.bottom-nav .bn-btn:hover,
.bottom-nav .bn-btn.active {
  color: #ffb068;
  background: rgba(224, 112, 32, 0.16);
  text-shadow: 0 0 10px rgba(224, 112, 32, 0.45);
}
.bottom-nav .bn-ico { font-size: 1.25rem; line-height: 1; display: grid; place-items: center; }
.bottom-nav .bn-ico svg { width: 22px; height: 22px; }
.bn-badge {
  position: absolute; top: 2px; left: 50%; margin-left: 8px;
  min-width: 16px; height: 16px; border-radius: 999px;
  background: var(--neon-orange); color: #fff; font-size: 0.65rem;
  display: grid; place-items: center; padding: 0 4px;
}

/* Mobile menu accordion */
.menu-accordion { margin: 0; }
.menu-acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(224, 112, 32, 0.2);
  background: rgba(224, 112, 32, 0.12); color: #ffe0b8; cursor: pointer; font: inherit;
}
.menu-acc-btn.open .menu-acc-chevron { transform: rotate(180deg); }
.menu-acc-chevron { transition: transform var(--t); display: inline-block; }
.menu-acc-panel {
  display: grid;
  gap: 6px;
  padding: 0 4px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 280ms ease, opacity 200ms ease, padding 200ms ease;
}
.menu-accordion.is-open .menu-acc-panel {
  max-height: 480px;
  opacity: 1;
  padding: 8px 4px 4px 12px;
}
.menu-acc-panel a, .menu-acc-link {
  padding: 10px 14px !important; font-size: 0.9rem !important;
  background: rgba(255,176,104,0.08) !important;
  display: block;
}

/* Stories */
.stories-rail {
  display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  width: 100%;
  justify-content: space-between;
}
.stories-rail::-webkit-scrollbar { display: none; }
.story-item {
  flex: 1 1 0; min-width: 64px; max-width: 88px; text-align: center; cursor: pointer; background: none; border: none; color: inherit; font: inherit;
}
.story-ring {
  width: min(100%, 72px); aspect-ratio: 1; height: auto; border-radius: 999px; padding: 3px;
  background: linear-gradient(135deg, #e07020, #d4a574, #ffb068);
  margin: 0 auto 6px; box-shadow: 0 0 14px rgba(224,112,32,0.35);
  position: relative;
}
.story-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; border: 2px solid #1a100a; display: block; }
.story-play {
  position: absolute; inset: 0; margin: auto; width: 22px; height: 22px;
  border-radius: 999px; background: rgba(0,0,0,0.55); color: #fff;
  display: grid; place-items: center; font-size: 0.65rem; pointer-events: none;
  box-shadow: 0 0 8px rgba(0,0,0,0.35);
}
.story-item span { font-size: 0.72rem; color: var(--muted); display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-viewer {
  position: fixed; inset: 0; z-index: 300; background: rgba(10,6,4,0.94);
  display: none; place-items: center; padding: 20px;
}
.story-viewer.open { display: grid; }
.story-viewer-media {
  width: min(100%, 420px); max-height: 80vh;
  display: grid; place-items: center;
}
.story-viewer img,
.story-viewer video {
  width: 100%; max-height: 80vh; border-radius: 18px; object-fit: contain; background: #111;
}
.story-viewer video[hidden],
.story-viewer img[hidden] { display: none !important; }
.story-progress {
  position: absolute; top: 12px; left: 16px; right: 56px; height: 3px;
  background: rgba(255,255,255,0.2); border-radius: 999px; overflow: hidden;
}
.story-progress-bar {
  height: 100%; width: 0%; background: linear-gradient(90deg, #ffb068, #e07020);
  border-radius: inherit;
}
.story-viewer-cta {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
}
.story-viewer-close {
  position: absolute; top: 18px; left: 18px; width: 44px; height: 44px; border-radius: 999px;
  border: none; background: rgba(255,255,255,0.12); color: #fff; font-size: 1.2rem; cursor: pointer; z-index: 2;
}
.story-viewer-title { position: absolute; top: 24px; right: 24px; color: #ffe8cc; font-weight: 600; }

/* Color swatches & size chart */
.option.color-opt { display: inline-flex; align-items: center; gap: 8px; }
.color-dot {
  width: 16px; height: 16px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35); flex-shrink: 0;
}
.size-chart-wrap { margin-top: 20px; overflow: auto; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.size-chart-wrap table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.size-chart-wrap th, .size-chart-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: center; }
.size-chart-wrap th { background: rgba(247,243,237,0.9); font-weight: 700; }
.product-code { color: var(--muted); font-size: 0.95rem; margin: 6px 0 12px; font-weight: 600; }
.product-code-card { color: var(--muted); font-size: 0.78rem; margin: 0 0 6px; }
.size-chart-title { font-weight: 700; margin: 18px 0 8px; font-size: 0.95rem; }
.about-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.about-social a {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; font-weight: 600; transition: transform var(--t);
}
.about-social a:hover { transform: translateY(-2px); }
.about-social svg { width: 22px; height: 22px; }
.about-social .wa { color: #25d366; }
.about-social .ig { color: #dc2743; }
.about-social .tg { color: #2aabee; }
.about-social .bale { color: #00aaff; }
.about-social .eitaa { color: #f39c12; }
.color-check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.color-check-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff;
}
.color-check-item input { accent-color: var(--neon-orange); }
.color-img-row { display: grid; gap: 8px; margin-top: 10px; }

/* Hero Slider */
.hero-slider { position: relative; min-height: calc(100vh - 84px); overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 800ms ease;
  display: grid; align-items: end; padding: 48px;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,17,17,.55), rgba(17,17,17,.1)); }
.hero-slide.hero-slide-bare::before { display: none; }
.hero-slide-hit { position: absolute; inset: 0; z-index: 2; }
.hero-slide-content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.hero-slide-content h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 0.95; margin-bottom: 16px; }
.hero-slide-content p { opacity: 0.9; margin-bottom: 24px; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 999px; border: 1px solid #fff; background: transparent; cursor: pointer; }
.hero-dot.active { background: #fff; }

/* Promo Banner */
.promo-banner {
  background: var(--black); color: #fff; text-align: center; padding: 12px 16px;
  font-size: 0.88rem; letter-spacing: 0.06em;
}
.promo-banner .countdown { display: inline-flex; gap: 12px; margin-right: 16px; }
.promo-banner .countdown span { font-weight: 700; }
.promo-banner .countdown small { font-size: 0.7rem; opacity: 0.7; margin-right: 4px; }

/* Product Cards */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: rgba(255, 252, 248, 0.95); border: 1px solid var(--border); border-radius: 22px;
  overflow: hidden; box-shadow: 0 14px 34px rgba(17, 17, 17, 0.05);
  transition: transform var(--t), box-shadow var(--t);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(17, 17, 17, 0.09); }
.product-image { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-overlay {
  position: absolute; inset: 0; background: rgba(17,17,17,.25); display: grid; place-items: center;
  opacity: 0; transition: opacity var(--t);
}
.product-card:hover .product-overlay { opacity: 1; }
.tag {
  position: absolute; top: 14px; right: 14px; padding: 8px 10px; border-radius: 999px;
  background: rgba(255, 252, 248, 0.9); border: 1px solid rgba(17, 17, 17, 0.08);
  font-size: 0.72rem; letter-spacing: 0.12em; z-index: 2;
}
.wishlist-btn {
  position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid rgba(17,17,17,.08); background: rgba(255,252,248,.9); cursor: pointer; z-index: 2;
  transition: background var(--t), color var(--t);
}
.wishlist-btn.active { background: var(--black); color: #fff; }
.product-info { padding: 18px; }
.product-info h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 6px; line-height: 1.1; }
.product-info p { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { font-size: 0.76rem; padding: 7px 10px; border-radius: 999px; background: rgba(232, 220, 207, 0.5); border: 1px solid rgba(17, 17, 17, 0.06); }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-weight: 800; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 0.85rem; margin-left: 8px; font-weight: 400; }

/* Filters */
.filters-wrap { background: rgba(255, 252, 248, 0.9); border: 1px solid var(--border); border-radius: 24px; padding: 20px; margin-bottom: 28px; }
.filters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; color: rgba(17, 17, 17, 0.72); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(17, 17, 17, 0.1); background: #fff; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--gold); }
.field-error { color: #a33; font-size: 0.82rem; margin-top: 4px; }

/* Product Detail */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.gallery-main { aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); position: relative; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-main.zoomed img { transform: scale(1.8); transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.thumb-btn { padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; cursor: pointer; background: none; transition: border-color var(--t); }
.thumb-btn.active, .thumb-btn:hover { border-color: var(--gold); }
.product-panel { background: rgba(255, 252, 248, 0.95); border: 1px solid var(--border); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); position: sticky; top: 104px; }
.option-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 18px; }
.option { padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(17, 17, 17, 0.12); background: #fff; cursor: pointer; transition: background var(--t); }
.option.active { background: var(--black); color: #fff; border-color: var(--black); }
.rating { color: #b58a2c; font-weight: 700; margin: 12px 0; }

/* Categories */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 3/4; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms; }
.category-card:hover img { transform: scale(1.05); }
.category-card-overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,17,17,.6), transparent);
  display: flex; flex-direction: column; justify-content: end; padding: 24px; color: #fff;
}
.category-card-overlay h3 { font-family: var(--font-serif); font-size: 1.8rem; }

/* Lookbook & Instagram — full-width rows */
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
}
.lookbook-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  min-width: 0;
}
.lookbook-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.lookbook-item:hover img { transform: scale(1.05); }
.lookbook-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17,17,17,.55) 0%, transparent 45%);
  pointer-events: none;
}
.lookbook-item span {
  position: absolute;
  bottom: 14px;
  right: 14px;
  left: 14px;
  z-index: 1;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  width: 100%;
}
.insta-grid a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  min-width: 0;
  background: var(--sand, #f3eee6);
}
.insta-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t);
}
.insta-grid a:hover img { transform: scale(1.08); }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: 100%;
  align-items: stretch;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.testimonial-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 16px;
}
.testimonial-card blockquote {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 16px;
  flex: 1;
}
.testimonial-card .testimonial-stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.testimonial-card cite { font-style: normal; font-weight: 700; display: block; }
.testimonial-card span { font-size: 0.85rem; color: var(--gold); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: #fff; transition: transform var(--t); }
.blog-card:hover { transform: translateY(-4px); }
.blog-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 8px; }

/* FAQ Accordion */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-q { width: 100%; padding: 18px 20px; text-align: right; background: none; border: none; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; color: var(--muted); }
.faq-item.open .faq-a { max-height: 200px; padding: 0 20px 18px; }

/* Forms & Auth */
.form-card { max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.form-card h1 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 8px; text-align: center; }
.form-card .field { margin-bottom: 16px; }
.form-card .btn { width: 100%; margin-top: 8px; }
.form-links { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.form-links a { color: var(--gold); text-decoration: underline; }

/* Dashboard */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.dashboard-nav { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 16px; position: sticky; top: 104px; }
.dashboard-nav a { display: block; padding: 12px 14px; border-radius: 12px; margin-bottom: 4px; transition: background var(--t); }
.dashboard-nav a:hover, .dashboard-nav a.active { background: rgba(232, 220, 207, 0.5); }
.dashboard-content { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; min-height: 400px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { padding: 20px; border-radius: 16px; background: rgba(247, 243, 237, 0.8); border: 1px solid var(--border); }
.stat-card strong { display: block; font-size: 1.8rem; font-family: var(--font-serif); }

/* Cart & Checkout */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 16px; border-bottom: 1px solid var(--border); text-align: right; }
.cart-table img { width: 72px; height: 88px; object-fit: cover; border-radius: 12px; }
.checkout-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; }
.order-summary { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; position: sticky; top: 104px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); }
.summary-row.total { font-weight: 800; color: var(--black); font-size: 1.1rem; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.coupon-row { display: flex; gap: 10px; margin: 16px 0; }

/* Drawer & Overlay */
.overlay { position: fixed; inset: 0; background: rgba(17, 17, 17, 0.34); opacity: 0; pointer-events: none; transition: opacity var(--t); z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(420px, 100%); background: #fff; z-index: 100;
  transform: translateX(-100%); transition: transform var(--t); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-header, .drawer-footer { padding: 18px; border-bottom: 1px solid var(--border); }
.drawer-footer { border-bottom: none; border-top: 1px solid var(--border); margin-top: auto; }
.drawer-body { padding: 18px; overflow: auto; flex: 1; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-thumb { width: 72px; height: 88px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qty-controls { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 4px 8px; }
.qty-controls button { width: 28px; height: 28px; border-radius: 999px; border: none; background: #f4f4f4; cursor: pointer; }

/* Mobile Menu & Search — opens from left (physical left) */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: auto; bottom: 0; width: min(320px, 92%);
  max-height: 100vh; max-height: 100dvh;
  background: linear-gradient(180deg, #2a1810, #1a100a); color: #ffe8cc; z-index: 110;
  transform: translateX(-105%); transition: transform var(--t);
  box-shadow: 8px 0 32px rgba(224, 112, 32, 0.2);
  padding: 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-top {
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0; gap: 12px; padding-bottom: 8px;
  position: sticky; top: 0; z-index: 2;
  background: linear-gradient(180deg, #2a1810 70%, rgba(42,24,16,0));
}
.mobile-menu .logo-en { font-size: 1.2rem; }
.mobile-menu .logo-fa { font-size: 0.9rem; }
.mobile-menu nav {
  display: grid; gap: 8px; margin-top: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(224,112,32,0.55) transparent;
}
.mobile-menu nav::-webkit-scrollbar { width: 6px; }
.mobile-menu nav::-webkit-scrollbar-thumb {
  background: rgba(224,112,32,0.55); border-radius: 999px;
}
.mobile-menu nav a {
  padding: 12px 14px; border-radius: 14px;
  background: rgba(224, 112, 32, 0.12); color: #ffe0b8;
  border: 1px solid rgba(224, 112, 32, 0.2);
}
.mobile-menu nav a:hover { background: rgba(224, 112, 32, 0.25); }
.mobile-menu .icon-btn {
  border-color: rgba(224, 112, 32, 0.35);
  background: rgba(255, 176, 104, 0.08);
  color: #ffe0b8;
}
.search-modal {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: start center; padding: 100px 16px 24px;
  opacity: 0; pointer-events: none; transition: opacity var(--t);
}
.search-modal.open { opacity: 1; pointer-events: auto; }
.search-panel { width: min(100%, 560px); background: #fff; border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); padding: 18px; }
.search-panel input[type="search"] { direction: rtl; text-align: right; width: 100%; }
.search-results { margin-top: 14px; display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.search-result { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--border); transition: background var(--t); }
.search-result:hover { background: rgba(232, 220, 207, 0.5); }
.search-result img { width: 52px; height: 62px; object-fit: cover; border-radius: 10px; }
.search-hint { color: var(--muted); padding: 12px 4px; }
.search-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

/* Footer */
.footer { padding: 48px 0 56px; border-top: 1px solid var(--border); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.footer h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.footer p, .footer a { color: var(--muted); font-size: 0.94rem; }
.footer-links { display: grid; gap: 10px; }
.footer-social {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border);
}
.footer-social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(17,17,17,0.1); background: #fff;
  color: var(--ink) !important; font-size: 0.85rem !important; font-weight: 600;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.footer-social-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
.footer-social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-social-btn.wa { color: #128c7e !important; border-color: rgba(37,211,102,0.35); }
.footer-social-btn.ig { color: #c13584 !important; border-color: rgba(220,39,67,0.3); }
.footer-social-btn.tg { color: #229ed9 !important; border-color: rgba(42,171,238,0.35); }
.footer-social-btn.bale { color: #0091ea !important; border-color: rgba(0,170,255,0.35); }
.footer-social-btn.eitaa { color: #d68910 !important; border-color: rgba(243,156,18,0.35); }
.footer-bottom { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; color: rgba(17, 17, 17, 0.58); font-size: 0.9rem; flex-wrap: wrap; }
.newsletter-form { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 180px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border); }

/* Floating Social */
.float-social { position: fixed; bottom: 24px; left: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.float-btn {
  width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center;
  color: #fff; box-shadow: var(--shadow); transition: transform var(--t);
}
.float-btn svg { width: 22px; height: 22px; display: block; }
.float-btn:hover { transform: scale(1.08); }
.float-btn.wa { background: #25d366; }
.float-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.float-btn.tg { background: #2aabee; }
.float-btn.bale { background: #00aaff; }
.float-btn.eitaa { background: #f39c12; }

/* Map */
.map-wrap { border-radius: 22px; overflow: hidden; border: 1px solid var(--border); margin-top: 28px; aspect-ratio: 21/9; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Animations */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--black); color: #fff; padding: 14px 22px; border-radius: 999px; z-index: 200;
  opacity: 0; transition: opacity 300ms, transform 300ms;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Skeleton & Loader */
.page-loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: grid; place-items: center; transition: opacity 400ms;
}
.page-loader.hide { opacity: 0; pointer-events: none; }
.loader-brand { font-size: 2rem; letter-spacing: 0.2em; margin-bottom: 20px; }
.loader-spinner { width: 40px; height: 40px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 999px; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
.skeleton-img { aspect-ratio: 4/5; }
.skeleton-text { height: 16px; margin: 10px 0; }
.skeleton-text.short { width: 60%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); grid-column: 1 / -1; }
.cart-empty { color: var(--muted); padding: 20px 0; line-height: 2; }
.cart-empty a { color: var(--gold); text-decoration: underline; }
.remove-btn { color: #a33; background: none; border: none; cursor: pointer; }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; min-height: 100dvh; }
.admin-sidebar { background: var(--black); color: #fff; padding: 24px 16px; }
.admin-sidebar .logo { color: #fff; font-size: 1.2rem; margin-bottom: 28px; display: block; }
.admin-sidebar nav a { display: block; padding: 10px 14px; border-radius: 10px; color: rgba(255,255,255,.7); margin-bottom: 4px; font-size: 0.9rem; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(184,154,106,.25); color: #fff; }
.admin-main { padding: 28px; background: var(--ivory); min-width: 0; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 12px; flex-wrap: wrap; }
.admin-header h1 { font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.2; }
.admin-table { width: 100%; background: #fff; border-radius: 16px; border: 1px solid var(--border); border-collapse: collapse; overflow: hidden; }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.admin-table th { background: rgba(247,243,237,.8); font-weight: 700; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.admin-stat { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.admin-stat strong { display: block; font-size: 1.6rem; font-family: var(--font-serif); word-break: break-word; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff3e0; color: #e65100; }
.badge-danger { background: #ffebee; color: #c62828; }

/* Admin chrome (mobile topbar + drawer) */
.admin-topbar {
  display: none; position: sticky; top: 0; z-index: 160;
  align-items: center; gap: 10px;
  padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(255,252,248,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.admin-topbar .admin-topbar-title { font-weight: 700; font-size: 0.95rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-menu-btn {
  display: none; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px; border: 1px solid var(--border); background: #fff;
  font-size: 1.25rem; cursor: pointer; place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.admin-sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 170;
  opacity: 0; pointer-events: none; transition: opacity 200ms;
}
.admin-sidebar-overlay.open { display: block; opacity: 1; pointer-events: auto; }
.admin-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; }
.admin-modal[hidden] { display: none !important; }
.admin-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.admin-modal-panel { position: relative; background: #fff; border-radius: 20px; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 24px 64px rgba(0,0,0,.15); }
.admin-modal-header, .admin-modal-footer { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); gap: 10px; flex-wrap: wrap; }
.admin-modal-footer { border-bottom: none; border-top: 1px solid var(--border); justify-content: flex-end; gap: 10px; }
.admin-modal-body { padding: 20px; display: grid; gap: 14px; }
.upload-row { display: grid; gap: 8px; }
.upload-preview { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; margin-top: 8px; }
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-actions .btn { white-space: nowrap; }

/* ========== Responsive ========== */
html { -webkit-text-size-adjust: 100%; }
img, video, iframe { max-width: 100%; height: auto; }
.product-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1100px) {
  .products-grid, .categories-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .filters-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout, .checkout-layout, .footer-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-layout { grid-template-columns: 1fr; gap: 16px; }
  .lookbook-grid { grid-template-columns: repeat(3, 1fr); }
  .insta-grid { grid-template-columns: repeat(4, 1fr); }
  .product-panel, .order-summary { position: static; }
  /* Admin mobile shell */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-topbar { display: flex; }
  .admin-menu-btn { display: grid; }
  .admin-sidebar {
    display: block !important; position: fixed; top: 0; right: 0; bottom: 0;
    width: min(300px, 88vw); z-index: 180; overflow-y: auto;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    box-shadow: -12px 0 40px rgba(0,0,0,.25);
    transform: translateX(105%);
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar nav a { padding: 14px 16px; font-size: 0.95rem; min-height: 48px; display: flex; align-items: center; }
  .admin-main { padding: 16px 12px 32px; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .admin-stat { padding: 14px; }
  .admin-stat strong { font-size: 1.25rem; }
  .admin-header { margin-bottom: 16px; }
  .admin-header .btn, .admin-header .btn-primary { width: 100%; }
  .admin-modal { padding: 8px; align-items: flex-end; }
  .admin-modal-panel { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; }
  .cart-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Admin tables → cards on phone/tablet */
  .admin-table-wrap { overflow: visible; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody { display: block; width: 100%; }
  .admin-table tr {
    display: block; background: #fff; border: 1px solid var(--border);
    border-radius: 16px; padding: 12px 14px; margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(17,17,17,.04);
  }
  .admin-table td {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
    border: none; padding: 8px 0; font-size: 0.88rem; text-align: left;
  }
  .admin-table td::before {
    content: attr(data-label);
    font-weight: 700; color: var(--muted); font-size: 0.78rem;
    flex: 0 0 36%; text-align: right;
  }
  .admin-table td:first-child { display: block; padding-bottom: 10px; border-bottom: 1px dashed var(--border); margin-bottom: 4px; }
  .admin-table td:first-child::before { display: none; }
  .admin-table td:last-child { padding-top: 10px; border-top: 1px dashed var(--border); margin-top: 4px; display: block; }
  .admin-table td:last-child::before { display: none; }
  .admin-table .admin-actions { justify-content: stretch; }
  .admin-table .admin-actions .btn { flex: 1; min-height: 42px; }
  .admin-table select { max-width: 100%; font-size: 16px; min-height: 42px; }
  .dashboard-nav {
    position: static; display: flex; gap: 8px; overflow-x: auto;
    -webkit-overflow-scrolling: touch; padding: 12px; white-space: nowrap;
    scrollbar-width: none;
  }
  .dashboard-nav::-webkit-scrollbar { display: none; }
  .dashboard-nav a {
    display: inline-block; margin: 0; flex: 0 0 auto;
    padding: 10px 14px; font-size: 0.85rem;
  }
}

@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .nav-row-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    margin: 4px auto 8px;
    max-width: 100%;
    direction: ltr;
  }
  .nav-row-tools .header-search {
    display: flex;
    grid-column: 1 / -1;
    order: 1;
    flex: unset;
    min-width: 0;
    max-width: none;
    width: 100%;
    height: 44px;
    border-radius: 14px;
  }
  .search-icon-mobile { display: none !important; }
  .header-wishlist { display: none !important; }
  .header-action {
    min-height: 44px;
    min-width: 0;
    width: 100%;
    padding: 0 12px;
    gap: 6px;
    justify-content: center;
  }
  .header-action-cart,
  .header-action-account { min-width: 0; flex: unset; }
  .header-action-cart { order: 2; justify-self: stretch; }
  .header-action-account { order: 3; justify-self: stretch; }
  .header-action-label { font-size: 0.78rem; }
  .header-action-ico svg { width: 18px; height: 18px; }
  .nav-row-brand { min-height: 56px; }
  .logo-center .logo-en { font-size: 1.15rem; letter-spacing: 0.1em; }
  .logo-center .logo-fa { font-size: 0.8rem; }
  .header .icon-btn, .icon-btn { width: 40px; height: 40px; }
  .header .icon-btn-lg { width: 44px; height: 44px; }
  .header .icon-btn-lg svg { width: 22px; height: 22px; }
  .bottom-nav { display: grid; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .container { width: min(100% - 24px, var(--container)); }
  .section { padding: 40px 0; }
  .page-hero { padding: 80px 0 24px; }
  .section.section-pad-top { padding-top: 80px; }
  .title { font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1.15; }
  .promo-banner {
    display: flex; flex-direction: column; gap: 6px; align-items: center;
    font-size: 0.78rem; padding: 10px 12px; letter-spacing: 0;
  }
  .promo-banner .countdown { margin: 0; gap: 8px; flex-wrap: wrap; justify-content: center; }
  .hero-slider { min-height: 72vh; min-height: 72dvh; }
  .hero-slide { padding: 24px 18px 56px; align-items: end; }
  .hero-slide-content h1 { font-size: clamp(2rem, 9vw, 3.2rem); }
  .hero-slide-content p { font-size: 0.92rem; margin-bottom: 16px; }
  .hero-dots { bottom: 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { border-radius: 16px; }
  .product-info { padding: 12px; }
  .product-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
  .product-info p, .product-desc { font-size: 0.78rem; margin-bottom: 8px; line-height: 1.5; }
  .meta { margin-bottom: 8px; gap: 4px; }
  .chip { font-size: 0.68rem; padding: 4px 8px; }
  .price { font-size: 0.88rem; }
  .buy-row { gap: 6px; }
  .btn-small { padding: 10px 8px; font-size: 0.78rem; border-radius: 12px; }
  .product-overlay { display: none; }
  .tag { top: 8px; right: 8px; padding: 5px 8px; font-size: 0.65rem; }
  .wishlist-btn { top: 8px; left: 8px; width: 32px; height: 32px; font-size: 0.9rem; }
  .stock-badge { bottom: 8px; right: 8px; font-size: 0.65rem; padding: 3px 7px; }
  .filters-wrap { padding: 14px; border-radius: 16px; }
  .filters-grid { grid-template-columns: 1fr; gap: 10px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card-overlay { padding: 14px; }
  .category-card-overlay h3 { font-size: 1.2rem; }
  .lookbook-grid, .insta-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .blog-grid, .testimonials-grid, .stats-grid { grid-template-columns: 1fr; }
  .gallery-main { border-radius: 16px; }
  .product-panel { padding: 18px; border-radius: 16px; }
  .form-card { padding: 20px 16px; border-radius: 18px; margin: 0 4px; }
  .dashboard-content { padding: 18px 14px; border-radius: 16px; }
  .stat-card strong { font-size: 1.4rem; }
  .footer { padding: 36px 0 100px; }
  .footer-grid { gap: 24px; }
  .footer-social { gap: 8px; }
  .footer-social-btn { padding: 9px 12px; font-size: 0.8rem !important; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form .btn { width: 100%; }
  .map-wrap { aspect-ratio: 4/3; }
  .mobile-menu { width: min(100%, 340px); padding: 16px; padding-top: max(16px, env(safe-area-inset-top)); }
  .mobile-menu nav a { font-size: 0.95rem; padding: 14px 16px; }
  .search-modal { padding: 72px 12px 24px; }
  .drawer { width: min(100%, 400px); }
  .toast { left: 12px; right: 12px; transform: translateY(20px); width: auto; text-align: center; font-size: 0.9rem; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .toast.show { transform: translateY(0); }
  .btn-row, .coupon-row { flex-direction: column; align-items: stretch; }
  .admin-header { flex-direction: column; align-items: stretch; gap: 12px; }
  .reward-grid { grid-template-columns: 1fr 1fr; }
  .order-timeline { flex-wrap: wrap; gap: 12px; }
  .order-timeline::before { display: none; }
  .order-timeline .step { flex: 0 0 30%; }
  /* Cart: card layout instead of wide table */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table { min-width: 0 !important; }
  .cart-table tr {
    border: 1px solid var(--border); border-radius: 16px; padding: 12px;
    margin-bottom: 12px; background: #fff;
  }
  .cart-table td {
    border: none; padding: 6px 0; display: flex;
    justify-content: space-between; align-items: center; gap: 10px;
  }
  .cart-table td:first-child { display: block; }
  .cart-table img { width: 64px; height: 80px; }
}

@media (max-width: 480px) {
  .nav { height: 58px; }
  .logo { font-size: 1rem; letter-spacing: 0.04em; }
  .products-grid { gap: 8px; }
  .product-info h3 { font-size: 0.95rem; }
  .hero-slider { min-height: 64vh; min-height: 64dvh; }
  .admin-stat-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .btn { padding: 12px 16px; }
  .field input, .field select, .field textarea { padding: 12px 14px; font-size: 16px; /* prevent iOS zoom */ }
  #detailAddCart, #detailBuyNow { flex: 1; min-height: 48px; }
  .buy-row { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 12px 0 8px; z-index: 5; margin: 0 -4px; }
  .product-panel .buy-row { margin: 0; padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Stock badges */
.stock-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.02em;
}
.stock-badge.low { background: #fff3e0; color: #e65100; }
.stock-badge.oos { background: #ffebee; color: #c62828; }
.stock-badge.soon { background: #e3f2fd; color: #1565c0; }
.stock-badge.ok { background: #e8f5e9; color: #2e7d32; }
.product-card .stock-badge { position: absolute; bottom: 12px; right: 12px; z-index: 2; }
.product-card.is-oos { opacity: 0.72; }
.product-card.is-oos .buy-row [data-add-cart] { pointer-events: none; opacity: 0.45; }

/* Order timeline */
.order-timeline {
  display: flex; justify-content: space-between; gap: 8px; margin: 28px 0 20px;
  position: relative; padding: 0 4px;
}
.order-timeline::before {
  content: ''; position: absolute; top: 14px; right: 8%; left: 8%;
  height: 2px; background: var(--border); z-index: 0;
}
.order-timeline .step {
  flex: 1; text-align: center; position: relative; z-index: 1; font-size: 0.72rem; color: var(--muted);
}
.order-timeline .step .dot {
  width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 8px;
  background: #fff; border: 2px solid var(--border); display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700;
}
.order-timeline .step.done .dot,
.order-timeline .step.active .dot {
  background: var(--black); color: #fff; border-color: var(--black);
}
.order-timeline .step.active { color: var(--black); font-weight: 700; }
.order-timeline .step.done { color: var(--gold); }

/* Loyalty */
.loyalty-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #3d3428 55%, #b89a6a 140%);
  color: #fff; border-radius: 20px; padding: 28px 24px; margin-bottom: 24px;
}
.loyalty-hero .tier { font-family: var(--font-serif); font-size: 2rem; margin: 8px 0; }
.loyalty-progress {
  height: 8px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; margin-top: 14px;
}
.loyalty-progress > span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.reward-card {
  border: 1px solid var(--border); border-radius: 16px; padding: 16px; background: #fff;
}
.reward-card.unlocked { border-color: var(--gold); box-shadow: 0 8px 24px rgba(184,154,106,.12); }

/* Wallet */
.wallet-balance {
  font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); margin: 8px 0 20px;
}

/* Review meta chips */
.review-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.review-meta span {
  font-size: 0.75rem; background: var(--ivory); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 10px; color: var(--muted);
}
.review-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; margin-top: 10px; }

/* Report bars */
.report-bar-row { display: grid; grid-template-columns: 90px 1fr 80px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 0.85rem; }
.report-bar { height: 10px; background: var(--ivory); border-radius: 999px; overflow: hidden; }
.report-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--champagne), var(--gold)); }

/* sticky product CTA safe area */
@supports (padding: max(0px)) {
  .drawer-footer { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}
