/* ==========================================================================
   DorOne — Design System & Base Styles
   Mobile-first. Brand palette per DOORe Brand Identity Guide.
   ========================================================================== */

/* Google Fonts are loaded via <link rel="preconnect"> + <link rel="stylesheet"> in each
   page's <head> (faster than an @import here — no extra CSS round-trip, and it lets the
   preconnect start the handshake early). Keep the two in sync if the family list changes. */

:root {
  /* --- Brand colors --- */
  --red: #E31E25;
  --red-dark: #B4151B;
  --gold: #FAB913;
  --gold-dark: #D99A00;
  --green: #346338;
  --white: #FFFFFF;
  --cream: #F7EFDD;
  --cream-light: #FDFAF2;
  --ink: #2A2320;
  --ink-soft: #5A5048;
  --border: #E9DFC8;

  /* --- Type --- */
  --font-main: "Vazirmatn", "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;
  --font-italic: "Playfair Display", serif;

  /* --- Shape / rhythm --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 8px rgba(42, 35, 32, 0.06), 0 1px 2px rgba(42, 35, 32, 0.06);
  --shadow-raised: 0 12px 32px rgba(42, 35, 32, 0.12);
  --container: 1240px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* the header is position:fixed (72px tall) — offset in-page anchor jumps so the
     target heading lands below it instead of hidden underneath */
  scroll-padding-top: 88px;
  /* safety net against any stray element pushing past the viewport on mobile.
     `clip` (not `hidden`) doesn't create a scroll container. */
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  /* clears the fixed site-header (72px tall at every breakpoint) so page
     content always starts below it, never underneath */
  padding-top: 72px;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
/* long unbroken strings (URLs, e-mails, product codes) wrap instead of
   spilling out of their box on narrow screens */
p, h1, h2, h3, h4, li, a, dd, dt, figcaption { overflow-wrap: break-word; }
svg { display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

section { position: relative; }

/* --- Eyebrow / italian accent label --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  color: var(--green);
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--green);
  opacity: 0.55;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(227, 30, 37, 0.28);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light {
  background: rgba(255,255,255,0.12);
  border-color: rgba(42,35,32,0.35);
  color: var(--ink);
}
.btn-outline-light:hover { background: var(--ink); color: var(--cream-light); border-color: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 250, 242, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 34px; width: auto; max-width: 160px; aspect-ratio: 640 / 274; object-fit: contain; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { background: var(--cream); color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { display: none; }
.icon-link {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  transition: background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.icon-link:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.icon-link svg { width: 19px; height: 19px; }

.nav-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (min-width: 1000px) {
  .main-nav { display: block; }
  .header-actions .btn { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--cream-light);
  display: flex; flex-direction: column;
  padding: 24px 20px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.mobile-nav-top img { height: 28px; width: auto; max-width: 160px; aspect-ratio: 640 / 274; object-fit: contain; }
.mobile-nav-close { width: 40px; height: 40px; background: none; border: none; color: var(--ink); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block; padding: 16px 4px; font-size: 22px; font-weight: 700;
  border-bottom: 1px solid var(--border); color: var(--ink);
}
.mobile-nav-footer { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.mobile-nav-footer .btn { width: 100%; }
@media (min-width: 1000px) { .mobile-nav { display: none; } }

/* ==========================================================================
   LANGUAGE SWITCHER
   ========================================================================== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 1px;
}
.lang-switch button {
  background: none;
  border: 0;
  padding: 6px 7px;
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink-soft);
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch button:hover { color: var(--red); }
.lang-switch button.is-active {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header switcher: only on desktop, next to the nav actions */
.header-actions .lang-switch { display: none; }
@media (min-width: 1000px) {
  .header-actions .lang-switch {
    display: flex;
    margin-right: 2px;
    padding-right: 10px;
    border-right: 1px solid var(--border);
  }
}

/* Drawer switcher: shown inside the mobile menu (hidden with the drawer on desktop) */
.lang-switch-drawer {
  gap: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.lang-switch-drawer button {
  font-size: 15px;
  padding: 8px 12px;
  border: 1px solid var(--border);
}
.lang-switch-drawer button.is-active {
  border-color: var(--red);
  text-decoration: none;
}

/* ==========================================================================
   RTL (Arabic)
   ========================================================================== */
:root[dir="rtl"] {
  --font-main: "Cairo", "Vazirmatn", "Segoe UI", sans-serif;
}
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .header-actions .lang-switch {
  margin-right: 0;
  margin-left: 2px;
  padding-right: 0;
  padding-left: 10px;
  border-right: 0;
  border-left: 1px solid var(--border);
}
[dir="rtl"] .lang-switch button { letter-spacing: 0; }

/* Directional icons: mirror chevrons/arrows so they point the RTL way */
[dir="rtl"] .card-link svg,
[dir="rtl"] .product-cta svg,
[dir="rtl"] .pd-related .card-link svg { transform: scaleX(-1); }

/* Product grids: keep the catalogue order reading right-to-left in Arabic
   (first product = far right). The grid already flows this way natively;
   this pins it explicitly so a stray rule can't flip it. */
[dir="rtl"] .product-grid { direction: rtl; }

/* "Best Seller" ribbon sits on the outer (right) corner in RTL */
[dir="rtl"] .product-card .badge-line { left: auto; right: 10px; }

/* Breadcrumb separator spacing is symmetric — fine as-is; just align block */
[dir="rtl"] .breadcrumb { text-align: right; }

/* Arabic letters must stay joined — kill the Latin tracking/uppercase on labels
   that carry translated Arabic text. (Italian decorative eyebrows are left alone —
   they stay Latin/Playfair in every language.) */
[dir="rtl"] .product-card .kicker,
[dir="rtl"] .product-card .badge-line,
[dir="rtl"] .footer-col h4,
[dir="rtl"] .size-selector > label,
[dir="rtl"] .size-option .pk,
[dir="rtl"] .nutrition-table th,
[dir="rtl"] .addr-panel h3,
[dir="rtl"] .pd-kicker .brand-tag {
  letter-spacing: 0;
  text-transform: none;
}
/* Weight labels stay LTR (e.g. "500 g", not "g 500") even on RTL pages */
[dir="rtl"] .size-option .wt,
[dir="rtl"] .product-card .sizes { direction: ltr; }
[dir="rtl"] .product-card .sizes { text-align: right; }

/* Footer "Get in Touch" links are LTR data (URL, e-mail, phone) — keep them
   left-to-right so "+39 329 457 9506" doesn't render as "9506 457 329 39+",
   but still aligned to the right edge under the Arabic heading */
[dir="rtl"] .footer-col a[href^="mailto:"],
[dir="rtl"] .footer-col a[href^="tel:"],
[dir="rtl"] .footer-col a[href*="wa.me"],
[dir="rtl"] .footer-col a[href^="http"] {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* Contact card / address values are LTR strings (phone, email, address) but on an
   RTL page they should still hug the right edge under their right-aligned heading */
[dir="rtl"] .contact-card p,
[dir="rtl"] .addr-panel .addr-en { text-align: right; }
[dir="rtl"] .addr-panel .addr-en span.pin { margin-right: 0; margin-left: 4px; }

/* ==========================================================================
   HERO (video)
   ========================================================================== */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  max-height: 920px;
  overflow: hidden;
  background: var(--cream); /* warm fallback, not a stark black, if media somehow fails to load */
  display: flex;
  align-items: flex-end;
}
.hero-media {
  position: absolute; inset: 0;
  overflow: hidden;
}
/* blurred fill layer: shows through in any letterbox gap around the sharp video */
.hero-media video, .hero-media img.hero-fallback {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1.35);
  filter: blur(28px) saturate(1.15) brightness(0.85);
  height: 100%; width: 100%;
  object-fit: cover;
}
.hero-media .hero-sharp {
  filter: none;
  transform: translate(-50%, -50%);
  width: auto;
  height: 100%;
  max-width: none;
  left: 50%;
  object-fit: cover;
  /* <video> renders solid black before its first frame decodes, even with `poster`
     set, on a slow connection — paint the poster as a CSS background too so that
     brief window shows the right image instead of a black block. */
  background: var(--cream) url('../assets/video/hero-poster.jpg') center/cover no-repeat;
}
@media (min-width: 900px) {
  .hero-media .hero-sharp { height: 115%; }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(42,35,32,0.15) 0%, rgba(42,35,32,0.05) 30%, rgba(247,239,221,0.55) 78%, rgba(247,239,221,0.92) 100%),
    linear-gradient(90deg, rgba(247,239,221,0.35) 0%, rgba(247,239,221,0.05) 30%, rgba(247,239,221,0.05) 70%, rgba(247,239,221,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px 56px;
  color: var(--ink);
}
.hero-content .inner { max-width: 640px; }
.hero-badge-img {
  display: block;
  height: 70px; width: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 10px rgba(42,35,32,0.18));
}
@media (min-width: 640px) { .hero-badge-img { height: 95px; margin-bottom: 22px; } }
@media (min-width: 1000px) { .hero-badge-img { height: 120px; margin-bottom: 26px; } }
.hero h1 {
  font-size: 38px;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(253,250,242,0.4);
  margin-bottom: 16px;
}
.hero h1 .script {
  display: block;
  font-family: var(--font-script);
  font-weight: 600;
  color: var(--red);
  font-size: 1.35em;
  line-height: 1;
  margin-bottom: 2px;
}
.hero p.lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 640px) {
  .hero h1 { font-size: 50px; }
  .hero p.lead { font-size: 18px; }
}
@media (min-width: 1000px) {
  .hero-content { padding: 0 32px 80px; }
  .hero h1 { font-size: 62px; }
}

/* scroll cue */
.scroll-cue {
  position: absolute; z-index: 2; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: none;
  flex-direction: column; align-items: center; gap: 6px;
  color: var(--ink-soft); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 28px; background: linear-gradient(var(--ink-soft), transparent); animation: scrollpulse 1.8s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100%{opacity:.2} 50%{opacity:1} }
@media (min-width: 640px) { .scroll-cue { display: flex; } }

/* ==========================================================================
   SECTIONS — shared
   ========================================================================== */
.section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h1, .section-head h2 { font-size: 30px; margin-top: 10px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (min-width: 768px) {
  .section { padding: 76px 0; }
  .section-head h1, .section-head h2 { font-size: 38px; }
}

/* --- Intro / value props strip --- */
.value-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 44px;
}
.value-item { display: flex; flex-direction: column; gap: 12px; }
.value-item .icon-badge {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--red);
  box-shadow: var(--shadow-card);
}
.value-item .icon-badge svg { width: 24px; height: 24px; }
.value-item h3 { font-size: 17px; }
.value-item p { color: var(--ink-soft); font-size: 14.5px; }
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

