/* DANA sales page, kept simple (owner's brief 2026-11-26, after the bork.ae reference videos):
   picture + buying block, DANA's clip and big pictures, four closed lines, the order form, a floating buy bar. */

/* ---------- Picture + buying block ---------- */
.buy { width: var(--wrap); margin-inline: auto; display: grid; gap: 4px; padding-block: 0 8px; }
@media (min-width: 1000px) { .buy { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; padding-block: 32px 24px; align-items: start; } }
.panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding-top: 18px; }
@media (min-width: 1000px) { .panel { padding-top: 8px; } }
.pdp__name { margin: 0; font-size: clamp(25px, 1.2vw + 20px, 36px); line-height: 1.25; }
[dir='rtl'] .pdp__name { line-height: 1.45; }
.pdp__colour { display: inline-block; font-size: 0.78em; font-weight: 500; color: var(--copper); }
.pdp__line { margin: -8px 0 0; font-size: var(--fs-lead); color: var(--ink-2); }
.pdp__buyrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pdp__buyrow .price { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0; }
.pdp__buyrow .price strong { display: block; font-size: 26px; line-height: 1.1; }
.pdp__buyrow .price > span { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--muted); }
.pdp__cta { flex: 1; max-width: 250px; min-height: 54px; font-size: 16px; }
/* Wide colour chips: the colour itself, its name; the chosen one has a copper outline */
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip-c { display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 1.5px solid var(--line); border-radius: var(--r-inner); background: var(--surface); color: var(--ink); text-align: start; font: inherit; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.chip-c:hover { border-color: var(--sand-2); }
.chip-c[aria-pressed='true'] { border-color: var(--copper); box-shadow: 0 0 0 1.5px var(--copper); }
.chip-c:disabled { opacity: 0.45; cursor: not-allowed; }
.chip-c__sw { display: block; height: 42px; border-radius: 10px; }
.chip-c__sw--black { background: linear-gradient(115deg, #3a3a3a 0%, #121212 55%, #2b2b2b 70%, #b98a3b 71%, #b98a3b 74%, #1a1a1a 75%); }
.chip-c__sw--silver { background: linear-gradient(115deg, #f4f5f6 0%, #b9bec3 55%, #e7e9eb 70%, #7b4fc0 71%, #7b4fc0 74%, #c9cdd1 75%); }
.chip-c strong { padding-inline: 2px; font-size: var(--fs-small); }
.chip-c small { padding-inline: 2px; font-size: var(--fs-xs); color: var(--muted); }
/* Three short facts with line icons */
.keyfacts { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.keyfacts li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--ink); }
.keyfacts svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--brand); }
.help { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--ink-2); }
.help svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }
.help a { color: var(--brand); font-weight: 700; text-decoration: none; }
.help a:hover { text-decoration: underline; }

