/* ==========================================================================
   MADAM (مدام) — Homemade Delights
   Stylesheet
   --------------------------------------------------------------------------
   Editable design tokens live in :root below. Change colors, fonts and
   spacing from one place. Sections are labeled with large comments so you
   can find and edit them quickly.
   ========================================================================== */

/* -------------------------- Fonts (Google Fonts) ------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&family=Cairo:wght@300;400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&family=Jost:wght@300;400;500;600&display=swap');

/* ------------------------------ Design tokens ----------------------------
   Colors were sampled directly from the Madam brand guideline (PDF).
   Feel free to tweak, but keep the family warm/earthy to stay on-brand.
   -------------------------------------------------------------------------- */
:root{
  /* Brand palette */
  --cream:        #F7EFE2;   /* page background */
  --cream-soft:   #FBF6EC;   /* card background */
  --beige:        #ECDFC8;   /* secondary background / borders */
  --tan:          #C9A063;   /* light gold accent */
  --gold:         #B3813C;   /* primary gold accent (buttons, lines) */
  --gold-deep:    #8C6425;
  --brown:        #7A5232;   /* mid brown */
  --brown-dark:   #3B2417;   /* primary text / logo brown */
  --olive:        #6E7350;   /* secondary accent (green) */
  --olive-dark:   #454A34;
  --charcoal:     #241A13;   /* dark section background */
  --charcoal-2:   #2E2117;
  --white:        #FFFDF8;

  --ok:           #5C7A4E;

  /* Typography */
  --font-ar-display: 'Aref Ruqaa', serif;
  --font-en-display: 'Cormorant Garamond', serif;
  --font-ar-body: 'Cairo', sans-serif;
  --font-en-body: 'Jost', 'Cairo', sans-serif;

  /* Layout */
  --container: 1220px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-soft: 0 10px 30px -12px rgba(59, 36, 23, 0.25);
  --shadow-card: 0 6px 24px -10px rgba(59, 36, 23, 0.22);

  --header-h: 84px;
}

/* --------------------------------- Reset --------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body{
  margin: 0;
  background: var(--cream);
  color: var(--brown-dark);
  font-family: var(--font-ar-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body{ font-family: var(--font-en-body); }

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font: inherit; cursor: pointer; }
input, textarea, select{ font: inherit; }
h1,h2,h3,h4,p{ margin: 0; }

.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Display headline helper: swaps typeface by language */
.display{ font-family: var(--font-ar-display); font-weight: 700; }
html[lang="en"] .display{ font-family: var(--font-en-display); font-weight: 600; letter-spacing: .01em; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 14px;
}
html[lang="ar"] .eyebrow{ letter-spacing: 0; text-transform: none; font-size: 15px; }
.eyebrow::before{
  content:"";
  width: 26px; height: 1px;
  background: var(--gold);
}

.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(30px, 4vw, 44px); color: var(--brown-dark); }
.section-head p{ margin-top: 14px; color: var(--brown); font-size: 16.5px; max-width: 55ch; }
.section-head.center{ margin-inline: auto; text-align: center; }

section{ padding: 96px 0; position: relative; }
@media (max-width: 720px){ section{ padding: 64px 0; } }

/* ---------------------------- Damascene arch -----------------------------
   Signature shape used across the site (image frames, dividers, badges).
   Defined once as an SVG clipPath and reused via clip-path: url(#archClip)
   -------------------------------------------------------------------------- */
