/* =========================================================
   GRANOLA+  —  Design tokens
   Palette derived from the brand's own jar label & packaging:
   deep maroon wordmark, sage-green leaf accent, warm oat cream.
   ========================================================= */
:root{
  --maroon:        #4A2018;
  --maroon-dark:   #2E130C;
  --maroon-soft:   #6B3527;
  --green:         #5F7D45;
  --green-dark:    #435C30;
  --green-pale:    #E7EEDF;
  --cream:         #FBF6EE;
  --sand:          #F1E8D8;
  --sand-line:     #E4D8C2;
  --tan:           #C89B6A;
  --ink:           #2A2420;
  --ink-soft:      #766B60;
  --white:         #FFFFFF;

  --font-display:  'Markazi Text', 'Georgia', serif;
  --font-body:     'IBM Plex Sans Arabic', 'Tahoma', sans-serif;
  --font-brand:    'Poppins', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 10px 30px rgba(42,36,32,0.08);
  --shadow-lift: 0 18px 46px rgba(42,36,32,0.16);

  --ease: cubic-bezier(.2,.7,.3,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

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

:focus-visible{
  outline:2.5px solid var(--green);
  outline-offset:3px;
}

h1,h2,h3{ font-family:var(--font-display); color:var(--maroon); margin:0; line-height:1.15; }

.section{ padding:88px 6vw; max-width:1280px; margin:0 auto; }
@media (max-width:720px){ .section{ padding:60px 6vw; } }

.section-head{ text-align:center; max-width:620px; margin:0 auto 48px; }
.section-head h2{ font-size:clamp(28px,4vw,42px); margin:10px 0 14px; }
.section-lede{ color:var(--ink-soft); font-size:16px; margin:0; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-brand); font-weight:700; letter-spacing:.06em;
  color:var(--green-dark); font-size:13px; text-transform:uppercase;
  margin:0;
}

/* ---- signature "+" mark ----
   The plus is Granola+'s own identity mark (its literal logo glyph,
   and the idea inside "صحة مضافة، طاقة مضاعفة"), reused everywhere
   in place of generic bullets, numbers, or dots. */
.plus-mark{
  position:relative; width:14px; height:14px; flex:0 0 auto; display:inline-block;
}
.plus-mark::before,.plus-mark::after{
  content:''; position:absolute; background:var(--green); border-radius:2px;
}
.plus-mark::before{ top:0; bottom:0; left:6px; width:2.4px; }
.plus-mark::after{ left:0; right:0; top:6px; height:2.4px; }
.plus-mark--light::before,.plus-mark--light::after{ background:var(--cream); }
.plus-mark--big{ width:34px; height:34px; opacity:.35; }
.plus-mark--big::before{ left:15px; width:4px; border-radius:3px; }
.plus-mark--big::after{ top:15px; height:4px; border-radius:3px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 28px; border-radius:100px; font-weight:600; font-size:15px;
  border:1.5px solid transparent; transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space:nowrap;
}
.btn-primary{ background:var(--maroon); color:var(--white); }
.btn-primary:hover{ background:var(--maroon-dark); transform:translateY(-2px); box-shadow:var(--shadow-lift); }
.btn-ghost{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.6); backdrop-filter:blur(2px); }
.btn-ghost:hover{ background:rgba(255,255,255,.12); transform:translateY(-2px); }
.btn-light{ background:var(--cream); color:var(--maroon); }
.btn-light:hover{ background:var(--white); transform:translateY(-2px); }
.btn-full{ width:100%; }
.btn:active{ transform:translateY(0) scale(.98); }

/* =========================================================
   Nav
   ========================================================= */
