:root {
  --bg: #FBF7EF;
  --surface: #FFFFFF;
  --surface-alt: #F4EDDE;
  --text: #2B2519;
  --subtext: #7A7160;
  --primary: #C98A1B;
  --primary-deep: #A66F0F;
  --on-primary: #FFFFFF;
  --accent: #5F7A34;
  --border: #E7DEC9;
  --shadow: 0 10px 30px rgba(43, 37, 25, 0.08);
}

[data-theme="dark"] {
  --bg: #17140E;
  --surface: #211C13;
  --surface-alt: #2B2518;
  --text: #F3EDDF;
  --subtext: #A79C86;
  --primary: #E2A63E;
  --primary-deep: #C98A1B;
  --on-primary: #241A05;
  --accent: #93AE60;
  --border: #383021;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* hidden must win over display:grid/flex set on the same element (cart empty-state bug). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

[dir="rtl"] body { font-family: "Segoe UI", Tahoma, system-ui, sans-serif; }

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

/* Sticky top stack: promo banner + header travel together and stay pinned on scroll */
.top-stack {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark { width: 26px; height: 26px; fill: var(--primary); }

.header-controls { display: flex; align-items: center; gap: 0.5rem; }

/* Auth buttons (top right) */
.auth-buttons { display: flex; align-items: center; gap: 0.5rem; }
.logout-form { display: inline-flex; }
.hbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.hbtn:hover { text-decoration: none; }
.hbtn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 40%, transparent);
}
.hbtn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 50%, transparent); }
.hbtn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.hbtn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.hbtn-ico { font-size: 0.95rem; }

/* Dropdowns (language / theme, top right) */
.dropdown { position: relative; }

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.dropdown-toggle:hover { border-color: var(--primary); }

.dropdown-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  min-width: 150px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
  display: none;
}

.dropdown.open .dropdown-menu { display: block; }

.dropdown-menu button,
.dropdown-menu a {
  display: block;
  width: 100%;
  text-align: start;
  padding: 0.55rem 0.8rem;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}

.dropdown-menu button:hover,
.dropdown-menu a:hover { background: var(--surface-alt); }
.dropdown-menu button.active,
.dropdown-menu a.active { color: var(--primary); font-weight: 700; }

/* Hero — photo background with slow Ken Burns zoom */
.hero {
  position: relative;
  min-height: clamp(480px, 78vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -6%;
  background: url("images/hero.jpg") center / cover no-repeat;
  animation: kenburns 22s ease-in-out infinite alternate;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 17, 8, 0.55), rgba(23, 17, 8, 0.72));
  z-index: -1;
}

@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.12) translateY(-2%); }
}

.hero-inner {
  max-width: 760px;
  padding: clamp(4rem, 10vw, 6rem) clamp(1rem, 4vw, 3rem);
}

.hero-eyebrow {
  color: #F0C878;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
  color: #FDFAF2;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  color: #EDE5D2;
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 560px;
  margin: 0 auto 2.2rem;
}

.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, var(--bg));
}

/* Entrance animation for hero content */
.rise {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.8s ease forwards;
}

.rise-1 { animation-delay: 0.1s; }
.rise-2 { animation-delay: 0.25s; }
.rise-3 { animation-delay: 0.4s; }
.rise-4 { animation-delay: 0.55s; }

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 45%, transparent);
}
.btn-primary:hover { box-shadow: 0 9px 26px color-mix(in srgb, var(--primary) 55%, transparent); }

.btn-ghost {
  border: 2px solid rgba(253, 250, 242, 0.7);
  color: #FDFAF2;
}

.btn-ghost:hover { background: rgba(253, 250, 242, 0.12); }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.8rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.feature-icon { font-size: 2.2rem; margin-bottom: 0.8rem; }

.feature-card h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.feature-card p { color: var(--subtext); font-size: 0.92rem; }

/* Products */
.products { padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1rem, 4vw, 3rem); background: var(--surface-alt); }

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 2.2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  max-width: 1080px;
  margin: 0 auto;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.product-photo {
  position: relative;
  height: 200px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, var(--surface-alt)),
                    color-mix(in srgb, var(--accent) 8%, var(--surface-alt)));
}
.product-photo::after {
  content: "🌿";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.3;
}
.product-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-photo img { transform: scale(1.07); }

.product-card h3 { padding: 1rem 1.2rem 0.2rem; font-size: 1.05rem; }
.product-card p { padding: 0 1.2rem 1.2rem; color: var(--subtext); font-size: 0.9rem; }

