/* Lavora storefront: night plum ground, gold accent, magenta for the women's line. */
:root {
  --bg: #140B12;
  --surface: #1D1019;
  --surface-2: #120A10;
  --line: #33202D;
  --line-strong: #5A3B2A;
  --text: #F6EDE6;
  --muted: #B9A3AE;
  --soft: #D8C6CF;
  --gold: #D9A84E;
  --gold-hi: #F0CD86;
  --rose: #C2186B;
  --ink: #1A0E15;
  --ok: #4CC38A;
  --err: #FF8A8A;
  --display: 'El Messiri', 'IBM Plex Sans Arabic', serif;
  --body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --latin: 'Marcellus', Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); }
a:hover { color: #FFE2A8; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; text-wrap: balance; margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.latin { font-family: var(--latin); direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }

/* top bar + header */
.announce { background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 600; text-align: center; padding: 8px 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding-block: 16px; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo .latin { font-size: 28px; letter-spacing: .32em; color: var(--gold); }
.logo small { font-size: 12px; color: var(--muted); margin-top: 6px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-weight: 500; }
.nav a { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"], .nav a:hover { color: var(--gold-hi); }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); }
.cart-count { position: absolute; top: -3px; left: -3px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.cart-count[data-n="0"] { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 28px; border-radius: 999px; font: 600 17px var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); color: var(--ink); }
.btn-line { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-block: 56px 72px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.eyebrow { align-self: flex-start; font-size: 13px; letter-spacing: .28em; color: var(--gold); border: 1px solid var(--line-strong); padding: 6px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 70px); font-weight: 700; }
.hero h1 span { color: var(--gold); }
.hero p { margin: 0; font-size: 19px; color: var(--soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.hero-img { flex: 1 1 500px; min-width: 0; }
.hero-img img { width: 100%; aspect-ratio: 1600 / 1300; object-fit: cover; border-radius: 28px; }

/* trust strip */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-block: 28px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item svg { flex: none; color: var(--gold); }
.trust-item b { display: block; }
.trust-item span { font-size: 14px; color: var(--muted); }

section.block .wrap { padding-block: 72px 8px; display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 40px); }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.tile { display: flex; min-height: 320px; border-radius: 22px; overflow: hidden; color: var(--text); text-decoration: none; border: 1px solid var(--line); }
.tile.men { background: linear-gradient(135deg, #0B0709, #2A1408); }
.tile.lady { background: linear-gradient(135deg, #5B0E35, #8C1452); border-color: #6E1F47; }
.tile-copy { flex: 1 1 50%; min-width: 0; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.tile-copy strong { font-family: var(--display); font-size: 32px; line-height: 1.2; }
.tile-copy .go { color: var(--gold-hi); font-weight: 600; }
.tile img { flex: 1 1 46%; min-width: 0; object-fit: cover; }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 1200 / 1300; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 14px; right: 14px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.badge.rose { background: var(--rose); color: #fff; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 a { color: var(--text); text-decoration: none; font-size: 22px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; }
.price { font-size: 20px; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.price s { font-size: 14px; color: #8E7884; font-weight: 400; margin-inline-start: 8px; }
.add-btn { background: transparent; border: 1px solid var(--gold); color: var(--gold); font: 600 15px var(--body); padding: 10px 18px; border-radius: 999px; min-height: 44px; cursor: pointer; }
.add-btn:hover { background: var(--gold); color: var(--ink); }
.add-btn.added { background: var(--gold); color: var(--ink); }

/* bundle banner */
.banner { border-radius: 28px; overflow: hidden; background: linear-gradient(110deg, #0B0709, #2B1222 55%, #6A1240); border: 1px solid #4A2A3C; display: flex; flex-wrap: wrap; align-items: stretch; }
.banner-copy { flex: 1 1 400px; min-width: 0; padding: 48px 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.banner-copy h2 { font-size: clamp(30px, 4vw, 46px); }
.banner img { flex: 1 1 400px; min-width: 0; object-fit: cover; min-height: 300px; }

/* steps + faq */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.steps li { border-top: 2px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.steps li:first-child { border-top-color: var(--gold); }
.steps .n { font-family: var(--display); font-size: 32px; color: var(--gold); line-height: 1; }
.faq { max-width: 860px; }
details { border-bottom: 1px solid var(--line); padding: 4px 0 14px; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 10px 0; }
details p { margin: 4px 0 0; color: var(--soft); white-space: pre-line; }

/* product page */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.pdp { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 28px 64px; align-items: flex-start; }
.gallery { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery-main { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 1200 / 1300; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border: 2px solid var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.buy h1 { font-size: clamp(32px, 4vw, 48px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 14px; }
.pay-note { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-size: 15px; }
.pay-note b { color: var(--gold-hi); }
.qty-row { display: flex; gap: 12px; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1px solid #4A3040; border-radius: 999px; }
.qty button { width: 48px; height: 50px; background: transparent; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }
.qty output { min-width: 34px; text-align: center; font-weight: 600; font-size: 18px; }
.qty-row .btn { flex: 1 1 200px; }

/* forms */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; }
input, textarea, select { font: 16px var(--body); color: var(--text); background: var(--surface-2); border: 1px solid #4A3040; border-radius: 12px; padding: 12px 14px; width: 100%; }
textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pay-option { display: flex; gap: 14px; align-items: flex-start; border: 1px solid #4A3040; border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--gold); background: #24131D; }
.pay-option input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--gold); flex: none; }
.pay-option .title { font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.save-tag { background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 10px; }
.pay-option .amount { margin-inline-start: auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.alert { border-radius: 12px; padding: 12px 16px; }
.alert-err { background: #3A1420; color: #FFD1D1; border: 1px solid #6A2433; }
.alert-ok { background: #13301F; color: #CFF5DE; border: 1px solid #22573A; }

.checkout { display: flex; flex-wrap: wrap; gap: 28px; padding-block: 32px 72px; align-items: flex-start; }
.checkout form { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.summary { flex: 1 1 300px; min-width: 0; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.summary .total { font-size: 20px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; }
.cart-item { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding-block: 12px; }
.cart-item img { width: 64px; height: 72px; object-fit: cover; border-radius: 10px; }
.cart-item .grow { flex: 1; min-width: 0; }
.cart-item .qty button { width: 38px; height: 38px; font-size: 18px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline; }

/* footer */
footer { background: #0D070B; border-top: 1px solid var(--line); margin-top: 80px; }
footer .wrap { padding-block: 44px 24px; display: flex; flex-direction: column; gap: 28px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.foot-grid a { color: var(--soft); text-decoration: none; display: block; }
.legal { border-top: 1px solid #2A1A24; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: #9C8592; }

/* floating contact + chat */
.fab { position: fixed; left: max(18px, env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; z-index: 40; }
.fab a, .fab button { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 0; box-shadow: 0 8px 22px rgba(0,0,0,.5); cursor: pointer; }
.fab .wa { background: #1FAF54; }
.fab .tg { background: #229ED9; }
.fab .chat { background: var(--gold); color: var(--ink); }
.chatbox { position: fixed; left: max(18px, env(safe-area-inset-left, 0px)); bottom: calc(90px + env(safe-area-inset-bottom, 0px)); width: min(380px, calc(100vw - 36px)); height: min(560px, calc(100vh - 140px)); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.6); display: flex; flex-direction: column; z-index: 50; overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; }
.chat-head small { color: var(--ok); }
.chat-head button { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; width: 40px; height: 40px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 85%; padding: 9px 13px; border-radius: 14px; white-space: pre-wrap; font-size: 15px; line-height: 1.6; }
.bubble.store { align-self: flex-start; background: #2E1B28; border-start-start-radius: 4px; }
.bubble.me { align-self: flex-end; background: #F3E3C0; color: #241620; border-start-end-radius: 4px; }
.bubble.typing { color: var(--muted); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; }
.chat-form button { width: 46px; border-radius: 12px; border: 0; background: var(--gold); color: var(--ink); cursor: pointer; }

.page-title { padding-block: 32px 0; }
.page-title h1 { font-size: clamp(30px, 4vw, 44px); }
.empty { color: var(--muted); padding: 24px 0; }
.toast { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); right: 50%; transform: translateX(50%); background: var(--gold); color: var(--ink); font-weight: 600; border-radius: 999px; padding: 10px 22px; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.5); }

@media (prefers-reduced-motion: no-preference) {
  .card, .tile { transition: transform .2s ease, border-color .2s ease; }
  .card:hover, .tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
}
