:root {
  --brand: #2f6b4a;
  --brand-dark: #24553a;
  --brand-deep: #1c2b21;
  --brand-tint: #e6f0e8;
  --brand-light: #66a97f;
  --cream: #fdfad6;
  --accent: #fdfad6;
  --accent-dark: #f1ebb5;
  --bg: #f8f7ee;
  --surface: #ffffff;
  --text: #1c2b21;
  --text-muted: #44534a;
  --border: #e3e5d8;
  --success: #15803d;
  --danger: #b91c1c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(28, 43, 33, 0.06), 0 8px 24px rgba(28, 43, 33, 0.08);
  --shadow-lg: 0 24px 60px rgba(28, 43, 33, 0.22);
  --font: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

/* Nothing on the page may push it wider than the screen. */
html, body { overflow-x: clip; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; }

.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
}
.container-narrow { max-width: 780px; }

.hidden { display: none !important; }

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wa-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.muted { color: var(--text-muted); font-size: 0.92rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: var(--brand-deep); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg); border-color: #d3dacd; }
.btn-outline-light { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); }
.btn-lg { padding: 13px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.btn-icon:hover { background: var(--bg); color: var(--text); }

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name-ar { font-weight: 700; font-size: 1.1rem; color: var(--brand-deep); }
.brand-name-en { font-size: 0.8rem; letter-spacing: 0.22em; color: var(--text-muted); font-weight: 600; }
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
}
.main-nav a:hover { color: var(--brand); background: var(--brand-tint); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn { min-width: 48px; padding-inline: 12px; }
.cart-btn { position: relative; }
.cart-count {
  background: var(--accent);
  color: var(--brand-deep);
  border-radius: 999px;
  min-width: 22px;
  padding: 0 7px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.cart-count.bump { animation: bump 0.4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-block: 72px 84px;
  background:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.035) 0 70px, transparent 70px 170px),
    radial-gradient(circle at 12% 8%, rgba(253, 250, 214, 0.14), transparent 45%),
    linear-gradient(150deg, #66a97f 0%, #3e634b 42%, #26382b 75%, #1c231c 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(253, 250, 214, 0.12);
  border: 1px solid rgba(253, 250, 214, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
}
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: 18px 0 14px; font-weight: 700; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
}
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list .icon { color: var(--accent); width: 18px; height: 18px; }

.hero-feature { position: relative; min-height: 280px; }
.feature-card {
  position: relative;
  background: var(--surface);
  color: var(--text);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  animation: rise 0.6s ease both;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 16px -14px -14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
}
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.feature-tag {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-tint);
  padding: 3px 10px;
  border-radius: 999px;
}
.feature-card h3 { margin: 14px 0 4px; font-size: 1.25rem; }
.feature-card h3 a { color: inherit; text-decoration: none; }
.feature-card h3 a:hover { color: var(--brand); }
.feature-card .desc { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 18px; }
.feature-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.feature-price .price-discounted { font-size: 2.2rem; }
.feature-card .btn { margin-top: 18px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Sections */
.section { padding-block: 76px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; }
.section-subtitle { color: var(--text-muted); margin: 0; }

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe3d5; }
@keyframes shimmer { to { background-position: -200% 0; } }
.product-card.is-out .product-visual { filter: grayscale(0.8); opacity: 0.7; }
.card-media { position: relative; display: block; text-decoration: none; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex-grow: 1; }
.card-category {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  align-self: flex-start;
}
.card-category:hover { color: var(--brand); }
.card-title { margin: 4px 0 6px; font-size: 1.02rem; line-height: 1.4; flex-grow: 1; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-body .duration-pills { margin: 6px 0 10px; }
.card-body .price-row { margin-bottom: 12px; }
.card-body .price-discounted { font-size: 1.35rem; }

.product-visual {
  --tile-color: var(--brand);
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--brand-tint);
}
.product-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-visual.placeholder {
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.28), transparent 45%),
    linear-gradient(145deg, var(--tile-color) 0%, color-mix(in srgb, var(--tile-color) 55%, #000) 100%);
}
.visual-mono { font-size: 2.6rem; font-weight: 700; color: #fff; letter-spacing: 0.02em; direction: ltr; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18); }
.visual-emoji { position: absolute; inset-block-end: 10px; inset-inline-end: 12px; font-size: 1.5rem; }
.product-visual.large { aspect-ratio: 1 / 1; border-radius: var(--radius); }
.product-visual.large .visual-mono { font-size: 4.5rem; }

.card-badges {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 20px);
}
.badge {
  font-size: 0.84rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.badge-discount { background: #e6f0e8; color: #24553a; direction: ltr; unicode-bidi: isolate; }
.badge-instant { background: #dcf8ec; color: #0f6b44; }
.badge-new { background: var(--brand); color: #fff; }
.badge-out { background: #374151; color: #fff; }

.rating { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; margin-bottom: 4px; }
.rating-value { font-weight: 700; }
.rating-count { color: var(--text-muted); }
.stars { position: relative; display: inline-block; font-size: 0.95rem; line-height: 1; letter-spacing: 1px; direction: ltr; }
.stars-base { color: #dde2d6; }
.stars-fill { position: absolute; inset-block-start: 0; left: 0; overflow: hidden; white-space: nowrap; color: #f5a524; }

.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-tile {
  --tile-color: var(--brand);
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(145deg, var(--tile-color) 0%, color-mix(in srgb, var(--tile-color) 55%, #000) 100%);
  direction: ltr;
  flex-shrink: 0;
  overflow: hidden;
}
.app-tile.has-image { background: var(--bg); }
.app-tile img { width: 100%; height: 100%; object-fit: cover; }
.discount-pill {
  font-size: 0.88rem;
  font-weight: 700;
  color: #24553a;
  background: #e6f0e8;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}
.duration-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.duration-pill {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.duration-pill[aria-pressed="true"] { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-dark); }
.duration-pill.static { cursor: default; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 4px; }
.price-original { text-decoration: line-through; color: var(--text-muted); font-size: 0.95rem; }
.price-ref { font-size: 0.78rem; color: var(--text-muted); flex-basis: 100%; margin-top: -4px; }
.price-ref[hidden] { display: none; }
.price-ref-note { font-size: 0.85rem; color: var(--text-muted); margin: -10px 0 16px; }
.price-discounted { font-size: 1.75rem; font-weight: 700; color: var(--brand); direction: ltr; unicode-bidi: isolate; }
.price-save { font-size: 0.92rem; font-weight: 600; color: var(--success); margin-bottom: 16px; min-height: 1.4em; }
.add-btn.added { background: var(--success); }

/* How it works */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: none;
}
.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.step h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 18px;
}
.faq-item[open] { border-color: #cfe3d5; box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px; color: var(--text-muted); }

/* CTA band */
.cta-section { padding-top: 0; }
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 32px 36px;
  border-radius: 20px;
  color: #fff;
  background:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.04) 0 60px, transparent 60px 150px),
    linear-gradient(140deg, var(--brand) 0%, var(--brand-deep) 100%);
}
.cta-band h2 { margin: 0 0 4px; font-size: 1.4rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.82); }

/* Footer */
.site-footer {
  background: #1c2b21;
  color: #cbd5c6;
  padding-block: 48px 24px;
  font-size: 0.92rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo { height: 64px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand p { max-width: 380px; margin: 0; }
.contact-block h2 { color: #fff; font-size: 1.2rem; margin: 0 0 6px; }
.contact-block p { margin: 0 0 16px; }
.footer-bottom { padding-top: 18px; }
.site-footer .fine-print { color: #8a9a8e; font-size: 0.88rem; margin: 4px 0; }
.whatsapp-btn { background: #25d366; color: #0f2417; }
.whatsapp-btn:hover { background: #1ebe5a; }

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 28, 21, 0.5);
  backdrop-filter: blur(2px);
  z-index: 30;
  animation: fade 0.2s ease both;
}
@keyframes fade { from { opacity: 0; } }

/* Cart drawer */
.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(400px, 100%);
  background: var(--surface);
  z-index: 40;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slide-in-ltr 0.25s ease both;
}
[dir="rtl"] .drawer { animation-name: slide-in-rtl; }
@keyframes slide-in-ltr { from { transform: translateX(100%); } }
@keyframes slide-in-rtl { from { transform: translateX(-100%); } }
.drawer-header, .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-header h2, .modal-header h2 { margin: 0; font-size: 1.2rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--border);
}
.cart-item .app-tile { width: 42px; height: 42px; border-radius: 11px; font-size: 0.9rem; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { display: block; font-weight: 600; font-size: 0.95rem; color: var(--text); text-decoration: none; }
.cart-item-name:hover { color: var(--brand); }
.cart-item-price { color: var(--text-muted); font-size: 0.92rem; }
.qty-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}
.qty-controls span { min-width: 22px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.qty-controls button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
}
.qty-controls button:hover { background: var(--brand-tint); color: var(--brand-dark); }
.remove-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--danger);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
}
.remove-link:hover { text-decoration: underline; }
.drawer-footer { padding: 20px; border-top: 1px solid var(--border); background: var(--bg); }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.cart-total-row strong { font-size: 1.4rem; direction: ltr; }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--text-muted); }
.cart-empty .icon { width: 48px; height: 48px; stroke-width: 1.4; color: #c2ccbf; margin-bottom: 8px; }
.cart-empty p { margin: 0 0 18px; }

/* Modal (shared with admin) */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border-radius: var(--radius);
  width: min(480px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  z-index: 50;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.22s ease both;
}
@keyframes modal-in { from { opacity: 0; transform: translate(-50%, -46%); } }
.modal-checkout { width: min(560px, 94vw); }
.modal { overflow-x: hidden; }
.modal-body > *, .modal-body input, .modal-body select, .modal-body textarea { min-width: 0; max-width: 100%; }
.modal-header { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-body label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.modal-body input, .modal-body textarea, .modal-body select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}
.modal-body input:focus, .modal-body textarea:focus, .modal-body select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 107, 74, 0.15);
}
.modal-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.field-hint { color: var(--text-muted); font-size: 0.9rem; font-weight: 400; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-subtitle { margin: 4px 0 0; font-size: 1rem; }
.form-error {
  background: #fdecea;
  color: var(--danger);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
}

/* Checkout */
.checkout-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
}
.checkout-summary-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 3px; }
.checkout-summary-total { font-weight: 700; font-size: 1.05rem; border-top: 1px dashed #d5dccf; margin-top: 8px; padding-top: 10px; }
.checkout-step { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.checkout-step + .checkout-step { border-top: 1px solid var(--border); padding-top: 18px; }
.checkout-step-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.02rem; }
.checkout-step-title .step-num { width: 28px; height: 28px; font-size: 0.92rem; }
.payment-methods { display: grid; gap: 8px; }
.payment-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--brand-tint);
  border: 1px solid #cfe3d5;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.payment-method strong { display: block; font-size: 0.9rem; color: var(--brand-dark); }
.payment-method .payment-details { font-weight: 600; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.copy-btn {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--surface);
  color: var(--brand-dark);
  cursor: pointer;
}
.copy-btn.copied { background: var(--brand); color: #fff; }

.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px;
  border: 2px dashed #c3dccb;
  border-radius: var(--radius-sm);
  background: var(--bg);
  text-align: center;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.upload-zone:hover, .upload-zone:focus-within { border-color: var(--brand); background: var(--brand-tint); }
.upload-zone.has-file { border-style: solid; border-color: var(--brand); }
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  padding: 0;
}
.upload-icon { width: 28px; height: 28px; color: var(--brand); }
.upload-preview { max-height: 120px; max-width: 100%; border-radius: 8px; }
.upload-text { color: var(--text); word-break: break-all; }

/* Confirmation */
.confirm-body { text-align: center; padding: 30px 24px 24px; }
.confirm-body h2 { margin: 6px 0 4px; }
.confirm-check {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: #dcfce7;
  display: grid;
  place-items: center;
}
.confirm-check svg { width: 34px; height: 34px; fill: none; stroke: var(--success); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.5s 0.15s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm-details { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 16px; text-align: start; }
.confirm-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; }
.confirm-row + .confirm-row { border-top: 1px solid var(--border); }
.confirm-row strong { font-size: 1.05rem; }
.confirm-whatsapp-note { color: var(--text-muted); font-size: 0.92rem; margin: 4px 0; }

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--brand-deep);
  color: #fff;
  padding: 12px 14px 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
  max-width: calc(100vw - 32px);
  animation: toast-in 0.25s ease both;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.toast-action {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--accent);
  color: var(--brand-deep);
  border: none;
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
}