/* --- Product cards --- */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
@media (min-width: 620px) { .product-grid { gap: 24px; } }
/* stay 2-up through tablet — 3-up cards get too narrow below ~900px */
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); } }

.product-card.product-cta {
  background: var(--red); color: #fff; border-color: transparent;
  align-items: center; justify-content: center; text-align: center;
  gap: 12px; padding: 24px 16px; font-weight: 800; font-size: 15px;
  letter-spacing: .01em; min-height: 180px;
}
.product-card.product-cta svg { width: 24px; height: 24px; }
.product-card.product-cta:hover { background: var(--red-dark); color: #fff; }

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color .22s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); border-color: transparent; }
.product-card .thumb {
  aspect-ratio: 4/5; background: var(--cream-light);
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  position: relative;
}
.product-card .thumb img { max-height: 100%; width: auto; margin: 0 auto; object-fit: contain; }
.product-card .badge-line {
  position: absolute; top: 10px; left: 10px;
  background: var(--green); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.product-card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .kicker { font-size: 11.5px; color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.product-card h3 { font-size: 16px; line-height: 1.3; }
.product-card .sizes { font-size: 12.5px; color: var(--ink-soft); }
.product-card p.desc { font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.product-card .card-link {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13.5px; color: var(--red);
}
.product-card .card-link svg { width: 15px; height: 15px; }

/* --- Italian strip / about teaser --- */
.split {
  display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); }
.gingham-frame {
  position: relative;
}
.gingham-frame img { border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); width: 100%; }
.gingham-frame::before {
  content: "";
  position: absolute; inset: -14px -14px auto auto; top: -14px; right: -14px;
  width: 88px; height: 88px;
  background-image:
    linear-gradient(var(--red) 1px, transparent 1px),
    linear-gradient(90deg, var(--red) 1px, transparent 1px);
  background-size: 11px 11px;
  opacity: 0.18;
  z-index: -1;
  border-radius: var(--radius-sm);
}

/* --- Rise section: brand mascot --- */
.rise-frame .rise-mascot {
  position: absolute;
  bottom: -18px;
  left: -46px;
  width: 42%;
  max-width: 190px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 12px 20px rgba(42,35,32,.28));
  pointer-events: none;
}
@media (max-width: 640px) {
  .rise-frame .rise-mascot { width: 34%; left: -10px; bottom: -10px; }
}

