﻿/* ============================================
   پته نازگل — Pateh Nazgol
   Design tokens & global styles
   ============================================ */

:root {
  /* Warm Pateh-inspired palette */
  --bg: #F4EAD2;            /* cream wool */
  --bg-soft: #FAF3E2;       /* lighter paper */
  --bg-deep: #EADBB8;       /* darker cream */
  --paper: #FFFBF1;
  --ink: #2B1D14;           /* warm near-black */
  --ink-soft: #6B5645;
  --ink-mute: #9A8369;
  --border: #E0CFA8;
  --border-soft: #EFE2C2;

  --red: #B23A2A;           /* madder / pateh red */
  --red-deep: #8C2A1F;
  --teal: #1F5F66;          /* deep peacock */
  --teal-soft: #2D7A82;
  --gold: #D4A03A;          /* saffron */
  --indigo: #2B3F6E;
  --moss: #6B7A3A;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(43, 29, 20, 0.06), 0 0 0 1px rgba(43, 29, 20, 0.04);
  --shadow: 0 8px 24px -10px rgba(43, 29, 20, 0.18), 0 2px 6px rgba(43, 29, 20, 0.05);
  --shadow-lg: 0 24px 60px -20px rgba(43, 29, 20, 0.25);

  --font-body: "Vazirmatn", "Estedad", system-ui, -apple-system, sans-serif;
  --font-display: "Estedad", "Vazirmatn", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  /* Subtle pateh-paper texture */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(178, 58, 42, 0.04) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(31, 95, 102, 0.04) 0%, transparent 35%),
    repeating-linear-gradient(0deg, rgba(43, 29, 20, 0.012) 0px, rgba(43, 29, 20, 0.012) 1px, transparent 1px, transparent 3px);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { margin: 0; }

/* ============= App shell ============= */
#root { min-height: 100vh; }

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============= Header ============= */
.topbar {
  background: var(--ink);
  color: var(--bg);
  font-size: 12.5px;
  padding: 8px 0;
  letter-spacing: 0.01em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar .marquee {
  display: flex;
  gap: 32px;
  align-items: center;
  color: rgba(244, 234, 210, 0.85);
}
.topbar .marquee span:not(:last-child)::after {
  content: "•";
  margin-right: 32px;
  color: var(--gold);
}
.topbar-right {
  display: flex;
  gap: 14px;
  align-items: center;
}
.topbar-right .sep { opacity: 0.5; }
.topbar-right a { cursor: pointer; opacity: 0.85; transition: opacity 0.15s; }
.topbar-right a:hover { opacity: 1; color: var(--gold); }
.topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
}

.header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
}
.logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text .fa {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo-text .en {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  margin-top: 4px;
  font-family: var(--font-body);
}

.nav {
  display: flex;
  gap: 28px;
  justify-content: center;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
  transition: color 0.15s;
  cursor: pointer;
}
.nav a:hover { color: var(--red); }
.nav a.active { color: var(--red); }
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.15s;
  position: relative;
}
.icon-btn:hover { background: var(--bg); }

/* Minimal account control: icon + short label (login / panel / logout) */
.header-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.header-account .ti {
  display: inline-flex;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.header-account__label {
  color: var(--ink);
}
.header-account:hover {
  background: var(--bg-deep);
  border-color: var(--border-soft);
}
.header-account:hover .ti {
  color: var(--ink);
}
.header-account--muted {
  padding: 0 8px;
  color: var(--ink-soft);
  font-weight: 400;
}
.header-account--muted .header-account__label {
  color: var(--ink-soft);
}
.header-account--muted:hover .header-account__label {
  color: var(--red);
}
.icon-btn .badge {
  position: absolute;
  top: 2px;
  left: 2px;
  background: var(--red);
  color: white;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0 4px;
}
.icon-btn .badge[hidden] { display: none; }

.header-search {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
}
.header-search.open {
  max-height: 80px;
  opacity: 1;
  padding: 12px 0 6px;
}
.header-search form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 14px;
}
.header-search .ti { color: var(--ink-soft); flex: 0 0 auto; }
.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
  outline: none;
}

