/* ═══════════════════════════════════════════════════════════════════════════
   Shiraz Sticker — شیراز استیکر
   Premium RTL design system
   Palette: amber-gold #D4A545 / deep navy #1A2332 / white #FFFFFF
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --amber:        #D4A545;
  --amber-light:  #F0C96A;
  --amber-dark:   #B8892A;
  --navy:         #1A2332;
  --navy-mid:     #243045;
  --navy-light:   #2E3D57;
  --white:        #FFFFFF;
  --off-white:    #FAFAF8;
  --cream:        #FDF8EE;
  --gray-50:      #F6F6F4;
  --gray-100:     #EBEBEA;
  --gray-200:     #D6D6D4;
  --gray-400:     #9A9A96;
  --gray-600:     #6B6B67;
  --gray-800:     #2E2E2C;
  --text:         #1C1C1A;
  --text-mid:     #4A4A48;
  --text-light:   #6B6B67;

  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-full:  9999px;

  --shadow-sm:    0 1px 4px rgba(26,35,50,.08);
  --shadow:       0 4px 16px rgba(26,35,50,.12);
  --shadow-md:    0 8px 28px rgba(26,35,50,.14);
  --shadow-lg:    0 16px 48px rgba(26,35,50,.18);
  --shadow-amber: 0 4px 20px rgba(212,165,69,.30);

  --transition:   0.22s ease;

  --container:    1200px;
  --header-h:     72px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
svg { flex-shrink: 0; }

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Scroll reveal ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  box-shadow: var(--shadow-amber);
}
.btn-primary:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,165,69,.4);
}
.btn-secondary {
  background: var(--navy);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-sm {
  padding: 9px 20px;
  font-size: 14px;
}
.btn-lg {
  padding: 15px 36px;
  font-size: 17px;
}

/* ── Section headings ────────────────────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  text-wrap: balance;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  max-width: 520px;
}
.section-header { margin-bottom: 40px; }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin-inline: auto; }

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header.scrolled {
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  flex-shrink: 0;
}
.logo-badge--sm {
  width: 32px;
  height: 32px;
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* Nav */
.main-nav { flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--navy);
  background: var(--gray-50);
}
.nav-link.active { color: var(--amber-dark); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  position: relative;
  transition: color var(--transition), background var(--transition);
}
.header-action-btn:hover { color: var(--navy); background: var(--gray-50); }
.header-action-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.cart-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--amber);
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

.btn-login {
  padding: 8px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}
.btn-login:hover { background: var(--navy-mid); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--navy);
}
.nav-toggle:focus-visible { outline: 2px solid var(--amber); }

/* Flash message */
.flash-msg {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  margin: 12px auto;
  max-width: var(--container);
  padding-inline: 24px;
}
.flash-success { background: #DCFCE7; color: #166534; }
.flash-error   { background: #FEE2E2; color: #991B1B; }
.flash-info    { background: #DBEAFE; color: #1E40AF; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(26,35,50,.88) 0%,
    rgba(26,35,50,.70) 42%,
    rgba(26,35,50,.25) 70%,
    rgba(26,35,50,.05) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 80px;
  max-width: 520px;
  padding-inline: 24px;
  margin-inline-start: auto;
  /* RTL: text on right side of the gradient */
  margin-inline-end: calc((100vw - var(--container)) / 2 + 24px);
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(212,165,69,.18);
  color: var(--amber-light);
  border: 1px solid rgba(212,165,69,.35);
  border-radius: var(--radius-full);
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,.80);
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORIES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.categories-section {
  padding-block: 80px;
  background: var(--off-white);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-align: center;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber);
}
.cat-card-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1.5px solid var(--gray-200);
}
.cat-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat-card:hover .cat-card-img { transform: scale(1.06); }
.cat-card-body { padding: 16px; }
.cat-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCTS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.products-section {
  padding-block: 80px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-100);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-50);
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--amber);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.product-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-cat {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}
.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  flex: 1;
}
.product-name a { color: inherit; }
.product-name a:hover { color: var(--amber-dark); }
.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--amber-dark);
  margin-top: 4px;
}
.product-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
}
.btn-add-cart {
  width: 100%;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
  font-family: 'Vazirmatn', sans-serif;
}
.btn-add-cart:hover { background: var(--amber); color: var(--navy); }
.btn-add-cart.added { background: var(--amber); color: var(--navy); }
.btn-add-cart:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ═══════════════════════════════════════════════════════════════════════════
   WHY CHOOSE US (navy strip)
   ═══════════════════════════════════════════════════════════════════════════ */