.arch-frame{
  clip-path: url(#archClip);
  overflow: hidden;
  position: relative;
  background: var(--beige);
}

.arch-divider{
  width: 74px; height: 56px;
  margin: 0 auto 22px;
  display: block;
}

/* --------------------------------- Buttons -------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(140, 100, 37, .6);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(140,100,37,.7); }
.btn-outline{
  background: transparent;
  border-color: rgba(59,36,23,.25);
  color: var(--brown-dark);
}
.btn-outline:hover{ border-color: var(--brown-dark); background: rgba(59,36,23,.05); }
.btn-light{
  background: var(--cream-soft);
  color: var(--brown-dark);
}
.btn-light:hover{ background: var(--white); transform: translateY(-2px); }
.btn-block{ width: 100%; }
.btn[disabled]{ opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-sm{ padding: 9px 18px; font-size: 13px; }

/* =============================== HEADER ================================== */
#site-header{
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--header-h);
  z-index: 500;
  display: flex;
  align-items: center;
  background: rgba(247, 239, 226, 0.0);
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
#site-header.scrolled{
  background: rgba(247, 239, 226, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -14px rgba(59,36,23,.35);
}
.header-inner{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand{ display: flex; align-items: center; gap: 10px; }
.brand img{ height: 46px; width: auto; }

.main-nav{ display: flex; align-items: center; gap: 22px; }
.main-nav a{
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--brown-dark);
  position: relative;
  padding-block: 6px;
}
.main-nav a::after{
  content:"";
  position: absolute;
  inset-inline-start: 0; bottom: 0;
  width: 0%; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.main-nav a:hover::after{ width: 100%; }

.header-actions{ display: flex; align-items: center; gap: 12px; }

.lang-toggle{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(59,36,23,.25);
  border-radius: 100px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
  background: transparent;
  color: var(--brown-dark);
}
.lang-toggle:hover{ background: rgba(59,36,23,.06); }

.cart-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--brown-dark);
  color: var(--white);
  border: none;
}
.cart-btn svg{ width: 20px; height: 20px; }
.cart-count{
  position: absolute;
  top: -4px; inset-inline-end: -4px;
  background: var(--olive);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  min-width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--cream);
}

.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(59,36,23,.25);
  background: transparent;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg{ width: 20px; height: 20px; }

/* =============================== HERO (V2 — radical redesign) ============= */
/* Editorial split-screen hero: bold reveal typography on the left/start,
   an arch-topped auto-crossfading image slider on the right/end, a floating
   product chip for depth, and an infinite marquee ribbon along the bottom.
   EDIT ME: swap slide images by changing the background-image files below
   (hero-slider .slide elements), or edit the marquee word list in the HTML. */

.hero-v2{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: var(--header-h);
  background: var(--charcoal);
  color: var(--white);
  overflow: hidden;
}
/* subtle dotted arabesque-like texture across the whole hero */
.hero-v2::before{
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.hero-v2-grid{
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  max-width: 1400px;
  margin-inline: auto;
  width: 100%;
  padding: 56px 40px;
}

/* ---- Text column ---- */
.hero-v2-text{ position: relative; z-index: 2; }
.hero-v2-text::before{
  content: "مدام";
  position: absolute;
  top: -128px;
  inset-inline-start: -18px;
  font-family: var(--font-ar-display);
  font-size: 300px;
  line-height: 1;
  color: rgba(255,255,255,.04);
  z-index: -1;
  pointer-events: none;
  white-space: nowrap;
}
.hero-v2 .eyebrow{ color: var(--tan); opacity: 0; animation: heroFadeUp .8s ease .15s forwards; }
.hero-v2 .eyebrow::before{ background: var(--tan); }

.hero-v2-title{
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.2;
  color: var(--white);
}
/* Word-by-word mask reveal: each word is wrapped .rv > span, and rises up
   from below its own overflow-hidden mask with a staggered delay set via
   the inline --i custom property (0,1,2,3...) in the HTML. */
.rv{ display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.rv > span{
  display: inline-block;
  transform: translateY(112%);
  animation: wordUp .85s cubic-bezier(.19,1,.22,1) forwards;
  animation-delay: calc(var(--i, 0) * .09s + .35s);
}
@keyframes wordUp{ to{ transform: translateY(0); } }

.hero-v2-sub{
  margin-top: 22px;
  font-size: 18px;
  color: #E7D9C3;
  max-width: 620px;
  opacity: 0;
  animation: heroFadeUp .8s ease 1.05s forwards;
}
.hero-v2 .hero-actions{
  display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp .8s ease 1.2s forwards;
}
.hero-v2 .hero-actions .btn-primary{ position: relative; overflow: hidden; }
.hero-v2 .hero-actions .btn-primary::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35) 40%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 3.4s ease-in-out 2.2s infinite;
}
@keyframes sheen{ 0%,70%{ transform: translateX(-120%); } 100%{ transform: translateX(120%); } }

