/* ============================================================
   ECO WAY 360° — Design tokens
   Forest greens rooted in the product photography, warm sand-gold
   for the "Comfort" premium line and the partnership story.
   ============================================================ */
:root{
  --forest:      #1F3A2E;
  --forest-deep: #14261D;
  --moss:        #4F7A5B;
  --moss-light:  #74996E;
  --sage:        #DCE6D6;
  --linen:       #F7F3E8;
  --linen-deep:  #EFE9D8;
  --gold:        #B9893F;
  --gold-light:  #E7C077;
  --ink:         #23261F;
  --ink-soft:    #55584D;
  --white:       #FFFFFF;

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

  --shadow-soft: 0 18px 40px -22px rgba(20, 38, 29, .35);

  --font-display: "El Messiri", "Cairo", serif;
  --font-body: "Cairo", sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--linen);
  line-height: 1.7;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--forest-deep);
  margin: 0 0 .5em;
  line-height: 1.25;
}

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

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover{ transform: translateY(-2px); }

.btn-solid{
  background: var(--forest);
  color: var(--white);
}
.btn-solid:hover{ background: var(--moss); box-shadow: var(--shadow-soft); }

.btn-outline{
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline:hover{ background: var(--forest); color: var(--white); }

.btn-ghost{
  background: transparent;
  color: var(--forest-deep);
  border-color: transparent;
}
.btn-ghost:hover{ color: var(--moss); }

.btn-gold{
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--forest-deep);
}
.btn-gold:hover{ box-shadow: 0 16px 36px -16px rgba(185,137,63,.55); }

.btn-lg{ padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 243, 232, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31,58,46,.08);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled{ box-shadow: 0 10px 30px -20px rgba(20,38,29,.4); }

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand{ display: flex; align-items: center; gap: 10px; }
.brand-mark{ color: var(--forest); display: inline-flex; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong{ font-family: var(--font-display); font-size: 1.25rem; color: var(--forest-deep); letter-spacing: .5px; }
.brand-text em{ font-style: normal; font-size: .72rem; color: var(--ink-soft); }

.main-nav{ display: flex; gap: 22px; }
.main-nav a{ font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; }
.main-nav a::after{
  content: "";
  position: absolute; right: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gold);
  transition: width .2s ease;
}
.main-nav a:hover::after{ width: 100%; }

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

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span{ width: 24px; height: 2px; background: var(--forest-deep); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-media{ position: absolute; inset: 0; z-index: 0; }
.hero-media img{ width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-media-fade{
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,38,29,.88) 0%, rgba(20,38,29,.6) 45%, rgba(20,38,29,.25) 75%, rgba(20,38,29,.1) 100%);
}