.site-nav{
  position:fixed; inset-inline:0; top:0; z-index:60;
  background:rgba(251,246,238,0);
  transition:background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-nav.scrolled{
  background:rgba(251,246,238,.92);
  backdrop-filter:blur(10px);
  box-shadow:0 4px 20px rgba(42,36,32,.06);
}
.nav-inner{
  max-width:1280px; margin:0 auto; padding:16px 6vw;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand-mark{ display:flex; flex-direction:column; line-height:1; gap:2px; }
.brand-word{
  font-family:var(--font-brand); font-weight:800; letter-spacing:.01em;
  font-size:22px; color:var(--maroon);
}
.brand-plus{ color:var(--green); }
.brand-sub{ font-family:var(--font-display); font-size:13px; color:var(--ink-soft); }

.nav-links{ display:flex; gap:32px; }
.nav-links a{
  font-weight:500; font-size:15px; color:var(--ink); position:relative; padding:4px 0;
}
.nav-links a::after{
  content:''; position:absolute; right:0; left:0; bottom:-2px; height:2px; background:var(--green);
  transform:scaleX(0); transform-origin:right; transition:transform .3s var(--ease);
}
.nav-links a:hover::after{ transform:scaleX(1); }

.nav-actions{ display:flex; align-items:center; gap:10px; }
.nav-wa{
  width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--green-pale); color:var(--green-dark); transition:background .25s var(--ease), transform .25s var(--ease);
}
.nav-wa:hover{ background:var(--green); color:var(--white); transform:translateY(-2px); }

.cart-btn{
  position:relative; width:40px; height:40px; border-radius:50%; border:none;
  background:var(--sand); color:var(--maroon); display:flex; align-items:center; justify-content:center;
  transition:background .25s var(--ease), transform .25s var(--ease);
}
.cart-btn:hover{ background:var(--tan); transform:translateY(-2px); }
.cart-count{
  position:absolute; top:-4px; left:-4px; background:var(--maroon); color:var(--white);
  font-size:11px; font-weight:700; min-width:18px; height:18px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; padding:0 3px;
  transition:transform .2s var(--ease);
}
.cart-count.bump{ animation:bump .35s var(--ease); }
@keyframes bump{ 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }

.menu-toggle{ display:none; flex-direction:column; gap:5px; width:34px; height:34px; border:none; background:none; align-items:center; justify-content:center; }
.menu-toggle span{ width:22px; height:2px; background:var(--maroon); border-radius:2px; transition:transform .3s var(--ease), opacity .3s var(--ease); }
.menu-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity:0; }
.menu-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero{ position:relative; min-height:100svh; display:flex; flex-direction:column; justify-content:flex-end; }
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media img{ width:100%; height:100%; object-fit:cover; }
.hero-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(0deg, rgba(20,12,8,.82) 0%, rgba(20,12,8,.35) 46%, rgba(20,12,8,.15) 68%, rgba(20,12,8,.35) 100%);
}
.hero-content{
  position:relative; z-index:1; color:var(--white);
  padding:0 6vw 56px; max-width:760px;
  animation:rise .9s var(--ease) both;
}
.hero-content .eyebrow{ color:var(--sand); }
.hero-content .eyebrow .plus-mark::before,.hero-content .eyebrow .plus-mark::after{ background:var(--tan); }
.hero-title{ color:var(--white); font-size:clamp(42px,7.5vw,76px); margin:14px 0 18px; }
.hero-text{ font-size:clamp(16px,2vw,19px); max-width:480px; color:rgba(255,255,255,.9); margin:0 0 32px; }
.hero-cta{ display:flex; gap:16px; flex-wrap:wrap; }

.hero-facts{
  position:relative; z-index:1;
  display:grid; grid-template-columns:repeat(3,1fr);
  background:var(--white); margin:0 6vw; border-radius:var(--radius-lg);
  transform:translateY(50%);
  box-shadow:var(--shadow-lift);
  overflow:hidden;
}
.fact{ display:flex; align-items:center; gap:10px; padding:22px 26px; border-inline-start:1px solid var(--sand-line); }
.fact:first-child{ border-inline-start:none; }
.fact p{ margin:0; font-size:14.5px; font-weight:500; color:var(--ink); }
@media (max-width:780px){
  .hero-facts{ grid-template-columns:1fr; transform:translateY(30px); position:static; margin:-30px 6vw 0; }
  .fact{ border-inline-start:none; border-top:1px solid var(--sand-line); }
  .fact:first-child{ border-top:none; }
  .hero{ padding-bottom:0; }
}

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

/* =========================================================
   Products
   ========================================================= */
.products-section{ padding-top:150px; }
@media (max-width:780px){ .products-section{ padding-top:110px; } }

