/* ==========================================================================
   H.N — Parfums
   أبيض هادئ وفخم: خلفية بيضاء، حبر أسود، خطوط رفيعة، ومساحات واسعة.
   ========================================================================== */

:root {
  --white: #ffffff;
  --paper: #fafaf8;
  --mist: #f4f3f0;
  --ink: #141414;
  --ink-2: #4a4a4a;
  --muted: #8c8c8c;
  --line: #e9e7e3;
  --line-2: #d8d5cf;
  --accent: #9b8563;

  --f-ar: "Almarai", "Segoe UI", Tahoma, sans-serif;
  --f-latin: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;

  --gutter: 20px;
  --max: 1240px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-ar);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
s { text-decoration-thickness: 1px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.latin { font-family: var(--f-latin); direction: ltr; unicode-bidi: isolate; }

.eyebrow { font-size: 12.5px; font-weight: 400; color: var(--muted); letter-spacing: .04em; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 30px;
  font-size: 14.5px; font-weight: 400; letter-spacing: .02em;
  border-radius: 0;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--gold, .btn--dark { background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.btn--gold:hover, .btn--dark:hover { background: #2b2b2b; }
.btn--line { border: 1px solid var(--line-2); color: var(--ink); background: var(--white); }
.btn--line:hover { border-color: var(--ink); }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.header-link { font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.header-link:hover { color: var(--ink); }
.header-nav { justify-self: start; display: flex; gap: 18px; }
.header-wa { justify-self: end; }
.header-wa svg { width: 19px; height: 19px; }

.brandmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); }
.brandmark-name { font-family: var(--f-latin); font-weight: 600; font-size: 26px; letter-spacing: .16em; margin-inline-end: -.16em; direction: ltr; }
.brandmark-tag { font-family: var(--f-latin); font-size: 8.5px; letter-spacing: .55em; margin-inline-end: -.55em; color: var(--muted); margin-top: 6px; direction: ltr; }
.brandmark img { height: 34px; width: auto; }

/* ───────── Hero ───────── */
.hero { background: var(--white); }
.hero-inner { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.hero-copy { text-align: center; }
.hero-title {
  font-weight: 300;
  font-size: clamp(32px, 9vw, 56px);
  line-height: 1.35;
  margin: 16px 0 18px;
  white-space: pre-line;
}
.hero-text { color: var(--ink-2); font-size: 15px; line-height: 2; max-width: 30em; margin-inline: auto; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.hero-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 560px; margin-inline: auto; width: 100%; }
.hero-frame { margin: 0; background: var(--white); aspect-ratio: 3 / 4; display: grid; place-items: center; overflow: hidden; }
.hero-frame img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }

.trust-wrap { border-top: 1px solid var(--line); }
.trust {
  list-style: none; margin: 0; padding-top: 16px; padding-bottom: 16px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px;
  font-size: 13px; font-weight: 400; color: var(--ink-2);
}
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

.houses-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.houses {
  text-align: center; direction: ltr;
  font-family: var(--f-latin); font-size: 14px; letter-spacing: .08em;
  color: var(--muted);
  padding-top: 18px; padding-bottom: 18px; line-height: 2.1;
}
.houses span { white-space: nowrap; }
.houses span + span::before { content: "·"; margin: 0 .8em; color: var(--line-2); }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; padding-top: 96px; padding-bottom: 88px; }
  .hero-copy { text-align: start; }
  .hero-text { margin: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-gallery { max-width: none; }
}

/* ───────── Collection ───────── */
.collection { padding: 56px 0 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.section-title { font-size: clamp(24px, 6vw, 32px); font-weight: 300; }
.count { font-size: 12.5px; color: var(--muted); }

.tools { display: grid; gap: 16px; margin-bottom: 30px; }
.search {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line-2);
  padding: 4px 2px 10px;
  transition: border-color .3s var(--ease);
}
.search:focus-within { border-color: var(--ink); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: inherit; font-size: 15px; color: var(--ink); padding: 6px 0; }
.search input::placeholder { color: var(--muted); }

.filters {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter);
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  font-family: var(--f-latin); font-size: 14px;
  padding: 7px 16px 8px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: 0;
  color: var(--ink-2); white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chip--ar { font-family: var(--f-ar); font-size: 13px; }
.chip--new { border-color: var(--accent); color: var(--accent); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (min-width: 900px) {
  .tools { grid-template-columns: 340px 1fr; align-items: end; gap: 40px; }
  .filters { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; justify-content: flex-end; }
}

/* ───────── Promo banner ───────── */
.promo { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; border: 1px solid var(--line); background: var(--paper); padding: 16px; margin-bottom: 32px; }
.promo[hidden] { display: none; }
.promo-media { background: var(--white); border: 1px solid var(--line); aspect-ratio: 4 / 5; overflow: hidden; }
.promo-media img { width: 100%; height: 100%; object-fit: contain; }
.promo-copy { display: grid; gap: 6px; justify-items: start; }
.promo-copy h3 { font-size: 18px; font-weight: 700; line-height: 1.5; }
.promo-copy p:not(.eyebrow) { font-size: 13.5px; color: var(--ink-2); }
.promo-copy .btn { min-height: 42px; padding: 0 18px; font-size: 13.5px; margin-top: 6px; }
@media (min-width: 700px) { .promo { grid-template-columns: 160px 1fr; gap: 28px; padding: 20px 24px; } .promo-copy h3 { font-size: 21px; } }

/* ───────── Grid & cards ───────── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 28px; } }

.card { display: flex; flex-direction: column; background: var(--white); }
.card-open { display: flex; flex-direction: column; text-align: start; width: 100%; flex: 1; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; transition: border-color .4s var(--ease); }
.card-open:hover .card-media { border-color: var(--line-2); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform 1.2s var(--ease); }
.card-open:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 14px 2px 0; display: grid; gap: 2px; }
.card-brand { font-family: var(--f-ar); font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .06em; direction: ltr; text-align: right; text-transform: uppercase; }
.card-name { font-family: var(--f-latin); font-size: 18px; line-height: 1.3; font-weight: 400; color: var(--ink); text-align: right; }
.card-short { font-size: 12.5px; line-height: 1.75; color: var(--ink-2); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.card-prices { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-price { color: var(--ink); font-weight: 700; font-size: 15px; }
.card-was { color: var(--muted); font-size: 12px; }
.card-size { color: var(--muted); }
.card-offer { margin-top: 6px; font-size: 12px; color: var(--accent); }
.badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink); color: var(--white);
  font-size: 11px; font-weight: 400; direction: ltr; letter-spacing: .04em;
  padding: 3px 8px;
}
.tag-label {
  position: absolute; top: 10px; right: 10px;
  background: var(--white); color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 11px; font-weight: 400;
  padding: 2px 8px;
}
.tag-label--inline { position: static; display: inline-block; font-size: 12px; }
.card-order {
  margin-top: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px;
  border: 1px solid var(--ink); color: var(--ink);
  font-size: 13px; font-weight: 400; letter-spacing: .02em;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.card-order svg { width: 16px; height: 16px; }
.card-order:hover { background: var(--ink); color: var(--white); }

@media (max-width: 420px) {
  .card-name { font-size: 16px; }
  .card-short { font-size: 12px; }
  .card-order { height: 40px; }
}

/* placeholder art for products without a verified photo */
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--line-2); }
.ph svg { width: 46%; height: auto; }
.ph-mark { font-family: var(--f-latin); font-size: 11px; letter-spacing: .2em; fill: var(--muted); text-transform: uppercase; }

.empty { text-align: center; padding: 48px 0; color: var(--ink-2); display: grid; gap: 12px; justify-items: center; }
.empty[hidden] { display: none; }
.link-btn { border-bottom: 1px solid var(--ink); padding-bottom: 3px; font-size: 14px; }

/* ───────── Promise ───────── */
.promise { background: var(--paper); border-top: 1px solid var(--line); padding: 56px 0; }
.promise-grid { display: grid; gap: 32px; }
.promise-item { display: grid; gap: 6px; text-align: center; }
.promise-num { font-family: var(--f-latin); font-size: 14px; color: var(--accent); letter-spacing: .1em; }
.promise h3 { font-size: 17px; font-weight: 700; }
.promise p { color: var(--ink-2); font-size: 14px; max-width: 24em; margin-inline: auto; }
@media (min-width: 800px) { .promise-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } .promise { padding: 80px 0; } }