/* --- Brand character band --- */
.brand-band .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.brand-character {
  flex: 0 0 auto;
  height: 300px;
  width: auto;
  filter: drop-shadow(0 14px 26px rgba(52,99,56,.18));
}
.brand-band-copy { max-width: 34ch; }
.brand-band-copy p {
  font-family: var(--font-italic);
  font-size: 23px;
  line-height: 1.45;
  color: var(--ink);
  margin-top: 10px;
}
.brand-band-copy em { color: var(--green); font-style: italic; }
@media (max-width: 900px) {
  .brand-band .container { flex-direction: column; gap: 20px; text-align: center; }
  .brand-character { height: auto; width: auto; max-width: 260px; max-height: 220px; margin: 0 auto; }
  .brand-band-copy { max-width: 46ch; }
  .brand-band-copy p { font-size: 19px; }
}

/* --- About: lifestyle gallery --- */
.about-gallery {
  display: grid; grid-template-columns: 1fr; gap: 32px 24px;
  margin-top: 44px;
}
@media (min-width: 700px) { .about-gallery { grid-template-columns: repeat(3, 1fr); } }
.about-gallery .gingham-frame img { aspect-ratio: 4/5; object-fit: cover; }

/* --- CTA band --- */
.cta-band {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  display: flex; flex-direction: column; gap: 24px; align-items: flex-start;
}
.cta-band h2 { font-size: 26px; }
@media (min-width: 768px) {
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 52px 56px; }
  .cta-band h2 { font-size: 30px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 64px 0 28px; }
