/* JAZ Skin Care — Brand stylesheet */
:root {
  --cream: #fbf9f5;
  --ivory: #f5f0e8;
  --olive: #8b8259;
  --olive-dark: #6b6442;
  --olive-light: #b7ad85;
  --ink: #0e0e0e;
  --muted: #6b665c;
}

html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

/* Global safety: nothing should widen the viewport */
*, *::before, *::after { box-sizing: border-box; }

.font-serif, h1, h2, h3, .heading {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
}

/* Logo lockup */
.brand-mark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #0e0e0e;
}
.brand-tag {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--olive);
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* Hero */
.hero-grad {
  background:
    radial-gradient(1100px 500px at 80% -10%, #efe7d4 0%, rgba(239,231,212,0) 60%),
    radial-gradient(900px 500px at -10% 110%, #ece4cf 0%, rgba(236,228,207,0) 60%),
    var(--cream);
}

/* Subtle olive divider */
.divider-leaf {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--olive);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.divider-leaf::before,
.divider-leaf::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--olive-light);
  display: inline-block;
}

/* Buttons */
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 1.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--olive-dark); border-color: var(--olive-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  padding: 0.85rem 1.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* Product card */
.product-card {
  background: #ffffff;
  border: 1px solid #ece6d8;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(107, 100, 66, 0.35);
}
.product-card .img-wrap {
  background: var(--ivory);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover img { transform: scale(1.05); }

/* Discount badge on product image */
.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  z-index: 2;
  text-transform: uppercase;
  pointer-events: none;
  animation: discount-pop 0.6s ease;
}
@keyframes discount-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  70%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Add-to-cart pill button on product cards */
.add-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.add-cart-btn:hover {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(107, 100, 66, 0.3);
}
.add-cart-btn:active { transform: translateY(0); }

/* Product card price + button row fixes (prevent overflow on mobile) */
.product-card .p-5 {
  min-width: 0;
}
.product-card .p-5 > .flex.items-center.justify-between {
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.product-card .p-5 > .flex.items-center.justify-between > span {
  min-width: 0;
  word-break: break-word;
}
@media (max-width: 640px) {
  .product-card .p-5 {
    padding: 1rem;
  }
  .product-card .p-5 > .flex.items-center.justify-between {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .product-card .add-cart-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
  }
}

/* Header */
.site-header {
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #ece6d8;
}
.nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--olive);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after { width: 100%; }

/* Category pill */
.cat-pill {
  border: 1px solid #d8d0bb;
  color: var(--ink);
  background: transparent;
  padding: 0.45rem 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
}
.cat-pill:hover { border-color: var(--olive); color: var(--olive-dark); }
.cat-pill.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Cart drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  background: #fff;
  z-index: 80;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 50px rgba(0,0,0,0.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14,14,14,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 70;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 30px);
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 1.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  z-index: 90;
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Marquee */
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Running headlines (top bar) */
.running-headlines {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: 9px 0;
  border-bottom: 1px solid #2a2820;
}
.rh-track {
  display: inline-flex;
  gap: 4rem;
  white-space: nowrap;
  animation: rh-scroll 45s linear infinite;
  padding-left: 100%;
}
.rh-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #d9d2bf;
}
.rh-item i { color: var(--olive-light); }
@keyframes rh-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.running-headlines:hover .rh-track { animation-play-state: paused; }

/* Checkout */
.check-input {
  width: 100%;
  background: transparent;
  border: 1px solid #d8d0bb;
  padding: 12px 14px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: border 0.15s;
}
.check-input:focus { border-color: var(--olive); }

.payment-radio {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d8d0bb;
  cursor: pointer;
  transition: all 0.2s;
}
.payment-radio:hover { border-color: var(--olive); }
.payment-radio:has(input:checked) {
  border-color: var(--ink);
  background: #faf7f0;
}
.payment-radio input { margin-top: 4px; accent-color: var(--olive); }

