/* ==========================================================================
   Gamila — Design Tokens
   ========================================================================== */
:root{
  --purple: #3A3BB5;
  --purple-dark: #2B2C94;
  --purple-deep: #20216F;
  --purple-soft: #E1E2F5;
  --purple-mist: #F1F1FB;
  --pink: #C85BB4;
  --pink-dark: #AC4698;
  --pink-deep: #8A3478;
  --pink-soft: #F6E1F1;
  --pink-mist: #FBF1F9;
  --black: #111111;
  --cream: #FFF8FC;
  --white: #FFFFFF;
  --ink: #241E19;
  --ink-soft: #776C61;
  --line: #EBDDEA;

  --font-display: "Cairo", sans-serif;
  --font-body: "Tajawal", sans-serif;

  --container: 1240px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 10px 30px -14px rgba(17,17,17,.22);
  --shadow-soft: 0 6px 18px -10px rgba(17,17,17,.16);

  --header-h: 64px;
  --topbar-h: 38px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--topbar-h) + 12px); }

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

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

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

.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

:focus-visible{ outline: 3px solid var(--purple-deep); outline-offset: 2px; }

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

/* ==========================================================================
   Logo mark (brand signature) — reused across header, footer, sections
   ========================================================================== */
.lw-mark{ display:block; object-fit:contain; width:auto; }
.lw-mark path{ fill: currentColor; }

.section-divider{
  display:flex; align-items:center; gap:14px;
  margin: 0 auto;
  max-width: 340px;
  color: var(--purple);
  opacity: .9;
}
.section-divider::before,
.section-divider::after{
  content:""; flex:1; height:1px; background: var(--line);
}
.section-divider svg{ width:22px; height:22px; flex-shrink:0; }

/* ==========================================================================
   Top info bar
   ========================================================================== */
.topbar{
  background: var(--black);
  color: var(--purple-soft);
  height: var(--topbar-h);
  font-size: 12.5px;
  font-weight: 500;
  overflow: hidden;
  position: relative;
}
.topbar .container{ height:100%; }
.topbar-track{
  height:100%;
  display:flex;
  align-items:center;
  gap: 34px;
  white-space: nowrap;
}
.topbar-item{ display:flex; align-items:center; gap:8px; }
.topbar-item svg{ width:14px; height:14px; color: var(--purple); flex-shrink:0; }