.footer-top {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; } }
.footer-brand img { height: 32px; width: auto; max-width: 160px; aspect-ratio: 640 / 274; object-fit: contain; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; max-width: 320px; color: rgba(255,255,255,0.55); }
.footer-col h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { font-size: 14.5px; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--gold); }
.footer-col .addr { line-height: 1.7; display: flex; flex-direction: column; gap: 6px; }
.footer-col .addr span { display: block; }
.footer-col .addr span[lang="fa"], .footer-col .addr span[lang="ar"] { font-size: 13.5px; opacity: .8; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.45);
}
@media (min-width: 700px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.breadcrumb { font-size: 13.5px; color: var(--ink-soft); padding: 20px 0 0; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 6px; opacity: .5; }

.pd-layout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px;
  padding: 24px 0 0;
}
@media (min-width: 900px) { .pd-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 32px 0 0; } }

.pd-gallery { align-self: start; }
@media (min-width: 900px) { .pd-gallery { position: sticky; top: 96px; } }
.pd-gallery-main {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.pd-gallery-main img {
  max-height: 100%; max-width: 100%; object-fit: contain;
  transition: opacity .25s ease, transform .25s ease;
}
/* below the 2-column breakpoint the gallery is full page-width — cap its height
   so a square image doesn't push the buy panel a full screen down */
@media (max-width: 899px) {
  .pd-gallery-main { aspect-ratio: auto; height: 380px; }
}
.pd-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pd-gallery-thumbs button {
  flex: 0 0 auto;
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--cream-light);
  padding: 8px; display: flex; align-items: center; justify-content: center;
}
.pd-gallery-thumbs button.active { border-color: var(--red); }
.pd-gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pd-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pd-kicker .brand-tag { font-weight: 800; color: var(--red); font-size: 14px; letter-spacing: .03em; }
.pd-kicker .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }
.pd-kicker .cat { font-size: 13.5px; color: var(--ink-soft); }
.pd-title { font-size: 30px; margin-bottom: 14px; }
@media (min-width: 768px) { .pd-title { font-size: 36px; } }

.allergen-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(52,99,56,0.09); color: var(--green);
  border: 1px solid rgba(52,99,56,0.25);
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; margin-bottom: 20px;
}
.allergen-badge svg { width: 15px; height: 15px; flex-shrink: 0; }

.pd-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px;
}
.pd-badges .allergen-badge { margin-bottom: 0; padding: 6px 12px; font-size: 12.5px; }

.pd-desc { font-size: 16px; color: var(--ink-soft); margin-bottom: 30px; max-width: 52ch; }
.gap-note {
  display: block; font-size: 13.5px;
  color: var(--gold-dark); font-style: italic; font-family: var(--font-italic);
}
.pd-desc .gap-note { margin-top: 8px; }
.tab-panel .gap-note { font-size: 15px; }