/* Promo bar */
.promo-bar {
  background: #e0ece3;
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 600;
}
.promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-block: 8px;
  text-align: center;
}
.promo-code {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  padding: 2px 12px;
  border-radius: 999px;
  border: 1.5px dashed var(--brand-deep);
  background: rgba(255, 255, 255, 0.45);
  color: var(--brand-deep);
  cursor: pointer;
  direction: ltr;
}
.promo-code:hover { background: rgba(255, 255, 255, 0.75); }
.promo-countdown {
  font-variant-numeric: tabular-nums;
  background: var(--brand-deep);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* Header additions */
.main-nav a.active { color: var(--brand); background: var(--brand-tint); }
.main-nav a, .nav-dropdown-btn, .header-actions .btn { white-space: nowrap; }
.row-scroller.no-scroll .row-arrow { display: none; }
.menu-toggle { display: none; place-items: center; color: var(--text); }
.menu-toggle .icon { width: 24px; height: 24px; }
.icon-btn { padding-inline: 10px; }
.account-btn { padding-inline: 12px; }
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-dropdown-btn:hover, .nav-dropdown-btn[aria-expanded="true"] { color: var(--brand); background: var(--brand-tint); }
.nav-dropdown-btn .chevron { width: 16px; height: 16px; transition: transform 0.15s; }
.nav-dropdown-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.nav-menu {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  display: flex;
  flex-direction: column;
  z-index: 25;
  animation: fade 0.15s ease both;
}
.main-nav .nav-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
}
.nav-menu-emoji { width: 22px; text-align: center; }
.main-nav .nav-menu-all { border-top: 1px solid var(--border); margin-top: 4px; border-radius: 0 0 8px 8px; font-weight: 600; color: var(--brand); }

