/* ===========================================================
   PAPA SHOP × MAMA SHOP
   Premium watch catalog — collaboration visual identity
   Palette: dark charcoal UI · off-white text · Mama orange +
   Mama light-blue accents · metallic neutrals
   =========================================================== */

:root {
  /* Surfaces — flat dark charcoal */
  --c-bg:        #121212;
  --c-surface:   #181818;
  --c-surface-2: #1E1E1E;
  --c-surface-3: #242424;
  --c-line:      #2A2A2A;
  --c-line-soft: #222222;

  /* Ink */
  --c-ink:       #E5E5E5;
  --c-ink-2:     #F2F2F2;
  --c-mute:      #9A9A9A;
  --c-mute-2:    #6E6E6E;

  /* Metallic accents (silver / steel) */
  --c-silver:    #B8B8B8;
  --c-silver-2:  #8C8C8C;

  /* Mama brand */
  --c-orange:    #F5821F;   /* Mama Shop — primary */
  --c-orange-2:  #D86C0F;   /* hover */
  --c-blue:      #8BC4F0;   /* Mama Shop — secondary */
  --c-blue-2:    #6FA9D6;   /* hover */

  /* Instagram link blue */
  --c-ig-blue:   #0095F6;

  /* Status */
  --c-green:     #10B981;
  --c-red:       #F5821F;   /* alias so existing badge class works */

  /* Type */
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --font-mama:  'Vazirmatn', 'Inter', system-ui, sans-serif;

  /* Effects — subtle, dark-friendly */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.6), 0 6px 18px rgba(0,0,0,.4);

  /* Radii — minimal, editorial */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
}

/* ===========================================================
   LIGHT THEME — warm cream/beige Mama palette
   Triggered by html[data-theme="light"] (set by theme toggle)
   Mama orange + blue are constant brand anchors across themes.
   Cream/beige + warm neutrals — refined editorial feel.
   =========================================================== */
html[data-theme="light"] {
  --c-bg:        #F1ECE3;   /* warm cream/beige */
  --c-surface:   #FFFFFF;   /* cards */
  --c-surface-2: #FAF6EE;   /* slight off-cream */
  --c-surface-3: #E8DFD0;   /* warm beige for chips */
  --c-line:      #D8CFBF;   /* warm gray-beige border */
  --c-line-soft: #E8DFD0;

  --c-ink:       #2A2520;   /* warm near-black */
  --c-ink-2:     #1A1612;   /* heading black */
  --c-mute:      #6B6155;   /* warm muted brown */
  --c-mute-2:    #948B7E;   /* lighter warm gray */

  --c-silver:    #8C8C8C;
  --c-silver-2:  #B5B5B5;

  /* Mama brand colors remain consistent across themes */
  --c-orange:    #F5821F;
  --c-orange-2:  #D86C0F;
  --c-blue:      #6FA9D6;
  --c-blue-2:    #5494C2;

  --c-ig-blue:   #0095F6;
  --c-green:     #10B981;

  /* Warm-tinted shadows for cream surfaces */
  --shadow-sm: 0 1px 2px rgba(60,40,20,.08);
  --shadow-md: 0 8px 24px rgba(60,40,20,.10), 0 2px 6px rgba(60,40,20,.06);
  --shadow-lg: 0 24px 60px rgba(60,40,20,.14), 0 6px 18px rgba(60,40,20,.08);
}