.products-note {
  text-align: center;
  color: var(--subtext);
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* Gallery carousel (swipeable) */
.gallery { padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1rem, 4vw, 3rem); }

.carousel { position: relative; max-width: 900px; margin: 0 auto; }

.carousel-viewport {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  touch-action: pan-y;
  cursor: grab;
}

.carousel-viewport:active { cursor: grabbing; }

.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.slide { position: relative; flex: 0 0 100%; }

.slide img {
  width: 100%;
  height: clamp(260px, 48vw, 480px);
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.slide figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.2rem 1.4rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(23, 17, 8, 0.78));
  color: #FDFAF2;
  font-weight: 600;
  font-size: 0.95rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.carousel-btn:hover { background: var(--surface); transform: translateY(-50%) scale(1.08); }

.carousel-prev { inset-inline-start: 0.8rem; }
.carousel-next { inset-inline-end: 0.8rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dots button.active {
  background: var(--primary);
  transform: scale(1.35);
}

/* Apps */
.apps {
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 70% 80% at 50% 120%, color-mix(in srgb, var(--accent) 16%, transparent), transparent),
    var(--surface-alt);
}

.apps-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.apps h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 0.8rem; }
.apps p { color: var(--subtext); margin-bottom: 1.6rem; }

.badges { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

.badge {
  padding: 0.7rem 1.3rem;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  padding: 1.6rem;
  text-align: center;
  color: var(--subtext);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.footer-credits { font-size: 0.72rem; opacity: 0.75; margin-top: 0.3rem; }

/* Scroll reveal (staggered via JS order) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .rise { opacity: 1; transform: none; transition: none; animation: none; }
  .hero-bg { animation: none; }
  .carousel-track { transition: none; }
  .btn:hover, .feature-card:hover, .product-card:hover { transform: none; }
  .product-card:hover .product-photo img { transform: none; }
}

/* Dynamic pages (Node/EJS) */
.card-link { text-decoration: none; color: inherit; display: block; }
.price-tag { color: var(--primary); font-weight: 800; padding: 0 1.2rem 1.2rem; }
.price-big { font-size: 1.5rem; padding: 0; margin: 0.6rem 0 1rem; }
.page-top { padding-top: 2.5rem; }
.breadcrumb { max-width: 1080px; margin: 0 auto 1rem; font-size: 0.9rem; }
.breadcrumb a { color: var(--accent); text-decoration: none; font-weight: 600; }
.product-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
  align-items: center;
}
.product-detail-photo { border-radius: 22px; overflow: hidden; border: 1px solid var(--border); }
.product-detail-photo img { width: 100%; height: auto; display: block; }
.product-detail-body h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.4rem; }
.product-detail-desc { color: var(--subtext); margin-bottom: 1.6rem; line-height: 1.7; }