@keyframes heroFadeUp{ from{ opacity: 0; transform: translateY(20px); } to{ opacity: 1; transform: translateY(0); } }

.hero-v2-stats{
  display: flex; align-items: center; gap: 22px;
  margin-top: 42px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.16);
  opacity: 0;
  animation: heroFadeUp .8s ease 1.35s forwards;
}
.hero-v2-stats .hero-stat{ display: flex; flex-direction: column; gap: 2px; }
.hero-v2-stats .hero-stat strong{ font-size: 19px; color: var(--tan); font-family: var(--font-en-display); font-weight: 700; }
.hero-v2-stats .hero-stat span{ font-size: 12px; color: #D9C9AF; }
.hero-v2-stats .hero-stat-sep{ width: 1px; height: 30px; background: rgba(255,255,255,.16); }

/* ---- Visual column: arch-topped auto-crossfade slider ---- */
.hero-v2-visual{
  position: relative;
  height: 66vh;
  min-height: 420px;
  max-height: 640px;
  perspective: 1200px;
  opacity: 0;
  animation: heroFadeUp 1s ease .5s forwards;
}
.hero-slider{
  position: absolute; inset: 0;
  border-radius: 180px 180px 20px 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  border: 1px solid rgba(201,160,99,.35);
  transition: transform .3s ease-out;
  transform-style: preserve-3d;
}
.hero-slider .slide{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideCycle 18s infinite;
}
.hero-slider .slide:nth-child(1){ animation-delay: 0s; }
.hero-slider .slide:nth-child(2){ animation-delay: -6s; }
.hero-slider .slide:nth-child(3){ animation-delay: -12s; }
@keyframes slideCycle{
  0%{ opacity: 0; transform: scale(1.1); }
  4%{ opacity: 1; }
  28%{ opacity: 1; transform: scale(1.02); }
  34%{ opacity: 0; transform: scale(1.06); }
  100%{ opacity: 0; }
}
.hero-slider .slide-scrim{
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,10,6,.75) 0%, rgba(15,10,6,0) 45%);
  z-index: 2;
}

.hero-floating-chip{
  position: absolute;
  bottom: -26px;
  inset-inline-start: -26px;
  z-index: 4;
  display: flex; align-items: center; gap: 12px;
  background: var(--cream-soft);
  border-radius: 18px;
  padding: 12px 18px 12px 12px;
  box-shadow: var(--shadow-soft);
  animation: chipFloat 6s ease-in-out infinite;
}
html[dir="rtl"] .hero-floating-chip{ padding: 12px 12px 12px 18px; }
.hero-floating-chip img{ width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.hero-floating-chip strong{ display: block; font-size: 13.5px; color: var(--brown-dark); }
.hero-floating-chip span{ font-size: 11.5px; color: var(--brown); }
@keyframes chipFloat{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }

.hero-badge-ring{
  position: absolute;
  top: -22px; inset-inline-end: -18px;
  z-index: 4;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--gold-deep);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: var(--shadow-soft);
  animation: spinSlow 16s linear infinite;
}
@keyframes spinSlow{ to{ transform: rotate(360deg); } }
.hero-badge-ring span{ display: inline-block; animation: counterSpin 16s linear infinite; }
@keyframes counterSpin{ to{ transform: rotate(-360deg); } }

/* ---- Decorative floating particles ---- */
.hero-particles{
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-particles span{
  position: absolute;
  bottom: -10%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--tan);
  opacity: 0;
  animation: floatUp linear infinite;
  box-shadow: 0 0 6px 1px rgba(201,160,99,.7);
}
.hero-particles span:nth-child(1){ left: 6%;  width: 3px; height:3px; animation-duration: 14s; animation-delay: 0s; }
.hero-particles span:nth-child(2){ left: 16%; animation-duration: 18s; animation-delay: 2s; }
.hero-particles span:nth-child(3){ left: 30%; width: 5px; height:5px; animation-duration: 21s; animation-delay: 5s; }
.hero-particles span:nth-child(4){ left: 47%; animation-duration: 16s; animation-delay: 1s; }
.hero-particles span:nth-child(5){ left: 60%; width: 3px; height:3px; animation-duration: 19s; animation-delay: 7s; }
.hero-particles span:nth-child(6){ left: 75%; animation-duration: 23s; animation-delay: 3.5s; }
.hero-particles span:nth-child(7){ left: 90%; width: 5px; height:5px; animation-duration: 17s; animation-delay: 6s; }
@keyframes floatUp{
  0%{ transform: translateY(0) translateX(0); opacity: 0; }
  8%{ opacity: .8; }
  50%{ transform: translateY(-48vh) translateX(10px); opacity: .5; }
  92%{ opacity: 0; }
  100%{ transform: translateY(-92vh) translateX(-6px); opacity: 0; }
}