.product-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:32px; }
@media (max-width:780px){ .product-grid{ grid-template-columns:1fr; } }

.product-card{
  background:var(--white); border-radius:var(--radius-lg); overflow:hidden;
  box-shadow:var(--shadow-soft); transition:transform .35s var(--ease), box-shadow .35s var(--ease);
  display:flex; flex-direction:column;
}
.product-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lift); }

.product-media{ position:relative; aspect-ratio:4/3.1; overflow:hidden; background:var(--sand); cursor:pointer; }
.product-media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.product-card:hover .product-media img{ transform:scale(1.06); }

.product-media--missing{
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px;
  border:2px dashed var(--tan); background:
    repeating-linear-gradient(135deg, var(--sand), var(--sand) 12px, #ecdfc7 12px, #ecdfc7 24px);
  color:var(--maroon-soft); text-align:center; padding:20px;
}
.product-media--missing .plus-mark--big{ opacity:.5; }
.product-media--missing span.msg{ font-size:13px; font-weight:600; max-width:220px; }
.product-media--missing span.file{ font-size:11.5px; color:var(--ink-soft); direction:ltr; }

.product-label{
  position:absolute; top:16px; right:16px; background:var(--white); color:var(--maroon);
  font-family:var(--font-display); font-weight:700; font-size:13px; padding:6px 14px;
  border-radius:100px; box-shadow:var(--shadow-soft);
}

.product-body{ padding:22px 24px 26px; display:flex; flex-direction:column; gap:14px; flex:1; }
.product-name{ font-size:22px; margin:0; }
.product-desc{ margin:0; color:var(--ink-soft); font-size:14px; line-height:1.6; }

.size-toggle{ display:flex; gap:8px; }
.size-pill{
  flex:1; text-align:center; padding:10px 8px; border-radius:100px; border:1.5px solid var(--sand-line);
  background:var(--cream); font-size:13.5px; font-weight:600; color:var(--ink-soft);
  transition:all .25s var(--ease);
}
.size-pill.active{ background:var(--maroon); border-color:var(--maroon); color:var(--white); }
.size-pill:hover:not(.active){ border-color:var(--tan); color:var(--ink); }

.product-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; }
.product-price{ font-family:var(--font-display); font-weight:700; font-size:22px; color:var(--maroon); }

.qty-stepper{ display:flex; align-items:center; gap:0; border:1.5px solid var(--sand-line); border-radius:100px; overflow:hidden; }
.qty-stepper button{ width:32px; height:32px; border:none; background:var(--cream); color:var(--maroon); font-size:16px; font-weight:700; }
.qty-stepper button:hover{ background:var(--sand); }
.qty-stepper span{ width:28px; text-align:center; font-weight:600; font-size:14px; }

.add-to-cart{
  width:100%; padding:13px; border-radius:100px; border:none; background:var(--maroon); color:var(--white);
  font-weight:700; font-size:14.5px; display:flex; align-items:center; justify-content:center; gap:8px;
  transition:background .25s var(--ease), transform .15s var(--ease);
}
.add-to-cart:hover{ background:var(--maroon-dark); }
.add-to-cart.added{ background:var(--green-dark); }
.add-to-cart:active{ transform:scale(.97); }

/* =========================================================
   Why section
   ========================================================= */
.why-grid{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
@media (max-width:820px){ .why-grid{ grid-template-columns:1fr; gap:36px; } }
.why-image{ border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-soft); aspect-ratio:4/4.5; }
.why-image img{ width:100%; height:100%; object-fit:cover; }
.why-content h2{ font-size:clamp(28px,4vw,38px); margin:10px 0 20px; }
.why-list{ display:flex; flex-direction:column; gap:16px; }
.why-list li{ display:flex; align-items:center; gap:12px; font-size:16.5px; font-weight:500; }

/* =========================================================
   Lifestyle
   ========================================================= */
.lifestyle-grid{ position:relative; display:grid; grid-template-columns:1.3fr .9fr; gap:28px; align-items:end; }
@media (max-width:780px){ .lifestyle-grid{ grid-template-columns:1fr; } }
.lifestyle-figure{ margin:0; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-soft); }
.lifestyle-figure--main{ aspect-ratio:4/4.6; }
.lifestyle-figure--secondary{ aspect-ratio:4/5; transform:translateY(0); }
.lifestyle-figure img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.lifestyle-figure:hover img{ transform:scale(1.04); }

