/* ══════════════════════════════════════════
   كوزمتك الدرة – Wholesale Cosmetics
   Main Stylesheet (v2 — mobile-first redesign)
   ══════════════════════════════════════════ */

/* Fonts are now loaded with <link> tags in index.html (faster than @import). */

/* ── DESIGN TOKENS ── */
:root {
  /* brand gold — bright golden-yellow identity, paired with sharp black
     borders + dark text. --gold-deep now serves as the "dark ink" half
     of that pairing (hover states, text-on-yellow) rather than a darker
     gold shade. */
  --gold:        #d8c51c;   /* primary bright yellow — buttons, badges, nav highlights, active states */
  --gold-deep:   #111111;   /* near-black — hover states + legible dark text on yellow/pale surfaces */
  --gold-light:  #e0c61a;   /* secondary lighter yellow accent */
  --gold-pale:   #FFF9D6;   /* pale yellow tint for soft backgrounds */
  --gold-pale-2: #FFEE99;   /* deeper pale-yellow, used for borders on pale surfaces */

  /* neutrals */
  --ink:         #182233;
  --text:        #2b3445;
  --muted:       #6b7686;
  --line:        #e8e6e0;
  --off-white:   #fbfaf8;
  --cream:       #f5f2ec;
  --white:       #ffffff;

  /* utility */
  --green-wa:    #25d366;
  --green-wa-dk: #1da851;
  --danger:      #e0445b;

  /* elevation */
  --shadow-sm: 0 2px 10px rgba(20, 35, 65, .06);
  --shadow-md: 0 8px 28px rgba(20, 35, 65, .10);
  --shadow-lg: 0 18px 48px rgba(20, 35, 65, .16);

  /* radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* layout */
  --bottom-bar-h: 78px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }
body {
  font-family: 'Tajawal', sans-serif;
  background: var(--off-white);
  color: var(--text);
  overflow-x: hidden;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3, .display {
  font-family: 'Cairo', sans-serif;
}

button { font-family: inherit; }

:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ══════════════════════════════════════════
   NAV
   ══════════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,248,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}

.nav-logo          { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon {
  width: 44px; height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'Cairo', sans-serif;
  font-size: 1.18rem; font-weight: 700;
  color: var(--ink); letter-spacing: .01em;
}
.nav-logo-sub {
  font-size: .58rem; font-weight: 500;
  color: var(--muted); letter-spacing: .16em;
  text-transform: uppercase; display: block;
}

.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  font-size: .86rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  letter-spacing: .01em; transition: color .2s;
}
.nav-links a:hover { color: var(--gold-deep); }

.cart-btn {
  background: var(--gold); color: #111;
  border: 2px solid #000; cursor: pointer;
  padding: 9px 18px; border-radius: var(--r-pill);
  font-family: 'Tajawal', sans-serif;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .01em;
  display: flex; align-items: center; gap: 6px;
  transition: background .2s, color .2s, transform .15s;
}
.cart-btn:hover { background: #000; color: var(--gold); border-color: #000; }
.cart-btn:active { transform: scale(.96); }
.cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #000; color: var(--gold);
  width: 19px; height: 19px; border-radius: 50%;
  font-size: .68rem; font-weight: 700;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  min-height: 70vh;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, var(--gold-pale) 0%, transparent 60%),
    linear-gradient(180deg, var(--off-white) 0%, #f7f8fb 100%);
  display: flex; justify-content: center; align-items: center;
  padding: 72px 6%;
  position: relative; overflow: hidden;
}