.features-section {
  background: var(--navy);
  padding-block: 72px;
}
.features-section .section-title { color: var(--white); }
.features-section .section-eyebrow { color: var(--amber-light); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-tile {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  transition: background var(--transition), border-color var(--transition);
}
.feature-tile:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(212,165,69,.40);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212,165,69,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--amber);
}
.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 14px;
  color: rgba(255,255,255,.62);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════════════════ */
.testimonials-section {
  padding-block: 80px;
  background: var(--cream);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-100);
  transition: box-shadow var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow); }
.testimonial-stars {
  color: var(--amber);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonial-text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.testimonial-meta {
  font-size: 13px;
  color: var(--text-light);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════════════════════════════════ */
.cta-section {
  padding-block: 72px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  text-align: center;
}
.cta-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 12px;
}
.cta-subtitle {
  font-size: 16px;
  color: rgba(26,35,50,.75);
  margin-bottom: 32px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-primary {
  background: var(--navy);
  color: var(--white);
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-cta-primary:hover { background: var(--navy-mid); transform: translateY(-2px); }
.btn-cta-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 13px 32px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-cta-secondary:hover { background: var(--navy); color: var(--white); }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-top: 64px;
  padding-bottom: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-logo .logo-badge { border-color: rgba(255,255,255,.15); }
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,.62);
  line-height: 1.75;
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.social-btn:hover {
  color: var(--amber);
  border-color: var(--amber);
  background: rgba(212,165,69,.12);
}
.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--amber); }
.footer-contact p {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}
.footer-contact svg { margin-left: 6px; flex-shrink: 0; }
.footer-phone { color: rgba(255,255,255,.9); transition: color var(--transition); }
.footer-phone:hover { color: var(--amber); }

.enamad-badge { margin-top: 20px; }
.enamad-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,.06);
  border: 1.5px dashed rgba(255,255,255,.20);
  border-radius: var(--radius);
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

.footer-bottom {
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.footer-bottom strong { color: rgba(255,255,255,.65); }

/* ═══════════════════════════════════════════════════════════════════════════
   SHOP / PRODUCT PAGES (stubs)
   ═══════════════════════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--gray-50);
  padding-block: 48px;
  border-bottom: 1px solid var(--gray-100);
}
.page-hero-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--navy);
}
.page-hero-sub {
  font-size: 15px;
  color: var(--text-light);
  margin-top: 8px;
}
.stub-section {
  padding-block: 80px;
  text-align: center;
}
.stub-section p { color: var(--text-light); font-size: 15px; margin-top: 8px; }

/* ── Product detail ──────────────────────────────────────────────────────── */
.product-detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding-block: 64px;
}
.product-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--gray-100);
  aspect-ratio: 1 / 1;
}
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info { display: flex; flex-direction: column; gap: 18px; }
.product-detail-name {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.25;
}
.product-detail-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--amber-dark);
}
.product-detail-desc { font-size: 15px; color: var(--text-mid); line-height: 1.8; }
.qty-wrap { display: flex; align-items: center; gap: 12px; }
.qty-input {
  width: 64px;
  padding: 8px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 16px;
}

/* ── Cart / checkout ─────────────────────────────────────────────────────── */
.cart-wrap { padding-block: 48px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid var(--gray-100);
  font-size: 15px;
}
.cart-table th { font-weight: 700; color: var(--navy); background: var(--gray-50); }
.cart-total { font-size: 20px; font-weight: 700; color: var(--amber-dark); }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-section { padding-block: 64px; }
.form-wrap {
  max-width: 540px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-100);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  text-align: center;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Vazirmatn', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  direction: rtl;
}
.form-input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(212,165,69,.18);
}
textarea.form-input { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; margin-top: 8px; }

/* ── Blog ────────────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-block: 48px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-100);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow); }
.blog-card-img { aspect-ratio: 16/9; background: var(--gray-100); }
.blog-card-body { padding: 20px; }
.blog-card-date { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.blog-card-title { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.4; }

/* ── Gallery ─────────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-block: 48px;
}
.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }

/* ── Account / admin ─────────────────────────────────────────────────────── */
.auth-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 64px;
  background: var(--off-white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
    z-index: 999;
    padding: 12px 0 20px;
  }
  .nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: 16px;
  }
  .nav-link { padding: 13px 12px; font-size: 16px; }

  .nav-toggle { display: flex; }
  .btn-login { display: none; }

  .hero {
    min-height: 460px;
    align-items: flex-end;
  }
  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(26,35,50,.92) 0%,
      rgba(26,35,50,.65) 55%,
      rgba(26,35,50,.15) 100%
    );
  }
  .hero-content {
    margin: 0;
    padding-inline: 20px;
    padding-block: 36px 48px;
    max-width: 100%;
  }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .product-detail-wrap { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 26px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .form-wrap { padding: 24px 16px; }
}