/* =========================================================
   Delivery banner
   ========================================================= */
.delivery-banner{ background:var(--maroon); color:var(--cream); position:relative; overflow:hidden; }
.delivery-banner::before{
  content:''; position:absolute; inset:0; opacity:.5;
  background:radial-gradient(circle at 15% 30%, var(--maroon-soft), transparent 55%), radial-gradient(circle at 85% 70%, var(--green-dark), transparent 45%);
}
.delivery-inner{
  position:relative; max-width:1100px; margin:0 auto; padding:56px 6vw;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.delivery-text{
  display:flex; align-items:center; gap:12px; font-family:var(--font-display);
  font-size:clamp(22px,3vw,30px); font-weight:600; margin:0;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background:var(--ink); color:var(--sand); }
.footer-inner{
  max-width:1280px; margin:0 auto; padding:64px 6vw 40px;
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px;
}
@media (max-width:700px){ .footer-inner{ grid-template-columns:1fr; gap:30px; } }
.footer-brand .brand-word{ color:var(--sand); }
.footer-brand .brand-sub{ color:var(--tan); }
.footer-tagline{ font-family:var(--font-display); font-style:italic; color:var(--tan); margin-top:14px; font-size:16px; }
.footer-col h3{ color:var(--sand); font-size:14px; text-transform:uppercase; letter-spacing:.06em; font-family:var(--font-brand); margin:0 0 16px; }
.footer-col{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ color:rgba(251,246,238,.75); font-size:14.5px; transition:color .2s var(--ease); }
.footer-col a:hover{ color:var(--white); }
.footer-wa{ display:inline-flex; align-items:center; gap:8px; color:var(--green-pale) !important; }
.footer-bottom{ border-top:1px solid rgba(251,246,238,.12); padding:22px 6vw; text-align:center; }
.footer-bottom p{ margin:0; font-size:12.5px; color:rgba(251,246,238,.5); }

/* =========================================================
   Cart drawer
   ========================================================= */
.overlay{
  position:fixed; inset:0; background:rgba(20,12,8,.5); z-index:80;
  opacity:0; pointer-events:none; transition:opacity .35s var(--ease);
}
.overlay.visible{ opacity:1; pointer-events:auto; }

.cart-drawer{
  position:fixed; top:0; bottom:0; left:0; width:min(420px,92vw);
  background:var(--cream); z-index:90; display:flex; flex-direction:column;
  transform:translateX(-100%); transition:transform .4s var(--ease);
  box-shadow:var(--shadow-lift);
}
.cart-drawer.open{ transform:translateX(0); }

.cart-header{ display:flex; align-items:center; justify-content:space-between; padding:22px 24px; border-bottom:1px solid var(--sand-line); }
.cart-header h2{ font-size:22px; }
.icon-btn{ width:34px; height:34px; border-radius:50%; border:none; background:var(--sand); color:var(--maroon); font-size:15px; display:flex; align-items:center; justify-content:center; transition:background .2s var(--ease); }
.icon-btn:hover{ background:var(--tan); }

.cart-body{ flex:1; overflow-y:auto; padding:20px 24px; }
.cart-empty{ display:flex; flex-direction:column; align-items:center; gap:14px; text-align:center; padding:60px 10px; color:var(--ink-soft); }

.cart-items{ display:flex; flex-direction:column; gap:18px; }
.cart-item{ display:flex; gap:14px; }
.cart-item img{ width:72px; height:72px; border-radius:var(--radius-sm); object-fit:cover; background:var(--sand); flex:0 0 auto; }
.cart-item-info{ flex:1; display:flex; flex-direction:column; gap:4px; }
.cart-item-name{ font-weight:600; font-size:14.5px; }
.cart-item-size{ font-size:12.5px; color:var(--ink-soft); }
.cart-item-bottom{ display:flex; align-items:center; justify-content:space-between; margin-top:4px; }
.cart-item-price{ font-weight:700; color:var(--maroon); font-size:14.5px; }
.cart-item-remove{ background:none; border:none; color:var(--ink-soft); font-size:12.5px; text-decoration:underline; padding:0; }
.cart-item-remove:hover{ color:var(--maroon); }

.cart-footer{ border-top:1px solid var(--sand-line); padding:20px 24px 26px; display:none; }
.cart-drawer.has-items .cart-footer{ display:block; }
.cart-drawer.has-items .cart-empty{ display:none; }
.cart-total-row{ display:flex; justify-content:space-between; align-items:center; font-family:var(--font-display); font-size:20px; font-weight:700; color:var(--maroon); margin-bottom:16px; }

/* =========================================================
   Modals
   ========================================================= */
.modal{
  position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center;
  padding:24px; opacity:0; pointer-events:none; transition:opacity .3s var(--ease);
  background:rgba(20,12,8,.55);
}
.modal.open{ opacity:1; pointer-events:auto; }
.modal-panel{
  background:var(--cream); border-radius:var(--radius-lg); max-width:640px; width:100%;
  max-height:88vh; overflow-y:auto; position:relative; padding:32px;
  transform:translateY(16px) scale(.98); transition:transform .35s var(--ease);
  box-shadow:var(--shadow-lift);
}
.modal.open .modal-panel{ transform:translateY(0) scale(1); }
.modal-close{ position:absolute; top:18px; inset-inline-end:18px; z-index:2; }

.modal-product-grid{ display:grid; grid-template-columns:1fr 1fr; gap:28px; }
@media (max-width:560px){ .modal-product-grid{ grid-template-columns:1fr; } }
.modal-product-media{ border-radius:var(--radius-md); overflow:hidden; aspect-ratio:1/1; background:var(--sand); }
.modal-product-media img{ width:100%; height:100%; object-fit:cover; }
.modal-product-info{ display:flex; flex-direction:column; gap:16px; }
.modal-product-info h3{ font-size:26px; margin-top:6px; }
.modal-product-info .product-desc{ margin-bottom:0; }

.modal-checkout h2{ font-size:26px; }
.modal-sub{ color:var(--ink-soft); font-size:14px; margin:6px 0 24px; }

.checkout-form{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.checkout-form label{ display:flex; flex-direction:column; gap:6px; font-size:13.5px; font-weight:600; color:var(--ink); }
.checkout-form label.full{ grid-column:1/-1; }
.checkout-form input, .checkout-form select, .checkout-form textarea{
  border:1.5px solid var(--sand-line); border-radius:var(--radius-sm); padding:11px 14px;
  font-size:14.5px; background:var(--white); color:var(--ink); transition:border-color .2s var(--ease);
  resize:vertical;
}
.checkout-form input:focus, .checkout-form select:focus, .checkout-form textarea:focus{ border-color:var(--green); }
.checkout-summary{
  grid-column:1/-1; background:var(--sand); border-radius:var(--radius-sm); padding:14px 16px;
  font-size:13.5px; color:var(--ink-soft); max-height:140px; overflow-y:auto;
}
.checkout-summary .cs-row{ display:flex; justify-content:space-between; padding:3px 0; }
.checkout-summary .cs-total{ font-weight:700; color:var(--maroon); border-top:1px dashed var(--sand-line); margin-top:6px; padding-top:8px; }
.btn-wa-submit{ grid-column:1/-1; background:#25A159; }
.btn-wa-submit:hover{ background:#1e8a4a; }

/* =========================================================
   Toast
   ========================================================= */
.toast{
  position:fixed; bottom:26px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--ink); color:var(--cream); padding:13px 26px; border-radius:100px;
  font-size:14px; font-weight:500; z-index:120; opacity:0; pointer-events:none;
  transition:opacity .3s var(--ease), transform .3s var(--ease);
  box-shadow:var(--shadow-lift);
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* =========================================================
   Mobile nav
   ========================================================= */
@media (max-width:900px){
  .nav-links{
    position:fixed; top:0; bottom:0; right:0; width:min(300px,80vw);
    background:var(--white); flex-direction:column; padding:100px 32px 32px; gap:26px;
    box-shadow:var(--shadow-lift); transform:translateX(100%); transition:transform .35s var(--ease);
    z-index:59;
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-links a{ font-size:17px; }
  .menu-toggle{ display:flex; }
}