/* ───────── Footer ───────── */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; justify-items: center; gap: 18px; text-align: center; }
.brandmark--footer .brandmark-name { font-size: 30px; }
.footer-note { font-size: 12.5px; color: var(--muted); max-width: 34em; }
.copyright { font-size: 11.5px; color: var(--muted); direction: ltr; letter-spacing: .06em; }

/* ───────── Product sheet (dialog) ───────── */
.sheet {
  border: 0; padding: 0; margin: 0;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  background: var(--white); color: var(--ink);
  overflow: hidden;
}
.sheet::backdrop { background: rgba(20, 20, 20, .35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .45s var(--ease); }
.sheet[open]::backdrop { animation: fade-in .45s var(--ease); }
@keyframes sheet-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.sheet-body { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-close {
  position: fixed; top: calc(12px + env(safe-area-inset-top)); inset-inline-end: 12px; z-index: 3;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
}
.sheet-close svg { width: 15px; height: 15px; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr); }
.detail-media, .detail-info { min-width: 0; }
.detail-media { position: relative; background: var(--white); aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid var(--line); }
.detail-media .ph { position: absolute; inset: 0; }
.detail-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.detail-media .ph svg { width: 38%; }
.detail-info { padding: 26px var(--gutter) calc(104px + env(safe-area-inset-bottom)); display: grid; gap: 24px; align-content: start; }
.detail-brand { font-family: var(--f-ar); font-size: 12px; color: var(--muted); letter-spacing: .06em; direction: ltr; text-align: right; text-transform: uppercase; }
.detail-title { font-family: var(--f-latin); font-weight: 400; font-size: clamp(28px, 7.5vw, 40px); line-height: 1.15; margin-top: 6px; text-align: right; }
.detail-fullname { font-family: var(--f-latin); font-style: italic; color: var(--muted); font-size: 15px; margin-top: 6px; text-align: right; }
.detail-tag { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.detail-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.detail-price strong { font-weight: 700; font-size: 24px; }
.detail-price small { font-size: 12.5px; color: var(--muted); }
.detail-price s { font-size: 15px; color: var(--muted); }
.badge--inline { position: static; font-size: 12px; padding: 3px 9px; direction: rtl; }
.detail-price-note { flex-basis: 100%; }
.detail-offer-box { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; border: 1px solid var(--accent); padding: 12px; }
.detail-offer-box:not(:has(img)) { grid-template-columns: 1fr; }
.detail-offer-box img { width: 76px; aspect-ratio: 4 / 5; object-fit: contain; background: var(--white); }
.detail-offer-box strong { display: block; color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.detail-offer-box span { font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.detail-offer { flex-basis: 100%; font-size: 13.5px; color: var(--accent); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-block: 1px solid var(--line); }
.spec { padding: 14px 6px; text-align: center; display: grid; gap: 2px; }
.spec + .spec { border-inline-start: 1px solid var(--line); }
.spec dt { font-size: 11.5px; color: var(--muted); }
.spec dd { margin: 0; font-size: 13.5px; font-weight: 400; }
.spec dd.latin { font-size: 15px; }
.detail-desc { font-size: 15px; color: var(--ink-2); line-height: 2.05; }
.block-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; letter-spacing: .02em; }
.notes { display: grid; margin: 0; }
.note-row { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.note-row:first-child { border-top: 1px solid var(--line); }
.note-row dt { font-size: 12.5px; color: var(--muted); }
.note-row dd { margin: 0; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; padding: 5px 12px; border: 1px solid var(--line); color: var(--ink-2); }
.detail-opened { display: grid; gap: 4px; border: 1px solid var(--accent); padding: 12px 14px; font-size: 13px; color: var(--ink-2); }
.detail-opened strong { color: var(--accent); font-weight: 700; font-size: 13.5px; }
.footer-link { font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.footer-link:hover { color: var(--ink); border-color: var(--ink); }

/* ───────── FAQ page ───────── */
.faq { padding: 48px 0 72px; }
.faq-inner { max-width: 760px; margin-inline: auto; }
.faq-head { margin-bottom: 26px; }
.faq-head h1 { font-size: clamp(26px, 6vw, 36px); font-weight: 300; margin-top: 6px; }
.faq-head p { color: var(--ink-2); margin-top: 8px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px; font-size: 16px; font-weight: 700; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--f-latin); font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 2px 20px; color: var(--ink-2); font-size: 15px; line-height: 2; max-width: 62ch; }
.faq-cta { margin-top: 36px; display: grid; justify-items: start; gap: 12px; color: var(--ink-2); }

.detail-trust {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 12px 14px; font-size: 13px; color: var(--ink-2);
}
.detail-trust svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

.detail-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 2;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--white) 70%, rgba(255,255,255,0));
}
.detail-cta .btn { width: 100%; min-height: 54px; font-size: 15px; }

@media (min-width: 900px) {
  .sheet { width: min(1080px, calc(100% - 64px)); height: min(720px, calc(100% - 64px)); margin: auto; }
  .sheet-close { position: absolute; }
  .sheet-body { overflow: hidden; }
  .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 100%; }
  .detail-media { aspect-ratio: auto; height: 100%; border-bottom: 0; border-inline-end: 1px solid var(--line); }
  .detail-info { overflow-y: auto; padding: 56px 48px 40px; }
  .detail-cta { position: sticky; bottom: -40px; padding: 16px 0 40px; margin-bottom: -40px; }
}

/* ───────── Reveal (subtle) ───────── */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sheet[open], .sheet[open]::backdrop { animation: none; }
}