.hero-text       { animation: fadeUp .8s ease both; max-width: 720px; text-align: center; margin-inline: auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold-deep); margin-bottom: 20px;
  background: var(--gold-pale);
  border: 1.5px solid #000;
  padding: 6px 14px; border-radius: var(--r-pill);
}
.hero-title {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  font-weight: 800; line-height: 1.22;
  color: var(--ink); margin-bottom: 20px;
  letter-spacing: -.01em;
}
.hero-title em   { font-style: normal; color: var(--gold-deep); }
.hero-title small {                      /* keyword subtitle inside the <h1> */
  display: block; margin-top: 12px;
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  font-weight: 700; line-height: 1.6; letter-spacing: 0;
  color: var(--gold-deep);
}
.hero-desc {
  font-size: 1.05rem; font-weight: 400; line-height: 1.9;
  color: var(--muted); max-width: 560px; margin-inline: auto; margin-bottom: 32px;
}
.hero-cta        { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Buttons */
.btn-primary {
  background: var(--gold); color: #111;
  padding: 14px 32px; border-radius: var(--r-pill);
  border: 2px solid #000; cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: .9rem; font-weight: 700;
  letter-spacing: .01em; transition: all .22s;
  text-decoration: none; display: inline-flex; align-items: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
}
.btn-primary:hover {
  background: #000; color: var(--gold); border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,.3);
}
.btn-primary:active { transform: translateY(0) scale(.98); }

.btn-outline {
  background: var(--white); color: var(--ink);
  padding: 13px 28px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: .9rem; font-weight: 500;
  letter-spacing: .01em; transition: all .22s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.btn-outline:hover { background: var(--gold-pale); border-color: var(--gold-pale-2); color: var(--gold-deep); }

/* ══════════════════════════════════════════
   SECTIONS — SHARED
   ══════════════════════════════════════════ */
.section { padding: 80px 6%; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-pale);
  border: 1.5px solid #000;
  padding: 5px 14px; border-radius: var(--r-pill);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700; color: var(--ink);
  letter-spacing: -.01em;
}
.section-title em { font-style: normal; color: var(--gold-deep); }
.section-line {
  width: 48px; height: 3px; border-radius: 2px;
  background: var(--gold);
  margin: 16px auto 0;
}

/* ══════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════ */
.features        { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px; text-align: center;
}
.feature-icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--gold-pale);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.feature-title {
  font-family: 'Cairo', sans-serif;
  font-size: 1.04rem; font-weight: 700;
  color: var(--ink); margin-bottom: 8px;
}
.feature-desc {
  font-size: .82rem; font-weight: 400;
  color: var(--muted); line-height: 1.7;
}

/* ══════════════════════════════════════════
   DELIVERY SECTION
   ══════════════════════════════════════════ */
.delivery { background: var(--cream); }
.delivery-box {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  max-width: 900px; margin: 0 auto;
}
.delivery-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 26px;
}
.delivery-icon-big {
  width: 54px; height: 54px; border-radius: var(--r-md);
  background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.delivery-header h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 1.4rem; font-weight: 700; color: var(--ink);
}
.delivery-header p { font-size: .86rem; color: var(--muted); margin-top: 4px; }

/* Simple "we deliver everywhere" badge (replaces the old per-governorate checker) */
.delivery-allcountry-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold-pale); color: var(--gold-deep);
  border: 1.5px solid #000;
  border-radius: 999px; padding: 12px 22px;
  font-size: .95rem; font-weight: 700;
  margin-bottom: 28px;
}
.delivery-allcountry-icon { font-size: 1.1rem; }

.select-shell {
  position: relative;
}
.select-shell::after {
  content: '▾';
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-deep); font-size: .9rem; pointer-events: none;
}
.province-select {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  background: var(--off-white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 44px 14px 18px;
  font-family: 'Tajawal', sans-serif;
  font-size: .92rem; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.province-select:hover { border-color: var(--gold-light); }
.province-select:focus { border-color: var(--gold); background: var(--white); }

.delivery-notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.delivery-note {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--cream); border-radius: var(--r-md); padding: 14px;
}
.delivery-note-icon { font-size: 1.15rem; flex-shrink: 0; margin-top: 1px; }
.delivery-note-text { font-size: .82rem; color: var(--ink); line-height: 1.6; }
.delivery-note-text strong { display: block; font-weight: 700; margin-bottom: 2px; }

/* ══════════════════════════════════════════
   PRODUCTS GRID
   ══════════════════════════════════════════ */
.filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 36px;
}
.filter-tab {
  padding: 9px 18px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: var(--white); cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: .82rem; font-weight: 500; color: var(--muted);
  transition: all .2s;
}
.filter-tab.active, .filter-tab:hover {
  background: var(--gold); color: #111; border-color: #000;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white); border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer; position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: #111;
  border: 1.5px solid #000;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: .66rem; font-weight: 700;
  letter-spacing: .04em; z-index: 2;
}

/* Modern product image container — replaces plain emoji circle.
   Square 1:1 aspect ratio, soft shadow, graceful placeholder state. */
