:root {
  --bg: #FBF6EF;
  --paper: #FFFFFF;
  --ink: #2B211C;
  --ink-2: #4A3C33;
  --muted: #6B5B50;
  --accent: #9C3F22;
  --accent-dark: #7A2F17;
  --soft: #F4E3D7;
  --line: #E8DDD1;
  --field: #D9CBBE;
  --green: #2F6B45;
  --green-soft: #E4F0E7;
  --display: 'El Messiri', 'Times New Roman', serif;
  --body: 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-family: var(--display); font-size: 28px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 14px;
  background: var(--accent); color: #fff; font: 700 16px var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 58px; font-size: 18px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .7; cursor: progress; }

.pill-green { font-size: 13px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 6px 12px; border-radius: 999px; }
.pill-soft { font-size: 13px; font-weight: 600; color: var(--accent-dark); background: var(--soft); padding: 5px 10px; border-radius: 8px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo-light { color: #fff; }
.hide-mobile { display: none; }

/* Hero */
.hero { display: grid; gap: 24px; padding-top: 20px; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; transition: opacity .2s; }
.hero-media img.is-loading { opacity: .4; }
.hero-text { display: flex; flex-direction: column; gap: 14px; }
.hero h1 { font-family: var(--display); font-size: 36px; }
.lead { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 34em; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.price { font-size: 34px; color: var(--accent); }
.old-price { color: var(--muted); font-size: 18px; }
.color-label { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.color-label strong { color: var(--ink); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 48px; height: 48px; border-radius: 999px; padding: 3px; background: transparent; border: 2px solid transparent; cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(43, 33, 28, .18); }
.swatch.is-on { border-color: var(--ink); }

.trust { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trust li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.trust svg, .feature svg, .check svg { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust svg { width: 26px; height: 26px; }

/* Features */
.features { background: var(--paper); margin-top: 48px; padding: 40px 0; }
.features h2, .gallery h2, .faq h2 { margin-bottom: 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature { background: var(--bg); border-radius: 18px; padding: 18px; }
.feature svg { width: 30px; height: 30px; }
.feature h3 { font-size: 17px; margin: 8px 0 4px; }
.feature p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* Gallery */
.gallery { padding-top: 40px; padding-bottom: 40px; }
.gallery-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; margin-bottom: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery-grid figure { margin: 0; position: relative; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.gallery-grid figcaption { position: absolute; bottom: 10px; right: 10px; background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }

/* Order */
.order-wrap { display: grid; gap: 20px; }
.steps { background: var(--soft); border-radius: 22px; padding: 24px 20px; }
.steps p { margin: 4px 0 16px; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.steps li span { flex: none; width: 36px; height: 36px; border-radius: 999px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }

.order-form { background: var(--paper); border: 2px solid var(--accent); border-radius: 24px; padding: 22px 18px; display: grid; gap: 16px; scroll-margin-top: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-label { font-size: 14px; font-weight: 600; }
.field input[type=text], .field input[type=tel], .field select {
  height: 52px; border: 1px solid var(--field); border-radius: 12px; padding: 0 14px; background: var(--bg);
  font: 400 16px var(--body); color: var(--ink); width: 100%; }
.field input[dir=ltr] { text-align: right; }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(156, 63, 34, .15); }
.field.has-error input, .field.has-error select { border-color: #B3261E; }
.field-err { display: none; color: #B3261E; font-weight: 500; }
.field.has-error .field-err { display: block; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.form-error { background: #FBE9E7; color: #8A1C12; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
/* حقل مخفي ضد الروبوتات — لا تستعمل left:-9999px: في الصفحات العربية يصنع شريط تمرير أفقي ضخم */
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.stepper { display: flex; align-items: center; border: 1px solid var(--field); border-radius: 12px; padding: 2px; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; color: var(--ink); cursor: pointer; border-radius: 10px; }
.stepper button:hover { background: var(--bg); }
.stepper input { width: 36px; text-align: center; border: 0; font: 700 18px var(--body); background: transparent; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.delivery { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
.delivery legend { grid-column: 1 / -1; margin-bottom: 6px; padding: 0; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 4px 8px;
  border: 1px solid var(--field); border-radius: 12px; background: var(--paper); cursor: pointer; font-size: 15px; }
.opt input:checked + span { border: 2px solid var(--accent); background: var(--soft); }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.summary { background: var(--bg); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; font-size: 15px; }
.summary div { display: flex; justify-content: space-between; gap: 8px; }
.summary span { color: var(--ink-2); }
.summary hr { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }
.summary .total { font-size: 18px; }
.summary .total span { color: var(--ink); font-weight: 700; }
.summary .total b { color: var(--accent); }
.tiny { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }

/* FAQ */
.faq { padding-top: 48px; padding-bottom: 48px; }
.faq-grid { display: grid; gap: 10px; }
.faq details { background: var(--paper); border-radius: 14px; padding: 4px 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }

/* Footer */
.footer { background: var(--ink); color: var(--soft); padding: 32px 0 96px; }
.footer a { color: #fff; }
.footer small { color: #CDBBAE; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: center;
  min-height: 56px; border-radius: 16px; background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(43, 33, 28, .25); transition: transform .25s, opacity .25s; }
.sticky-cta:hover { color: #fff; }
.sticky-cta.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }

/* Thanks */
.thanks { max-width: 560px; padding-top: 40px; padding-bottom: 60px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.thanks h1 { font-family: var(--display); font-size: 32px; }
.check { width: 88px; height: 88px; border-radius: 999px; background: var(--green-soft); display: grid; place-items: center; }
.check svg { width: 44px; height: 44px; stroke: var(--green); stroke-width: 2.2; }
.thanks-card { width: 100%; background: var(--paper); border-radius: 20px; padding: 16px; display: flex; gap: 14px; align-items: center; text-align: right; font-size: 14px; }
.thanks-card img { width: 90px; height: 104px; object-fit: cover; border-radius: 12px; flex: none; }
.thanks-card strong { font-size: 16px; }
.thanks-card .accent { color: var(--accent); font-weight: 700; margin-top: 4px; }
.note { background: var(--soft); border-radius: 16px; padding: 14px 16px; margin: 0; width: 100%; }

/* Desktop */
@media (min-width: 960px) {
  h2 { font-size: 40px; }
  .hide-mobile { display: inline-flex; }
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; padding-top: 56px; }
  .hero-text { order: -1; gap: 20px; }
  .hero h1 { font-size: 64px; }
  .lead { font-size: 20px; }
  .price { font-size: 44px; }
  .swatch { width: 52px; height: 52px; }
  .hero-text .btn-lg { align-self: flex-start; padding: 0 44px; }
  .trust { max-width: 480px; }
  .features { padding: 72px 0; margin-top: 72px; }
  .features h2, .gallery h2, .faq h2 { text-align: center; margin-bottom: 36px; }
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .feature { padding: 28px; }
  .feature h3 { font-size: 19px; }
  .feature p { font-size: 15px; }
  .gallery { padding-top: 72px; padding-bottom: 72px; }
  .gallery-cover { aspect-ratio: 21 / 9; }
  .gallery-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .order-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
  .steps { padding: 40px; position: sticky; top: 24px; }
  .order-form { padding: 32px; }
  .faq { padding-top: 72px; }
  .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .footer { padding-bottom: 40px; }
  .sticky-cta { display: none; }
}
