:root {
  --bg: #f7f2ea;
  --paper: #fffdf9;
  --ink: #2a2420;
  --muted: #74685e;
  --line: #e6dccd;
  --sand: #ecdfcd;
  --clay: #4B1F17;
  --clay-dark: #361510;
  --pine: #4B1F17;
  --pine-2: #5d2b22;
  --gold: #d0aa63;
  --radius: 18px;
  --brand: "Squada One", "El Messiri", sans-serif;
  --display: "Cormorant Garamond", "Beiruti", Georgia, "Times New Roman", serif;
  --body: "DM Sans", "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --shadow: 0 1px 2px rgba(42, 36, 32, .05), 0 12px 32px -12px rgba(42, 36, 32, .18);
}
html[lang="ar"] {
  --display: "Beiruti", "Cormorant Garamond", Georgia, serif;
  --body: "Tajawal", "DM Sans", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2 { font-weight: 600; line-height: 1.3; letter-spacing: 0; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.eyebrow--gold { color: var(--gold); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; text-decoration: none; transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--clay); color: #fff; }
.btn--primary:hover { background: var(--clay-dark); }
.btn--ghost { border-color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn svg { width: 22px; height: 22px; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }

/* Announcement + header */
.announce { background: var(--pine); color: #f3e9dc; text-align: center; font-size: .86rem; padding: 8px 16px; }
.header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; font-family: var(--brand); font-size: 1.75rem; font-weight: 400; letter-spacing: .04em; line-height: 1; color: var(--ink); }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { border-color: var(--clay); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.lang { background: none; border: 1.5px solid var(--line); border-radius: 999px; height: 40px; padding: 0 14px; font-weight: 600; font-size: .88rem; }
.lang:hover { border-color: var(--ink); }
.cartbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .9rem; }
.cartbtn svg { width: 20px; height: 20px; }
.cartbtn__count { background: var(--clay); color: #fff; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: .78rem; display: inline-grid; place-items: center; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__in { display: grid; gap: 40px; align-items: center; }
.hero__text { max-width: 720px; }
.hero__img { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / 1; max-width: 460px; width: 100%; background: var(--sand); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 860px) {
  .hero__in { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero__img { justify-self: end; }
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .92rem; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }

/* Sections */
section { position: relative; }
.shop, .how { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { margin-bottom: 28px; }

/* Christmas */
.xmas { background: var(--pine); color: #f4ebdd; padding: clamp(56px, 8vw, 104px) 0; overflow: hidden; }
.xmas__snow {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .55) 1.5px, transparent 2px),
    radial-gradient(circle, rgba(208, 170, 99, .7) 1.5px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, .35) 1px, transparent 1.5px);
  background-size: 190px 190px, 260px 260px, 110px 110px;
  background-position: 20px 30px, 120px 90px, 60px 10px;
  mask-image: linear-gradient(to bottom, #000, transparent 55%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 55%);
}
.xmas .wrap { position: relative; }
.xmas__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.xmas .lead { color: #cfd6cc; }
.xmas__badge { border: 1px solid rgba(208, 170, 99, .6); color: var(--gold); border-radius: 999px; padding: 9px 18px; font-size: .9rem; font-weight: 500; white-space: nowrap; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
.grid--xmas { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--sand); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.grid--xmas .card__media { aspect-ratio: 1; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card__media:hover img { transform: scale(1.045); }
.tag { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--paper); color: var(--ink); font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.tag--xmas { background: var(--gold); color: #2a2110; }
.tag--out { background: var(--ink); color: #fff; }
.card__info { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 14px 2px 0; }
.card__name { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.card__meta { font-size: .84rem; color: var(--muted); margin-top: 2px; }
.xmas .card__meta { color: #b9c3b7; }
.price { font-family: var(--display); font-size: 1.15rem; font-weight: 600; white-space: nowrap; direction: ltr; }
.add {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent;
  display: grid; place-items: center; font-size: 1.35rem; line-height: 1; transition: background .2s, color .2s, border-color .2s;
}
.add:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.add:disabled { opacity: .35; cursor: not-allowed; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 2px 0; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { border: 1.5px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 18px; font-size: .92rem; font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.empty { color: var(--muted); padding: 28px 0; text-align: center; }

/* Bulk band */
.bulk { background: var(--sand); padding: clamp(44px, 6vw, 72px) 0; }
.bulk__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--clay); color: #fff; font-family: var(--display); font-weight: 600; margin-bottom: 18px; }
.steps p { color: var(--muted); margin-top: 8px; font-size: .96rem; }

/* Footer */
.footer { background: #4B1F17; color: #e9dfd2; padding: 56px 0 24px; }
.footer__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.footer__brand { font-family: var(--brand); font-size: 2rem; font-weight: 400; letter-spacing: .04em; color: #fff; margin-bottom: 6px; }
.footer h3 { color: var(--gold); margin-bottom: 10px; font-size: .9rem; }
.footer p { color: #c9bdb0; font-size: .95rem; }
.footer a { color: #fff; text-underline-offset: 3px; }
.footer .social { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer .social svg { width: 22px; height: 22px; flex: none; }
.footer .social:hover span { text-decoration: underline; }
#footEmail svg, #footPhone svg { color: #e6c9a8; }
#footIg svg { color: #e1306c; }
.footer__legal { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #9c9085; }

/* Dialogs */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--bg); }
dialog::backdrop { background: rgba(30, 24, 20, .5); backdrop-filter: blur(2px); }
html:has(dialog[open]) { overflow: hidden; }
dialog { overscroll-behavior: contain; }
.modal__img img { cursor: zoom-in; }
dialog.zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(20, 14, 12, .94); border-radius: 0; overflow: hidden; }
.zoom__stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: grab; }
.zoom__stage img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; user-select: none; will-change: transform; }
.zoom__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; background: var(--paper); }
.zoom__bar { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; display: flex; gap: 10px; z-index: 2; }
.zoom__bar .iconbtn { background: var(--paper); font-size: 1.4rem; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(42, 36, 32, .07); font-size: 1.5rem; line-height: 1; display: grid; place-items: center; }
.iconbtn:hover { background: rgba(42, 36, 32, .14); }

.modal { width: min(880px, 100% - 28px); border-radius: 24px; max-height: calc(100dvh - 28px); overflow: auto; }
.modal__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; background: var(--paper); }
.modal__body { display: grid; grid-template-columns: 1fr 1fr; }
.modal__img { background: var(--sand); aspect-ratio: 1; }
.modal__img { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.modal__img::-webkit-scrollbar { display: none; }
.modal__img img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; user-select: none; }
.modal__media { min-width: 0; background: var(--sand); }
.modal__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.modal__thumb { flex: 0 0 auto; width: 58px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--paper); cursor: pointer; opacity: .7; }
.modal__thumb.is-on, .modal__thumb:hover { border-color: var(--clay); opacity: 1; }
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal__text { padding: 44px 34px 34px; display: flex; flex-direction: column; gap: 14px; }
.modal__text h2 { font-size: 1.9rem; }
.modal__text .price { font-size: 1.5rem; }
.modal__desc { color: var(--muted); }
.modal__text .btn { margin-top: auto; }
.note { background: var(--sand); border-radius: 12px; padding: 10px 14px; font-size: .9rem; }

.drawer {
  position: fixed; inset-block: 0; inset-inline: auto 0; margin: 0;
  width: min(460px, 100%); height: 100dvh; max-height: none; max-width: none;
  flex-direction: column;
}
.drawer[open] { display: flex; }
html[dir="rtl"] .drawer { --slide-from: -100%; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.5rem; }
.drawer__scroll { flex: 1; overflow: auto; padding: 8px 22px 22px; }
.drawer__foot { padding: 16px 22px 20px; border-top: 1px solid var(--line); background: var(--paper); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-weight: 600; }
.total strong { font-family: var(--display); font-size: 1.5rem; direction: ltr; }
.hint { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.drawer__foot .hint { text-align: center; }

.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; background: var(--sand); }
.line__name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.line__price { text-align: end; font-weight: 600; direction: ltr; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 1.1rem; line-height: 1; border-radius: 50%; }
.qty button:hover { background: var(--sand); }
.qty button:disabled { opacity: .35; background: none; cursor: default; }
.tag--low { background: var(--clay); color: #fff; }
.done { margin-top: 22px; padding: 22px; border-radius: 16px; background: var(--sand); display: grid; gap: 12px; text-align: center; }
.done h3 { font-family: var(--display); font-size: 1.35rem; }
.modal--form { width: min(520px, 100% - 28px); }
.reqbox { padding: 34px 28px 28px; }
.reqbox h2 { font-size: 1.6rem; padding-inline-end: 40px; }
.reqbox .checkout { margin-top: 14px; }
.qty span { min-width: 30px; text-align: center; font-weight: 600; font-size: .92rem; }
.remove { background: none; border: 0; padding: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; margin-inline-start: 10px; }

.checkout { margin-top: 22px; display: grid; gap: 14px; }
.checkout h3 { font-family: var(--display); font-size: 1.25rem; }
.checkout label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; }
.checkout input:not([type="radio"]), .checkout textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; padding: 11px 14px; font-size: 1rem;
}
.checkout input:focus, .checkout textarea:focus { outline: none; border-color: var(--clay); }
.checkout fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checkout legend { font-size: .88rem; font-weight: 500; padding: 0; margin-bottom: 8px; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; }
.pay label { display: block; position: relative; }
.pay input { position: absolute; opacity: 0; inset: 0; }
.pay span { display: block; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .92rem; font-weight: 500; cursor: pointer; background: var(--paper); }
.pay input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pay input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.error { color: #a12b1e; font-size: .9rem; font-weight: 500; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .92rem; font-weight: 500;
  transition: transform .25s, opacity .25s; z-index: 60; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .nav { display: none; }
  .header__actions { margin-inline-start: auto; }
}
@media (max-width: 760px) {
  .grid, .grid--xmas { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .steps, .footer__in { grid-template-columns: 1fr; }
  .modal__body { grid-template-columns: 1fr; }
  .modal__img { aspect-ratio: 4 / 3; }
  .modal__text { padding: 24px 22px 26px; }
  .cartbtn > span[data-i18n] { display: none; }
  .card__name { font-size: .94rem; }
  .xmas__badge { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }

/* Hero entrance */
.hero__text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__text > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4) { animation-delay: .24s; }
.hero__text > :nth-child(5) { animation-delay: .32s; }
.hero__img { animation: pop-in 1s cubic-bezier(.2, .7, .2, 1) .15s both; }
.hero__img img { animation: kenburns 14s ease-in-out 1s infinite alternate; }

/* Header shadow once the page scrolls */
.header { transition: box-shadow .3s, background .3s; }
.header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(42, 36, 32, .35); }

/* Scroll reveals (only hidden when JS marks the page as .motion) */
.motion .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--rv-delay, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--rv-delay, 0ms); }
.motion .rv.is-in { opacity: 1; transform: none; }

/* Hover and press feedback */
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.add { transition: background .2s, color .2s, border-color .2s, transform .2s; }
.add:hover { transform: scale(1.1); }
.add:active { transform: scale(.92); }
.card__media { transition: box-shadow .35s, transform .35s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__media { box-shadow: 0 18px 36px -18px rgba(42, 36, 32, .45); transform: translateY(-3px); }
.steps li { transition: transform .3s, box-shadow .3s; }
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.chip { transition: background .2s, color .2s, border-color .2s, transform .2s; }
.chip:hover { transform: translateY(-1px); }
.nav a { transition: border-color .2s, color .2s; }
.cartbtn { transition: transform .2s; }
.cartbtn:hover { transform: translateY(-1px); }

/* Popup open/close animations. Uses @starting-style + discrete transitions; browsers without them simply open instantly. */
dialog {
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity .25s ease, transform .32s cubic-bezier(.2, .7, .2, 1), overlay .32s allow-discrete, display .32s allow-discrete;
}
dialog[open] { opacity: 1; transform: none; }
@starting-style { dialog[open] { opacity: 0; transform: translateY(18px) scale(.97); } }
dialog::backdrop { opacity: 0; transition: opacity .3s ease, overlay .3s allow-discrete, display .3s allow-discrete; }
dialog[open]::backdrop { opacity: 1; }
@starting-style { dialog[open]::backdrop { opacity: 0; } }

/* The cart slides in from the edge instead */
.drawer { --slide-from: 100%; transform: translateX(var(--slide-from)); }
.drawer[open] { transform: none; }
@starting-style { .drawer[open] { transform: translateX(var(--slide-from)); opacity: 1; } }

/* Second headline line is part of the h1 */
.hero__line2 { display: block; }