@media (max-width: 390px) {
  .container { padding-inline: 14px; }
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════════════════════════ */
.breadcrumb-nav {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-100);
  padding-block: 12px;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb-list li:not(:last-child)::after { content: '›'; color: var(--gray-400); }
.breadcrumb-list a { color: var(--text-light); transition: color var(--transition); }
.breadcrumb-list a:hover { color: var(--amber-dark); }
.breadcrumb-list li:last-child { color: var(--navy); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT GALLERY (detail page)
   ═══════════════════════════════════════════════════════════════════════════ */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.product-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--gray-100);
  aspect-ratio: 1 / 1;
  position: relative;
  cursor: zoom-in;
  background: var(--gray-50);
}
.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.product-gallery-main:hover .gallery-main-img { transform: scale(1.04); }
.gallery-zoom-hint {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(26,35,50,.75);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-gallery-main:hover .gallery-zoom-hint { opacity: 1; }

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 20px;
}
.lightbox-img {
  max-width: min(90vw, 800px);
  max-height: 90vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }

/* ═══════════════════════════════════════════════════════════════════════════
   SIZE PICKER
   ═══════════════════════════════════════════════════════════════════════════ */
.size-picker-group { margin-bottom: 18px; }
.size-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.size-option { display: flex; align-items: center; gap: 0; cursor: pointer; }
.size-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.size-option-label {
  display: block;
  padding: 10px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  width: 100%;
}
.size-option input[type="radio"]:checked + .size-option-label {
  border-color: var(--amber);
  color: var(--navy);
  background: var(--cream);
  font-weight: 700;
}
.size-option-label:hover {
  border-color: var(--amber-dark);
  color: var(--navy);
}

/* ── Qty control ─────────────────────────────────────────────────────────── */
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 40px;
  height: 42px;
  background: var(--gray-50);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--gray-100); }
.qty-control .qty-input {
  width: 52px;
  border: none;
  border-right: 1.5px solid var(--gray-200);
  border-left: 1.5px solid var(--gray-200);
  border-radius: 0;
  text-align: center;
  height: 42px;
  font-size: 16px;
  font-weight: 700;
}
.qty-control .qty-input:focus { outline: none; box-shadow: none; border-color: var(--amber); }

/* ── Product features list ───────────────────────────────────────────────── */
.product-features-list {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--gray-100);
}
.pf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
}

/* ── Related section ─────────────────────────────────────────────────────── */
.related-section {
  padding-block: 56px;
  border-top: 1px solid var(--gray-100);
  margin-top: 48px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHECKOUT
   ═══════════════════════════════════════════════════════════════════════════ */
.checkout-wrap { padding-block: 48px; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}
.checkout-summary {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.checkout-summary-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
}
.checkout-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.checkout-item:last-of-type { border-bottom: none; }
.checkout-item-img {
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.checkout-item-info { flex: 1; }
.checkout-item-name { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.checkout-item-size { font-size: 12px; color: var(--text-light); }
.checkout-item-qty  { font-size: 12px; color: var(--text-light); }
.checkout-item-price { font-size: 14px; font-weight: 700; color: var(--amber-dark); white-space: nowrap; }
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--gray-200);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.checkout-total-row strong { font-size: 18px; color: var(--amber-dark); }
@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCOUNT PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-100);
  margin-bottom: 0;
  gap: 0;
}
.auth-tab {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.auth-tab:hover { color: var(--navy); }
.auth-tab.active { color: var(--amber-dark); border-bottom-color: var(--amber); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.account-wrap { padding-block: 48px; }
.account-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.account-sidebar {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 auto 14px;
}
.account-name { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.account-phone { font-size: 13px; color: var(--text-light); }
.account-main { min-height: 300px; }
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 14px;
}
.order-id { font-weight: 700; color: var(--navy); }
.order-date { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.order-total { font-weight: 700; color: var(--amber-dark); }
.order-status { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full); }
.order-status--pending { background: #FEF3C7; color: #92400E; }
.order-status--processing { background: #DBEAFE; color: #1E40AF; }
.order-status--shipped { background: #D1FAE5; color: #065F46; }
.order-status--delivered { background: #DCFCE7; color: #166534; }
@media (max-width: 768px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .order-row { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CART — size column
   ═══════════════════════════════════════════════════════════════════════════ */
.cart-size-badge {
  display: inline-block;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 12px;
  padding: 2px 8px;
  color: var(--text-mid);
}