.shop-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 14px;
  margin-bottom: 16px;
}
.shop-search .ti { color: var(--ink-soft); flex: 0 0 auto; }
.shop-search input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.shop-search-info {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

/* ============= Buttons ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: none;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--red-deep); }
.btn-red {
  background: var(--red);
  color: white;
}
.btn-red:hover { background: var(--red-deep); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); border-color: var(--ink-soft); }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ============= Eyebrow / section heads ============= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--red);
  opacity: 0.6;
}
.eyebrow.no-after::after { display: none; }
.eyebrow.no-before::before { display: none; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 32px;
}
.section-head h2 {
  font-size: 38px;
  font-weight: 700;
}
.section-head .lead {
  color: var(--ink-soft);
  max-width: 480px;
  font-size: 15px;
}

/* ============= Product card ============= */
.product-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.product-card .fav-form { position: absolute; top: 0; left: 0; z-index: 3; margin: 0; }
.product-card .pc-fav { cursor: pointer; }
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.product-card .pc-image {
  position: relative;
  aspect-ratio: 1 / 1.05;
  background: var(--bg-deep);
  overflow: hidden;
}
.product-card .pc-image svg { width: 100%; height: 100%; display: block; }
.product-card .pc-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.pc-badge {
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}
.pc-badge.new { background: var(--teal); }
.pc-badge.gold { background: var(--gold); color: var(--ink); }
.product-card .pc-fav {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px; height: 36px;
  background: rgba(255,251,241,0.92);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.product-card .pc-fav:hover { color: var(--red); }
.product-card .pc-fav.active { color: var(--red); }
.product-card .pc-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .pc-cat {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.product-card .pc-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.product-card .pc-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-card .pc-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.product-card .pc-price .old {
  font-size: 12px;
  color: var(--ink-mute);
  text-decoration: line-through;
}
.product-card .pc-price .now {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.product-card .pc-price .now .unit {
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 500;
  margin-right: 2px;
}
.product-card .pc-add {
  width: 36px;
  height: 36px;
  background: var(--ink);
  border: none;
  border-radius: 50%;
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.product-card .pc-add:hover { background: var(--red); transform: scale(1.05); }

/* ============= Forms ============= */
.input, .select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.input:focus, .select:focus { border-color: var(--ink-soft); }
.label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

/* ============= Footer ============= */
.footer {
  background: var(--ink);
  color: rgba(244, 234, 210, 0.85);
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 0%, rgba(212, 160, 58, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.footer-main {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  position: relative;
}
.footer h4 {
  color: var(--bg);
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 13.5px;
  color: rgba(244, 234, 210, 0.7);
  transition: color 0.15s;
  cursor: pointer;
}
.footer-links a:hover { color: var(--gold); }
.footer-brand-text {
  font-size: 13.5px;
  color: rgba(244, 234, 210, 0.65);
  line-height: 1.9;
  margin-top: 12px;
  max-width: 320px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo svg { width: 44px; height: 44px; }
.footer-logo .fa { color: var(--bg); font-size: 22px; font-weight: 800; font-family: var(--font-display); }
.footer-logo .en { color: rgba(244, 234, 210, 0.55); font-size: 10px; letter-spacing: 0.32em; }

.newsletter input {
  background: rgba(244, 234, 210, 0.08);
  border: 1px solid rgba(244, 234, 210, 0.2);
  color: var(--bg);
  padding: 12px 14px;
  border-radius: var(--radius);
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  margin-bottom: 10px;
}
.newsletter input::placeholder { color: rgba(244, 234, 210, 0.4); }
.newsletter button {
  width: 100%;
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 12px;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  font-size: 13.5px;
}

.footer-newsletter-text {
  font-size: 13px;
  color: rgba(244,234,210,0.65);
  margin-bottom: 14px;
  line-height: 1.8;
}
.trust-badges {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.trust-badge {
  background: rgba(244,234,210,0.08);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.trust-badge--enamad,
.trust-badge--samandehi {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  min-height: 56px;
  background: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}
a.trust-badge--enamad:hover,
a.trust-badge--samandehi:hover {
  background: #fff;
  opacity: 0.95;
}
.trust-badge--enamad img,
.trust-badge--samandehi img,
.trust-badge--enamad a img,
.trust-badge--samandehi a img {
  max-height: 56px;
  width: auto;
  display: block;
}
a.trust-badge--link {
  display: inline-block;
  color: rgba(244, 234, 210, 0.85);
  text-decoration: none;
  border: 1px solid rgba(244, 234, 210, 0.16);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
a.trust-badge--link:hover {
  background: rgba(244, 234, 210, 0.14);
  color: rgba(244, 234, 210, 1);
  border-color: rgba(244, 234, 210, 0.28);
}

/* Trust page (Enamad / Samandehi + related) */
.trust-page-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 760px;
}
.trust-page-badge {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.trust-page-badge__label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.trust-page-badge__embed {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}
.trust-page-badge__embed img,
.trust-page-badge__embed a img {
  max-width: 140px;
  height: auto;
}
.trust-page-badge__placeholder {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 28px 36px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.trust-page-badge__hint {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}
.trust-related-links {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trust-related-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 8px;
  display: inline-block;
  transition: color 0.2s, border-color 0.2s;
}
.trust-related-links a:hover {
  color: var(--red);
  border-color: var(--red);
}
@media (max-width: 720px) {
  .trust-page-badges {
    grid-template-columns: 1fr;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(244, 234, 210, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(244, 234, 210, 0.5);
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(244, 234, 210, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 234, 210, 0.7);
  transition: all 0.15s;
}
.footer-socials a:hover { background: var(--gold); color: var(--ink); }

/* ============= Misc ============= */
.divider-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin: 24px 0;
}
.divider-ornament .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 200px;
}

/* ============= Toast ============= */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.25s ease-out;
}
.toast .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
@keyframes toast-in {
  from { transform: translateX(-50%) translateY(10px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ============= Tag pill ============= */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
}
.tag:hover { border-color: var(--ink-soft); color: var(--ink); }
.tag.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ============= Breadcrumb ============= */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  padding: 20px 0;
  align-items: center;
}
.breadcrumb a { cursor: pointer; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--ink-mute); opacity: 0.5; }
.breadcrumb .current { color: var(--ink); }

/* ============= Icon helper ============= */
.ti { display: inline-flex; align-items: center; justify-content: center; }
.ti svg { display: block; }

/* ============= Page transitions ============= */
.main { min-height: 60vh; }
.page { opacity: 1; }
.page-anim { animation: page-in 0.3s ease-out both; }
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============= Hero ============= */
.hero {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text .eyebrow { margin-bottom: 24px; }
.hero h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 .accent {
  color: var(--red);
  font-family: var(--font-display);
  font-style: italic;
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  height: 8px;
  background: var(--gold);
  opacity: 0.35;
  z-index: -1;
  border-radius: 4px;
}
.hero p.lead {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
}
.hero-fabric {
  position: absolute;
  width: 78%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-fabric.main { top: 0; left: 0; }
.hero-fabric.alt { bottom: 0; right: 0; width: 50%; aspect-ratio: 1/1; border: 6px solid var(--paper); }
.hero-fabric--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-badge-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 16px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  z-index: 2;
  max-width: 260px;
}
.hero-badge-card .ic {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.hero-badge-card .ttl { font-weight: 600; font-size: 13.5px; }
.hero-badge-card .sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }

.hero-ornament {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
}
.hero-ornament.tl { top: -60px; right: -60px; }
.hero-ornament.br { bottom: -100px; left: -50px; transform: rotate(180deg); }

/* ============= Trust strip ============= */
.trust-strip {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-item .ic {
  width: 44px; height: 44px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.trust-item .ttl { font-weight: 600; font-size: 13.5px; }
.trust-item .sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* ============= Categories ============= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cat-tile {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cat-tile:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  background: var(--bg-soft);
}
.cat-tile .ic {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-tile .ic--photo {
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
}
.cat-tile .name {
  font-weight: 600;
  font-size: 14px;
}
.cat-tile .count {
  font-size: 11.5px;
  color: var(--ink-mute);
}

/* ============= Product grid ============= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ============= Story block ============= */
.story-block {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.story-block .eyebrow { color: var(--gold); }
.story-block .eyebrow::before, .story-block .eyebrow::after { background: var(--gold); }
.story-block h2 {
  font-size: 42px;
  color: var(--bg);
  margin-bottom: 24px;
}
.story-block p {
  color: rgba(244,234,210,0.8);
  font-size: 15.5px;
  line-height: 2;
  margin-bottom: 16px;
}
.story-block .btn-outline {
  color: var(--bg);
  border-color: rgba(244,234,210,0.4);
  margin-top: 16px;
}
.story-block .btn-outline:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.story-visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.story-visual--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.story-visual svg { width: 100%; height: 100%; display: block; }
.story-visual .quote {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--paper);
  color: var(--ink);
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  max-width: 240px;
  font-style: italic;
  font-family: var(--font-display);
}

/* ============= Testimonials ============= */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial .rating {
  display: flex;
  gap: 2px;
  color: var(--gold);
}
.testimonial .text {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
  font-family: var(--font-display);
  flex: 1;
}
.testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.testimonial .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}
.testimonial .name { font-weight: 600; font-size: 14px; }
.testimonial .city { font-size: 12px; color: var(--ink-mute); }

/* ============= Blog cards ============= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.blog-card .bc-image {
  aspect-ratio: 16/10;
  background: var(--bg-deep);
  overflow: hidden;
  position: relative;
}
.blog-card .bc-image svg { width: 100%; height: 100%; }
.blog-card .bc-cat {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--paper);
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
}
.blog-card .bc-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .bc-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.blog-card .bc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.blog-card .bc-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: var(--font-display);
  line-height: 1.4;
}
.blog-card .bc-excerpt {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 16px;
}
.blog-card .bc-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* ============= Page sections ============= */
.section { padding: 80px 0; position: relative; }
.section.tight { padding: 56px 0; }
.section-paper { background: var(--paper); }

/* ============= Shop layout ============= */
.shop-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: flex-start;
}
.filter-sidebar {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.filter-group { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border-soft); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: var(--font-body);
}
.filter-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-list a {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--ink-soft);
}
.filter-list a:hover { background: var(--bg); color: var(--ink); }
.filter-list a.active { background: var(--ink); color: var(--bg); font-weight: 600; }
.filter-list a.active .count { color: rgba(244,234,210,0.6); }
.filter-list .count { color: var(--ink-mute); font-size: 12px; }

.shop-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.shop-filter-toggle .ti { color: var(--red); }
.shop-filter-toggle[aria-expanded="true"] {
  border-color: var(--red);
  background: rgba(178, 58, 42, 0.04);
}
.shop-search--sidebar { display: none; margin-bottom: 20px; }

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  outline: 1px solid var(--border);
}
.swatch:hover, .swatch.active {
  border-color: var(--paper);
  outline-color: var(--ink);
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.shop-result-count { font-size: 14px; color: var(--ink-soft); }
.shop-result-count strong { color: var(--ink); font-weight: 700; }
.shop-tools { display: flex; gap: 12px; align-items: center; }

/* ============= Product detail ============= */
.product-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  padding: 32px 0 64px;
}
.pd-gallery { display: flex; flex-direction: column; gap: 16px; }
.pd-main {
  aspect-ratio: 1/1;
  background: var(--bg-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.pd-main svg { width: 100%; height: 100%; }
.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pd-thumb {
  aspect-ratio: 1/1;
  background: var(--bg-deep);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.pd-thumb.active { border-color: var(--red); }
.pd-thumb svg { width: 100%; height: 100%; }

.pd-info h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}
.pd-cat {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.pd-rating-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.pd-price {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.pd-price .now {
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
  font-family: var(--font-display);
}
.pd-price .now .unit { font-size: 14px; color: var(--ink-soft); margin-right: 4px; }
.pd-price .old { font-size: 16px; text-decoration: line-through; color: var(--ink-mute); }
.pd-price .save {
  background: var(--gold);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}
.pd-desc {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.pd-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.pd-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border-right: 3px solid var(--red);
}
.pd-spec .l { font-size: 11.5px; color: var(--ink-mute); letter-spacing: 0.05em; }
.pd-spec .v { font-weight: 600; font-size: 13.5px; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty button {
  width: 40px;
  height: 44px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.qty button:hover { background: var(--bg); color: var(--ink); }
.qty .v {
  min-width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.pd-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.pd-actions .fav-form { margin: 0; }
.pd-fav.active { color: var(--red); border-color: var(--red); }

.pd-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.pd-feat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pd-feat .ic { color: var(--red); flex-shrink: 0; }
.pd-feat .ttl { font-weight: 600; font-size: 13px; }
.pd-feat .sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }

/* ============= Cart ============= */
.cart-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: flex-start;
}
.cart-items {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item .ci-img {
  width: 100px;
  height: 100px;
  background: var(--bg-deep);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-item .ci-img svg { width: 100%; height: 100%; }
.cart-item .ci-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; font-family: var(--font-display); }
.cart-item .ci-cat { font-size: 12px; color: var(--ink-mute); margin-bottom: 8px; }
.cart-item .ci-price { font-weight: 700; }
.cart-item .ci-remove {
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  color: var(--ink-mute);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.cart-item .ci-remove:hover { background: rgba(178,58,42,0.1); color: var(--red); }

.cart-summary {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.cart-summary h3 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cs-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}
.cs-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
}
.cs-row.total .val { color: var(--red); font-family: var(--font-display); }
.cs-row .lbl { color: var(--ink-soft); }
.cs-row .val { font-weight: 600; }
.cs-discount { color: var(--moss); }

.coupon-row {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.coupon-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  background: var(--bg-soft);
  text-align: center;
}

/* ============= Empty state ============= */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}
.empty-state .ic {
  margin: 0 auto 24px;
  width: 96px;
  height: 96px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
}
.empty-state h3 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); margin-bottom: 24px; }

/* ============= About page ============= */
.about-hero {
  text-align: center;
  padding: 60px 0 40px;
  position: relative;
}
.about-hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.about-hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.9;
}
.about-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-block .eyebrow { margin-bottom: 16px; }
.about-block h2 { font-size: 36px; margin-bottom: 20px; }
.about-block p {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.about-visual {
  aspect-ratio: 1/1.1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.about-visual--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.about-visual svg { width: 100%; height: 100%; }

/* ============= Discounts disabled CTA ============= */
.discounts-disabled {
  padding: 48px 0 80px;
  display: flex;
  justify-content: center;
}
.discounts-disabled-card {
  max-width: 640px;
  width: 100%;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  box-shadow: var(--shadow-sm, 0 8px 24px rgba(0,0,0,.06));
}
.discounts-disabled-card .dd-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(196, 54, 54, .1), rgba(184, 134, 11, .15));
  color: var(--red);
}
.discounts-disabled-card h1 {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 0 0 16px;
  line-height: 1.35;
}
.discounts-disabled-card .lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.discounts-disabled-card .dd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}
.discounts-disabled-card .dd-note {
  font-size: 13px;
  color: var(--ink-mute, #999);
  margin: 0;
}
@media (max-width: 768px) {
  .discounts-disabled-card { padding: 32px 20px; }
  .discounts-disabled-card h1 { font-size: 26px; }
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
}
.value-card .ic {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 50%;
  color: var(--red);
}
.value-card h3 { font-size: 18px; margin-bottom: 10px; font-family: var(--font-display); }
.value-card p { font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
}
.team-card .avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-display);
}
.team-card h4 { font-size: 15px; font-family: var(--font-body); margin-bottom: 4px; }
.team-card .role { font-size: 12px; color: var(--ink-mute); }

/* ============= Article ============= */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 80px;
}
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-wrap h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
}
.article-cover {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}
.article-cover svg { width: 100%; height: 100%; }
.article-body { font-size: 16px; line-height: 2.1; color: var(--ink); }
.article-body p { margin-bottom: 22px; }
.article-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--red);
  float: right;
  margin: 6px 0 0 12px;
  line-height: 1;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  margin: 40px 0;
}
.article-author .avatar {
  width: 56px;
  height: 56px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-display);
}
.article-author .role { font-size: 12px; color: var(--ink-mute); }
.article-author h4 { font-family: var(--font-body); font-size: 15px; margin-bottom: 4px; }

/* ============= Discounts page hero ============= */
.discounts-hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  margin: 32px 0 48px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.discounts-hero h1 {
  color: var(--bg);
  font-size: 48px;
  margin-bottom: 16px;
}
.discounts-hero p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,251,241,0.85);
  margin-bottom: 24px;
  max-width: 480px;
}
.countdown {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.countdown-box {
  background: rgba(255,251,241,0.12);
  border: 1px solid rgba(255,251,241,0.25);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-width: 70px;
  text-align: center;
}
.countdown-box .n {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}
.countdown-box .l { font-size: 11px; color: rgba(255,251,241,0.7); margin-top: 4px; }
.discounts-hero-art {
  position: relative;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.discounts-hero-art .pct {
  font-family: var(--font-display);
  font-size: 180px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.04em;
}
.discounts-hero-art .pct-lbl {
  position: absolute;
  bottom: 18%;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--bg);
}

/* ============= Dashboard ============= */
.dash-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: flex-start;
  padding: 24px 0 64px;
}

.dash-sidebar {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.dash-user-card {
  padding: 28px 24px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 58, 42, 0.06) 0%, transparent 60%),
    var(--paper);
}
.dash-user-card .avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-display);
  position: relative;
}
.dash-user-card .avatar::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--border);
  border-radius: 50%;
  border-style: dashed;
}
.dash-user-card .name {
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-display);
}
.dash-user-card .email {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-top: 4px;
}
.dash-user-card .since {
  display: inline-block;
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 12px;
}

