:root {
  --ink: #111111;
  --ink-soft: #555555;
  --line: #e6e4df;
  --bg: #ffffff;
  --bg-soft: #f6f5f1;
  --accent: #ff5a1f;
  --accent-dark: #e04810;
  --ok: #1f9d55;
  --error: #d92d20;
  --radius: 14px;
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  padding-bottom: 80px;
}
h1, h2 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
html[dir="rtl"] { --font-head: 'Cairo', system-ui, sans-serif; --font-body: 'Cairo', system-ui, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { line-height: 1.35; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}
.header {
  position: relative;
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.lang-switch {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font: 600 13px 'Cairo', 'Inter', system-ui, sans-serif;
  color: var(--ink);
  cursor: pointer;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.product { max-width: 1080px; margin: 0 auto; }

/* Gallery: swipeable on mobile */
.gallery { position: relative; background: var(--bg-soft); }
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img,
.gallery-track video {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  scroll-snap-align: center;
}
.gallery-dots { display: flex; gap: 6px; justify-content: center; padding: 10px 0; }
.gallery-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 0; padding: 0; background: #cfcac0; cursor: pointer;
}
.gallery-dots button.active { background: var(--ink); width: 20px; border-radius: 4px; }

.info { padding: 20px 16px; }
.info h1 { font-size: 28px; font-weight: 800; }
.tagline { color: var(--ink-soft); margin: 6px 0 14px; }

.price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 30px; }
.old-price { color: var(--ink-soft); text-decoration: line-through; font-size: 18px; }
.badge {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
}

.trust {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.trust li {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.trust span { display: block; font-size: 20px; margin-bottom: 2px; }

/* Order form */
.order {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin: 8px 0 28px;
  scroll-margin-top: 12px;
}
.order h2 { font-size: 22px; }
.order-sub { color: var(--ink-soft); font-size: 14px; margin: 4px 0 14px; }

.choice { border: 0; padding: 0; margin: 0 0 14px; }
.choice legend, .choice-label { font-weight: 600; font-size: 14px; padding: 0; margin: 0 0 8px; }
.colors, .sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.color-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--line);
  cursor: pointer;
  outline-offset: 2px;
}
.color-btn[aria-pressed="true"] { outline: 2px solid var(--ink); }
.size-btn {
  min-width: 52px; height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: 600 15px var(--font-body);
  color: var(--ink);
  cursor: pointer;
}
.size-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.field small { color: var(--ink-soft); font-weight: 400; }
.field input {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  font: 16px var(--font-body); /* 16px avoids iOS zoom on focus */
  color: var(--ink);
  background: #fff;
}
.field input:focus { outline: none; border-color: var(--ink); }
html[dir="rtl"] .field input[type="tel"] { text-align: right; }
.field.invalid input { border-color: var(--error); }
.error { color: var(--error); font-size: 13px; font-style: normal; display: block; margin-top: 4px; }
/* Honeypot: invisible without pushing content off-screen (left: -9999px widens RTL pages). */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 16px 0 12px;
  font-size: 14px;
}
.summary strong { font-family: var(--font-head); font-size: 20px; }

.cta {
  display: block;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: 800 18px var(--font-head);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 90, 31, 0.35);
  transition: background 0.15s;
}
.cta:hover { background: var(--accent-dark); }
.cta:disabled { opacity: 0.6; cursor: wait; }
.form-error { color: var(--error); font-size: 14px; margin: 10px 0 0; text-align: center; }
.form-error a { color: inherit; font-weight: 700; }
.reassure { text-align: center; color: var(--ink-soft); font-size: 13px; margin: 10px 0 0; }

.bullets, .reviews, .faq { margin-bottom: 28px; }
.bullets h2, .reviews h2, .faq h2 { font-size: 20px; margin-bottom: 12px; }
.bullets ul { padding: 0; margin: 0; list-style: none; }
.bullets li { padding-block: 8px; padding-inline-start: 30px; position: relative; border-bottom: 1px solid var(--line); }
.bullets li::before { content: '✓'; position: absolute; inset-inline-start: 4px; color: var(--ok); font-weight: 800; }