/* Section rows */
.section-tight { padding-block: 36px; }
.section-spaced { padding-top: 56px; }
.row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.row-head .section-title { margin: 0; }
.row-head .section-subtitle { margin-top: 4px; }
.show-more { font-weight: 700; font-size: 0.92rem; text-decoration: none; white-space: nowrap; color: var(--brand); }
.show-more::after { content: ' ←'; }
[dir="ltr"] .show-more::after { content: ' →'; }
.show-more:hover { text-decoration: underline; }

.row-scroller { position: relative; }
.product-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 250px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
}
.product-row > * { scroll-snap-align: start; }
.row-arrow {
  position: absolute;
  inset-block-start: 38%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.row-arrow:hover { color: var(--brand); border-color: var(--brand); }
.row-prev { inset-inline-start: -18px; }
.row-next { inset-inline-end: -18px; }
[dir="rtl"] .row-arrow { transform: scaleX(-1); }

/* Category tiles */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.category-tile {
  --tile-color: var(--brand);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
  min-height: 130px;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.25), transparent 50%),
    linear-gradient(145deg, var(--tile-color) 0%, color-mix(in srgb, var(--tile-color) 55%, #000) 100%);
  transition: transform 0.2s, box-shadow 0.2s;
}
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-emoji { font-size: 2rem; margin-bottom: auto; }
.category-name { font-weight: 700; font-size: 1.05rem; }
.category-count { font-size: 0.9rem; opacity: 0.85; }

/* Page hero for inner pages */
.page-hero {
  color: #fff;
  padding-block: 44px 40px;
  background:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.035) 0 70px, transparent 70px 170px),
    linear-gradient(150deg, #2b4a36 0%, var(--brand-deep) 75%);
}
.page-title { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0 0 6px; }
.page-subtitle { margin: 0; color: rgba(255, 255, 255, 0.82); }
.page-subtitle:empty { display: none; }