/* ---- Cart badge + add-to-cart (shop v2) ---- */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cart-link:hover { border-color: var(--primary); color: var(--primary); }
.cart-ico { width: 20px; height: 20px; }
.cart-badge {
  position: absolute; top: -4px; inset-inline-end: -4px;
  background: var(--primary); color: #fff;
  font-size: 0.68rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  border: 2px solid var(--bg);
}
.btn-add {
  width: 100%;
  margin-top: auto;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem;
  border-radius: 0 0 20px 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-add:hover { background: var(--primary-deep); }
.btn-add.added { background: var(--accent); }
.product-card { display: flex; flex-direction: column; }
.product-detail .btn-add { width: auto; border-radius: 999px; padding: 0.8rem 1.6rem; margin-top: 0.5rem; }

/* Product gallery */
.product-detail-media { display: flex; flex-direction: column; gap: 0.7rem; }
.pd-noimg { height: 300px; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--surface-alt); border-radius: 22px; }
.pd-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pd-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: none; padding: 0; cursor: pointer; }
.pd-thumb.on { border-color: var(--primary); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Cart page ---- */
.cart-wrap { display: grid; grid-template-columns: 1fr minmax(280px, 340px); gap: 1.5rem; max-width: 1000px; margin: 1.5rem auto 0; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 0.8rem; }
.cart-line {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 0.8rem;
}
.cl-img { width: 66px; height: 66px; border-radius: 10px; overflow: hidden; background: var(--surface-alt); flex-shrink: 0; }
.cl-img img { width: 100%; height: 100%; object-fit: cover; }
.cl-body { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.cl-price { color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.cl-qty { display: flex; align-items: center; gap: 0.5rem; }
.cl-qty button {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 1rem; cursor: pointer;
}
.cl-remove { border: none !important; background: none !important; }
.cart-summary { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 0.7rem; }
.coupon-row { display: flex; gap: 0.5rem; }
.coupon-row input { flex: 1; padding: 0.55rem 0.7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }
.btn-sm-dark { background: var(--text); color: var(--bg); border: none; border-radius: 10px; padding: 0 0.9rem; font-weight: 700; cursor: pointer; }
.coupon-msg { font-size: 0.82rem; min-height: 1em; }
.coupon-msg.ok { color: var(--accent); }
.coupon-msg.err { color: var(--danger, #B3402F); }
.sum-row { display: flex; justify-content: space-between; font-size: 0.92rem; }
.sum-total { font-size: 1.15rem; font-weight: 800; border-top: 1px solid var(--border); padding-top: 0.6rem; }
.full { width: 100%; text-align: center; }
.continue-link { text-align: center; color: var(--accent); font-size: 0.88rem; font-weight: 600; }
.empty-cart {
  max-width: 460px;
  margin: 1rem auto 3rem;
  text-align: center;
  padding: 3.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.empty-cart-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface-alt));
}
.empty-cart-text { font-size: 1.05rem; font-weight: 600; color: var(--subtext); }

/* ---- Checkout ---- */
.checkout-wrap { display: grid; grid-template-columns: 1fr minmax(280px, 340px); gap: 1.5rem; max-width: 1000px; margin: 1.5rem auto 0; align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 0.9rem; }
.checkout-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--subtext); }
.checkout-form input, .checkout-form textarea { padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 0.95rem; background: var(--surface); color: var(--text); }
.cod-banner { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem; font-size: 0.9rem; }
.checkout-summary { position: sticky; top: 80px; }
.checkout-lines, .co-line { display: flex; flex-direction: column; gap: 0.4rem; }
.co-line { flex-direction: row; justify-content: space-between; font-size: 0.9rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.3rem; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.9rem; }

@media (max-width: 760px) {
  .cart-wrap, .checkout-wrap { grid-template-columns: 1fr; }
}

/* ---- Customer auth (login/signup/forgot/reset) ---- */
.account-link { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-inline-end: 0.6rem; }
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem; width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: 0.85rem; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.4rem; font-weight: 800; text-align: center; margin-bottom: 0.4rem; }
.auth-card label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--subtext); }
.auth-card input {
  padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; background: var(--bg); color: var(--text);
}
.auth-error { background: #FDECEA; color: #B3402F; padding: 0.6rem; border-radius: 8px; font-size: 0.85rem; text-align: center; }
.auth-ok { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); padding: 0.7rem; border-radius: 8px; font-size: 0.88rem; text-align: center; }
.auth-hint { font-size: 0.78rem; color: var(--subtext); }
.auth-forgot { font-size: 0.82rem; color: var(--accent); font-weight: 600; align-self: flex-end; }
.auth-alt { font-size: 0.86rem; text-align: center; color: var(--subtext); }
.auth-alt a, .auth-devlink { color: var(--accent); font-weight: 700; }
.auth-devlink { word-break: break-all; font-size: 0.8rem; display: block; padding: 0.5rem; background: var(--surface-alt); border-radius: 8px; }
.checkout-login-hint { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.85rem; }
.checkout-login-hint a { color: var(--accent); font-weight: 700; }