/* Tracking flow */
.track-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  padding: 30px 0 10px;
}
.track-flow::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 52px;
  height: 2px;
  background: #e6dfc9;
  z-index: 0;
}
.track-step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.track-step .dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d8d0bb;
  color: #b7ad85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all 0.3s;
}
.track-step.done .dot {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}
.track-step.current .dot {
  box-shadow: 0 0 0 6px rgba(139, 130, 89, 0.18);
  transform: scale(1.05);
}
.track-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.track-step.done .track-label { color: var(--ink); font-weight: 500; }
@media (max-width: 768px) {
  .track-flow { grid-template-columns: repeat(3, 1fr); gap: 14px 0; }
  .track-flow::before { display: none; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: all 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Footer */
.site-footer {
  background: #14130f;
  color: #d9d2bf;
}
.site-footer a:hover { color: #fff; }

/* Mobile menu — fully opaque overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #fbf9f5;
  background: var(--cream);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 0 60px rgba(0,0,0,0.08);
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu nav a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #ece6d8;
}
/* Prevent any scroll bleed when menu is open */
body.menu-open { overflow: hidden; }
/* Make sure the sticky header stays below the mobile menu */
.site-header { z-index: 40; }

/* Quantity */
.qty-btn {
  width: 28px; height: 28px;
  border: 1px solid #d8d0bb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
}
.qty-btn:hover { border-color: var(--olive); color: var(--olive-dark); }

/* Selectable section heading */
.eyebrow {
  color: var(--olive);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
}

/* ─────────────────────────────────────────
   Developer Badge (Footer) — bigger & not covered by WhatsApp
   ───────────────────────────────────────── */
.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(139, 130, 89, 0.18), rgba(183, 173, 133, 0.10));
  border: 1.5px solid rgba(139, 130, 89, 0.45);
  border-radius: 999px;
  color: #d9d2bf;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.dev-badge::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(183, 173, 133, 0.3), transparent);
  transition: left 0.6s ease;
}
.dev-badge:hover {
  background: linear-gradient(135deg, rgba(139, 130, 89, 0.32), rgba(183, 173, 133, 0.20));
  border-color: var(--olive);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(139, 130, 89, 0.5);
}
.dev-badge:hover::before { left: 100%; }
.dev-badge-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.22), 0 0 14px rgba(37, 211, 102, 0.7);
  animation: dev-pulse 2.2s infinite;
  flex-shrink: 0;
}
@keyframes dev-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.22), 0 0 14px rgba(37, 211, 102, 0.7); }
  50%      { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0.05), 0 0 22px rgba(37, 211, 102, 0.9); }
}
.dev-badge-text {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}
.dev-badge-label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b7ad85;
  font-weight: 500;
}
.dev-badge:hover .dev-badge-label { color: #d9d2bf; }
.dev-badge-brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, #d9d2bf, #b7ad85);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dev-badge:hover .dev-badge-brand {
  background: linear-gradient(135deg, #fff, #d9d2bf);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dev-badge-dot-text {
  color: #25D366;
  -webkit-text-fill-color: #25D366;
  font-weight: 800;
}
.dev-badge-arrow {
  font-size: 0.8rem;
  color: #b7ad85;
  transition: transform 0.3s, color 0.3s;
}
.dev-badge:hover .dev-badge-arrow {
  color: #fff;
  transform: translate(2px, -2px);
}

/* Dev badge bar — sits at the very bottom of the footer */
.dev-badge-bar {
  background: #0b0a08;
  border-top: 1px solid #2a2820;
  padding: 18px 0;
  /* Leave space on the right so the WhatsApp FAB never covers the badge */
  padding-right: 90px;
}
.dev-badge-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}
@media (max-width: 768px) {
  .dev-badge {
    padding: 10px 18px;
    gap: 10px;
  }
  .dev-badge-label { font-size: 0.68rem; letter-spacing: 0.16em; }
  .dev-badge-brand { font-size: 0.9rem; }
  .dev-badge-bar {
    /* On mobile, push the badge above the WhatsApp FAB so it's never covered */
    padding: 16px 0 84px;
  }
  .dev-badge-wrap {
    justify-content: center;
  }
}

/* ─────────────────────────────────────────
   WhatsApp Floating Widget
   ───────────────────────────────────────── */
.wa-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  max-width: calc(100vw - 28px);
  pointer-events: none;
}
.wa-widget > * { pointer-events: auto; }
.wa-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #1da851);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55);
}
.wa-fab:active { transform: scale(0.96); }
.wa-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse 2s infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}
.wa-fab-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.wa-widget.opened .wa-fab-badge { display: none; }

.wa-popup {
  width: 320px;
  max-width: calc(100vw - 44px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform-origin: bottom right;
  transform: scale(0.85) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.wa-widget.opened .wa-popup {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.wa-popup-header {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.wa-popup-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.wa-popup-meta { flex: 1; min-width: 0; }
.wa-popup-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.wa-popup-status {
  font-size: 0.72rem;
  opacity: 0.92;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.wa-online-dot {
  width: 7px;
  height: 7px;
  background: #d1fae5;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(209, 250, 229, 0.7);
  animation: wa-online 1.6s infinite;
}
@keyframes wa-online {
  0% { box-shadow: 0 0 0 0 rgba(209, 250, 229, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(209, 250, 229, 0); }
}
.wa-popup-close {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background 0.18s;
}
.wa-popup-close:hover { background: rgba(255, 255, 255, 0.28); }

.wa-popup-body {
  background:
    repeating-linear-gradient(45deg, rgba(139, 130, 89, 0.04) 0 12px, rgba(139, 130, 89, 0.07) 12px 24px),
    #ece5dd;
  padding: 22px 16px 16px;
  min-height: 120px;
}
.wa-popup-msg {
  background: #fff;
  padding: 12px 14px 8px;
  border-radius: 4px 14px 14px 14px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  max-width: 92%;
  position: relative;
}
.wa-popup-msg::before {
  content: '';
  position: absolute;
  top: 0; left: -8px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 8px 10px 0;
  border-color: transparent #fff transparent transparent;
}
.wa-popup-msg-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #128C7E;
  margin-bottom: 4px;
}
.wa-popup-msg-text {
  font-size: 0.86rem;
  color: #303030;
  line-height: 1.45;
}
.wa-popup-msg-time {
  font-size: 0.65rem;
  color: #999;
  text-align: right;
  margin-top: 4px;
}
.wa-popup-footer {
  background: #f0f2f5;
  padding: 14px 16px 16px;
  text-align: center;
}
.wa-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #25D366, #1da851);
  color: #fff;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}
.wa-popup-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.5);
}
.wa-popup-cta i { font-size: 1.05rem; }
.wa-popup-disclaimer {
  font-size: 0.66rem;
  color: #8c856f;
  margin-top: 8px;
  letter-spacing: 0.04em;
}
@media (max-width: 480px) {
  .wa-widget { right: 12px; bottom: 14px; max-width: calc(100vw - 20px); }
  .wa-fab { width: 50px; height: 50px; font-size: 1.45rem; }
  .wa-fab-badge { width: 16px; height: 16px; font-size: 0.58rem; }
  .wa-popup { width: calc(100vw - 24px); }
}