.dash-nav {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-soft);
  transition: all 0.15s;
  cursor: pointer;
  position: relative;
}
.dash-nav a:hover { background: var(--bg); color: var(--ink); }
.dash-nav a.active {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.dash-nav a .ti { width: 18px; height: 18px; }
.dash-nav a .count {
  margin-right: auto;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}
.dash-nav a.active .count { background: var(--gold); color: var(--ink); }
.dash-nav .nav-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 8px 4px;
}
.dash-nav a.danger { color: var(--red); }
.dash-nav a.danger:hover { background: rgba(178, 58, 42, 0.08); }

/* Dash main column */
.dash-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.dash-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
}
.dash-section-head h2 {
  font-size: 28px;
  font-family: var(--font-display);
}
.dash-section-head p {
  color: var(--ink-soft);
  margin-top: 4px;
  font-size: 13.5px;
}

/* Stat cards */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stat-card .ic {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-card .ic.red { background: rgba(178, 58, 42, 0.1); color: var(--red); }
.stat-card .ic.teal { background: rgba(31, 95, 102, 0.1); color: var(--teal); }
.stat-card .ic.gold { background: rgba(212, 160, 58, 0.15); color: #8a6b1a; }
.stat-card .ic.moss { background: rgba(107, 122, 58, 0.12); color: var(--moss); }
.stat-card .lbl { font-size: 12px; color: var(--ink-mute); margin-bottom: 4px; letter-spacing: 0.02em; }
.stat-card .val {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1.1;
}
.stat-card .sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 4px; }

/* Greeting card */
.dash-greeting {
  background: linear-gradient(135deg, var(--ink) 0%, #3d2a1c 100%);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.dash-greeting::before {
  content: "";
  position: absolute;
  top: -40px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(212, 160, 58, 0.15), transparent 70%);
  pointer-events: none;
}
.dash-greeting h2 {
  color: var(--bg);
  font-size: 26px;
  margin-bottom: 6px;
}
.dash-greeting p {
  color: rgba(244, 234, 210, 0.75);
  font-size: 14px;
}
.dash-greeting .loyalty {
  text-align: center;
  background: rgba(244, 234, 210, 0.1);
  border: 1px solid rgba(244, 234, 210, 0.2);
  padding: 16px 24px;
  border-radius: var(--radius);
}
.dash-greeting .loyalty .pts {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.dash-greeting .loyalty .lbl {
  font-size: 11px;
  color: rgba(244, 234, 210, 0.7);
  margin-top: 4px;
  letter-spacing: 0.08em;
}

/* Order cards */
.order-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: all 0.2s;
}
.order-card:hover { border-color: var(--border); }
.order-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}
.order-id {
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-display);
}
.order-id .lbl {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  display: block;
}
.order-date {
  font-size: 13px;
  color: var(--ink-soft);
}
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.order-status.moss { background: rgba(107, 122, 58, 0.12); color: var(--moss); }
.order-status.teal { background: rgba(31, 95, 102, 0.12); color: var(--teal); }
.order-status.gold { background: rgba(212, 160, 58, 0.18); color: #8a6b1a; }
.order-status.red { background: rgba(178, 58, 42, 0.1); color: var(--red); }
.order-status.mute { background: var(--bg); color: var(--ink-mute); }
.order-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.order-body { padding: 20px 24px; display: flex; gap: 20px; align-items: center; }
.order-thumbs {
  display: flex;
  gap: -10px;
}
.order-thumb {
  width: 56px;
  height: 56px;
  background: var(--bg-deep);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--paper);
  margin-left: -10px;
}
.order-thumb:first-child { margin-left: 0; }
.order-thumb svg { width: 100%; height: 100%; }
.order-summary {
  flex: 1;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.order-summary strong { color: var(--ink); font-weight: 600; }
.order-total {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--red);
}
.order-total .unit { font-size: 11px; color: var(--ink-soft); font-weight: 500; margin-right: 2px; }
.order-actions {
  display: flex;
  gap: 8px;
}