.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--gold-pale) 0%, var(--gold-pale-2) 100%);
}
/* Shown only while a photo is actually in flight (see the "loading"
   class added/removed in index.html's productImgMarkup/handleImgError).
   A soft moving shimmer instead of a static block gives a clear,
   reassuring "this is loading" signal instead of the page just looking
   stuck on a flaky connection — the container settles back to the plain
   gradient the moment the photo loads or finally fails. */
.product-img.loading {
  background: linear-gradient(100deg, var(--gold-pale) 25%, var(--gold-pale-2) 50%, var(--gold-pale) 75%);
  background-size: 250% 100%;
  animation: imgShimmer 1.6s ease-in-out infinite;
}
@keyframes imgShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img img { transform: scale(1.05); }
/* placeholder glyph shown while no real photo is supplied */
.product-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  color: var(--gold-light);
  opacity: .9;
}

.product-body    { padding: 18px 18px 20px; }
.product-category {
  font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 6px;
}
.product-name {
  font-family: 'Cairo', sans-serif;
  font-size: 1.08rem; font-weight: 700;
  color: var(--ink); margin-bottom: 6px; line-height: 1.35;
}
.product-desc {
  font-size: .8rem; font-weight: 400;
  color: var(--muted); line-height: 1.65; margin-bottom: 16px;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.product-price {
  font-family: 'Cairo', sans-serif;
  font-size: 1.12rem; font-weight: 700; color: var(--ink);
}

.add-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold-pale); border: 1.5px solid var(--gold-pale-2);
  color: var(--gold-deep); font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.add-btn:hover { background: var(--gold); color: #111; border-color: #000; }
.add-btn.added { background: #000; color: var(--gold); border-color: #000; }
.add-btn:active { transform: scale(.9); }

/* ══════════════════════════════════════════
   BANNER
   ══════════════════════════════════════════ */
.banner {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  padding: 64px 6%; text-align: center; color: #111;
}
.banner h2 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800; margin-bottom: 12px;
}
.banner p {
  font-size: .92rem; font-weight: 400;
  opacity: .85; margin-bottom: 28px;
  max-width: 480px; margin-inline: auto; line-height: 1.7;
}
.btn-white {
  background: #fff; color: var(--gold-deep);
  padding: 14px 34px; border-radius: var(--r-pill);
  border: none; cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: .9rem; font-weight: 700;
  transition: all .22s; display: inline-block;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.18); }

/* ══════════════════════════════════════════
   CART / CHECKOUT SIDEBAR
   ══════════════════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.45);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-panel {
  position: fixed; top: 0; left: -440px;
  width: min(440px, 100vw);
  /* 100vh on mobile browsers includes the space behind the address bar,
     which pushed the WhatsApp button below the visible screen. 100dvh
     tracks the *actual* visible viewport; vh stays as a fallback for
     older browsers that don't support dvh yet. */
  height: 100vh; height: 100dvh;
  background: var(--white); z-index: 201;
  box-shadow: 8px 0 40px rgba(0,0,0,.12);
  transition: left .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.cart-panel.open { left: 0; }