/* ---- Bottom marquee ribbon ---- */
.hero-marquee{
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track{
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
@keyframes marqueeScroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.marquee-track span.word{
  font-family: var(--font-en-display);
  font-size: 19px;
  color: var(--tan);
  opacity: .9;
}
.marquee-track span.dot{ color: rgba(255,255,255,.32); font-size: 14px; }

@media (max-width: 1080px){
  .hero-v2-grid{ grid-template-columns: 1fr; padding-top: 40px; }
  .hero-v2-visual{ order: -1; height: 46vh; min-height: 320px; }
  .hero-v2-text::before{ font-size: 200px; top: -70px; }
}
@media (max-width: 640px){
  .hero-v2-grid{ padding: 34px 20px; gap: 34px; }
  .hero-v2-visual{ height: 38vh; min-height: 260px; }
  .hero-slider{ border-radius: 90px 90px 16px 16px; }
  .hero-badge-ring{ width: 66px; height: 66px; font-size: 9.5px; }
  .hero-floating-chip{ padding: 9px 14px 9px 9px; }
  .hero-floating-chip img{ width: 42px; height: 42px; }
  .marquee-track span.word{ font-size: 15px; }
}

/* =============================== ABOUT ===================================== */
#about{ background: var(--cream); }
.about-grid{
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media{ position: relative; }
.about-media .arch-frame{ aspect-ratio: 4/5; box-shadow: var(--shadow-soft); }
.about-media .arch-frame img{ width: 100%; height: 100%; object-fit: cover; }
.about-media .float-card{
  position: absolute;
  bottom: -28px; inset-inline-end: -28px;
  background: var(--brown-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 26px;
  box-shadow: var(--shadow-soft);
  max-width: 230px;
}
.about-media .float-card strong{ display:block; font-size: 26px; color: var(--tan); font-family: var(--font-en-display); }
.about-media .float-card span{ font-size: 13px; opacity: .85; }

.about-copy p{ color: var(--brown); font-size: 16.5px; margin-bottom: 18px; }
.about-copy p:first-of-type{ font-size: 19px; color: var(--brown-dark); font-weight: 500; }

.about-tags{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.about-tags span{
  border: 1px solid var(--beige);
  background: var(--cream-soft);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--brown-dark);
  font-weight: 600;
}

@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; gap: 40px; }
  .about-media .float-card{ position: static; margin-top: 18px; max-width: none; display: inline-flex; align-items: center; gap: 10px; }
}

/* ============================== PRODUCTS =================================== */
#products{ background: var(--beige); }

.filter-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.filter-tabs button{
  border: 1px solid rgba(59,36,23,.2);
  background: var(--cream-soft);
  color: var(--brown-dark);
  padding: 11px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
}
.filter-tabs button.active,
.filter-tabs button:hover{
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--white);
}

.products-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
@media (max-width: 1100px){ .products-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px){ .products-grid{ grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px){ .products-grid{ grid-template-columns: 1fr; } }

.product-card{
  background: var(--cream-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover{ transform: translateY(-6px); box-shadow: 0 22px 34px -16px rgba(59,36,23,.35); }

.product-media{ position: relative; aspect-ratio: 1/1; background: var(--beige); }
.product-media img{ width: 100%; height: 100%; object-fit: cover; }
.product-badge{
  position: absolute;
  top: 12px; inset-inline-start: 12px;
  background: rgba(36,26,19,.82);
  color: var(--tan);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.product-body{ padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3{ font-size: 18px; color: var(--brown-dark); }
.product-body p{ font-size: 13.8px; color: var(--brown); flex: 1; }
.product-meta{ font-size: 12.5px; color: var(--gold-deep); font-weight: 700; }

.product-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.qty-stepper{
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(59,36,23,.2);
  border-radius: 100px;
  overflow: hidden;
}
.qty-stepper button{
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--brown-dark);
  display: flex; align-items:center; justify-content:center;
}
.qty-stepper button:hover{ background: var(--beige); }
.qty-stepper span{ width: 28px; text-align: center; font-weight: 700; font-size: 14px; }

.add-btn{
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--brown-dark);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.add-btn svg{ width: 18px; height: 18px; }
.add-btn:hover{ background: var(--gold-deep); transform: scale(1.06); }
.add-btn.added{ background: var(--ok); }

/* Featured gift-box banner card spans full width within grid */
.product-card.featured{
  grid-column: 1 / -1;
  flex-direction: row;
}
.product-card.featured .product-media{ aspect-ratio: auto; width: 46%; }
.product-card.featured .product-body{ width: 54%; justify-content: center; padding: 34px 40px; }
.product-card.featured h3{ font-size: 26px; }
.product-card.featured p{ font-size: 15px; }
@media (max-width: 780px){
  .product-card.featured{ flex-direction: column; }
  .product-card.featured .product-media, .product-card.featured .product-body{ width: 100%; }
}

/* ============================== WHY US ===================================== */
#why{ background: var(--charcoal); color: var(--white); }
#why .section-head h2{ color: var(--white); }
#why .section-head p{ color: #D9C9AF; }
#why .eyebrow{ color: var(--tan); }

.why-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why-card{
  background: var(--charcoal-2);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.why-card .icon{
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(201,160,99,.12);
  color: var(--tan);
}
.why-card .icon svg{ width: 24px; height: 24px; }
.why-card h3{ font-size: 18px; color: var(--white); }
.why-card p{ font-size: 14px; color: #C9BBA5; }

@media (max-width: 900px){ .why-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .why-grid{ grid-template-columns: 1fr; } }

/* ================================ ORDER ===================================== */
#order{ background: var(--cream); }

.order-layout{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: flex-start;
}
@media (max-width: 960px){ .order-layout{ grid-template-columns: 1fr; } }

.cart-panel, .form-panel{
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
.panel-title{
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.panel-title h3{ font-size: 20px; }
.link-btn{ background:none; border:none; color: var(--gold-deep); font-weight: 700; font-size: 13px; }
.link-btn:hover{ text-decoration: underline; }

.cart-empty{
  text-align: center;
  padding: 50px 10px;
  color: var(--brown);
}
.cart-empty svg{ width: 48px; height: 48px; margin-bottom: 14px; color: var(--tan); }

.cart-item{
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--beige);
}
.cart-item img{ width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.cart-item .ci-name{ font-weight: 700; font-size: 14.5px; color: var(--brown-dark); }
.cart-item .ci-meta{ font-size: 12px; color: var(--brown); margin-top: 2px; }
.cart-item .ci-remove{ background: none; border: none; color: #B0503C; font-size: 12.5px; font-weight: 700; margin-top: 6px; }
.cart-item .ci-actions{ display: flex; flex-direction: column; align-items: center; gap: 8px; }

.cart-summary-row{
  display: flex; justify-content: space-between;
  padding-top: 18px; margin-top: 6px;
  font-weight: 700; color: var(--brown-dark);
}

.field{ margin-bottom: 20px; }
.field label{ display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--brown-dark); }
.field input[type="text"],
.field textarea{
  width: 100%;
  border: 1px solid rgba(59,36,23,.22);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14.5px;
  color: var(--brown-dark);
  transition: border-color .2s ease;
}
.field input[type="text"]:focus,
.field textarea:focus{ outline: none; border-color: var(--gold); }
.field textarea{ min-height: 90px; resize: vertical; }

.payment-options{ display: flex; flex-direction: column; gap: 10px; }
.payment-option{
  display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(59,36,23,.2);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.payment-option:hover{ background: var(--beige); }
.payment-option input{ accent-color: var(--gold-deep); width: 17px; height: 17px; }
.payment-option.checked{ border-color: var(--gold); background: rgba(179,129,60,.08); }
.payment-option span{ font-size: 14.5px; font-weight: 600; }

.order-note{
  font-size: 12.5px;
  color: var(--brown);
  background: var(--beige);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 18px;
}

/* ============================== CONTACT ===================================== */
#contact{
  background: var(--brown-dark);
  color: var(--white);
}
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
#contact .eyebrow{ color: var(--tan); }
#contact h2{ color: var(--white); font-size: clamp(28px,4vw,40px); }
#contact p{ color: #E4D5BE; margin-top: 14px; max-width: 46ch; }

.contact-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.contact-row{
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-row:last-child{ border-bottom: none; }
.contact-row .ic{
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(201,160,99,.15);
  color: var(--tan);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row .ic svg{ width: 20px; height: 20px; }
.contact-row strong{ display: block; font-size: 15px; }
.contact-row span{ font-size: 13.5px; color: #D9C9AF; }

@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr; } }

/* ================================ FOOTER ===================================== */
footer{
  background: var(--charcoal);
  color: #C9BBA5;
  padding: 40px 0;
  text-align: center;
  font-size: 13.5px;
}
footer .brand{ justify-content: center; margin-bottom: 14px; }
footer .brand img{ height: 34px; }
footer a{ color: var(--tan); font-weight: 700; }

/* ============================ FLOATING CART BUTTON ============================= */
.floating-cart{
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--brown-dark);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 14px 22px 14px 16px;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.45);
  transition: transform .25s ease;
}
html[dir="rtl"] .floating-cart{ padding: 14px 16px 14px 22px; }
.floating-cart:hover{ transform: translateY(-3px); }
.floating-cart svg{ width: 20px; height: 20px; }
.floating-cart .fc-count{
  background: var(--olive);
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 800;
}
.floating-cart span.label{ font-size: 14px; font-weight: 700; }

/* Toast for "added to cart" feedback */
.toast{
  position: fixed;
  bottom: 96px;
  inset-inline-end: 26px;
  background: var(--olive-dark);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 600;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.toast.show{ opacity: 1; transform: translateY(0); }

/* ============================ MOBILE NAV DRAWER ============================= */
@media (max-width: 1080px){
  .main-nav{
    position: fixed;
    top: var(--header-h); inset-inline: 0;
    background: var(--cream-soft);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px 30px;
    gap: 4px;
    box-shadow: 0 16px 24px -18px rgba(0,0,0,.3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .main-nav.open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a{ width: 100%; padding: 12px 4px; border-bottom: 1px solid var(--beige); }
  .nav-toggle{ display: flex; }
}

/* ============================ PAGE HEADER (inner pages banner) ============= */
/* Used on every page except the homepage: a shorter cinematic banner with a
   background photo, breadcrumb, and title. EDIT ME: change the background
   image per page via the inline style="background-image:url(...)" on
   .page-header in each HTML file. */
.page-header{
  position: relative;
  min-height: 44vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.page-header.solid{ background: var(--charcoal); }
.page-header.solid::after{
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.page-header-scrim{
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(0deg, rgba(16,11,7,.92) 0%, rgba(20,14,9,.55) 55%, rgba(24,16,10,.35) 100%);
}
.page-header-content{
  position: relative;
  z-index: 2;
  padding-block: 44px;
  width: 100%;
}
.breadcrumb{
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: #D9C9AF;
  margin-bottom: 16px;
}
.breadcrumb a{ color: #D9C9AF; font-weight: 600; }
.breadcrumb a:hover{ color: var(--tan); }
.breadcrumb .sep{ opacity: .5; }
.breadcrumb .current{ color: var(--tan); font-weight: 700; }
.page-header h1{
  font-size: clamp(32px, 4.6vw, 52px);
  color: var(--white);
}
.page-header p{
  margin-top: 12px;
  color: #E7D9C3;
  max-width: 56ch;
  font-size: 16px;
}

/* ============================ NAV ACTIVE STATE ============================= */
.main-nav a.active{ color: var(--gold-deep); }
.main-nav a.active::after{ width: 100%; }

/* ============================ HOMEPAGE TEASERS ============================= */
/* Compact summary blocks on index.html that link out to the dedicated pages
   for each section (About / Products / Why / Catering). */
.teaser-strip{ background: var(--cream); }
.teaser-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 980px){ .teaser-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .teaser-grid{ grid-template-columns: 1fr; } }

.teaser-card{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-card);
  color: var(--white);
  display: flex;
  align-items: flex-end;
  transition: transform .35s ease, box-shadow .35s ease;
}
.teaser-card:hover{ transform: translateY(-6px); box-shadow: 0 26px 40px -18px rgba(59,36,23,.4); }
.teaser-card img{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.teaser-card:hover img{ transform: scale(1.08); }
.teaser-card .teaser-scrim{
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,10,6,.88) 0%, rgba(15,10,6,.15) 60%, rgba(15,10,6,0) 100%);
}
.teaser-card-body{ position: relative; z-index: 2; padding: 24px; }
.teaser-card-body .tag{ font-size: 12px; color: var(--tan); font-weight: 700; letter-spacing: .04em; }
.teaser-card-body h3{ font-size: 21px; margin-top: 6px; color: var(--white); }
.teaser-card-body p{ font-size: 13px; color: #E7D9C3; margin-top: 6px; }
.teaser-card-body .go{
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--tan);
}

/* Home CTA band for catering, placed between sections */
.catering-band{
  position: relative;
  background: var(--brown-dark);
  color: var(--white);
  overflow: hidden;
}
.catering-band::before{
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.catering-band-inner{
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  padding-block: 60px;
}
.catering-band h2{ color: var(--white); font-size: clamp(26px,3.6vw,38px); max-width: 18ch; }
.catering-band p{ color: #E4D5BE; margin-top: 10px; max-width: 48ch; }

/* Simple 3-column photo gallery (used on about.html) — reuses the visual
   style of .teaser-card but with its own independent responsive columns. */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px){ .gallery-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .gallery-grid{ grid-template-columns: 1fr; } }
.gallery-card{ aspect-ratio: 3/3.4; }


.catering-layout{ display: grid; grid-template-columns: 1fr; gap: 40px; }
.catering-intro{
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 8px;
}
.catering-intro-item{ display: flex; gap: 14px; align-items: flex-start; }
.catering-intro-item .ic{
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--beige);
  color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
}
.catering-intro-item .ic svg{ width: 22px; height: 22px; }
.catering-intro-item strong{ display: block; font-size: 14.5px; color: var(--brown-dark); margin-bottom: 4px;}
.catering-intro-item span{ font-size: 13px; color: var(--brown); }
@media (max-width: 860px){ .catering-intro{ grid-template-columns: 1fr; } }

.catering-form-panel{
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
}
@media (max-width: 640px){ .catering-form-panel{ padding: 24px; } }

.form-grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px){ .form-grid-2{ grid-template-columns: 1fr; } }

.field input[type="number"], .field input[type="date"]{
  width: 100%;
  border: 1px solid rgba(59,36,23,.22);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14.5px;
  color: var(--brown-dark);
}
.field input[type="number"]:focus, .field input[type="date"]:focus{ outline: none; border-color: var(--gold); }

.dish-category{ margin-bottom: 26px; }
.dish-category h4{
  font-size: 14.5px;
  color: var(--gold-deep);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--beige);
}
.dish-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 780px){ .dish-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px){ .dish-grid{ grid-template-columns: 1fr; } }

.dish-check{
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(59,36,23,.16);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
  font-size: 13.8px;
  color: var(--brown-dark);
}
.dish-check:hover{ background: var(--beige); }
.dish-check input{ accent-color: var(--gold-deep); width: 16px; height: 16px; flex-shrink: 0; }
.dish-check.checked{ border-color: var(--gold); background: rgba(179,129,60,.08); font-weight: 700; }

.dish-counter{
  display: flex; align-items: center; justify-content: space-between;
  background: var(--beige);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 26px;
  font-size: 13.5px;
  color: var(--brown-dark);
  font-weight: 600;
}
.dish-counter strong{ color: var(--gold-deep); font-size: 15px; }


.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity: 1; transform: none; }

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

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ======================= DASHBOARD-DRIVEN ADDITIONS ========================
   Prices, sold-out state, product detail modal, custom pages.             */
.product-media[data-open], .product-body h3[data-open]{ cursor: pointer; }
.product-body h3[data-open]:hover{ color: var(--gold-deep); }
.product-price{ display: flex; align-items: baseline; gap: 10px; }
.product-price strong{ font-size: 19px; color: var(--gold-deep); font-weight: 800; }
.product-price s{ font-size: 13.5px; color: var(--brown); opacity: .6; }
.product-count{
  position: absolute; bottom: 12px; inset-inline-end: 12px;
  background: rgba(255,253,248,.92); color: var(--brown-dark);
  font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 100px;
}
.product-soldout{
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(36,26,19,.55); color: var(--white); font-weight: 800; font-size: 17px;
}
.product-card.sold-out .add-btn{ opacity: .4; cursor: not-allowed; }
.products-empty{ grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--brown); }
.cart-total-price{ border-top: 1px solid rgba(59,36,23,.12); }
.cart-total-price strong{ color: var(--gold-deep); font-size: 18px; }
.cart-total-price[hidden]{ display: none; }

/* Product modal */
body.pm-open{ overflow: hidden; }
.pm[hidden]{ display: none; }
.pm{ position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pm-backdrop{ position: absolute; inset: 0; background: rgba(20,14,9,.7); backdrop-filter: blur(3px); }
.pm-dialog{
  position: relative; background: var(--cream-soft); border-radius: var(--radius-lg);
  width: min(920px, 100%); max-height: 92vh; overflow: auto;
  display: grid; grid-template-columns: 1.05fr 1fr; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
}
.pm-close{
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 5; width: 38px; height: 38px;
  border-radius: 50%; border: none; background: rgba(255,253,248,.95); font-size: 24px; line-height: 1; color: var(--brown-dark);
  box-shadow: var(--shadow-card);
}
.pm-gallery{ background: var(--beige); padding: 0; display: flex; flex-direction: column; }
.pm-main{ position: relative; aspect-ratio: 1/1; }
.pm-main img{ width: 100%; height: 100%; object-fit: cover; }
.pm-nav{
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(255,253,248,.92); font-size: 24px; color: var(--brown-dark); box-shadow: var(--shadow-card);
}
.pm-prev{ left: 12px; } .pm-next{ right: 12px; }
.pm-thumbs{ display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.pm-thumbs button{ flex: 0 0 62px; height: 62px; border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; background: none; opacity: .7; }
.pm-thumbs button.on{ border-color: var(--gold); opacity: 1; }
.pm-thumbs img{ width: 100%; height: 100%; object-fit: cover; }
.pm-info{ padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.pm-info h3{ font-size: 26px; }
.pm-info p{ color: var(--brown); }
.pm-info .product-badge.static{ position: static; align-self: flex-start; }
.pm-actions{ display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.pm-actions .btn[disabled]{ opacity: .5; cursor: not-allowed; }
@media (max-width: 720px){
  .pm-dialog{ grid-template-columns: 1fr; }
  .pm-info{ padding: 24px 22px 28px; }
}

/* Custom pages (rich text written in the dashboard) */
.cms-body{ max-width: 820px; margin-inline: auto; font-size: 17px; line-height: 1.95; color: var(--brown-dark); }
.cms-body[hidden]{ display: none; }
.cms-body h2{ font-size: 30px; margin: 1.6em 0 .5em; }
.cms-body h3{ font-size: 23px; margin: 1.4em 0 .4em; }
.cms-body p{ margin: 0 0 1.1em; }
.cms-body ul, .cms-body ol{ padding-inline-start: 1.4em; margin: 0 0 1.1em; }
.cms-body img{ max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 1em 0; box-shadow: var(--shadow-card); }
.cms-body a{ color: var(--gold-deep); text-decoration: underline; }
.cms-body blockquote{ margin: 1.2em 0; padding: 12px 22px; border-inline-start: 4px solid var(--gold); background: var(--cream); border-radius: 8px; }