/* Shop */
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.search-field {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.search-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 107, 74, 0.15); }
.search-field input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 11px 0;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  min-width: 0;
}
.shop-toolbar select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--surface);
  color: var(--text);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.shop-count { margin: 0 0 14px; }
.empty-note { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 40px 10px; }
.empty-note .btn { margin-top: 8px; }

/* Product page */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.94rem; margin-bottom: 18px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.crumb-current { color: var(--text); font-weight: 600; }
.product-detail { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.detail-media { position: relative; }
.detail-media .card-badges { inset-block-start: 14px; inset-inline-start: 14px; }
.detail-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 8px; }
.rating-link { display: inline-block; color: inherit; text-decoration: none; }
.detail-desc { color: var(--text-muted); font-size: 1.02rem; margin: 6px 0 20px; }
.field-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.detail-price .price-discounted { font-size: 2.2rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.detail-actions .btn { flex: 1; min-width: 160px; }
.detail-note {
  background: var(--brand-tint);
  border: 1px solid #cfe3d5;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
}
.detail-note p { margin: 4px 0 8px; color: var(--text-muted); }
.detail-support { font-weight: 600; }

.reviews-summary { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.reviews-summary:empty { display: none; }
.reviews-average { font-size: 2rem; font-weight: 700; }
.reviews-summary .stars { font-size: 1.3rem; }
.reviews-list { display: flex; flex-direction: column; gap: 12px; }
.review-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.review-item p { margin: 6px 0 0; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.review-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.review-card { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.review-card blockquote { margin: 0; flex-grow: 1; }
.review-card figcaption { font-size: 0.94rem; color: var(--text-muted); }

/* Checkout additions */
.checkout-login-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--brand-tint);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.94rem;
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  text-decoration: underline;
}
.coupon-row { display: flex; align-items: flex-end; gap: 10px; }
.coupon-field { flex: 1; }
.coupon-field input { text-transform: uppercase; letter-spacing: 0.04em; }
.coupon-message { margin: -6px 0 0; font-size: 0.92rem; color: var(--danger); }
.coupon-message.ok { color: var(--success); font-weight: 600; }
.checkout-summary-sub { border-top: 1px dashed #d5dccf; margin-top: 8px; padding-top: 8px; }
.checkout-summary-discount { color: var(--success); font-weight: 600; }

/* Auth modal */
.modal-auth { width: min(420px, 92vw); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.auth-tab {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.auth-tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.auth-forgot { font-size: 0.92rem; align-self: flex-start; }

/* Account */
.account-guest { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 24px; }
.account-guest p { color: var(--text-muted); margin: 0 0 20px; }
.account-guest .hero-ctas { justify-content: center; }
.account-tabs { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.account-tab {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 14px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.account-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.account-logout { margin-inline-start: auto; color: var(--danger); font-weight: 600; }
.account-orders { display: flex; flex-direction: column; gap: 14px; }
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.order-status { font-size: 0.88rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.order-status.status-pending { background: #fef3c7; color: #92400e; }
.order-status.status-paid { background: #dbeafe; color: #1d4ed8; }
.order-status.status-delivered { background: #dcfce7; color: #15803d; }
.order-status.status-cancelled { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.order-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.order-items li { border-top: 1px solid var(--border); padding-top: 10px; }
.order-line { display: flex; justify-content: space-between; gap: 12px; }
.order-ends { font-size: 0.92rem; color: var(--brand-dark); font-weight: 600; }
.order-reviewed { font-size: 0.92rem; color: var(--success); }
.order-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px dashed #d5dccf; margin-top: 12px; padding-top: 10px; }
.order-foot strong { margin-inline-start: auto; }
.review-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; background: var(--bg); border-radius: var(--radius-sm); padding: 12px; }
.review-form textarea {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}
.review-form .btn { align-self: flex-start; }
.star-picker { display: flex; gap: 2px; direction: ltr; justify-content: flex-end; }
[dir="ltr"] .star-picker { justify-content: flex-start; }
.star-btn { background: none; border: none; font-size: 1.7rem; line-height: 1; color: #dde2d6; cursor: pointer; padding: 0 2px; }
.star-btn.on, .star-btn:hover { color: #f5a524; }
.card-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.card-form input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
}
.card-form input:disabled { background: var(--bg); color: var(--text-muted); }
.card-form fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.card-form legend { font-size: 0.94rem; font-weight: 600; padding: 0 6px; }
.card-form .btn { align-self: flex-start; }
.form-success { background: #dcfce7; color: var(--success); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.94rem; }

/* Blog & prose */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.post-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card h2 { font-size: 1.15rem; margin: 0; }
.post-card p { margin: 0; color: var(--text-muted); flex-grow: 1; }
.post .page-title { margin-top: 4px; }
.prose { font-size: 1.05rem; line-height: 1.85; }
.prose h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.values .step { background: var(--surface); }

/* 404 */
.not-found { text-align: center; }
.not-found-code { font-size: 4rem; font-weight: 700; color: var(--brand); margin: 0; line-height: 1; }
.not-found .hero-ctas { justify-content: center; margin-top: 22px; }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  inset-block-end: 20px;
  inset-inline-end: 20px;
  z-index: 15;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #0f2417;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}
.whatsapp-float .wa-icon { width: 28px; height: 28px; }
.whatsapp-float:hover { background: #1ebe5a; }

.footer-links h2 { color: #fff; font-size: 1.05rem; margin: 0 0 10px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: #cbd5c6; text-decoration: none; }
.footer-links a:hover { color: #fff; }

@media (max-width: 1280px) {
  .main-nav { gap: 2px; }
  .main-nav a, .nav-dropdown-btn { padding-inline: 8px; }
  .account-btn-label { display: none; }
}

@media (max-width: 1080px) {
  .menu-toggle { display: grid; }
  .main-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a, .nav-dropdown-btn { padding: 10px 12px; width: 100%; text-align: start; }
  .nav-menu { position: static; box-shadow: none; border: none; padding: 0 12px 4px; min-width: 0; }
  .header-inner { position: relative; }
  .brand { margin-inline-end: auto; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-feature { min-height: 0; max-width: 460px; }
  .steps { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .detail-media { max-width: 420px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .row-arrow { display: none; }
}

@media (max-width: 720px) {
  .section { padding-block: 56px; }
  .section-tight { padding-block: 28px; }
  .hero { padding-block: 48px 60px; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-band { padding: 26px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .container { padding-inline: 16px; }
  .product-row { grid-auto-columns: minmax(200px, 72vw); }
  .category-tiles { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .products-grid .card-body { padding: 12px; }
  .products-grid .price-discounted { font-size: 1.15rem; }
  .whatsapp-float { width: 48px; height: 48px; inset-block-end: 16px; inset-inline-end: 16px; }
}

@media (max-width: 720px) {
  .brand-logo { height: 40px; }
}

@media (max-width: 480px) {
  .brand-logo { height: 34px; }
}

@media (max-width: 420px) {
  .header-inner { gap: 8px; }
  .header-actions .btn { padding-inline: 10px; }
  .menu-toggle { width: 32px; }
  .brand-logo { height: 30px; }
  .brand-name { display: none; }
  .cart-btn-label { display: none; }
  .lang-btn { min-width: 0; }
  .header-actions { gap: 4px; }
  .hero-ctas .btn { width: 100%; }
  .products-grid { grid-template-columns: 1fr; }
}

/* Password field with show/hide button */
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-inline-end: 44px; }
.password-toggle {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 4px;
  width: 38px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.password-toggle:hover { color: var(--brand); }
/* The input is dir=ltr inside RTL pages, so pin the button to the input's right edge visually. */
[dir="rtl"] .password-field .password-toggle { inset-inline-end: auto; left: 4px; }
[dir="rtl"] .password-field input { padding-inline-end: 12px; padding-left: 44px; }

/* Google sign-in */
.google-block { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.google-btn { width: 100%; display: flex; justify-content: center; min-height: 44px; }
.auth-or { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; border-top: 1px solid var(--border); }

.reset-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 8px 16px; box-shadow: var(--shadow); max-width: 460px; margin-inline: auto; }
#reset-loading, #reset-expired { padding: 16px; }
#reset-expired p { margin-top: 0; }

/* Motion */
/* Scroll reveal: only armed once JS adds .motion to <html>, so content is never hidden without JS. */
.motion .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion .reveal.in { opacity: 1; transform: none; }

.hero-copy > *, .page-hero .container > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.feature-card { animation-delay: 0.25s; }
.hero::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  inset-block-start: -120px;
  inset-inline-start: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 74, 0.35), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
@keyframes drift { to { transform: translate(60px, 80px) scale(1.15); } }

.site-header { transition: box-shadow 0.25s, background 0.25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(28, 43, 33, 0.1); }

.product-visual img, .visual-mono, .visual-emoji { transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.product-card:hover .product-visual img, .product-card:hover .visual-mono { transform: scale(1.08); }
.product-card:hover .visual-emoji { transform: rotate(-12deg) scale(1.15); }
.category-emoji { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); display: inline-block; }
.category-tile:hover .category-emoji { transform: translateY(-4px) rotate(-8deg) scale(1.12); }
.btn-primary, .btn-accent { position: relative; overflow: hidden; }
.btn-primary:hover, .btn-accent:hover { box-shadow: 0 6px 18px rgba(28, 43, 33, 0.18); }
.add-btn.added { animation: pop 0.35s ease; }
@keyframes pop { 50% { transform: scale(1.05); } }

.promo-code { animation: wiggle 4s ease-in-out 2s infinite; }
@keyframes wiggle { 0%, 92%, 100% { transform: rotate(0); } 94% { transform: rotate(-4deg); } 96% { transform: rotate(4deg); } 98% { transform: rotate(-2deg); } }

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping { 70%, 100% { transform: scale(1.6); opacity: 0; } }

.row-arrow { transition: color 0.15s, border-color 0.15s, transform 0.15s; }
[dir="ltr"] .row-arrow:hover { transform: scale(1.08); }
[dir="rtl"] .row-arrow:hover { transform: scaleX(-1) scale(1.08); }
.faq-item[open] p { animation: rise 0.3s ease both; }

@media (prefers-reduced-motion: reduce) {
  .motion .reveal { opacity: 1; transform: none; }
  .hero::after, .whatsapp-float::before { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .confirm-check svg { stroke-dashoffset: 0; }
}
