:root {
  --ink: #182C55;
  --ink-80: #34466b;
  --ink-60: #5d6b87;
  --ivory: #F7F5EF;
  --paper: #FFFDF8;
  --sand: #EEE9DD;
  --line: rgba(24, 44, 85, .14);
  --coral: #D76B55;
  --coral-ink: #B4503B;
  --radius: 18px;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="ar"] { --sans: 'Readex Pro', 'DM Sans', system-ui, sans-serif; --serif: 'Readex Pro', serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
html[lang="ar"] em { font-style: normal; color: var(--coral-ink); font-weight: 400; }
html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

.preview-note { margin: 0; padding: 9px 20px; text-align: center; font-size: 13.5px; background: var(--ink); color: var(--ivory); letter-spacing: .01em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 245, 239, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; color: var(--ink); }
.logo { width: 116px; height: 39px; color: var(--ink); }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 15.5px; font-weight: 500; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.nav a:hover { border-color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; }
.lang:hover { border-color: var(--ink); }
.lang:lang(ar) { font-family: 'Readex Pro', var(--sans); }
.bag-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px; }
.bag-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.bag-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sand); color: var(--ink); font-size: 12.5px; font-weight: 600; display: grid; place-items: center; }
.bag-count.has { background: var(--coral); color: #fff; }
.bag-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); padding: 14px 26px; font-weight: 500; font-size: 16px; text-decoration: none; transition: background .2s, color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: #0f1f40; }
.btn-primary[disabled] { opacity: .45; cursor: not-allowed; }
.btn-small { padding: 9px 16px; font-size: 14.5px; border-width: 1.25px; }
.btn-block { width: 100%; }
.text-btn { background: none; border: 0; padding: 4px 0; font-size: 14px; color: var(--ink-60); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(24,44,85,.3); }
.text-btn:hover { color: var(--ink); }
.text-btn.strong { color: var(--ink); font-weight: 500; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-80); max-width: 34em; }

/* hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(44px, 5.6vw, 80px); margin-bottom: 26px; }
.hero h1 em { display: block; font-size: 1.08em; }
html[lang="ar"] .hero h1 em { display: inline; font-size: 1em; }
.hero .lede { margin: 0 0 36px; }
.hero-media { margin: 0; }
.video-frame { position: relative; aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; background: #ECE6DA; border: 1px solid var(--line); }
.video-frame video, .video-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-fallback { opacity: 0; transition: opacity .3s; }
.video-frame.failed .video-fallback, .video-frame.reduced:not(.ready) .video-fallback { opacity: 1; }
.video-frame.failed video { visibility: hidden; }
.video-frame.failed .video-toggle { display: none; }
.video-toggle { position: absolute; inset-inline-end: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(247, 245, 239, .92); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); transition: transform .2s var(--ease); }
.video-toggle:hover { transform: scale(1.06); }
.video-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.video-toggle .i-play { fill: currentColor; stroke-width: 1.5; display: none; }
.is-paused .video-toggle .i-play { display: block; }
.is-paused .video-toggle .i-pause { display: none; }

/* shop */
.shop { padding: clamp(56px, 8vw, 112px) 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: clamp(36px, 4.4vw, 60px); }
.section-head .lede { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 9px 18px; font-size: 15px; font-weight: 500; transition: all .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px); }
.card { display: flex; flex-direction: column; animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.card-media { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-media:hover img { transform: scale(1.03); }
.card-body { padding-top: 18px; display: flex; flex-direction: column; flex: 1; }
.card-cat { margin: 0 0 6px; font-size: 13px; color: var(--ink-60); letter-spacing: .02em; }
.card-name { font-size: 22px; letter-spacing: -.01em; line-height: 1.2; }
.card-name button { background: none; border: 0; padding: 0; text-align: start; }
.card-name button:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card-line { margin: 6px 0 4px; color: var(--ink-80); font-size: 15.5px; }
.card-spec { margin: 0 0 16px; color: var(--ink-60); font-size: 14px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.card-actions { display: flex; align-items: center; gap: 8px; }
.save-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.save-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.save-btn[aria-pressed="true"] svg { fill: var(--coral); stroke: var(--coral); }
.save-btn:hover { border-color: var(--ink); }

/* story */
.story { padding: clamp(64px, 9vw, 128px) 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story-art img { border-radius: 28px; width: 100%; height: auto; }
.story-copy h2 { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 24px; }
.story-copy > p { color: var(--ink-80); margin: 0 0 36px; font-size: 18px; max-width: 32em; }
.pillars { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillars div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pillars dt { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.2; }
html[lang="ar"] .pillars dt { font-style: normal; font-size: 19px; font-weight: 500; }
.pillars dd { margin: 0; color: var(--ink-80); }

/* gifts */
.gifts { padding: clamp(64px, 9vw, 120px) 0; background: var(--ink); color: var(--ivory); }
.gifts .lede { color: rgba(247, 245, 239, .78); }
.gifts em { color: #F1B3A4; }
.gift-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gift-card { text-align: start; background: transparent; border: 1px solid rgba(247, 245, 239, .22); border-radius: var(--radius); padding: 28px 26px 26px; min-height: 240px; display: flex; flex-direction: column; gap: 12px; color: var(--ivory); transition: background .25s, border-color .25s; }
.gift-card:hover { background: rgba(247, 245, 239, .06); border-color: rgba(247, 245, 239, .5); }
.gift-kicker { font-size: 15px; color: rgba(247, 245, 239, .72); }
.gift-title { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; }
html[lang="ar"] .gift-title { font-style: normal; font-size: 28px; font-weight: 500; }
.gift-link { margin-top: auto; font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.gift-link::after { content: '→'; color: var(--coral); transition: transform .2s; }
html[dir="rtl"] .gift-link::after { content: '←'; }
.gift-card:hover .gift-link::after { transform: translateX(4px); }
html[dir="rtl"] .gift-card:hover .gift-link::after { transform: translateX(-4px); }

/* footer */
.site-footer { padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 32px; align-items: start; }
.logo-footer { width: 140px; height: 47px; }
.footer-tag { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: 20px; }
html[lang="ar"] .footer-tag { font-style: normal; font-size: 16px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { text-decoration: none; font-size: 15px; }
.site-footer nav a:hover { text-decoration: underline; }
.footer-note { margin: 0; font-size: 14px; color: var(--ink-60); }

/* bag drawer */
.scrim { position: fixed; inset: 0; background: rgba(16, 26, 50, .38); z-index: 40; opacity: 0; transition: opacity .25s; }
.scrim.open { opacity: 1; }
.bag { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%); background: var(--paper); z-index: 50; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease); border-inline-start: 1px solid var(--line); }
html[dir="rtl"] .bag { transform: translateX(-100%); }
.bag.open, html[dir="rtl"] .bag.open { transform: none; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.bag-head h2 { font-size: 24px; }
.bag-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.bag-list { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; background: var(--sand); }
.line-name { margin: 0; font-weight: 500; line-height: 1.3; }
.line-meta { margin: 2px 0 10px; font-size: 14px; color: var(--ink-60); }
.line-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.line-total { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bag-empty { padding: 28px 0; color: var(--ink-60); }
.saved { margin-top: 28px; }
.saved h3 { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ink-60); }
.saved-list .line { grid-template-columns: 56px 1fr; }
.saved-list img { width: 56px; height: 70px; }
.bag-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--ivory); }
.total-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-80); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.total-row.total { font-size: 19px; font-weight: 600; color: var(--ink); margin: 6px 0 16px; }
.checkout-note { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-60); text-align: center; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 48px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 20px; line-height: 1; border-radius: 999px; }
.qty button:hover { background: var(--sand); }
.qty output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty-sm { height: 36px; }
.qty-sm button { width: 34px; font-size: 17px; }

/* product dialog */
.product-dialog { width: min(1040px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); overflow: auto; }
.product-dialog::backdrop { background: rgba(16, 26, 50, .45); }
.product-dialog[open] { animation: rise .35s var(--ease); }
.pd { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.pd-close { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; }
.pd-media { background: var(--sand); }
.pd-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.pd-info { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; }
.pd-info h2 { font-size: clamp(32px, 3.4vw, 44px); margin-bottom: 12px; }
.pd-price { margin: 0 0 20px; font-size: 20px; font-weight: 600; }
.pd-desc { margin: 0 0 24px; color: var(--ink-80); }
.pd-specs { margin: 0 0 28px; border-top: 1px solid var(--line); }
.pd-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pd-specs dt { color: var(--ink-60); }
.pd-specs dd { margin: 0; font-weight: 500; text-align: end; }
.pd-actions { display: flex; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 180px; }
#pdSave { align-self: flex-start; margin-top: 14px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--ivory); padding: 12px 20px; border-radius: 999px; font-size: 14.5px; opacity: 0; pointer-events: none; transition: all .25s var(--ease); z-index: 60; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift-cards { grid-template-columns: 1fr; }
  .gift-card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero-grid, .story-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .pd { grid-template-columns: 1fr; }
  .pd-media img { aspect-ratio: 5 / 4; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-row { height: 64px; }
  .logo { width: 100px; height: 34px; }
  .grid { grid-template-columns: 1fr; }
  .pillars div { grid-template-columns: 1fr; gap: 4px; }
  .card-foot { flex-wrap: wrap; }
  .preview-note { font-size: 12.5px; }
}