/* ---- Variant picker (product page) ---- */
.variant-picker { margin: 0.3rem 0 1rem; }
.variant-title { font-size: 0.85rem; font-weight: 700; color: var(--subtext); display: block; margin-bottom: 0.5rem; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.variant-opt {
  display: flex; flex-direction: column; gap: 0.15rem; align-items: center;
  border: 2px solid var(--border); border-radius: 12px;
  padding: 0.5rem 0.9rem; cursor: pointer; min-width: 74px;
}
.variant-opt.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.variant-opt input { display: none; }
.vo-label { font-weight: 700; font-size: 0.9rem; }
.vo-price { font-size: 0.8rem; color: var(--primary-deep); font-weight: 600; }
.price-tag .from { font-size: 0.72rem; font-weight: 600; color: var(--subtext); }

/* ---- Discount / old price ---- */
.product-photo { position: relative; }
.old-price { color: var(--subtext); text-decoration: line-through; font-weight: 600; font-size: 0.85em; margin-inline-start: 0.4rem; }
.price-line { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; padding: 0 1.2rem; }
.price-line .price-tag { padding: 0; }
.price-big-old { font-size: 1.05rem; }
.discount-badge {
  position: absolute; top: 0.6rem; inset-inline-start: 0.6rem; z-index: 2;
  background: #e11d48; color: #fff; font-weight: 800; font-size: 0.8rem;
  padding: 0.2rem 0.5rem; border-radius: 999px; letter-spacing: 0.02em;
}

/* ---- Subcategory grid on a category page ---- */
.subcat-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.subcat-card {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.9rem 0.5rem 0.5rem;
  border: 1px solid var(--border, #e5e7eb); border-radius: 999px; background: var(--card, #fff);
  text-decoration: none; color: inherit; font-weight: 700; transition: transform 0.15s, box-shadow 0.15s;
}
.subcat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.subcat-photo { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--bg, #f3f4f6); flex: 0 0 auto; }
.subcat-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Account page ---- */
.account-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; max-width: 800px; margin: 0 auto 1rem; }
.muted-text { color: var(--subtext); font-size: 0.9rem; }
.account-sub { max-width: 800px; margin: 1.5rem auto 1rem; font-size: 1.2rem; font-weight: 800; }
.account-orders { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.account-order { display: flex; flex-direction: column; gap: 0.6rem; }
.ao-head { display: flex; justify-content: space-between; align-items: center; }
.ao-items { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.9rem; }
.ao-items .muted-text { margin-inline-start: 0.4rem; }
.ao-total { font-size: 0.95rem; }
.status-tag { padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.status-waiting_confirmation { background: #FEF08A; color: #854D0E; }
.status-confirmed { background: #DDD6FE; color: #5B21B6; }
.status-waiting_delivery { background: #BFDBFE; color: #1E40AF; }
.status-on_delivery { background: #99F6E4; color: #0F766E; }
.status-delivered { background: #BBF7D0; color: #15803D; }
.status-cancelled { background: #FECACA; color: #B91C1C; }
.status-returned { background: #E2E8F0; color: #475569; }
.badge-cod { background: #FEF3C7; color: #92600A; padding: 0.15rem 0.55rem; border-radius: 6px; font-size: 0.72rem; font-weight: 700; margin-inline-start: 0.5rem; }

/* ---- Promotional scrolling banner ---- */
.promo-banner {
  background: linear-gradient(90deg, var(--primary), var(--primary-deep));
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.5rem 0;
}
.promo-banner-track {
  display: inline-flex;
  gap: 3rem;
  padding-inline-start: 3rem;
  animation: promo-scroll 22s linear infinite;
  will-change: transform;
}
.promo-banner-text { font-size: 0.9rem; font-weight: 700; }
.promo-banner:hover .promo-banner-track { animation-play-state: paused; }
@keyframes promo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
[dir="rtl"] .promo-banner-track { animation-name: promo-scroll-rtl; }
@keyframes promo-scroll-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce) {
  .promo-banner-track { animation: none; padding-inline-start: 1rem; }
  .promo-banner-text:nth-child(n+2) { display: none; }
}

/* ============ Apple-style storefront ============ */

/* Richer reveal: fade + slight rise + scale, staggered by the observer */
.reveal { opacity: 0; transform: translateY(34px) scale(0.985); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: none; }

/* Scroll cue under the hero */
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 24px; height: 40px; border: 2px solid rgba(255,255,255,0.6); border-radius: 14px; z-index: 1; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrollcue 1.6s ease-in-out infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* Trust bar */
.trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 6vw, 5rem);
  padding: 1.6rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.95rem; color: var(--text); }
.trust-ico { font-size: 1.3rem; }

/* Full-bleed parallax chapters */
.showcase {
  position: relative;
  min-height: clamp(560px, 92vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* parallax on desktop */
}
.showcase-honey { background-image: url('/images/honey-dipper.jpg'); }
.showcase-oil { background-image: url('/images/olive-pour.webp'); }
.showcase-natural { background-image: url('/images/spices.webp'); }
.showcase-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10,14,6,0.35), rgba(10,14,6,0.72)); }
.showcase-content { position: relative; z-index: 1; max-width: 720px; padding: 2rem; color: #fff; }
.showcase-content h2 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
}
.showcase-content p { font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: #F0ECE2; max-width: 560px; margin: 0 auto 1.8rem; }
.showcase-cta {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
  color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.showcase-cta:hover { background: rgba(255,255,255,0.28); transform: translateY(-2px); }

/* Alternate product section background for rhythm */
.products-alt { background: var(--bg); }
.section-title { letter-spacing: -0.02em; }

/* Touch devices: fixed backgrounds are janky, switch to scroll */
@media (max-width: 900px), (hover: none) {
  .showcase { background-attachment: scroll; min-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Checkout address + city row */
.checkout-row { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
@media (min-width: 560px) { .checkout-row { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.checkout-city select {
  padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; background: var(--surface); color: var(--text); width: 100%;
}