/* Order detail */
.order-detail-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.order-detail-head {
  padding: 24px 28px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-detail-head .id {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.order-timeline {
  padding: 28px;
  border-bottom: 1px solid var(--border-soft);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.timeline-step .dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
}
.timeline-step.done .dot {
  background: var(--moss);
  border-color: var(--moss);
  color: white;
}
.timeline-step.current .dot {
  background: var(--paper);
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 0 4px rgba(178, 58, 42, 0.15);
}
.timeline-step .lbl { font-size: 12.5px; font-weight: 600; }
.timeline-step .sub { font-size: 11px; color: var(--ink-mute); margin-top: 2px; }
.timeline::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 12%;
  left: 12%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.order-items-list { padding: 8px 0; }
.order-item-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border-soft);
}
.order-item-row:last-child { border-bottom: none; }
.order-item-row .thumb {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
}
.order-item-row .thumb svg { width: 100%; height: 100%; }
.order-item-row .name { font-weight: 600; font-size: 14px; }
.order-item-row .meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.order-item-row .qty-x { font-size: 13px; color: var(--ink-soft); }
.order-item-row .price { font-weight: 700; font-size: 14px; }

.order-detail-foot {
  padding: 24px 28px;
  background: var(--bg-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--border-soft);
}
.foot-block h4 {
  font-size: 13px;
  font-family: var(--font-body);
  margin-bottom: 10px;
  color: var(--ink-mute);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.foot-block .v { font-size: 13.5px; line-height: 1.8; color: var(--ink); }

/* Addresses grid */
.addr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.addr-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.addr-card.default { border-color: var(--red); border-width: 1.5px; }
.addr-card.selectable { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.addr-card.selectable:hover { border-color: var(--red); }
.addr-card.selectable.selected {
  border-color: var(--red);
  border-width: 1.5px;
  box-shadow: 0 0 0 3px rgba(178, 58, 42, 0.12);
}
.addr-card .default-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  color: white;
  font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
}
.addr-card .lbl {
  display: inline-block;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.addr-card .name { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.addr-card .full { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 6px; }
.addr-card .phone { font-size: 12.5px; color: var(--ink-mute); margin-bottom: 16px; }
.addr-card .actions { display: flex; gap: 8px; }

.addr-card.add-new {
  border: 1.5px dashed var(--border);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
  cursor: pointer;
  transition: all 0.15s;
}
.addr-card.add-new:hover {
  border-color: var(--red);
  background: rgba(178, 58, 42, 0.02);
}
.addr-card.add-new .plus {
  width: 48px; height: 48px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 12px;
}

/* Profile form */
.profile-form {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full { grid-column: span 2; }

/* Filter tabs (orders sub-filter) */
.tab-bar {
  display: flex;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  padding: 4px;
  width: fit-content;
}
.tab-bar a {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.15s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tab-bar a:hover { color: var(--ink); }
.tab-bar a.active { background: var(--ink); color: var(--bg); }
.tab-bar a .count {
  background: rgba(255,255,255,0.15);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 100px;
}
.tab-bar a:not(.active) .count {
  background: var(--bg);
  color: var(--ink-mute);
}

/* ============= Modal ============= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 29, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
  animation: modal-fade 0.2s ease-out;
}
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: var(--paper);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: modal-pop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h3 {
  font-size: 20px;
  font-family: var(--font-display);
}
.modal-head .close-btn {
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.modal-head .close-btn:hover { background: var(--bg); color: var(--ink); }
.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}
.modal-foot {
  padding: 18px 28px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Helpers */
.text-mute { color: var(--ink-soft); }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mt-8 { margin-top: 64px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }
.mb-8 { margin-bottom: 64px; }
.py-6 { padding-top: 48px; padding-bottom: 48px; }
.py-8 { padding-top: 64px; padding-bottom: 64px; }

/* ===================== PAGINATION ===================== */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin: 32px 0;
  flex-wrap: wrap;
}
.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-soft, #e9dfcf);
  border-radius: 8px;
  background: #fff;
  color: var(--ink, #2a201a);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.pagination .page-link:hover:not(.disabled):not(.active) {
  background: var(--bg-paper, #fffaf3);
  border-color: var(--red, #c43a3a);
  color: var(--red, #c43a3a);
}
.pagination .page-link.active {
  background: var(--red, #c43a3a);
  border-color: var(--red, #c43a3a);
  color: #fff;
}
.pagination .page-link.disabled {
  color: var(--ink-mute, #a99e90);
  cursor: not-allowed;
  background: transparent;
  border-color: transparent;
}

/* ===================== AUTH CARD ===================== */
.auth-card {
  max-width: 460px;
  margin: 32px auto;
  padding: 40px 36px;
  background: var(--bg-paper, #fffaf3);
  border: 1px solid var(--border-soft, #e9dfcf);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(60, 30, 10, 0.06);
}
.auth-card h1 {
  font-size: 28px;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.auth-card .text-mute {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.8;
}
.auth-card .form-row { margin-bottom: 14px; }
.auth-card .terms-row {
  margin-top: 4px;
}
.auth-card .terms-accept-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  cursor: pointer;
}
.auth-card .terms-accept-label input[type="checkbox"] {
  margin-top: 6px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--red);
}
.auth-card .terms-accept-label a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-card .label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft, #6b5747);
}
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="tel"],
.auth-card input[type="number"],
.auth-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-soft, #e9dfcf);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.auth-card input:focus {
  outline: none;
  border-color: var(--red, #c43a3a);
  box-shadow: 0 0 0 3px rgba(196, 58, 58, 0.12);
}

/* ============= Toggle Switch (default address) ============= */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s;
}
.toggle-row:hover { border-color: var(--border); }
.toggle-row input[type="checkbox"] { display: none; }
.toggle-track {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s;
}
.toggle-row input[type="checkbox"]:checked ~ .toggle-track { background: var(--teal); }
.toggle-thumb {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: right 0.2s;
}
.toggle-row input[type="checkbox"]:checked ~ .toggle-track .toggle-thumb { right: calc(100% - 21px); }
.toggle-label-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* ================================================================
   === RESPONSIVE — mobile-first breakpoints
   === Persian RTL e-commerce site · Pateh Nazgol
   ===
   === Breakpoints:
   ===   base     : ≤ 479px  (phones / 320px+)
   ===   480px    : small phones → small tablet
   ===   768px    : tablet
   ===   1024px   : laptop / large tablet
   ===   1280px   : desktop (default styles already target this)
   ================================================================ */


/* ----------------------------------------------------------------
   NAV TOGGLE BUTTON (hamburger) — hidden on desktop, shown mobile
   ---------------------------------------------------------------- */
.nav-toggle {
  display: none;               /* hidden by default (desktop) */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s;
  order: -1;                   /* push to the start of flex row (RTL: right) */
}
.nav-toggle:hover { background: var(--bg); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
  transform-origin: center;
}

/* Animate to X when nav is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay backdrop */
.nav-overlay {
  display: none;
}

/* ----------------------------------------------------------------
   ≤ 1024px  — collapse nav into drawer
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {

  /* --- Container --- */
  .container {
    padding: 0 24px;
  }

  /* --- Header restructure --- */
  /* Raise header above overlay so the nav drawer (child of header stacking context) wins */
  .header {
    z-index: 200;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
  }

  /* Nav becomes a drawer — z-index relative to .header stacking context */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--paper);
    border-left: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 80px 0 32px;
    z-index: 1;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    justify-content: flex-start;
    overflow-y: auto;
  }
  .nav.open {
    right: 0;
    box-shadow: -8px 0 32px rgba(43, 29, 20, 0.15);
  }
  .nav a {
    font-size: 16px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--border-soft);
    display: block;
    width: 100%;
  }
  .nav a.active::after {
    display: none;
  }
  .nav a.active {
    background: rgba(178, 58, 42, 0.06);
    border-right: 3px solid var(--red);
  }

  /* Overlay backdrop when nav is open */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(43, 29, 20, 0.45);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  /* Show hamburger button */
  .nav-toggle {
    display: flex;
  }

  /* Section padding reduction */
  .section { padding: 56px 0; }
  .section.tight { padding: 40px 0; }

  /* Hero */
  .hero { padding: 48px 0 56px; }
  .hero-inner {
    gap: 40px;
  }
  .hero h1 { font-size: 48px; }

  /* Section head */
  .section-head h2 { font-size: 32px; }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px 0 32px;
  }

  /* Trust strip */
  .trust-strip .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Products */
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

  /* Shop layout */
  .shop-wrap {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }

  /* Dashboard */
  .dash-stats { grid-template-columns: repeat(2, 1fr); }

  /* KPI grid (admin) */
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }

  /* Admin layout rows */
  .row-2-1 { grid-template-columns: 1fr; }
  .row-3 { grid-template-columns: repeat(2, 1fr); }

  /* Story block */
  .story-block {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 40px;
  }
  .story-block h2 { font-size: 34px; }

  /* Team grid */
  .team-grid { grid-template-columns: repeat(3, 1fr); }

  /* About */
  .about-hero h1 { font-size: 44px; }

  /* Discounts hero */
  .discounts-hero {
    grid-template-columns: 1fr;
    padding: 40px 40px;
  }
  .discounts-hero h1 { font-size: 38px; }
  .discounts-hero-art { display: none; }

  /* Cart */
  .cart-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cart-summary { position: static; }

  /* Product detail */
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pd-info h1 { font-size: 28px; }

  /* Values grid */
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  /* Blog */
  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials */
  .testimonials { grid-template-columns: repeat(2, 1fr); }

  /* Order detail foot */
  .order-detail-foot { grid-template-columns: 1fr; gap: 20px; }

  /* Settings grid */
  .settings-grid { grid-template-columns: 1fr; }
}


/* ----------------------------------------------------------------
   ≤ 768px  — tablet → mobile
   ---------------------------------------------------------------- */
@media (max-width: 768px) {

  /* Container */
  .container {
    padding: 0 16px;
  }

  /* Trust strip → 2 columns on small tablet */
  .trust-strip .container {
    padding: 20px 16px;
    gap: 12px;
  }

  /* Topbar: hide marquee decorators, simplify */
  .topbar .container {
    flex-direction: column;
    gap: 4px;
    padding: 6px 16px;
    text-align: center;
  }
  .topbar .marquee {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 11.5px;
  }
  .topbar .marquee span:not(:last-child)::after {
    margin-right: 16px;
  }
  .topbar-right { font-size: 11.5px; gap: 10px; }

  /* Logo text: hide EN sub-label */
  .logo-text .en { display: none; }

  /* Nav drawer width */
  .nav { width: 260px; }

  /* Header actions: smaller icons gap */
  .header-actions { gap: 4px; }
  .header-account {
    height: 32px;
    padding: 0 8px 0 6px;
    font-size: 11px;
    gap: 4px;
  }
  .header-account--muted {
    padding: 0 6px;
  }

  /* Hero */
  .hero { padding: 36px 0 48px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero h1 { font-size: 40px; }
  .hero p.lead { font-size: 15px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 26px; }
  .hero-actions { gap: 10px; }

  /* Section heads */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }
  .section-head h2 { font-size: 28px; }
  .section-head .lead { max-width: 100%; }

  /* Section spacing */
  .section { padding: 40px 0; }
  .section.tight { padding: 28px 0; }

  /* Categories */
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .cat-tile { padding: 18px 10px; }
  .cat-tile .ic { width: 48px; height: 48px; }

  /* Products */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }

  /* Trust strip → still 2 columns */
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
  .trust-item .ic { width: 36px; height: 36px; }
  .trust-item .ttl { font-size: 12.5px; }
  .trust-item .sub { display: none; }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 28px;
  }
  .footer { margin-top: 48px; }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px 0;
  }

  /* Shop sidebar: collapse to dropdown with «فیلتر پیشرفته» toggle */
  .shop-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .shop-filter-toggle { display: inline-flex; }
  .shop-search-main { display: none; }
  .shop-search--sidebar { display: flex; flex-wrap: wrap; }
  .filter-sidebar {
    display: none;
    position: static;
    border-radius: var(--radius);
    padding: 20px;
  }
  .filter-sidebar.is-open { display: block; }

  /* Product detail */
  .pd-specs { grid-template-columns: 1fr; }
  .pd-features { grid-template-columns: 1fr; }
  .pd-price .now { font-size: 26px; }
  .pd-actions { flex-wrap: wrap; }

  /* Dashboard */
  .dash-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0 40px;
  }
  .dash-sidebar {
    position: static;
    border-radius: var(--radius);
  }
  .dash-user-card { padding: 20px 16px 16px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dash-greeting {
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
    text-align: center;
  }
  .dash-greeting h2 { font-size: 22px; }
  .dash-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .dash-section-head h2 { font-size: 24px; }

  /* Order cards */
  .order-head {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .order-date { grid-column: 1 / -1; margin-top: -8px; }
  .order-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
  }
  .order-actions { flex-wrap: wrap; }

  /* Cart items */
  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px;
    padding: 16px;
  }
  .cart-item .ci-img { width: 80px; height: 80px; }
  .cart-item .ci-price,
  .cart-item .ci-remove {
    grid-column: 2;
  }
  .cart-wrap { gap: 16px; }

  /* Address grid */
  .addr-grid { grid-template-columns: 1fr; }

  /* Profile form */
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-row.full { grid-column: 1; }

  /* Testimonials */
  .testimonials { grid-template-columns: 1fr; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }

  /* About */
  .about-hero h1 { font-size: 36px; }
  .about-hero p.lead { font-size: 15px; }
  .about-blocks {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-block h2 { font-size: 28px; }
  .values-grid { grid-template-columns: 1fr 1fr; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  /* Story block */
  .story-block {
    padding: 36px 24px;
    gap: 32px;
  }
  .story-block h2 { font-size: 28px; }

  /* Article */
  .article-wrap h1 { font-size: 34px; }
  .article-body p:first-child::first-letter { font-size: 40px; }

  /* Auth card */
  .auth-card {
    margin: 20px auto;
    padding: 28px 20px;
  }
  .auth-card h1 { font-size: 24px; }

  /* Discounts hero */
  .discounts-hero {
    padding: 32px 24px;
  }
  .discounts-hero h1 { font-size: 32px; }
  .countdown { gap: 8px; }
  .countdown-box { padding: 10px 12px; min-width: 60px; }
  .countdown-box .n { font-size: 24px; }

  /* Tables: wrap in horizontal scroll */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
  }

  /* Order detail timeline → horizontal scroll or compact */
  .order-timeline { overflow-x: auto; padding: 20px; }
  .timeline { min-width: 480px; }

  /* Order item rows */
  .order-item-row {
    grid-template-columns: 52px 1fr auto;
    gap: 12px;
    padding: 12px 20px;
  }
  .order-item-row .thumb { width: 52px; height: 52px; }

  /* Order detail foot */
  .order-detail-foot { padding: 20px; }

  /* Modal */
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal {
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 90vh;
  }
  @keyframes modal-pop {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .modal-head { padding: 18px 20px; }
  .modal-body { padding: 16px 20px; }
  .modal-foot { padding: 14px 20px; }

  /* Tab bar: scrollable */
  .tab-bar {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    padding: 4px 4px;
  }
  .tab-bar a { white-space: nowrap; padding: 8px 14px; }

  /* Section-head breadcrumbs / eyebrow */
  .eyebrow { font-size: 11px; letter-spacing: 0.15em; }

  /* Hero search bar */
  .header-search.open { max-height: 100px; }
}


/* ----------------------------------------------------------------
   ≤ 480px  — small phones
   ---------------------------------------------------------------- */
@media (max-width: 480px) {

  html { font-size: 14px; }

  /* Container */
  .container { padding: 0 14px; }

  /* Topbar: single-line compact */
  .topbar { padding: 6px 0; }
  .topbar .container { gap: 3px; }
  .topbar .marquee { display: none; }     /* hide marquee on tiny screens */
  .topbar-right { width: 100%; justify-content: center; }

  /* Hero */
  .hero { padding: 28px 0 36px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat { flex: 0 0 calc(50% - 8px); }

  /* Section heads */
  .section-head h2 { font-size: 24px; }
  .section { padding: 32px 0; }

  /* Categories → 2 columns */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .cat-tile { padding: 14px 8px; gap: 8px; }
  .cat-tile .ic { width: 40px; height: 40px; }
  .cat-tile .name { font-size: 12.5px; }

  /* Products → single column on 320, 2 col on 360+ */
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Trust strip → stack on tiny phones */
  .trust-strip .container {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 14px;
  }
  .trust-item { gap: 10px; }
  .trust-item .ic { width: 32px; height: 32px; }
  .trust-item .ttl { font-size: 12px; }

  /* Footer */
  .footer-main { gap: 24px; padding: 32px 0 20px; }
  .footer-newsletter-text { font-size: 12.5px; }
  .trust-badges { flex-wrap: wrap; }

  /* Cart item: stack everything */
  .cart-item {
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding: 14px;
  }
  .cart-item .ci-img { width: 72px; height: 72px; }

  /* Dashboard stats */
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px 14px; gap: 12px; }
  .stat-card .ic { width: 40px; height: 40px; }
  .stat-card .val { font-size: 18px; }

  /* Dash greeting */
  .dash-greeting { padding: 20px 16px; }
  .dash-greeting h2 { font-size: 19px; }

  /* About */
  .about-hero h1 { font-size: 28px; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }

  /* Story block */
  .story-block { padding: 28px 16px; }
  .story-block h2 { font-size: 24px; }

  /* Article */
  .article-wrap { padding: 24px 0 48px; }
  .article-wrap h1 { font-size: 26px; }

  /* Product detail */
  .pd-info h1 { font-size: 24px; }
  .pd-price .now { font-size: 22px; }
  .pd-actions {
    position: sticky;
    bottom: 0;
    background: var(--paper);
    border-top: 1px solid var(--border);
    padding: 12px;
    margin: 0 -14px;
    z-index: 10;
  }

  /* Coundown */
  .countdown { flex-wrap: wrap; gap: 6px; }
  .countdown-box { min-width: 54px; padding: 8px 10px; }
  .countdown-box .n { font-size: 20px; }

  /* Auth */
  .auth-card { padding: 24px 16px; border-radius: var(--radius); }
  .auth-card h1 { font-size: 22px; }

  /* Section eyebrow */
  .section-head .eyebrow { font-size: 10.5px; }

  /* Buttons: auto-width on small screens */
  .btn-lg { padding: 14px 20px; font-size: 14px; }

  /* Breadcrumb: wrap */
  .breadcrumb { flex-wrap: wrap; row-gap: 4px; }

  /* Topbar phone number: hide on very small */
  .topbar-phone { display: none; }

  /* Header search */
  .header-search form { padding: 6px 10px; gap: 8px; }
}


/* ----------------------------------------------------------------
   Minimum floor: prevent overflow below 320px
   ---------------------------------------------------------------- */
@media (max-width: 319px) {
  html { font-size: 13px; }
  .container { padding: 0 10px; }
  .product-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-stats { grid-template-columns: 1fr; }
}


/* ----------------------------------------------------------------
   ≥ 1024px — restore: things that mustn't apply on desktop
   ---------------------------------------------------------------- */
@media (min-width: 1025px) {
  /* Nav is always visible; reset any mobile state */
  .nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    flex-direction: row;
    padding: 0;
    overflow-y: visible;
    transition: none;
    box-shadow: none !important;
    right: auto !important;
  }
  .nav-toggle { display: none !important; }
  .nav-overlay { display: none !important; }
}