/* ---------- Gallery: one calm picture at a time, short dashes, zoom ---------- */
.gallery { display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 1000px) { .gallery { position: sticky; top: calc(var(--nav-h) + 24px); } }
.gallery__main { position: relative; }
.gallery__track { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--r-card); background: var(--surface); scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { position: relative; isolation: isolate; flex: 0 0 100%; margin: 0; aspect-ratio: 1 / 1; scroll-snap-align: start; overflow: hidden; background: #101416; }
.gallery__slide--light { background: var(--surface); }
/* The whole picture, never cropped or stretched: a blurred copy of it fills the frame around a wide or tall photo */
.gallery__slide[style*='--fill']::before { content: ''; position: absolute; inset: -12%; z-index: -1; background: var(--fill) center / cover no-repeat; filter: blur(28px) saturate(0.9) brightness(0.92); }
.gallery__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery__open img { width: 100%; height: 100%; object-fit: contain; }
.gallery__slide--fill { background: #F4F1EB; }
.gallery__open img.is-fill { object-fit: cover; }
.gallery__open img.is-contain { object-fit: contain; padding: 7%; mix-blend-mode: multiply; }
/* The colour this photo shows */
.gallery__colour { position: absolute; z-index: 1; bottom: 30px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: var(--r-pill); background: rgba(255, 253, 249, 0.92); color: var(--ink); font-size: 13px; font-weight: 700; pointer-events: none; }
[dir='rtl'] .gallery__colour { padding: 4px 6px 4px 12px; }
.sw { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.25); }
.sw--silver { background: radial-gradient(circle at 34% 28%, #fff, #e6e9eb 32%, #aeb3b8 72%, #80868b); }
.sw--black { background: radial-gradient(circle at 34% 28%, #6f6f6f, #2e2e2e 38%, #141414 78%); }
.gallery__zoom { position: absolute; top: 12px; inset-inline-start: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.9); color: var(--ink); }
.gallery__zoom svg { width: 18px; height: 18px; }
.gallery__nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: opacity 0.3s; }
.gallery__nav svg { width: 18px; height: 18px; }
.gallery__nav--prev { inset-inline-start: 12px; }
.gallery__nav--prev svg { transform: scaleX(-1); }
[dir='rtl'] .gallery__nav--prev svg { transform: none; }
.gallery__nav--next { inset-inline-end: 12px; }
.gallery__nav:disabled { opacity: 0; pointer-events: none; }
.gallery__dashes { position: absolute; inset: auto 0 12px 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery__dashes span { width: 14px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 0.5px rgba(14, 39, 41, 0.25); transition: width 0.2s, background-color 0.2s; }
.gallery__dashes span.is-on { width: 24px; background: var(--copper); }
@media (max-width: 999px) {
  .gallery__main { margin-inline: calc(-1 * var(--gutter)); }
  .gallery__track { border-radius: 0; }
  .gallery__nav { display: none; }
}

/* Lightbox */
.lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-card); background: #0b0f10; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(11, 31, 34, 0.75); }
.lightbox--light { background: #fff; }
.lightbox__figure { position: relative; margin: 0; display: grid; place-items: center; }
.lightbox__figure img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.lightbox__btn, .lightbox__close { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 24px; line-height: 1; }
.lightbox__btn svg { width: 18px; height: 18px; }
.lightbox__btn { top: 50%; translate: 0 -50%; }
.lightbox__btn--prev { inset-inline-start: 12px; }
.lightbox__btn--prev svg { transform: scaleX(-1); }
[dir='rtl'] .lightbox__btn--prev svg { transform: none; }
.lightbox__btn--next { inset-inline-end: 12px; }
.lightbox__close { top: 12px; inset-inline-end: 12px; }

/* ---------- DANA's clip and big pictures, one line each ---------- */
.story { width: var(--wrap); margin-inline: auto; padding-block: 28px 0; }
.story__grid { display: grid; gap: 18px; }
.story__card { position: relative; margin: 0; border-radius: var(--r-card); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.story__card img { display: block; width: 100%; height: auto; }
.story__card figcaption, .story .clip figcaption { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; background: var(--surface); }
.story__card figcaption strong { font-size: var(--fs-body); }
.story__card figcaption span { font-size: var(--fs-small); color: var(--ink-2); }
.story__card figcaption small { margin-top: 4px; font-size: var(--fs-xs); color: var(--muted); }
@media (min-width: 1000px) {
  .story { max-width: 820px; padding-block: 56px 0; }
  .story__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .story .clip { grid-column: 1 / -1; width: 100%; max-width: 640px; justify-self: center; } /* the clip at its real size, so it stays sharp */
}

/* ---------- Four closed lines: specifications, use and care, delivery/returns/warranty, questions ---------- */
.more { width: var(--wrap); margin-inline: auto; padding-block: 28px 0; display: flex; flex-direction: column; }
@media (min-width: 1000px) { .more { max-width: 820px; padding-block: 48px 0; } }
.more__item { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 12px); }
.more__item > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; font-size: var(--fs-body); font-weight: 700; cursor: pointer; }
.more__item > summary::-webkit-details-marker { display: none; }
.more__item > summary::after { content: '+'; font-size: 24px; font-weight: 400; line-height: 1; color: var(--muted); }
.more__item[open] > summary::after { content: '−'; }
.more__body { padding: 0 0 20px; font-size: var(--fs-small); color: var(--ink-2); }
.more__body h3 { margin: 6px 0 8px; font-size: var(--fs-small); color: var(--brand); }
.more__list { margin: 0 0 8px; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
.more .help { margin-top: 18px; }
.more .faq { max-width: none; }
/* Specifications, grouped by where each value comes from */
.specs { border: 1px solid var(--line); border-radius: var(--r-inner); background: var(--bg); overflow: hidden; }
.specs__group + .specs__group { border-top: 1px solid var(--line); }
.specs__group h4 { margin: 0; padding: 14px 16px 6px; font-size: var(--fs-label); font-weight: 700; color: var(--brand); }
.specs dl { margin: 0; }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.specs dl .spec:first-child { border-top: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; text-align: end; }
.spec__note { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--muted); }
.specs__note { padding: 10px 16px 14px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
/* Delivery, returns and warranty: three plain cards, each linking to its policy */
.polcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.polcards li { background: var(--surface); border-radius: var(--r-inner); padding: 16px 18px 8px; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 12px; align-content: start; }
.polcards li > svg { width: 22px; height: 22px; margin-top: 1px; color: var(--brand); }
.polcards strong { font-size: 15.5px; color: var(--ink); }
.polcards li > span, .polcards .link-arrow { grid-column: 2; }
.polcards li > span { color: var(--muted); font-size: var(--fs-small); }
.polcards .link-arrow { justify-self: start; font-size: var(--fs-small); }

/* ---------- The order, on the same page: one calm card ---------- */
.page-product #order { padding-block: 36px 0; scroll-margin-top: -20px; } /* Order now lands with the heading just under the menu */
@media (min-width: 1000px) { .page-product #order { padding-block: 56px 0; scroll-margin-top: -36px; } }
.order { width: var(--wrap); max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; gap: 0; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }
.order__sumcard, .order__details { padding: 22px 18px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.order__sumcard { padding-bottom: 6px; }
.order__details { padding-top: 10px; }
@media (min-width: 1000px) { .order__sumcard, .order__details { padding-inline: 30px; } .order__sumcard { padding-top: 30px; } .order__details { padding-bottom: 30px; } }
.order__title { font-size: 24px; } /* approved typography: order heading 24px */
.order__details h3 { font-size: 18px; }
.order__product { display: flex; gap: 14px; align-items: center; }
.order__thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--r-sm); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.order__thumb img { width: 100%; height: 100%; object-fit: contain; }
.order__product strong { display: block; }
.order__product small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.order__label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }
.ostep { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ostep legend { padding: 0; margin-bottom: 8px; }
.vcards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vcard { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--surface); cursor: pointer; }
.vcard.is-selected, .vcard:has(.vcard__input:checked) { border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper); }
.vcard:has(.vcard__input:focus-visible) { outline: 2px solid var(--cta); outline-offset: 2px; }
.vcard.is-disabled { opacity: 0.45; cursor: not-allowed; }
.vcard__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.vcard__swatch { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.25); }
.vcard__swatch--silver { background: radial-gradient(circle at 34% 28%, #fff, #e6e9eb 32%, #aeb3b8 72%, #80868b); }
.vcard__swatch--black { background: radial-gradient(circle at 34% 28%, #6f6f6f, #2e2e2e 38%, #141414 78%); }
.vcard__text strong { font-size: var(--fs-small); }
.stepper { direction: ltr; display: inline-flex; align-items: center; align-self: flex-start; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg); }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 20px; font-weight: 600; cursor: pointer; }
.stepper button:hover { background: var(--surface-2); }
.stepper button[aria-disabled='true'] { opacity: 0.35; background: transparent; cursor: default; }
.stepper output, .stepper input { min-width: 36px; text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ostep.has-error .vcard, .ostep.has-error .stepper { border-color: var(--error); }
.qty input { width: 44px; border: 0; background: transparent; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--ink-2); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Only the total shows; the unit price, quantity and delivery lines stay in the page for the order script */
.order__sum { margin: 0; border-top: 1px solid var(--line); }
.order__sum div:not(.order__total) { display: none; }
.order__sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0 0; }
.order__sum dt { color: var(--ink); font-weight: 700; font-size: var(--fs-small); }
.order__sum dd { margin: 0; text-align: end; font-size: 22px; font-weight: 800; color: var(--copper); font-variant-numeric: tabular-nums; }
.order__feenote { margin: -8px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.field { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }
.field input, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #D8CEBD; border-radius: var(--r-sm); background: #fff; color: var(--ink); font: 400 var(--fs-input)/1.4 var(--font); transition: border-color 0.2s, box-shadow 0.2s; }
.field input::placeholder { color: #9A9D94; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 69, 73, 0.12); }
.field input[type='tel'] { text-align: start; }
[dir='rtl'] .field input[type='tel'] { text-align: right; }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.field__error { font-size: var(--fs-xs); font-weight: 600; color: var(--error); }
.field__error:empty { display: none; }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.order__errors { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: #FBE9E7; color: var(--error); font-size: var(--fs-small); font-weight: 600; }
.order__submit { width: 100%; }
.order__submit svg { width: 20px; height: 20px; }
.order__privacy, .order__note { font-size: var(--fs-xs); color: var(--muted); text-align: center; }
/* WhatsApp consent above "Place my order": a real checkbox with a big tap area */
.consent { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-inner); background: var(--bg); font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { flex-shrink: 0; width: 22px; height: 22px; margin: 0; accent-color: var(--brand); cursor: pointer; }
/* Under "Place my order": nothing to pay now, what happens next, what happens to the details */
.order__assure { list-style: none; margin: 2px 0 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; border-radius: var(--r-inner); background: var(--surface-2); }
.order__assure li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2); }
.order__assure svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--brand); }
.order__assure li:first-child { font-weight: 700; color: var(--ink); }
.order__status { padding: 14px 16px; border-radius: var(--r-sm); background: var(--accent); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: var(--fs-small); }
.order__status .btn--ghost { border-color: var(--brand); color: var(--brand); font-weight: 700; }
/* UAE only: shown above the details to a visit from outside the UAE (or a VPN abroad) */
.order__place { margin: 0 0 4px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--ink-2); background: var(--accent); color: var(--ink); font-size: var(--fs-small); font-weight: 600; line-height: 1.55; }
.order__place[hidden] { display: none; }
/* While the order is on its way: the button is locked and says so */
.order__submit[disabled] { cursor: progress; opacity: 0.85; }
.is-sending .order__submit span::before { content: ''; display: inline-block; width: 15px; height: 15px; margin-inline-end: 10px; vertical-align: -2px; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%; animation: dana-spin 0.8s linear infinite; }
@keyframes dana-spin { to { transform: rotate(360deg); } }
/* Back on the form after placing an order: say so before a second order can be made */
.order__done { padding: 16px; border-radius: var(--r-inner); background: var(--accent); display: flex; flex-direction: column; gap: 12px; font-size: var(--fs-small); font-weight: 600; }
.order__doneActions { display: flex; flex-wrap: wrap; gap: 10px; }
.order__doneActions .btn { min-height: 44px; }
.order__doneActions .btn--ghost { border-color: var(--brand); color: var(--brand); }

/* TEST MODE panel */
.testpanel { padding: 16px; border-radius: var(--r-inner); border: 2px dashed #e0a92e; background: #fff8e6; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.testpanel__to, .testpanel__label { font-size: var(--fs-small); color: #6b4e00; }
.testpanel__msg { width: 100%; margin: 0; padding: 12px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); color: var(--ink); font: 13px/1.6 ui-monospace, monospace; white-space: pre-wrap; word-break: break-word; }
[dir='rtl'] .testpanel__msg { font-family: var(--font); font-size: var(--fs-small); }

/* ---------- Floating buy bar: a capsule, on phones and computers ---------- */
.sticky-order { position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom, 0px)) 12px; z-index: 45; max-width: 520px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 18px; border-radius: var(--r-pill); background: #FFFDF9; box-shadow: 0 10px 30px rgba(14, 39, 41, 0.18); }
[dir='rtl'] .sticky-order { padding: 8px 18px 8px 8px; }
.sticky-order > div { min-width: 0; line-height: 1.3; }
.sticky-order > div strong { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-order > div span { font-size: 15px; font-weight: 800; color: var(--copper); font-variant-numeric: tabular-nums; }
.sticky-order .btn { flex: 0 0 auto; min-height: 46px; padding: 0 22px; font-size: 15px; }
.has-order-bar { padding-bottom: 84px; }
/* It slides down out of the way and back up, never pops. */
.sticky-order { transform: translateY(0); transition: transform 0.3s var(--ease-out), opacity 0.25s var(--ease-out); will-change: transform; }
.sticky-order.is-away { transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 0.25s ease-in, opacity 0.2s ease-in, visibility 0s linear 0.25s; }
@media (prefers-reduced-motion: reduce) { .sticky-order, .sticky-order.is-away { transition: none; } }
/* Phones: Safari's address bar floats over the bottom of the page. Leave room under the form, and make sure a field or
   the send button scrolled into view lands above it, so "Place my order" and its notes are never cut off. */
@media (max-width: 999px) {
  html { scroll-padding-bottom: 150px; }
  #order .order { margin-bottom: 150px; }
}