/* --- Size selector --- */
.size-block { margin-bottom: 32px; }
.size-block > .label {
  display: block; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-soft); margin-bottom: 14px;
}
.size-options { display: flex; flex-wrap: wrap; gap: 10px; }
.size-option {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px 10px;
  min-width: 84px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.size-option:hover { border-color: var(--gold); transform: translateY(-2px); }
.size-option .ic { color: var(--ink-soft); width: 30px; height: 30px; }
.size-option .wt { font-weight: 800; font-size: 15px; color: var(--ink); }
.size-option .pk { font-size: 10.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.size-option.active {
  border-color: var(--red); background: rgba(227,30,37,0.05);
}
.size-option.active .ic { color: var(--red); }
.size-option.active .wt { color: var(--red); }

.pd-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }

/* --- Tabs --- */
.pd-tabs { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 8px; }
.tab-nav {
  display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;      /* momentum scroll on iOS */
  scrollbar-width: none;                   /* Firefox — hide the bar, still swipeable */
}
.tab-nav::-webkit-scrollbar { display: none; }  /* WebKit / Blink */
.tab-nav button {
  background: none; border: none; padding: 16px 18px;
  font-weight: 700; font-size: 14.5px; color: var(--ink-soft);
  border-bottom: 2.5px solid transparent; white-space: nowrap;
}
.tab-nav button.active { color: var(--red); border-color: var(--red); }
.tab-panel { display: none; padding: 28px 2px; }
.tab-panel.active { display: block; }
.tab-panel h4 { font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.tab-panel p, .tab-panel li { color: var(--ink-soft); font-size: 15px; }
.tab-panel .info-row { display: flex; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.tab-panel .info-row:last-child { border-bottom: none; }
.tab-panel .info-row .k { font-weight: 700; color: var(--ink); min-width: 180px; }
.nutrition-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.nutrition-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); padding: 10px 8px; border-bottom: 1.5px solid var(--ink); }
.nutrition-table td { padding: 11px 8px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.nutrition-table tr td:first-child { color: var(--ink-soft); }
.nutrition-table tr td:last-child { text-align: right; font-weight: 700; color: var(--ink); }
.nutrition-table tr.sub td:first-child { padding-left: 22px; font-size: 13.5px; }

.placeholder-note {
  background: var(--cream); border: 1px dashed var(--gold-dark);
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 13.5px; color: var(--ink-soft);
  display: flex; gap: 10px; align-items: flex-start;
}
.placeholder-note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold-dark); margin-top: 1px; }

/* --- Related products --- */
.related { margin-top: 72px; }
.scroll-row {
  display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x proximity;
  margin: 0 -20px; padding-left: 20px; padding-right: 20px;
}
.scroll-row .product-card { min-width: 210px; scroll-snap-align: start; }
@media (min-width: 900px) { .scroll-row { margin: 0; padding: 0; } }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
/* Desktop: form on the left, contact channels + address on the right so the
   page doesn't leave the whole right half of the viewport empty. Below 1000px
   it stacks (form, then channels) exactly as before. */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 1000px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 44px; align-items: start;
  }
}
.contact-aside-cta { text-align: center; margin-top: 24px; }
@media (min-width: 1000px) { .contact-aside-cta { text-align: left; } }

.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  margin-top: 44px;
}
@media (min-width: 560px) { .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
/* inside the right-hand column the cards go back to a 2-up grid */
.contact-aside .contact-grid { margin-top: 0; }
@media (min-width: 1000px) { .contact-aside .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.contact-aside .addr-panel { margin-top: 18px; }
.contact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .22s ease, box-shadow .22s ease;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); }
.contact-card .icon-badge {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream); color: var(--red);
}
.contact-card .icon-badge svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 16px; }
.contact-card p { color: var(--ink-soft); font-size: 14.5px; direction: ltr; text-align: left; }

.addr-panel {
  background: var(--cream-light); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  margin-top: 28px;
}
.addr-panel h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; color: var(--ink-soft); }
.addr-panel .addr-en { font-size: 17px; font-weight: 600; margin-bottom: 20px; direction: ltr; text-align: left; }
.addr-panel .addr-en span.pin { display: inline-flex; color: var(--red); margin-right: 4px; vertical-align: -3px; }
.addr-panel .addr-en span.pin svg { width: 18px; height: 18px; }
.addr-panel .addr-fa, .addr-panel .addr-ar { font-size: 15px; color: var(--ink-soft); margin-bottom: 10px; }
.addr-panel .addr-ar { margin-bottom: 0; }