/* ----------------------------------------------------------------
   ≥ 1280px — fine-tune for large desktop
   ---------------------------------------------------------------- */
@media (min-width: 1280px) {
  .hero h1 { font-size: 64px; }
  .section-head h2 { font-size: 38px; }
  .categories-grid { grid-template-columns: repeat(6, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
  }
  .trust-strip .container { grid-template-columns: repeat(4, 1fr); }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-stats { grid-template-columns: repeat(4, 1fr); }
  .about-blocks { grid-template-columns: 1fr 1fr; }
}


/* ----------------------------------------------------------------
   Utility: responsive table wrapper (use in templates)
   ---------------------------------------------------------------- */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.whitespace-nowrap { white-space: nowrap; }

/* Admin table responsive: add .table-scroll wrapper */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: inherit;
}


/* ----------------------------------------------------------------
   Reviews & Comments Section
   ---------------------------------------------------------------- */
.reviews-section {
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.reviews-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.reviews-section-head h2 {
  font-size: 28px;
}

.reviews-count {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
}

.reviews-avg {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.reviews-avg .big-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.reviews-avg .stars-row {
  display: flex;
  flex-direction: row;
  gap: 2px;
  color: var(--gold);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.review-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.rc-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.rc-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--gold) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
}

.rc-meta {
  flex: 1;
  min-width: 0;
}

.rc-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 4px;
}