/* Light theme tweaks — surface harmonization */
html[data-theme="light"] body { color: var(--c-ink); }
html[data-theme="light"] .header { background: rgba(241,236,227,0.85); }
html[data-theme="light"] .product-image { background: var(--c-surface-2); }
html[data-theme="light"] .product-image img { filter: none; }
html[data-theme="light"] .modal-image { background: var(--c-surface-2); }
html[data-theme="light"] .modal-image img { filter: none; }
html[data-theme="light"] .product-image-fallback {
  background: linear-gradient(135deg, var(--c-surface-2), var(--c-surface-3));
}
/* Hero + contact card halos: very subtle on cream so they don't feel "colorful" */
html[data-theme="light"] .hero::before,
html[data-theme="light"] .hero::after,
html[data-theme="light"] .contact-card::before,
html[data-theme="light"] .contact-card::after { opacity: 0.06; }
/* About section uses --c-surface in light = white; contrast against cream bg */
html[data-theme="light"] .about { background: var(--c-surface); }
/* Floating CTA dark blob looks heavy on cream — soften */
html[data-theme="light"] .float-btn { background: var(--c-surface-2); color: var(--c-ink); }
/* Toast on cream */
html[data-theme="light"] .toast { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); }
/* Primary buttons: dark text on warm cream needs to read as ink-on-cream */
html[data-theme="light"] .btn-primary { background: var(--c-ink-2); color: var(--c-surface); }
html[data-theme="light"] .btn-primary:hover { background: var(--c-orange); color: #1a1a1a; }
/* Card hover border accent */
html[data-theme="light"] .product-card:hover { border-color: var(--c-orange); }
/* Light theme: marquee and product stock/badge already have theme-stable colors.
   Keep the bottom strip dark so it stays a confident editorial accent. */
html[data-theme="light"] .hero-marquee { background: #0a0a0a; color: #F2F2F2; border-color: rgba(255,255,255,0.08); }
/* Hero collage: keep the inner cards dark so the watches stay dramatic in light mode */
html[data-theme="light"] .hero-card-2,
html[data-theme="light"] .hero-card-3 { background: #1a1612; color: #F2F2F2; }
html[data-theme="light"] .hero-card-2 .hero-card-tag,
html[data-theme="light"] .hero-card-3 .hero-card-tag { background: #1a1612; color: #F2F2F2; border-color: rgba(255,255,255,0.10); }

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

html, body { background: var(--c-bg); color: var(--c-ink); }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .container { padding: 0 18px; } }

/* ===========================================================
   HEADER — PAPA SHOP × MAMA SHOP lockup
   =========================================================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,18,18,0.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}

/* Dual-brand lockup: PAPA SHOP × MAMA SHOP */
.logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--c-ink);
}
.logo-mark {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid var(--c-orange);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.logo-lockup {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: 0.04em;
  font-size: 14px; line-height: 1;
  text-transform: uppercase;
}
.logo-papa    { color: var(--c-ink); }
.logo-cross   {
  color: var(--c-mute);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
}
.logo-mama {
  color: var(--c-orange);
  /* Mama logo — bold rounded geometric feel.
     When Persian/Arabic active, switch to a heavier geometric Persian. */
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 15px;
}
/* In RTL (Persian) Mama uses Vazirmatn for a clean rounded feel */
html[dir="rtl"] .logo-mama {
  font-family: var(--font-mama);
  font-weight: 800;
}

.nav { display: flex; gap: 28px; }
.nav a {
  font-weight: 500; font-size: 14px; color: var(--c-mute);
  transition: color .15s;
}
.nav a:hover { color: var(--c-ink); }

.header-actions { display: flex; gap: 10px; align-items: center; }
.mobile-menu-btn {
  display: none; font-size: 24px; padding: 4px 10px;
  color: var(--c-ink); border-radius: 8px;
}
.mobile-menu-btn:hover { background: var(--c-surface-2); }

.mobile-nav {
  display: none; flex-direction: column; gap: 0;
  border-top: 1px solid var(--c-line);
  background: var(--c-surface);
  padding: 8px 18px 14px;
}
.mobile-nav a {
  padding: 12px 0; border-bottom: 1px solid var(--c-line);
  font-weight: 500; color: var(--c-ink);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav.open { display: flex; }

/* Toggles inside mobile menu (language + theme buttons) */
.mobile-nav-toggles {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}
.mobile-nav-toggles .theme-toggle,
.mobile-nav-toggles .lang-toggle {
  flex: 1;
  padding: 10px 12px;
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header-actions { display: none; }
  .mobile-menu-btn { display: block; }
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 18px; border-radius: 6px;
  font-weight: 600; font-size: 14px; letter-spacing: -0.005em;
  border: 1px solid transparent; transition: all .15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* Primary = ink-charcoal with orange hover */
.btn-primary {
  background: var(--c-ink-2); color: var(--c-bg);
  border-color: var(--c-ink-2);
}
.btn-primary:hover {
  background: var(--c-orange); border-color: var(--c-orange);
  color: #1A1A1A;
}

/* Ghost = subtle outlined dark surface */
.btn-ghost {
  background: transparent; color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-ghost:hover {
  border-color: var(--c-ink); background: var(--c-surface-2);
}

/* Mama-CTA — used sparingly for the Mama IG handle */
.btn-mama {
  background: transparent; color: var(--c-ink);
  border-color: var(--c-orange);
}
.btn-mama:hover {
  background: var(--c-orange); color: #1A1A1A;
}

/* ===========================================================
   HERO — collaborative title block
   =========================================================== */
.hero {
  position: relative;
  padding: 80px 0 40px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
}
/* Very subtle ring halos — Mama orange + Mama blue, restrained */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.10;
  pointer-events: none;
}
.hero::before {
  width: 360px; height: 360px;
  top: -120px; right: -120px;
  background: var(--c-orange);
}
.hero::after {
  width: 320px; height: 320px;
  bottom: -100px; left: -100px;
  background: var(--c-blue);
}

.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 48px; align-items: center;
  min-height: 520px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; min-height: auto; }
  .hero { padding: 40px 0 24px; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-mute); margin-bottom: 22px;
  padding: 6px 12px; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: 4px;
}
.dot {
  width: 6px; height: 6px;
  background: var(--c-orange); border-radius: 50%;
  box-shadow: 0 0 8px var(--c-orange);
}

.hero-title {
  font-size: clamp(38px, 5.8vw, 72px);
  font-weight: 900; line-height: 0.95;
  letter-spacing: -0.035em; color: var(--c-ink-2);
  margin-bottom: 22px;
}
.hero-title-accent {
  color: var(--c-orange);
  position: relative;
  display: inline-block;
}
.hero-title-blue {
  color: var(--c-blue);
  font-weight: 800;
}

.hero-sub {
  font-size: 17px; color: var(--c-mute); max-width: 480px;
  margin-bottom: 32px; line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-mono); font-weight: 700; font-size: 24px;
  color: var(--c-ink); letter-spacing: -0.02em;
}
.stat-lbl {
  font-size: 11px; color: var(--c-mute-2); text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Hero visual — three watch cards in dark surfaces */
.hero-visual {
  position: relative; height: 460px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.hero-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  position: relative; overflow: hidden;
  transition: transform .3s ease;
}
.hero-card-1 { grid-row: span 2; }
.hero-card-2, .hero-card-3 { background: var(--c-surface-2); }
.hero-card-1 { transform: rotate(-1.5deg); }
.hero-card-2 { transform: rotate(2deg) translateY(10px); }
.hero-card-3 { transform: rotate(-2deg); }
.hero-card:hover { transform: rotate(0) scale(1.02); border-color: var(--c-orange); }

.hero-card-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
  background: var(--c-bg); color: var(--c-ink);
  padding: 4px 8px; border-radius: 3px;
  border: 1px solid var(--c-line);
  z-index: 3;
}
.tag-retro   { color: var(--c-orange); }
.tag-women  { color: #C2185B; }

.hero-watch-display {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

/* Admin-uploaded hero photo (injected by app.js as <img class="hero-watch-photo">).
   Sits on top of the CSS watch-face and covers it. When no photo is set the
   .hero-watch-photo element doesn't exist and the watch-face underneath shows. */
.hero-watch-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: var(--radius-lg);
  background: var(--c-surface-2);
  z-index: 1;
}
/* When the card has an uploaded photo, remove its padding so the photo can
   fill edge-to-edge, and hide the CSS watch-face underneath. */
.hero-card.has-photo { padding: 0; }
.hero-watch-display.has-photo > .watch-face {
  visibility: hidden;
}

.watch-face {
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: #0a0a0a;
  position: relative;
  box-shadow: inset 0 0 30px rgba(0,0,0,.6), 0 12px 28px rgba(0,0,0,.4);
}
.hero-card-1 .watch-face { background: #050505; }
.watch-face-digital { background: linear-gradient(135deg, #050505, #1a1a1a); }
.watch-face-retro   { background: #1a1a1a; }
.watch-face-women  { background: #1a1a1a; }

.watch-screen {
  position: absolute; inset: 12%;
  background: linear-gradient(135deg, #000 0%, #0a0a0a 100%);
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 10px rgba(139,196,240,.15);
  border: 1px solid var(--c-blue);
}
.watch-digits {
  font-family: var(--font-mono); font-size: 28px; font-weight: 700;
  color: var(--c-blue); text-shadow: 0 0 8px rgba(139,196,240,.4);
  letter-spacing: 0.05em;
}
.watch-subdigits {
  font-family: var(--font-mono); font-size: 10px; color: var(--c-blue);
  opacity: 0.7; margin-top: 4px; letter-spacing: 0.1em;
}

.watch-hand {
  position: absolute; left: 50%; bottom: 50%;
  transform-origin: 50% 100%;
  background: var(--c-ink);
  border-radius: 4px;
}
.watch-face-women .watch-hand { background: var(--c-silver); }
.watch-hand-h { width: 4px; height: 30%; margin-left: -2px; }
.watch-hand-m { width: 3px; height: 40%; margin-left: -1.5px; }
.watch-hand-s { width: 1.5px; height: 44%; margin-left: -0.75px; background: var(--c-orange); }
.watch-face-women .watch-hand-s { background: var(--c-orange); }
.watch-center {
  position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: var(--c-ink); border-radius: 50%;
  z-index: 2;
}
.watch-face-women .watch-center { background: var(--c-silver); }

@media (max-width: 900px) {
  .hero-visual { height: 380px; }
}

/* Marquee — bottom strip in dark, restrained accent */
.hero-marquee {
  margin-top: 36px;
  border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
  background: #0a0a0a; color: #F2F2F2;
  padding: 14px 0; overflow: hidden;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
}
.marquee-track {
  display: inline-flex; gap: 24px; white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee-track span:nth-child(even) { color: var(--c-orange); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===========================================================
   CATALOG
   =========================================================== */
.catalog { padding: 80px 0; }
@media (max-width: 640px) { .catalog { padding: 48px 0; } }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; gap: 20px; flex-wrap: wrap;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--c-orange); letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.05; color: var(--c-ink-2);
}
.section-meta {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--c-mute); letter-spacing: 0.1em;
}

/* Filters */
.filters {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: 6px; padding: 10px 16px; flex: 1; min-width: 220px;
  transition: border-color .15s;
}
.filter-search:focus-within { border-color: var(--c-orange); }
.filter-search svg { color: var(--c-mute-2); flex-shrink: 0; }
.filter-search input {
  flex: 1; border: 0; outline: none; background: none;
  font: inherit; color: var(--c-ink);
}
.filter-search input::placeholder { color: var(--c-mute-2); }

.filter-categories { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; border-radius: 6px;
  background: var(--c-surface); border: 1px solid var(--c-line);
  font-size: 13px; font-weight: 500; color: var(--c-mute);
  transition: all .15s;
}
.chip:hover { border-color: var(--c-ink); color: var(--c-ink); }
.chip-active {
  background: var(--c-orange); color: #1a1a1a; border-color: var(--c-orange);
}
.chip-active:hover { background: var(--c-orange-2); color: #1a1a1a; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Product card — dark editorial */
.product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-orange);
}

.product-image {
  aspect-ratio: 1;
  background: var(--c-surface-2);
  position: relative; overflow: hidden;
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
  filter: brightness(0.96) saturate(0.92);
}
.product-card:hover .product-image img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1);
}

.product-image-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: var(--c-silver-2);
  background: linear-gradient(135deg, var(--c-surface-2), var(--c-surface-3));
}

.product-badge {
  position: absolute; top: 12px; left: 12px;
  z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
  padding: 5px 9px; border-radius: 3px;
  background: #000000; color: #FFFFFF;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.badge-Digital  { background: #000000; color: #8BC4F0;  border-color: #8BC4F0; }
.badge-Retro    { background: #000000; color: #F5821F; border-color: #F5821F; }
.badge-Luxury   { background: #000000; color: #D4AF37; border-color: #D4AF37; }   /* gold — matches brand "Mama Shop × Papa Shop" lockup */
.badge-Women    { background: #000000; color: #F5A3C0; border-color: #F5A3C0; }   /* soft rose — readable on dark + contrasts card */
.badge-Sport    { background: #000000; color: #FFFFFF;  border-color: #FFFFFF; }
.badge-Metallic { background: #000000; color: #C0C0C0;  border-color: #C0C0C0; }

.product-stock {
  position: absolute; top: 12px; right: 12px;
  z-index: 2;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  background: #000000; color: #FFFFFF;
  padding: 5px 9px; border-radius: 3px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.product-stock::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-green); box-shadow: 0 0 6px var(--c-green);
}
.product-stock.out::before { background: var(--c-mute-2); box-shadow: none; }

.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-title {
  font-size: 16px; font-weight: 700; color: var(--c-ink-2);
  letter-spacing: -0.01em; line-height: 1.3;
}
.product-category {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
  color: var(--c-mute-2); text-transform: uppercase;
}
.product-price {
  margin-top: auto; padding-top: 8px;
  font-size: 22px; font-weight: 800; color: var(--c-ink-2);
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 6px;
}
.product-price-currency { font-size: 12px; color: var(--c-mute-2); font-weight: 600; }

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 20px; color: var(--c-mute);
}
.empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.6; }
.empty-state h3 { font-size: 22px; margin-bottom: 6px; color: var(--c-ink-2); }
.empty-state p { margin-bottom: 18px; }

/* ===========================================================
   ABOUT
   =========================================================== */
.about { padding: 80px 0; background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }
.about-body p {
  font-size: 17px; color: var(--c-mute); margin-bottom: 16px; line-height: 1.7;
}
.about-body a { color: var(--c-orange); font-weight: 600; }
.about-body a:hover { text-decoration: underline; }
.about-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  padding: 8px 14px; border-radius: 4px;
  background: var(--c-surface-2); color: var(--c-ink);
  border: 1px solid var(--c-line);
}

/* ===========================================================
   CONTACT
   =========================================================== */
.contact { padding: 80px 0; }
.contact-card {
  background: var(--c-surface-2);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
  align-items: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
/* Subtle orange + blue rings — like layered halos */
.contact-card::before, .contact-card::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.08; pointer-events: none;
}
.contact-card::before { width: 280px; height: 280px; top: -100px; right: -80px; background: var(--c-orange); }
.contact-card::after  { width: 240px; height: 240px; bottom: -100px; left: -60px;  background: var(--c-blue);   }

.contact-text { position: relative; }
.contact-text .section-eyebrow { color: var(--c-blue); }
.contact-text .section-title { color: var(--c-ink-2); }
.contact-text p { color: var(--c-mute); font-size: 16px; max-width: 380px; }

.contact-actions { display: flex; flex-direction: column; gap: 12px; position: relative; }
.contact-actions #phoneContact { direction: ltr; }
.contact-actions #phoneText { unicode-bidi: isolate; }
.contact-actions .btn-ghost {
  background: transparent; color: var(--c-ink);
  border-color: var(--c-line);
}
.contact-actions .btn-ghost:hover {
  background: var(--c-surface-3); border-color: var(--c-ink);
}
.contact-actions .btn-primary { background: var(--c-ink-2); color: var(--c-bg); }
.contact-actions .btn-primary:hover { background: var(--c-orange); border-color: var(--c-orange); color: #1a1a1a; }

/* Dual-IG row inside contact — fills the action column as a true side-by-side row */
.contact-ig-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.contact-ig-row .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 16px;
  font-size: 14px;
  justify-content: center;
}
@media (max-width: 520px) {
  .contact-ig-row .btn { flex: 1 1 100%; }
}

@media (max-width: 800px) {
  .contact-card { grid-template-columns: 1fr; padding: 36px 24px; }
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { background: var(--c-surface); border-top: 1px solid var(--c-line); padding: 48px 0 32px; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; align-items: start;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 20px; } }
.footer-tagline { color: var(--c-mute); font-size: 14px; margin-top: 10px; max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--c-mute); font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: var(--c-ink-2); }
.footer-meta { color: var(--c-mute-2); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-dot { opacity: 0.5; }
/* RTL only: push the Est/rights line onto a second row. In LTR this is hidden so the layout stays one row. */
.footer-meta-break { display: none; }
html[dir="rtl"] .footer-meta-break { display: block; flex-basis: 100%; height: 0; }

/* ===========================================================
   FLOATING CTA
   =========================================================== */
.floating-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-surface-2); color: var(--c-ink);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  transition: all .15s;
}
.float-btn:hover { transform: scale(1.08); border-color: var(--c-orange); }
.float-ig { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: transparent; color: #fff; }
.float-wa { background: #25D366; border-color: transparent; color: #fff; }

@media (max-width: 640px) { .floating-cta { right: 14px; bottom: 14px; } }

/* ===========================================================
   MODAL
   =========================================================== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-card {
  position: relative; z-index: 1;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xl);
  max-width: 920px; width: 100%;
  max-height: 90vh; overflow: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-surface-2); color: var(--c-ink);
  border: 1px solid var(--c-line);
  font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--c-orange); color: #1a1a1a; border-color: var(--c-orange); }

.modal-body {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
@media (max-width: 800px) { .modal-body { grid-template-columns: 1fr; } }

.modal-image {
  background: var(--c-surface-2);
  position: relative; overflow: hidden;
  min-height: 320px;
}
.modal-image img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.97); }
.modal-image-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 140px; color: var(--c-silver-2);
}

.modal-content { padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 800px) { .modal-content { padding: 24px 20px; } }
.modal-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-badges .product-badge { position: static; }
.modal-title {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15; color: var(--c-ink-2);
}
.modal-price {
  font-size: 32px; font-weight: 900; color: var(--c-orange);
  letter-spacing: -0.02em;
}
.modal-desc { color: var(--c-mute); line-height: 1.7; }
.modal-meta {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--c-mute-2); letter-spacing: 0.05em;
  border-top: 1px dashed var(--c-line);
  padding-top: 14px; margin-top: 4px;
}
.modal-meta strong { color: var(--c-ink); font-weight: 600; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

/* ===========================================================
   TOAST
   =========================================================== */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: var(--c-surface-2); color: var(--c-ink);
  border: 1px solid var(--c-line);
  padding: 12px 20px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 60;
  animation: toastIn .2s ease;
}
.toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ===========================================================
   SCROLL REVEAL
   =========================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   LANGUAGE TOGGLE (header)
   =========================================================== */
.lang-toggle {
  font: inherit;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  border-radius: 4px;
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.lang-toggle:hover {
  background: var(--c-surface-2); border-color: var(--c-orange);
  color: var(--c-orange);
}
.lang-toggle:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; }

/* Theme toggle (dark/light) — same compact look as lang toggle */
.theme-toggle {
  font: inherit;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  border-radius: 4px;
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.theme-toggle:hover {
  background: var(--c-surface-2); border-color: var(--c-blue);
  color: var(--c-blue);
}
.theme-toggle:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }

/* ===========================================================
   RTL SUPPORT (Persian / Arabic / Hebrew / Urdu)
   Triggered by html[dir="rtl"] set by /js/i18n.js
   =========================================================== */

/* Persian-friendly font stack for RTL languages */
html[dir="rtl"] body {
  font-family: var(--font-mama), 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Force RTL text alignment on flowing content */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] p, html[dir="rtl"] li { text-align: right; }

/* Brand lockup: keep Papa Shop LTR-readable and Mama Shop readable */
html[dir="rtl"] .logo-lockup { direction: rtl; }
html[dir="rtl"] .logo-papa    { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .logo-cross   { padding: 0 4px; }

/* Header layout: flip nav order so first item appears on the right */
html[dir="rtl"] .header-inner { flex-direction: row-reverse; }
html[dir="rtl"] .nav { flex-direction: row-reverse; }
html[dir="rtl"] .header-actions { flex-direction: row-reverse; }

/* Hero: flip grid so visual goes on the left, content on the right.
   Desktop-only — on mobile we collapse to a single column regardless of dir. */
html[dir="rtl"] .hero-grid { direction: rtl; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
  html[dir="rtl"] .hero-grid { grid-template-columns: 1fr; }
}

/* Section heads: section-title goes right, meta goes left */
html[dir="rtl"] .section-head { direction: rtl; }
html[dir="rtl"] .section-meta { text-align: left; }

/* Filters row: search on right, categories on left in RTL */
html[dir="rtl"] .filters { direction: rtl; }
html[dir="rtl"] .filter-search svg { order: 2; }
html[dir="rtl"] .filter-search input { text-align: right; }
html[dir="rtl"] .filter-categories { flex-direction: row-reverse; justify-content: flex-end; }

/* Product card: text reads right-to-left.
   Category badge (.product-badge) is at top-LEFT in LTR.
   Stock badge (.product-stock) is at top-RIGHT in LTR.
   In RTL they need to swap sides to avoid overlap. */
html[dir="rtl"] .product-card { direction: rtl; text-align: right; }
html[dir="rtl"] .product-badge { left: auto; right: 12px; }
html[dir="rtl"] .product-stock { right: auto; left: 12px; }

/* About section */
html[dir="rtl"] .about-grid { direction: rtl; }
html[dir="rtl"] .about-body { text-align: right; }
html[dir="rtl"] .about-pills { flex-direction: row-reverse; justify-content: flex-end; }

/* Contact — in RTL the text block should be on the right and actions on the left */
html[dir="rtl"] .contact-card { direction: rtl; }
html[dir="rtl"] .contact-text { text-align: right; }
html[dir="rtl"] .contact-actions { flex-direction: column; direction: rtl; }
html[dir="rtl"] .contact-actions .btn { direction: ltr; } /* keep icons + buttons visually consistent */
/* Contact — in RTL the text block should be on the right and actions on the left.
   Desktop only: on mobile (≤800px) the grid collapses to a single column so text
   and actions stack vertically regardless of direction. Without scoping this
   to desktop, the RTL grid-template-columns: 1fr 1.2fr rule would override the
   mobile 1fr collapse and keep the items side-by-side on RTL phones, which
   squashed the text half-hidden next to the tall actions column. */
@media (min-width: 801px) {
  html[dir="rtl"] .contact-card {
    grid-template-columns: 1fr 1.2fr;
  }
  html[dir="rtl"] .contact-card .contact-text   { grid-column: 2; grid-row: 1; }
  html[dir="rtl"] .contact-card .contact-actions { grid-column: 1; grid-row: 1; }
}

/* Footer — brand on right, links/meta on left in RTL */
html[dir="rtl"] .footer-inner { direction: rtl; grid-template-columns: 1fr 1fr 2fr; }
html[dir="rtl"] .footer-brand { text-align: right; }
html[dir="rtl"] .footer-brand .logo { justify-content: flex-end; }
html[dir="rtl"] .footer-links { flex-direction: column; direction: rtl; align-items: flex-end; }
html[dir="rtl"] .footer-links a { text-align: right; }
html[dir="rtl"] .footer-meta { direction: rtl; justify-content: flex-end; text-align: right; flex-direction: row-reverse; }

/* Bidi-isolate Instagram handles so @username stays LTR within an RTL page.
   Without this, the neutral @ and . flip relative to surrounding Persian text
   and the handle visually renders as "username@". */
.ig-handle {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
  text-align: left;
}
html[dir="rtl"] .footer-tagline { text-align: right; margin-right: 0; }

/* Floating CTA: moves to LEFT side of screen in RTL */
html[dir="rtl"] .floating-cta { right: auto; left: 22px; }
@media (max-width: 640px) {
  html[dir="rtl"] .floating-cta { left: 14px; right: auto; }
}

/* Modal: text alignment */
html[dir="rtl"] .modal-card { direction: rtl; text-align: right; }
html[dir="rtl"] .modal-content { text-align: right; }
html[dir="rtl"] .modal-meta { text-align: right; }
html[dir="rtl"] .modal-actions { flex-direction: row-reverse; }
html[dir="rtl"] .modal-close { left: auto; right: 16px; }

/* Toast stays centered — neutral across LTR/RTL */
html[dir="rtl"] .toast { direction: rtl; }

/* Empty state */
html[dir="rtl"] .empty-state { direction: rtl; text-align: center; }
html[dir="rtl"] .empty-state h3,
html[dir="rtl"] .empty-state p { text-align: center; }

/* Mobile menu */
html[dir="rtl"] .mobile-nav { text-align: right; }

/* Result count + piece count in catalog stays LTR-neutral; just text-align right */
html[dir="rtl"] .section-meta,
html[dir="rtl"] .resultCount,
html[dir="rtl"] #resultCount { text-align: left; }

/* Phone number stays LTR even in RTL so digits don't get reversed visually.
   The <bdi dir="ltr"> wrapper in index.html already isolates the bidi run,
   but we also enforce LTR on the anchor itself so the entire button renders
   left-to-right in both languages. */
html[dir="rtl"] #phoneText,
html[dir="rtl"] #phoneContact { direction: ltr; unicode-bidi: isolate; }

/* Small viewport adjustments */
@media (max-width: 520px) {
  html[dir="rtl"] .header-actions { gap: 6px; }
}