.policy { margin-bottom: 28px; }
.policy h2 { font-size: 20px; margin-bottom: 12px; }
.policy ul { list-style: none; padding: 0; margin: 0; background: var(--bg-soft); border-radius: var(--radius); }
.policy li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; font-size: 15px; }
.policy li + li { border-top: 1px solid var(--line); }
.policy-icon { font-size: 20px; line-height: 1.3; }

.review { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.review img { border-radius: 8px; margin-bottom: 6px; }
.review p { margin: 4px 0 0; }
.review strong { font-size: 14px; }

.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--ink-soft); margin: 8px 0 0; }

.sticky-cta {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font: 800 17px var(--font-head);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 10;
  transition: transform 0.2s, opacity 0.2s;
}
.sticky-cta.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* Upsell modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 20;
}
.modal-card {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 20px 20px 0 0;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  max-height: 92vh;
  overflow-y: auto;
  animation: up 0.25s ease-out;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.modal-ok { color: var(--ok); font-weight: 700; margin: 0 0 6px; }
.modal-card h2 { font-size: 22px; margin-bottom: 6px; }
.modal-card h2 span { color: var(--accent); }
.modal-sub { color: var(--ink-soft); font-size: 14px; margin: 0 0 16px; }
.link-btn {
  display: block; width: 100%;
  background: none; border: 0;
  color: var(--ink-soft);
  font: 500 15px var(--font-body);
  text-decoration: underline;
  padding: 14px; cursor: pointer;
}

.not-found { text-align: center; padding: 60px 16px; }

/* Size guide */
.legend-row { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.guide-link {
  background: none; border: 0; padding: 0;
  color: var(--ink-soft);
  font: 500 13px var(--font-body);
  text-decoration: underline;
  cursor: pointer;
}
.modal-top { z-index: 30; }
.guide-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 15px; }
.guide-table th, .guide-table td { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.guide-table th { background: var(--bg-soft); font-weight: 700; }
.guide-tip { font-weight: 600; margin: 0 0 16px; }
.cta-dark { background: var(--ink); box-shadow: none; }
.cta-dark:hover { background: #333; }

/* WhatsApp */
.wa-float {
  position: fixed;
  inset-inline-end: 14px;
  bottom: calc(86px + env(safe-area-inset-bottom));
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 11;
}

/* Collection */
.collection { max-width: 1080px; margin: 0 auto; padding: 24px 16px 40px; }
.collection h1 { font-size: 28px; text-align: center; }
.collection-sub { text-align: center; color: var(--ink-soft); margin: 6px 0 20px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card {
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.card img { aspect-ratio: 1 / 1; object-fit: cover; background: var(--bg-soft); width: 100%; }
.card h2 { font-size: 16px; padding: 10px 12px 0; }
.card-prices { display: flex; gap: 8px; align-items: baseline; padding: 4px 12px; flex-wrap: wrap; }
.card-prices strong { font-family: var(--font-head); font-size: 17px; }
.card-prices s { color: var(--ink-soft); font-size: 13px; }
.card-cta {
  margin: auto 12px 12px;
  background: var(--accent); color: #fff;
  text-align: center; font-weight: 700; font-size: 14px;
  padding: 9px; border-radius: 10px;
}
.footer { text-align: center; color: var(--ink-soft); font-size: 13px; padding: 24px 16px; border-top: 1px solid var(--line); }

/* Thank-you page */
.thanks { max-width: 520px; margin: 0 auto; padding: 32px 16px; text-align: center; }
.thanks .check {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--ok); color: #fff;
  display: grid; place-items: center; font-size: 36px;
}
.thanks h1 { font-size: 28px; margin-bottom: 8px; }
.thanks .lead { color: var(--ink-soft); margin: 0 0 20px; }
.recap { text-align: start; background: var(--bg-soft); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.recap div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.recap .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.wa {
  display: inline-block;
  background: #25d366; color: #fff;
  text-decoration: none; font-weight: 700;
  padding: 14px 22px; border-radius: 12px;
}

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 32px 24px; }
  .gallery { position: sticky; top: 24px; align-self: start; border-radius: var(--radius); overflow: hidden; }
  .info { padding: 0; }
  .info h1 { font-size: 36px; }
  .sticky-cta { display: none; }
  .wa-float { bottom: 24px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .modal { align-items: center; }
  .modal-card { border-radius: 20px; }
}