.rc-date {
  font-size: 12px;
  color: var(--ink-mute);
}

.rc-stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
  margin-top: 6px;
}

.rc-body {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

.reviews-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.reviews-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.reviews-empty p {
  color: var(--ink-mute);
  font-size: 14px;
}

.review-form-wrap {
  margin-top: 48px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  max-width: 640px;
}

.review-form-wrap h3 {
  font-size: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.star-picker {
  display: flex;
  flex-direction: row-reverse;
  gap: 6px;
  margin-bottom: 20px;
}

.star-picker input[type=radio] {
  display: none;
}

.star-picker label {
  font-size: 28px;
  color: var(--border);
  cursor: pointer;
  transition: color 0.1s;
  line-height: 1;
}

.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label {
  color: var(--gold);
}

.star-picker-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .review-form-wrap { padding: 20px; }
}
.table-scroll .admin-table { min-width: 640px; }

/* === Dashboard notification cards === */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notif-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-lg, 14px);
  background: var(--bg-paper, #fff);
  border: 1px solid var(--border, #e8e4dc);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow .15s ease, transform .15s ease;
}
.notif-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.notif-card--unread {
  border-right: 3px solid var(--red, #b91c1c);
  background: linear-gradient(90deg, rgba(185,28,28,.04), transparent 40%), var(--bg-paper, #fff);
}
.notif-card__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, #f6f3ed);
  color: var(--red, #b91c1c);
}
.notif-card--unread .notif-card__icon {
  background: rgba(185,28,28,.1);
}
.notif-card__body { flex: 1; min-width: 0; }
.notif-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.notif-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1a1612);
  line-height: 1.4;
}
.notif-card__badge {
  background: var(--red, #b91c1c);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  line-height: 1.4;
}
.notif-card__text {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft, #5c564e);
}
.notif-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-mute, #8a847a);
}
.notif-card__link {
  color: var(--red, #b91c1c);
  font-weight: 600;
  text-decoration: none;
}
.notif-card__link:hover { text-decoration: underline; }

/* === Product qty Select2 === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.qty--select {
  min-width: 100px;
  display: flex;
  align-items: center;
}
.qty-select {
  min-width: 88px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--border, #e8e4dc);
  border-radius: 10px;
  background: var(--bg-paper, #fff);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #1a1612);
  direction: ltr;
  text-align: center;
  cursor: pointer;
}
/* Select2 theme alignment with site */
.select2-container--default .select2-selection--single {
  height: 48px !important;
  border: 1px solid var(--border, #e8e4dc) !important;
  border-radius: 10px !important;
  background: var(--bg-paper, #fff) !important;
  display: flex !important;
  align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 48px !important;
  padding-right: 14px !important;
  padding-left: 28px !important;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #1a1612) !important;
  direction: ltr;
  text-align: center;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
  left: 6px;
  right: auto;
}
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--red, #b91c1c) !important;
  box-shadow: 0 0 0 3px rgba(185,28,28,.12);
}
.select2-dropdown {
  border: 1px solid var(--border, #e8e4dc) !important;
  border-radius: 10px !important;
  overflow: hidden;
  direction: ltr;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--red, #b91c1c) !important;
}
.qty--select .select2-container { min-width: 100px; }

/* ── Shop mid-list request banner ──────────────────────────── */
.shop-request-slot {
  grid-column: 1 / -1;
}
.shop-request-banner {
  background: linear-gradient(135deg, var(--paper) 0%, var(--bg-soft) 55%, #f7e8d4 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  margin: 4px 0 8px;
}
.shop-request-banner__head {
  margin-bottom: 18px;
  max-width: 720px;
}
.shop-request-banner__title {
  font-family: var(--font-display, inherit);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
  color: var(--ink);
  margin: 8px 0 0;
  font-weight: 700;
}
.shop-request-banner__lead {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.shop-request-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.shop-request-form__full {
  grid-column: 1 / -1;
}
.shop-request-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
@media (max-width: 768px) {
  .shop-request-banner {
    padding: 18px 14px;
  }
  .shop-request-form__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Customer request form ─────────────────────────────────── */
.request-section .section-lead {
  max-width: 560px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-top: 8px;
}
.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
  gap: 28px;
  align-items: start;
}
.request-form {
  max-width: none;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.request-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}
.request-aside {
  position: sticky;
  top: 96px;
}
.request-steps {
  margin: 12px 0 0;
  padding-inline-start: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.field-hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ink-mute);
}
.request-img-preview,
.img-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.img-preview-item {
  width: 96px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
}
.img-preview-item img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  display: block;
}
.img-preview-item span {
  display: block;
  font-size: 10px;
  padding: 4px 6px;
  color: var(--ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .request-layout {
    grid-template-columns: 1fr;
  }
  .request-aside {
    position: static;
  }
  .request-form {
    padding: 18px;
  }
}