@media (max-width: 680px){
  .topbar-track{
    width: max-content;
    animation: topbar-scroll 16s linear infinite;
    gap: 34px;
  }
  .topbar:hover .topbar-track{ animation-play-state: paused; }
}
@keyframes topbar-scroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}
@media (min-width: 681px){
  .topbar-track{ justify-content:center; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky; top:0; z-index: 60;
  height: var(--header-h);
  background: rgba(255,248,252,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  height:100%;
  display:flex; align-items:center; justify-content:space-between;
  gap: 18px;
}
.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand .lw-mark{ height:46px; width:auto; color: var(--black); }
.brand .lw-mark .petal{ color: var(--purple); }
.brand-word{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .2px;
  color: var(--black);
}

.main-nav{ display:none; }
.main-nav ul{ display:flex; align-items:center; gap: 26px; }
.main-nav a{
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  position: relative; padding-block: 4px;
}
.main-nav a::after{
  content:""; position:absolute; inset-inline:0; bottom:-2px; height:2px;
  background: var(--purple); transform: scaleX(0); transform-origin: center;
  transition: transform .25s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after{ transform: scaleX(1); }

@media (min-width: 900px){ .main-nav{ display:block; } }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border: none; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  padding: 11px 22px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  white-space: nowrap;
}
.btn svg{ width:17px; height:17px; flex-shrink:0; }
.btn-whatsapp{
  background: #25D366; color:#fff;
  box-shadow: 0 8px 20px -8px rgba(37,211,102,.6);
}
.btn-whatsapp:hover{ transform: translateY(-1px); background:#20bd5a; }
.btn-primary{
  background: var(--purple); color:#fff;
  box-shadow: 0 8px 20px -8px rgba(58,59,181,.45);
}
.btn-primary:hover{ transform: translateY(-1px); background: var(--purple-dark); }
.btn-outline{
  background: transparent; color: var(--black); border: 1.5px solid var(--black);
}
.btn-outline:hover{ background: var(--black); color:#fff; }
.btn-sm{ padding: 8px 16px; font-size: 13px; }
.btn-block{ width:100%; }

.header-cta{ display:none; }
@media (min-width: 640px){ .header-cta{ display:inline-flex; } }

.nav-toggle{
  display:flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:50%;
  background: transparent; border: 1.5px solid var(--black);
  color: var(--black); flex-shrink:0;
}
.nav-toggle svg{ width:19px; height:19px; }
@media (min-width: 900px){ .nav-toggle{ display:none; } }

.mobile-nav-panel{
  position: fixed; inset: 0; z-index: 90;
  background: rgba(17,17,17,.5);
  opacity:0; visibility:hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.mobile-nav-panel.open{ opacity:1; visibility:visible; }
.mobile-nav-sheet{
  position:absolute; top:0; inset-inline-end:0;
  width: min(78vw, 320px); height:100%;
  background: var(--cream);
  padding: 22px 22px 30px;
  display:flex; flex-direction:column; gap: 22px;
  transform: translateX(105%);
  transition: transform .3s ease;
}
[dir="rtl"] .mobile-nav-sheet{ transform: translateX(-105%); }
.mobile-nav-panel.open .mobile-nav-sheet{ transform: translateX(0); }
.mobile-nav-head{ display:flex; align-items:center; justify-content:space-between; }
.mobile-nav-sheet ul{ display:flex; flex-direction:column; gap: 6px; }
.mobile-nav-sheet a{
  display:block; padding: 12px 6px; font-weight:700; font-size:15.5px;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.nav-close{
  width:36px; height:36px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; background: var(--white);
}
.nav-close svg{ width:16px; height:16px; }

/* ==========================================================================
   Sale banner + countdown
   ========================================================================== */
.sale-banner{
  background: linear-gradient(90deg, #1a1614, var(--black) 60%);
  color: #fff;
  padding-block: 14px;
}
.sale-banner-inner{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap: 14px 22px;
  text-align:center;
}
.sale-banner-text{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:center; }
.sale-badge{
  background: var(--pink);
  color:#fff;
  font-family: var(--font-display); font-weight:800; font-size:15px;
  padding: 5px 14px; border-radius:999px;
  letter-spacing:.3px;
}
.sale-banner-copy{ font-size:13px; color: rgba(255,255,255,.82); }

.sale-countdown{ display:flex; align-items:center; gap:6px; }
.countdown-unit{
  display:flex; flex-direction:column; align-items:center; gap:2px;
  background: rgba(200,91,180,.18);
  border: 1px solid rgba(200,91,180,.5);
  border-radius: 8px;
  padding: 5px 8px 4px;
  min-width: 42px;
}
.countdown-value{
  font-family: var(--font-display); font-weight:800; font-size:16px; color: var(--pink);
  line-height:1;
}
.countdown-label{ font-size:9.5px; color: rgba(255,255,255,.65); }
.countdown-sep{ color: rgba(255,255,255,.4); font-weight:700; }
.countdown-ended{ font-size:13px; font-weight:700; color: var(--pink); }

@media (max-width: 520px){
  .sale-banner-copy{ display:none; }
  .countdown-unit{ min-width:36px; padding:4px 6px 3px; }
  .countdown-value{ font-size:14px; }
}
.hero{
  position: relative;
  background: linear-gradient(180deg, var(--purple-mist) 0%, var(--cream) 78%);
  padding-top: 26px;
  padding-bottom: 56px;
  overflow: hidden;
}
.hero-media{
  max-width: 960px;
  margin: 30px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 40px -20px rgba(58,59,181,.35);
}
.hero-media img{
  display: block;
  width: 100%;
  height: auto;
}
.hero-eyebrow{
  display:flex; align-items:center; justify-content:center; gap:8px;
  color: var(--purple-deep); font-weight:700; font-size:13px;
  letter-spacing:.3px;
}
.hero-eyebrow .lw-mark{ height:18px; width:auto; }
.hero h1{
  text-align:center;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.15;
  font-weight: 800;
  margin-block: 14px 10px;
  padding-inline: 10px;
}
.hero h1 span{ color: var(--pink-deep); }
.hero-sub{
  text-align:center; max-width: 560px; margin-inline:auto;
  color: var(--ink-soft); font-size: 15.5px; line-height:1.8;
  padding-inline: 14px;
}
.hero-actions{
  display:flex; flex-direction:column; align-items:center; gap:12px;
  margin-top: 22px;
}
.hero-actions .btn{ min-width: 230px; }
.hero-note{ font-size:12.5px; color: var(--ink-soft); }



/* ==========================================================================
   Section shell
   ========================================================================== */
.section{ padding-block: 52px; }
.section-head{ text-align:center; margin-bottom: 26px; }
.section-eyebrow{
  display:block; color: var(--purple-deep); font-weight:700; font-size:13px;
  margin-bottom:8px; letter-spacing:.3px;
}
.section-title{ font-size: clamp(22px, 3.6vw, 32px); font-weight:800; }
.section-sub{ color: var(--ink-soft); font-size:14.5px; margin-top:8px; max-width:520px; margin-inline:auto; line-height:1.8; }

/* ==========================================================================
   Product carousels
   ========================================================================== */
.carousel-section .container{ position: relative; }

.carousel-wrap{ position:relative; }

.carousel-track{
  display:flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: 6px 4px;
  padding-inline: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.carousel-track::-webkit-scrollbar{ display:none; }
.carousel-track.dragging{ cursor: grabbing; scroll-snap-type: none; }

.carousel-track .product-card{
  scroll-snap-align: start;
  flex: 0 0 78%;
}
@media (min-width: 560px){
  .carousel-track .product-card{ flex-basis: 58%; }
}
@media (min-width: 720px){
  .carousel-track .product-card{ flex-basis: 46%; }
}
@media (min-width: 900px){
  .carousel-track .product-card{ flex-basis: calc(33.333% - 11px); }
}
@media (min-width: 1300px){
  .carousel-track .product-card{ flex-basis: calc(25% - 12px); }
}

.product-card{
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display:flex; flex-direction:column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-card); }

.product-media{
  aspect-ratio: 4 / 5;
  background: var(--cream);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.product-media img{
  width:100%; height:100%; object-fit: contain;
}

.product-info{ padding: 14px 16px 16px; display:flex; flex-direction:column; gap:10px; flex:1; }
.product-attrs{
  display:flex; flex-wrap:wrap; gap:6px 8px;
  font-size: 13px; color: var(--ink);
}
.product-attrs span{
  background: var(--purple-mist);
  color: var(--purple-deep);
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 600;
}
.product-info .btn{ margin-top:auto; }

.carousel-nav{
  position:absolute; top:38%; translate: 0 -50%;
  width:42px; height:42px; border-radius:50%;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display:flex; align-items:center; justify-content:center;
  color: var(--black);
  z-index: 5;
}
.carousel-nav svg{ width:19px; height:19px; }
.carousel-nav:hover{ background: var(--purple); color:#fff; border-color: var(--purple); }
.carousel-prev{ inset-inline-start: -6px; }
.carousel-next{ inset-inline-end: -6px; }
@media (max-width: 760px){ .carousel-nav{ display:none; } }

.carousel-dots{
  display:flex; justify-content:center; gap:7px; margin-top: 16px;
}
.carousel-dots button{
  width:7px; height:7px; border-radius:50%;
  background: var(--line); border:none; padding:0;
  transition: background-color .2s ease, width .2s ease;
}
.carousel-dots button.active{ background: var(--purple); width:20px; border-radius:5px; }

/* ==========================================================================
   Reviews (real WhatsApp messages from customers)
   ========================================================================== */
.reviews-grid{
  display:grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px){ .reviews-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .reviews-grid{ grid-template-columns: repeat(3, 1fr); } }

.review-card{
  position: relative;
  background: #DCF8C6;
  border-radius: var(--radius-md);
  border-end-start-radius: 4px;
  padding: 18px 20px 16px;
  box-shadow: var(--shadow-soft);
  display:flex; flex-direction:column; gap:10px;
}
.review-stars{
  color: var(--pink-deep);
  font-size: 15px;
  letter-spacing: 2px;
}
.review-text{
  font-size: 14.5px;
  line-height: 1.85;
  color: #1c2b1a;
}
.review-meta{
  display:flex; align-items:center; gap:6px;
  font-size: 11.5px; color: #4d7a3f;
  font-weight: 600;
}
.review-meta svg{ width:13px; height:13px; color:#25D366; }
.features-grid{
  display:grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px){ .features-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px){ .features-grid{ grid-template-columns: repeat(6, 1fr); } }

.feature-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.feature-icon{
  width:46px; height:46px; border-radius:50%;
  background: var(--purple-mist); color: var(--purple-deep);
  display:flex; align-items:center; justify-content:center;
}
.feature-icon svg{ width:22px; height:22px; }
.feature-card h3{ font-size:14px; font-weight:700; }
.feature-card p{ font-size:12.5px; color: var(--ink-soft); line-height:1.7; }

/* ==========================================================================
   How to order
   ========================================================================== */
.steps{
  display:grid; gap: 16px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 760px){ .steps{ grid-template-columns: repeat(4, 1fr); } }

.step-card{
  position:relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 18px 20px;
  text-align:center;
}
.step-num{
  width:36px; height:36px; border-radius:50%;
  background: var(--black); color: var(--pink);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight:800; font-size:15px;
  margin-inline:auto; margin-bottom:14px;
}
.step-card h3{ font-size:15px; font-weight:700; margin-bottom:6px; }
.step-card p{ font-size:13px; color: var(--ink-soft); line-height:1.7; }

@media (min-width: 760px){
  .step-card:not(:last-child)::after{
    content:"";
    position:absolute; top:44px; inset-inline-start: -8%;
    width:16%; height:2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-panel{
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align:center;
  color: #fff;
  position:relative;
  overflow:hidden;
}
.contact-panel::before{
  content:"";
  position:absolute; inset: -40% -10% auto auto;
  width:280px; height:280px; border-radius:50%;
  background: radial-gradient(circle, rgba(139,141,46,.35), transparent 70%);
}
.contact-panel h2{ color:#fff; font-size: clamp(20px,3.4vw,28px); }
.contact-panel p{
  color: rgba(255,255,255,.72); font-size:14px; max-width:440px; margin: 10px auto 22px;
  line-height:1.8;
}
.contact-info{
  display:flex; flex-wrap:wrap; justify-content:center; gap: 22px;
  margin-top: 26px; color: rgba(255,255,255,.78); font-size:13px;
}
.contact-info li{ display:flex; align-items:center; gap:8px; }
.contact-info svg{ width:16px; height:16px; color: var(--purple); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  background: var(--purple-mist);
  border-top: 1px solid var(--line);
  padding-block: 34px 96px;
}
@media (min-width: 640px){ .site-footer{ padding-bottom: 34px; } }

.footer-top{
  display:flex; flex-direction:column; gap: 22px;
  align-items:center; text-align:center;
}
@media (min-width: 760px){
  .footer-top{ flex-direction:row; align-items:flex-start; text-align:start; justify-content:space-between; }
}
.footer-brand .brand{ margin-bottom:10px; justify-content:center; }
@media (min-width: 760px){ .footer-brand .brand{ justify-content:flex-start; } }
.footer-brand p{ color: var(--ink-soft); font-size:13px; max-width:260px; line-height:1.8; }

.footer-links{ display:flex; gap: 40px; flex-wrap:wrap; justify-content:center; }
.footer-links h4{ font-size:13px; margin-bottom:12px; color: var(--black); }
.footer-links ul{ display:flex; flex-direction:column; gap:9px; }
.footer-links a{ font-size:13px; color: var(--ink-soft); }
.footer-links a:hover{ color: var(--purple-deep); }

.footer-bottom{
  margin-top: 28px; padding-top:18px; border-top:1px solid var(--line);
  display:flex; flex-direction:column; gap:8px; align-items:center;
  text-align:center; font-size:12px; color: var(--ink-soft);
}
@media (min-width: 760px){
  .footer-bottom{ flex-direction:row; justify-content:space-between; text-align:start; }
}

/* ==========================================================================
   Sticky mobile WhatsApp bar
   ========================================================================== */
.mobile-whatsapp-bar{
  position: fixed; inset-inline:0; bottom:0; z-index: 70;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -12px rgba(17,17,17,.25);
}
.mobile-whatsapp-bar .btn{ width:100%; padding-block:13px; font-size:15px; }
@media (min-width: 640px){ .mobile-whatsapp-bar{ display:none; } }

/* Loading skeleton for lazy images */
img[loading="lazy"]{ background: linear-gradient(90deg, #f4ece2 25%, #efe3d3 37%, #f4ece2 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
img[loading="lazy"].is-loaded{ animation:none; background:none; }
@keyframes shimmer{ 0%{ background-position: 100% 0; } 100%{ background-position: -100% 0; } }