.cart-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.cart-header h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 1.2rem; font-weight: 700; color: var(--ink);
}
.close-cart {
  background: none; border: none; cursor: pointer;
  font-size: 1.2rem; color: var(--muted);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.close-cart:hover { background: var(--cream); }

.cart-scroll { flex: 1; overflow-y: auto; }

.cart-items { padding: 18px 22px; }
.cart-empty {
  text-align: center; padding: 50px 0;
  color: var(--muted); font-size: .88rem;
}
.cart-empty-icon { font-size: 2.8rem; margin-bottom: 12px; opacity: .35; }

.cart-item {
  display: flex; gap: 13px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  animation: fadeUp .3s ease;
}
.cart-item-img {
  width: 56px; height: 56px; border-radius: var(--r-sm);
  background: var(--gold-pale); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info  { flex: 1; }
.cart-item-name {
  font-family: 'Cairo', sans-serif;
  font-size: .92rem; font-weight: 700;
  color: var(--ink); margin-bottom: 4px;
}
.cart-item-price { font-size: .8rem; color: var(--gold-deep); }
.cart-item-qty   { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn {
  width: 25px; height: 25px; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: none; cursor: pointer; color: var(--ink);
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.qty-btn:hover   { background: var(--gold); color: #111; border-color: #000; }
.qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.qty-btn:disabled:hover { background: none; color: var(--ink); border-color: var(--line); }
.qty-num         { font-size: .88rem; color: var(--ink); font-weight: 700; min-width: 18px; text-align: center; }
.remove-item     { background: none; border: none; cursor: pointer; color: #ccc; font-size: .78rem; transition: color .2s; }
.remove-item:hover { color: var(--danger); }

/* Checkout form, lives inside the cart panel below items */
.checkout-form {
  padding: 4px 22px 22px;
  border-top: 1px dashed var(--line);
  margin-top: 6px;
}
.checkout-form-title {
  font-family: 'Cairo', sans-serif;
  font-size: .98rem; font-weight: 700; color: var(--ink);
  margin: 16px 0 14px; display: flex; align-items: center; gap: 8px;
}
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block; font-size: .78rem; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-family: 'Tajawal', sans-serif;
  font-size: .86rem; color: var(--ink);
  background: var(--off-white);
  outline: none;
  transition: border-color .2s, background .2s;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--gold); background: var(--white); }
.form-field textarea { resize: vertical; min-height: 64px; }
.form-field.error input,
.form-field.error .province-select { border-color: var(--danger); background: #fff5f5; }
.form-error-msg {
  font-size: .72rem; color: var(--danger); margin-top: 5px; display: none;
}
.form-field.error .form-error-msg { display: block; }

.cart-footer {
  padding: 18px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); flex-shrink: 0; background: var(--white);
}
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--ink); margin-bottom: 16px;
}
.cart-total span:last-child { color: var(--gold-deep); }

.whatsapp-btn {
  width: 100%; background: var(--green-wa); color: #fff;
  padding: 16px; border-radius: var(--r-pill); border: none; cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: .95rem; font-weight: 700; letter-spacing: .01em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all .22s;
  box-shadow: 0 10px 26px rgba(37,211,102,.28);
  position: relative; overflow: hidden;
}
.whatsapp-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.18);
  transform: translateX(-100%);
}
.whatsapp-btn:hover { background: var(--green-wa-dk); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37,211,102,.34); }
.whatsapp-btn:active { transform: translateY(0) scale(.98); }

/* ══════════════════════════════════════════
   STICKY MOBILE ORDER BAR — signature CTA
   ══════════════════════════════════════════ */
.order-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 150;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(20,35,65,.08);
  padding: 12px 5% calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 14px;
  min-height: var(--bottom-bar-h);
  height: auto;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.order-bar.visible { transform: translateY(0); }
.order-bar-info { flex: 1; min-width: 0; }
.order-bar-label { font-size: .68rem; color: var(--muted); font-weight: 500; }
.order-bar-total {
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem; font-weight: 800; color: var(--ink);
}
.order-bar-cta {
  background: var(--green-wa); color: #fff;
  border: none; cursor: pointer;
  padding: 13px 22px; border-radius: var(--r-pill);
  font-family: 'Tajawal', sans-serif;
  font-size: .86rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(37,211,102,.3);
  animation: pulseGlow 2.6s ease-in-out infinite;
}
.order-bar-cta:active { transform: scale(.96); }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  background: var(--ink); color: #fff;
  padding: 48px 6% 28px; text-align: center;
}
.footer-logo {
  font-family: 'Cairo', sans-serif;
  font-size: 1.5rem; font-weight: 800; margin-bottom: 6px;
}
.footer-sub {
  font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; opacity: .5; margin-bottom: 24px;
}
.footer-links { display: flex; justify-content: center; gap: 1.8rem; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,.6); text-decoration: none;
  font-size: .82rem; transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy { margin-top: 28px; font-size: .7rem; opacity: .35; }

/* ══════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom, 0px) + 16px); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 300; opacity: 0; pointer-events: none;
  transition: all .3s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 22px rgba(37,211,102,.3); }
  50%      { box-shadow: 0 8px 30px rgba(37,211,102,.55); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 860px) {
  .hero {
    padding: 36px 6% 44px;
  }
  .nav-links       { display: none; }
  .section         { padding: 56px 6%; }
  .products-grid   { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .delivery-box    { padding: 22px; }
  .features-grid   { gap: 22px; }
}

@media (max-width: 420px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body  { padding: 14px 14px 16px; }
  .order-bar     { padding: 10px 4%; gap: 10px; }
  .order-bar-cta { padding: 12px 16px; font-size: .8rem; }
}