.hero-grid{ position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.hero-copy{ max-width: 620px; }

.eyebrow-leaf{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.eyebrow-leaf::before{ content: "🌿"; font-size: .9rem; }
.eyebrow-leaf.light{ color: var(--gold-light); }
.eyebrow-leaf.gold{ color: var(--forest-deep); }

.hero h1{
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  max-width: 14ch;
}
.hero-sub{ font-size: 1.1rem; color: rgba(255,255,255,.86); max-width: 46ch; margin-bottom: 28px; }

.hero-ctas{ display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-ctas.center{ justify-content: center; }

.hero-trust{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 0;
  font-size: .9rem;
  color: rgba(255,255,255,.8);
}
.hero-trust li{ display: flex; align-items: center; gap: 6px; }
.hero-trust li::before{ content: "✓"; color: var(--gold-light); font-weight: 800; }

/* ---------- Sections common ---------- */
section{ padding: 96px 0; }
.section-title{ font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 20ch; }
.section-lead{ color: var(--ink-soft); font-size: 1.08rem; max-width: 62ch; }
.section-title.light{ color: var(--white); }
.section-lead.light{ color: rgba(255,255,255,.82); }

/* ---------- Why ---------- */
.why{ background: var(--linen); }
.why-grid{
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.why-card{
  background: var(--white);
  border: 1px solid rgba(31,58,46,.08);
  border-radius: var(--radius-md);
  padding: 30px 24px;
}
.why-ic{ font-size: 1.8rem; display: block; margin-bottom: 14px; }
.why-card h3{ font-size: 1.08rem; margin-bottom: 8px; }
.why-card p{ color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Categories ---------- */
.categories{ background: var(--linen-deep); }
.cat-grid{
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.cat-card{
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
}
.cat-card:hover{ transform: translateY(-6px); }
.cat-img{ height: 190px; overflow: hidden; }
.cat-img img{ width: 100%; height: 100%; object-fit: cover; }
.cat-body{ padding: 22px 22px 26px; }
.cat-ic{ font-size: 1.4rem; }
.cat-body h3{ font-size: 1.12rem; margin: 8px 0 6px; }
.cat-body p{ margin: 0; color: var(--ink-soft); font-size: .93rem; }
.cat-card:nth-child(4), .cat-card:nth-child(5){ grid-column: span 1; }

/* ---------- Compare (dark) ---------- */
.compare{ background: var(--forest-deep); color: var(--white); }
.compare-grid{
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.compare-item{
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.compare-note{
  text-align: center;
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-light);
}

/* ---------- Offers ---------- */
.offers{ background: var(--sage); }
.offers-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}
.offers-media{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.offers-media img{
  border-radius: var(--radius-md);
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* ---------- Product of the week ---------- */
.pow{ background: var(--linen); }
.pow-grid{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 54px;
  align-items: center;
}
.pow-media img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.pow-features{
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.pow-features li{ display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--forest); }
.pow-features li::before{ content: "🌿"; }

/* ---------- How to use / tabs ---------- */
.howto{ background: var(--linen-deep); }
.tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  margin-bottom: 36px;
}
.tab-btn{
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--forest);
  background: transparent;
  color: var(--forest);
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.tab-btn.is-active, .tab-btn:hover{ background: var(--forest); color: var(--white); }

.tab-panel{ display: none; }
.tab-panel.is-active{ display: block; }
.tab-panel img{
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* ---------- Testimonials ---------- */
.testimonials{ background: var(--linen); }
.testi-grid{
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card{
  margin: 0;
  background: var(--white);
  border: 1px solid rgba(31,58,46,.08);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.testi-card p{ margin: 0 0 16px; font-size: 1rem; }
.testi-card cite{ font-style: normal; color: var(--moss); font-weight: 700; font-size: .88rem; }
.testi-note{ text-align: center; color: var(--ink-soft); font-size: .85rem; margin-top: 26px; }

/* ---------- About ---------- */
.about{ background: var(--linen-deep); }
.about-grid{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 54px;
  align-items: center;
}
.about-media img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

/* ---------- Trust ---------- */
.trust{ background: var(--forest); color: var(--white); }
.trust .section-title{ color: var(--white); text-align: center; margin: 0 auto 10px; }
.trust-grid{
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.trust-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
}
.trust-ic{ font-size: 1.8rem; display: block; margin-bottom: 12px; }
.trust-card h3{ color: var(--white); font-size: 1.05rem; }
.trust-card p{ color: rgba(255,255,255,.78); margin: 0; font-size: .92rem; }

/* ---------- Partnership ---------- */
.partner{
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  text-align: center;
}
.partner-inner{ max-width: 700px; margin: 0 auto; }
.partner .section-title.light{ color: var(--forest-deep); }
.partner .section-lead.light{ color: rgba(31,58,46,.82); margin: 0 auto 30px; }

/* ---------- Final CTA ---------- */
.final-cta{ text-align: center; background: var(--linen); }
.final-cta .section-title, .final-cta .section-lead{ margin-left: auto; margin-right: auto; }
.final-cta .section-lead{ margin-bottom: 30px; }

/* ---------- Contact ---------- */
.contact{ background: var(--linen-deep); }
.contact-grid{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 54px;
}
.whatsapp-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--forest);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  margin: 18px 0 22px;
}
.whatsapp-link:hover{ background: var(--moss); }
.social-row{ display: flex; gap: 18px; }
.social-row a{ font-weight: 700; color: var(--forest); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

.contact-form{
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
}
.contact-form label{ display: grid; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--forest-deep); }
.contact-form input, .contact-form select, .contact-form textarea{
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(31,58,46,.18);
  background: var(--linen);
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus{
  border-color: var(--moss);
  outline: none;
}
.form-note{ margin: 0; color: var(--moss); font-weight: 700; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--forest-deep); color: rgba(255,255,255,.85); padding-top: 56px; }
.footer-inner{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .brand-text strong{ color: var(--white); }
.footer-brand .brand-text em{ color: rgba(255,255,255,.6); }
.footer-brand p{ max-width: 34ch; color: rgba(255,255,255,.65); font-size: .92rem; margin-top: 10px; }
.footer-links{ display: flex; flex-wrap: wrap; gap: 20px; align-content: flex-start; }
.footer-links a{ font-size: .92rem; color: rgba(255,255,255,.78); }
.footer-links a:hover{ color: var(--gold-light); }
.footer-bottom{ padding: 20px 0 26px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp{
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 70;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 14px 30px -12px rgba(20,38,29,.6);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px){
  .why-grid, .trust-grid{ grid-template-columns: repeat(2, 1fr); }
  .cat-grid{ grid-template-columns: repeat(2, 1fr); }
  .offers-grid, .pow-grid, .about-grid, .contact-grid{ grid-template-columns: 1fr; }
  .pow-media, .about-media{ order: -1; }
  .compare-grid{ grid-template-columns: 1fr; }
  .testi-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 800px){
  .main-nav{
    position: absolute;
    top: 100%;
    right: 0; left: 0;
    background: var(--linen);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(31,58,46,.1);
    display: none;
  }
  .main-nav.is-open{ display: flex; }
  .header-actions .btn-ghost{ display: none; }
  .nav-toggle{ display: flex; }
  .why-grid, .cat-grid{ grid-template-columns: 1fr; }
  .hero{ min-height: auto; padding-top: 40px; }
  .hero-media-fade{ background: linear-gradient(180deg, rgba(20,38,29,.55) 0%, rgba(20,38,29,.85) 70%, rgba(20,38,29,.95) 100%); }
  section{ padding: 64px 0; }
}

/* ============================================================
   PHP additions — flash messages, category & product pages
   ============================================================ */
.flash-message{
  margin-top: 22px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-align: center;
}
.flash-success{ background: #E4F0E0; color: var(--forest-deep); border: 1px solid rgba(31,58,46,.18); }
.flash-error{ background: #F7E3E0; color: #8A3B2E; border: 1px solid rgba(138,59,46,.2); }

.category-page{ padding: 64px 0 96px; background: var(--linen); min-height: 60vh; }
.breadcrumb{ font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a{ color: var(--moss); font-weight: 700; }

.product-grid{
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card{
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.product-img{ position: relative; height: 200px; overflow: hidden; }
.product-img img{ width: 100%; height: 100%; object-fit: cover; }
.product-badge{
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gold);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.product-body{ padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3{ font-size: 1.08rem; margin: 0; }
.product-body p{ color: var(--ink-soft); font-size: .92rem; margin: 0; flex: 1; }
.product-price-row{ display: flex; align-items: baseline; gap: 10px; }
.price{ font-weight: 800; color: var(--forest); font-size: 1.15rem; }
.old-price{ color: var(--ink-soft); text-decoration: line-through; font-size: .9rem; }
.product-body .btn{ align-self: flex-start; }

.category-back{ margin-top: 46px; text-align: center; }

@media (max-width: 980px){
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .product-grid{ grid-template-columns: 1fr; }
}