/* --- Contact form --- */
.contact-form {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  max-width: 640px;
}
/* in the 2-column desktop layout the form fills its own column */
@media (min-width: 1000px) { .contact-layout .contact-form { max-width: none; } }
.form-row { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
@media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.form-field label .req { color: var(--red); }
.form-field input, .form-field textarea {
  /* 16px min: anything smaller makes iOS Safari auto-zoom the page on focus */
  font: inherit; font-size: 16px; color: var(--ink);
  /* clearly-visible field outline — the old --border cream was too faint on
     the cream-light fill and the inputs read as borderless */
  border: 1.5px solid #B3A588; border-radius: var(--radius-sm);
  padding: 11px 14px; background: var(--white);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(227, 30, 37, 0.15);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-status {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; display: none;
}
.form-status.ok { display: block; background: rgba(52,99,56,0.1); color: var(--green); border: 1px solid rgba(52,99,56,0.25); }
.form-status.err { display: block; background: rgba(227,30,37,0.08); color: var(--red-dark); border: 1px solid rgba(227,30,37,0.25); }
.contact-form .btn { margin-top: 4px; }
.contact-form .btn[disabled] { opacity: .6; pointer-events: none; }

/* --- Reusable "hero-style" headline: script accent line + bold continuation.
       Same treatment as the hero h1 (.hero h1 .script), sized for mid-page use. --- */
.rise-heading {
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 18px;
}
.rise-heading .script {
  display: block;
  font-family: var(--font-script);
  font-weight: 600;
  color: var(--red);
  font-size: 1.4em;
  line-height: 1;
  margin-bottom: 6px;
}
@media (min-width: 640px) { .rise-heading { font-size: 40px; } }
@media (min-width: 1000px) { .rise-heading { font-size: 48px; } }

/* Reverses column order on desktop only (image right, text left) — mobile always stacks
   text-first regardless, so reading order stays natural on small screens. */
@media (min-width: 900px) {
  .split.reverse > *:first-child { order: 2; }
  .split.reverse > *:last-child { order: 1; }
}

/* ==========================================================================
   MOBILE TOUCH TARGETS
   Bring interactive controls up to the ~44x44px minimum on touch screens.
   ========================================================================== */
@media (max-width: 767px) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 44px; padding: 11px 20px; }
  .icon-link,
  .nav-toggle,
  .mobile-nav-close { width: 44px; height: 44px; }
  .lang-switch button { padding: 9px 10px; }
  .tab-nav button { padding: 15px 18px; min-height: 44px; }
  .card-link,
  .product-card .card-link { padding: 4px 0; min-height: 32px; }
  /* nudge the smallest body copy up so it stays comfortably readable on phones */
  .product-card p.desc { font-size: 14px; }
  .product-card .sizes { font-size: 13px; }
  .value-item p { font-size: 15px; }
  /* standalone CTA buttons span the column on phones (easier tap, cleaner rhythm) */
  .btn-block-mobile { display: flex; width: 100%; }
}

/* ==========================================================================
   CATALOGUE DOWNLOAD CTA  (products page, above the footer)
   ========================================================================== */
.catalogue-cta {
  background: var(--green);
  padding: 60px 40px;
  text-align: center;
}
.catalogue-cta .container { max-width: 720px; }
.catalogue-cta-label {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.catalogue-cta-title {
  margin-bottom: 12px;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--gold);
}
.catalogue-cta-sub {
  max-width: 46ch;
  margin: 0 auto 28px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}
.catalogue-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.catalogue-cta-btn:hover {
  background: #FFC738;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
/* Arabic joins its letters and has no case — drop the Latin tracking/uppercase,
   and set the heading in the upright Arabic face instead of synthetic-italic Playfair */
[dir="rtl"] .catalogue-cta-label { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .catalogue-cta-title { font-family: var(--font-main); font-style: normal; }
@media (max-width: 600px) {
  .catalogue-cta { padding: 48px 22px; }
  .catalogue-cta-title { font-size: 26px; }
  .catalogue-cta-btn { display: flex; width: 100%; min-height: 44px; }
}

/* utility */
.visually-hidden { position:absolute; width:1px;height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
