/* ONCE ÉDITION — cart, order windows and checkout (js/cart.js)
   Stone background: assets/ui/stone.jpg (texture only — no brand mark), tinted to each world. */
:root {
  --oc-gold: #c9a46a; --oc-gold-hi: #ead2a4; --oc-ink: #120f0c;
  --oc-tint: 8, 7, 6;            /* rgb of the veil over the stone */
  --oc-bad: #e39a8f;
  --oc-ease: cubic-bezier(.22, .7, .1, 1);
  --oc-spring: cubic-bezier(.2, 1.2, .3, 1);
}
:root[data-world="women"] { --oc-gold: #d4ad74; --oc-gold-hi: #f0d6a8; --oc-ink: #1a0810; --oc-tint: 22, 5, 11; }
html.oc-lock { overflow: hidden; }

/* ── the cart button in the header ── */
.oc-hud { display: inline-flex; align-items: center; gap: 8px; position: relative; }
.oc-ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; flex: 0 0 auto; }
#bag-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; font: 500 10.5px/1 var(--latin, serif);
  border: 1px solid var(--line-strong); color: var(--ivory-dim); transition: background .5s var(--oc-ease), color .5s, border-color .5s; }
#bag-count.has { background: linear-gradient(135deg, var(--oc-gold-hi), var(--oc-gold)); color: var(--oc-ink); border-color: transparent; font-weight: 600; }
.oc-hud.bump #bag-count { animation: oc-bump .7s var(--oc-spring); }
.oc-hud.bump::after { content: ""; position: absolute; inset-inline-end: -4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  border: 1px solid var(--oc-gold-hi); animation: oc-ripple .9s var(--oc-ease) forwards; pointer-events: none; }
@keyframes oc-bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes oc-ripple { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

/* ── stone surface shared by every window ── */
.oc-stone { position: absolute; inset: -24px; z-index: 0; pointer-events: none; overflow: hidden;
  background: url("../assets/ui/stone.jpg") center / cover; filter: grayscale(.2) contrast(1.08) brightness(.9);
  transform: scale(1.12); transition: transform 1.8s var(--oc-ease), filter 1.8s var(--oc-ease); }
.oc-stone::before { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(var(--oc-tint), .4), rgba(var(--oc-tint), .8) 70%),
    linear-gradient(180deg, rgba(var(--oc-tint), .25), rgba(var(--oc-tint), .7)); }
.oc-stone::after { content: ""; position: absolute; inset: -40% -60%; transform: translateX(-60%) rotate(8deg);
  background: linear-gradient(100deg, transparent 42%, rgba(255, 238, 214, .11) 49%, rgba(255, 238, 214, .02) 54%, transparent 60%); }
.open .oc-stone { transform: scale(1); }
.open .oc-stone::after { animation: oc-sheen 2.6s .35s var(--oc-ease) both; }
@keyframes oc-sheen { from { transform: translateX(-60%) rotate(8deg); } to { transform: translateX(60%) rotate(8deg); } }
.oc-edge { position: absolute; top: 0; bottom: 0; width: 1px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--oc-gold) 18%, var(--oc-gold-hi) 50%, var(--oc-gold) 82%, transparent);
  transform: scaleY(0); transition: transform 1.4s .2s var(--oc-ease); opacity: .7; }
.open .oc-edge { transform: scaleY(1); }
.oc-eyebrow { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .28em; color: var(--oc-gold-hi); }
.oc-eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--oc-gold-hi); box-shadow: 0 0 10px var(--oc-gold); }
html[lang="ar"] .oc-eyebrow { letter-spacing: 0; font-size: 12.5px; }

/* close cross */
.oc-x { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); flex: 0 0 auto; transition: transform .6s var(--oc-ease), border-color .4s; }
.oc-x span { position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; margin: -.5px 0 0 -7px; background: var(--ivory); transform: rotate(45deg); }
.oc-x span + span { transform: rotate(-45deg); }
.oc-x:hover { transform: rotate(90deg); border-color: var(--oc-gold-hi); }

/* buttons */
.oc-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 24px; overflow: hidden; isolation: isolate;
  border-radius: 2px; color: var(--oc-ink); font-size: 14px; font-weight: 500; letter-spacing: .04em;
  background: linear-gradient(100deg, var(--oc-gold) 0%, var(--oc-gold-hi) 38%, #fff4e2 50%, var(--oc-gold-hi) 62%, var(--oc-gold) 100%) 0 0 / 240% 100%;
  box-shadow: 0 14px 40px -18px rgba(212, 173, 116, .7), inset 0 0 0 1px rgba(255, 255, 255, .25);
  transition: background-position 1.1s var(--oc-ease), transform .5s var(--oc-ease), box-shadow .5s; }
.oc-btn:hover:not(:disabled) { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 20px 50px -18px rgba(212, 173, 116, .85), inset 0 0 0 1px rgba(255, 255, 255, .35); }
.oc-btn:active:not(:disabled) { transform: translateY(1px) scale(.995); }
.oc-btn:disabled { cursor: progress; }
.oc-btn:focus-visible, .oc-x:focus-visible, .oq-size:focus-visible, .oc-qty button:focus-visible { outline: 1px solid var(--oc-gold-hi); outline-offset: 3px; }
.oc-shine { position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: oc-shine 4.5s 1.2s infinite; }
@keyframes oc-shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.oc-btn.ghost { background: rgba(255, 255, 255, .03); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line-strong); }
.oc-btn.ghost:hover { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--oc-gold-hi); }
.oc-dots { display: none; gap: 6px; }
.oc-dots b { width: 6px; height: 6px; border-radius: 50%; background: var(--oc-ink); animation: oc-dot 1s infinite ease-in-out; }
.oc-dots b:nth-child(2) { animation-delay: .15s; } .oc-dots b:nth-child(3) { animation-delay: .3s; }
@keyframes oc-dot { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-5px); opacity: 1; } }
.oc-btn.busy > span { display: none; } .oc-btn.busy .oc-dots { display: inline-flex; }

/* quantity stepper */
.oc-qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-strong); border-radius: 99px; padding: 3px; }
.oc-qty button { width: 32px; height: 32px; border-radius: 50%; font: 300 18px/1 var(--latin, serif); color: var(--ivory); transition: background .3s, color .3s; }
.oc-qty button:hover { background: var(--oc-gold-hi); color: var(--oc-ink); }
.oc-qty output { display: inline-block; min-width: 26px; text-align: center; font: 500 15px/1 var(--latin, serif); overflow: hidden; }
.oc-qty.sm button { width: 27px; height: 27px; font-size: 16px; }

/* ── the cart window ── */
.oc { position: fixed; inset: 0; z-index: 55; visibility: hidden; pointer-events: none; color: var(--ivory); }
.oc.open { visibility: visible; pointer-events: auto; }
.oc-veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .8s var(--oc-ease); }
.oc.open .oc-veil { opacity: 1; }
.oc-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(470px, 100vw); display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 30px 0 80px -30px rgba(0, 0, 0, .9);
  transform: translateX(-104%); clip-path: inset(0 0 0 0); transition: transform 1s var(--oc-ease); }
.oc.open .oc-panel { transform: none; }
.oc-panel .oc-edge { right: 0; }
.oc-panel > :not(.oc-stone):not(.oc-edge) { position: relative; z-index: 1; }
.oc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: calc(26px + env(safe-area-inset-top, 0px)) 28px 14px; }
.oc-title { margin: 0; font-family: "Noto Kufi Arabic", var(--latin); font-weight: 200; font-size: 27px; line-height: 1.35; }
.oc-n { display: inline-grid; place-items: center; min-width: 30px; height: 30px; margin-inline-start: 6px; padding: 0 8px; border-radius: 99px; vertical-align: middle;
  font: 500 14px/1 var(--latin, serif); color: var(--oc-ink); background: linear-gradient(135deg, var(--oc-gold-hi), var(--oc-gold)); }
.oc-head > div, .oc-steps, .oc-views .oc-view, .oc-foot { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--oc-ease), transform .9s var(--oc-ease); }
.oc.open .oc-head > div { opacity: 1; transform: none; transition-delay: .25s; }
.oc.open .oc-steps { opacity: 1; transform: none; transition-delay: .32s; }
.oc.open .oc-foot { opacity: 1; transform: none; transition-delay: .45s; }

.oc-steps { display: flex; gap: 0; margin: 0 28px 6px; padding: 0 0 12px; list-style: none; position: relative; border-bottom: 1px solid var(--line); }
.oc-steps li { flex: 1; font-size: 11.5px; color: var(--mute); transition: color .6s; }
.oc-steps li.on { color: var(--oc-gold-hi); }
.oc-steps-fill { position: absolute; bottom: -1px; right: 0; height: 1px; width: calc((var(--step, 0) + 1) * 33.333%); background: linear-gradient(270deg, var(--oc-gold-hi), var(--oc-gold)); transition: width 1s var(--oc-ease); box-shadow: 0 0 8px var(--oc-gold); }
html[dir="ltr"] .oc-steps-fill { right: auto; left: 0; }

.oc-views { flex: 1; display: grid; min-height: 0; }
.oc-view { grid-area: 1 / 1; overflow: auto; overscroll-behavior: contain; padding: 14px 28px 20px; scrollbar-width: thin; scrollbar-color: rgba(212, 173, 116, .35) transparent; }
.oc-views .oc-view { visibility: hidden; transform: translateX(-30px); }
.oc.open .oc-views .oc-view.on { visibility: visible; opacity: 1; transform: none; transition-delay: .38s; }
.oc-views .oc-view:not(.on) { transition-delay: 0s; transition-duration: .35s; }

/* lines */
.oc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.oc-line { display: grid; grid-template-columns: 78px 1fr auto; grid-template-areas: "img info qty" "img info rm"; gap: 4px 14px; align-items: center; padding: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); border: 1px solid var(--line); border-radius: 3px;
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; transform: translateY(16px); transition: opacity .7s var(--oc-ease), transform .9s var(--oc-ease), border-color .4s; }
.oc.open .oc-view.on .oc-line { opacity: 1; transform: none; transition-delay: calc(.45s + var(--i) * 80ms); }
.oc-line:hover { border-color: rgba(212, 173, 116, .38); }
.oc-line figure { grid-area: img; margin: 0; width: 78px; height: 96px; display: grid; place-items: center; overflow: hidden; border-radius: 2px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 244, 228, .14), rgba(0, 0, 0, .25)); }
.oc-line img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)); }
.ol-info { grid-area: info; min-width: 0; }
.ol-name { margin: 0; font-family: "Noto Kufi Arabic", var(--latin); font-weight: 300; font-size: 15.5px; line-height: 1.5; }
.ol-meta { margin: 2px 0 6px; font-size: 12px; color: var(--ivory-dim); }
.ol-price { margin: 0; font: 500 14.5px/1.3 var(--latin, serif); color: var(--oc-gold-hi); }
.ol-price span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--mute); font-weight: 400; }
.oc-line .oc-qty { grid-area: qty; justify-self: end; }
.ol-rm { grid-area: rm; justify-self: end; font-size: 11.5px; color: var(--mute); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.ol-rm:hover { color: var(--oc-bad); border-color: currentColor; }
.oc-line.out { animation: oc-out .42s var(--oc-ease) forwards; }
@keyframes oc-out { to { opacity: 0; transform: translateX(-40px) scale(.96); filter: blur(2px); } }

/* empty */
.oc-empty { padding: 50px 0 20px; text-align: center; }
.oc-ring { width: 110px; height: 110px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; position: relative;
  border: 1px solid rgba(212, 173, 116, .35); box-shadow: inset 0 0 40px rgba(212, 173, 116, .08); }
.oc-ring::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed rgba(212, 173, 116, .25); animation: oc-spin 24s linear infinite; }
.oc-ring svg { width: 40px; fill: none; stroke: var(--oc-gold-hi); stroke-width: 1; }
@keyframes oc-spin { to { transform: rotate(360deg); } }
.oc-empty-t { margin: 0; font-family: "Noto Kufi Arabic", var(--latin); font-weight: 200; font-size: 22px; }
.oc-empty-s { margin: 6px 0 0; font-family: var(--ar-em, serif); font-size: 16px; color: var(--ivory-dim); }

/* footer: summary + action */
.oc-foot { padding: 16px 28px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--oc-tint), .2), rgba(var(--oc-tint), .65)); display: grid; gap: 12px; }
.oc-sum { margin: 0; display: grid; gap: 7px; }
.oc-sum > div { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--ivory-dim); }
.oc-sum > div::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.oc-sum dt { order: 0; } .oc-sum dd { order: 2; margin: 0; font: 500 14px/1.2 var(--latin, serif); color: var(--ivory); }
.oc-sum dd.tbc { font-family: var(--ar-em, serif); font-size: 14px; color: var(--mute); font-weight: 400; }
.oc-sum .tot { padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--line); color: var(--ivory); font-size: 14px; }
.oc-sum .tot::after { display: none; }
.oc-sum .tot dt { flex: 1; }
.oc-sum .tot dd { font-size: 22px; color: var(--oc-gold-hi); text-align: end; }
.oc-sum small, .oc-done-sum small { display: block; font: 400 11px/1.4 var(--sans); color: var(--mute); }
.oc-fine { margin: 0; font-size: 11.5px; color: var(--mute); text-align: center; line-height: 1.7; }
.oc-back { justify-self: center; font-size: 12.5px; color: var(--ivory-dim); transition: color .3s; }
.oc-back:hover { color: var(--oc-gold-hi); }

/* form */
.oc-form { display: grid; gap: 16px; }
.oc-lead { margin: 0 0 2px; font-family: var(--ar-em, serif); font-size: 16.5px; line-height: 1.7; color: var(--ivory-dim); }
.oc-field { position: relative; display: grid; gap: 4px; padding: 10px 14px 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 3px; transition: border-color .4s, background .4s; }
.oc-field.focus { border-color: rgba(212, 173, 116, .5); background: rgba(255, 255, 255, .065); }
.oc-l { font-size: 11.5px; color: var(--oc-gold-hi); letter-spacing: .02em; }
.oc-field input, .oc-field select, .oc-field textarea { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ivory); font: 400 15px/1.6 "IBM Plex Sans Arabic", var(--sans); padding: 2px 0; resize: none; }
.oc-field input::placeholder, .oc-field textarea::placeholder { color: rgba(246, 233, 226, .3); }
.oc-field input[dir="ltr"] { text-align: right; font-family: var(--latin, serif); font-size: 17px; letter-spacing: .06em; }
.oc-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 22px;
  background: linear-gradient(45deg, transparent 50%, var(--oc-gold-hi) 50%) left 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--oc-gold-hi) 50%) left 0 center / 6px 6px no-repeat; }
.oc-field select option { background: #1b1411; color: #f6e9e2; }
.oc-line-u { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--oc-gold-hi), transparent); transform: scaleX(0); transition: transform .7s var(--oc-ease); }
.oc-field.focus .oc-line-u { transform: scaleX(1); }
.oc-err { font-size: 11.5px; color: var(--oc-bad); min-height: 0; }
.oc-err:empty { display: none; }
.oc-field.bad { border-color: rgba(227, 154, 143, .6); }
.oc-field.bad .oc-line-u { background: var(--oc-bad); transform: scaleX(1); }
.oc-notice { margin: 0 0 12px; padding: 10px 14px; border: 1px solid rgba(227, 154, 143, .5); border-radius: 3px; background: rgba(227, 154, 143, .08); color: var(--ivory); font-size: 13px; line-height: 1.7; }
.oc-notice[hidden] { display: none; }
/* delivery location: locate-me button, or a pasted Google Maps link */
.oc-loc { gap: 8px; }
.oc-locbtn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(212, 173, 116, .45); border-radius: 3px;
  background: linear-gradient(180deg, rgba(212, 173, 116, .16), rgba(212, 173, 116, .05)); color: var(--oc-gold-hi); font: 500 14px/1 "IBM Plex Sans Arabic", var(--sans); cursor: pointer; transition: background .4s, border-color .4s, transform .3s var(--oc-ease); }
.oc-locbtn:hover { border-color: var(--oc-gold-hi); background: linear-gradient(180deg, rgba(212, 173, 116, .24), rgba(212, 173, 116, .08)); }
.oc-locbtn:active { transform: scale(.98); }
.oc-locbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.oc-locbtn:disabled { cursor: progress; }
.oc-locbtn .oc-dots b { background: var(--oc-gold-hi); }
.oc-locbtn.busy > span, .oc-locbtn.busy > svg { display: none; } .oc-locbtn.busy .oc-dots { display: inline-flex; }
.oc-loc-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 12.5px; color: var(--ivory-dim); animation: oc-loc-in .5s var(--oc-ease); }
.oc-loc-ok[hidden] { display: none; }
.oc-loc-ok .tick { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--oc-gold-hi); color: var(--oc-ink); font-size: 11px; font-weight: 700; }
.oc-loc-ok a { color: var(--oc-gold-hi); text-decoration: underline; text-underline-offset: 3px; }
@keyframes oc-loc-in { from { opacity: 0; transform: translateY(4px); } }
.oc-or { font-size: 11px; color: var(--mute); }
.oc-loc input[name="location"] { font: 400 13.5px/1.6 var(--sans); letter-spacing: 0; border-bottom: 1px dashed rgba(246, 233, 226, .14); }
.oc-hint { font-size: 11px; line-height: 1.7; color: var(--mute); }
.oc-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.oc-err-all { margin: 0; color: var(--oc-bad); font-size: 13px; text-align: center; }
.oc-err-all:empty { display: none; }

/* confirmation */
.oc-done { padding: 26px 0 10px; text-align: center; }
.oc-seal { position: relative; width: 132px; height: 132px; margin: 0 auto 18px; }
.oc-seal svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.s-ring { stroke: var(--oc-gold); stroke-width: 1.2; stroke-dasharray: 327; stroke-dashoffset: 327; transform: rotate(-90deg); transform-origin: 60px 60px; }
.s-ring2 { stroke: rgba(212, 173, 116, .35); stroke-width: .8; stroke-dasharray: 2 5; opacity: 0; }
.s-check { stroke: var(--oc-gold-hi); stroke-width: 3; stroke-dasharray: 64; stroke-dashoffset: 64; filter: drop-shadow(0 0 6px rgba(240, 214, 168, .6)); }
.oc-view.on .s-ring { animation: oc-draw 1.1s .5s var(--oc-ease) forwards; }
.oc-view.on .s-ring2 { animation: oc-fade .8s 1.1s forwards, oc-spin 30s 1.1s linear infinite; transform-origin: 60px 60px; }
.oc-view.on .s-check { animation: oc-draw .6s 1.25s var(--oc-ease) forwards; }
@keyframes oc-draw { to { stroke-dashoffset: 0; } }
@keyframes oc-fade { to { opacity: 1; } }
.oc-seal i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--oc-gold-hi); opacity: 0; box-shadow: 0 0 8px var(--oc-gold); }
.oc-view.on .oc-seal i { animation: oc-burst 1.1s calc(1.35s + var(--d)) var(--oc-ease) forwards; }
@keyframes oc-burst { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-92px) scale(.3); } }
.oc-done-k { margin: 0; font-size: 12.5px; color: var(--ivory-dim); }
.oc-code { margin: 6px 0 16px; font: 400 40px/1.1 "Bodoni Moda", var(--latin, serif); letter-spacing: .12em; color: var(--oc-gold-hi); text-shadow: 0 0 30px rgba(212, 173, 116, .35); }
.oc-code span { display: inline-block; opacity: 0; transform: translateY(18px) rotateX(70deg); }
.oc-view.on .oc-code span { animation: oc-letter .7s calc(1.4s + var(--i) * 55ms) var(--oc-spring) forwards; }
@keyframes oc-letter { to { opacity: 1; transform: none; } }
.oc-done-t { margin: 0 auto; max-width: 32ch; font-family: var(--ar-em, serif); font-size: 17px; line-height: 1.8; color: var(--ivory); }
.oc-done-t b { font-family: var(--latin, serif); font-weight: 500; letter-spacing: .05em; color: var(--oc-gold-hi); }
.oc-done-sum { margin: 16px 0 6px; font-size: 13px; color: var(--ivory-dim); }
.oc-done-sum b { font: 500 18px var(--latin, serif); color: var(--ivory); margin-inline-start: 6px; }
.oc-pay { display: inline-block; margin: 6px 0 0; padding: 6px 14px; border-radius: 99px; font-size: 12.5px; color: var(--oc-gold-hi); border: 1px solid rgba(212, 173, 116, .35); background: rgba(212, 173, 116, .06); }
.oc-wa-k { margin: 22px 0 10px; font-size: 12.5px; color: var(--ivory-dim); }
.oc-was { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.oc-wa { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 99px; font: 500 15px/1 var(--latin, serif); letter-spacing: .04em; text-decoration: none;
  background: rgba(255, 255, 255, .03); transition: border-color .3s, color .3s, background .3s, transform .4s var(--oc-ease); }
.oc-wa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.oc-wa:hover { border-color: var(--oc-gold-hi); color: var(--oc-gold-hi); background: rgba(212, 173, 116, .08); transform: translateY(-2px); }

/* ── quick window (one piece) ── */
.oq { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; color: var(--ivory); }
.oq[hidden] { display: none; }
.oq-veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .6s var(--oc-ease); }
.oq.open .oq-veil { opacity: 1; }
.oq-card { position: relative; width: min(820px, 100%); max-height: calc(100svh - 40px); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 3px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(212, 173, 116, .22);
  opacity: 0; transform: translateY(30px) scale(.96); clip-path: inset(8% 4% 8% 4% round 3px);
  transition: opacity .6s var(--oc-ease), transform .9s var(--oc-ease), clip-path 1s var(--oc-ease); }
.oq.open .oq-card { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 3px); }
.oq-card > :not(.oc-stone):not(.oc-edge) { position: relative; z-index: 1; }
.oq-card .oc-edge { left: 50%; }
.oq-card > .oc-x.oc-x { position: absolute; top: 14px; left: 14px; z-index: 3; }
.oq-media { margin: 0; display: grid; place-items: center; padding: 34px; min-height: 380px; position: relative; }
.oq-media img { max-width: 100%; max-height: 52svh; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .6));
  opacity: 0; transform: translateY(20px) scale(.94); transition: opacity .9s .25s var(--oc-ease), transform 1.2s .25s var(--oc-ease); }
.oq.open .oq-media img { opacity: 1; transform: none; animation: oq-float 6s 1.4s ease-in-out infinite; }
@keyframes oq-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.oq-glow { position: absolute; inset: 15% 15% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 214, 168, .22), transparent); z-index: -1; filter: blur(10px); }
.oq-info { padding: 46px 34px 32px; display: flex; flex-direction: column; justify-content: center; gap: 4px; overflow: auto; }
.oq-info > * { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--oc-ease), transform .8s var(--oc-ease); }
.oq.open .oq-info > * { opacity: 1; transform: none; }
.oq.open .oq-info > :nth-child(1) { transition-delay: .3s; } .oq.open .oq-info > :nth-child(2) { transition-delay: .36s; }
.oq.open .oq-info > :nth-child(3) { transition-delay: .42s; } .oq.open .oq-info > :nth-child(4) { transition-delay: .48s; }
.oq.open .oq-info > :nth-child(5) { transition-delay: .54s; } .oq.open .oq-info > :nth-child(n+6) { transition-delay: .6s; }
.oq-name { margin: 0; font-family: "Noto Kufi Arabic", var(--latin); font-weight: 200; font-size: 30px; line-height: 1.35; }
.oq-price { margin: 4px 0 18px; font: 400 26px/1.2 "Bodoni Moda", var(--latin, serif); color: var(--oc-gold-hi); }
.oq-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.oq-row:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.oq-label { font-size: 12.5px; color: var(--ivory-dim); }
.oq-one { font-family: var(--ar-em, serif); font-size: 15px; color: var(--ivory); }
.oq-sizes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.oq-size { min-width: 48px; height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-strong); font: 400 13px/1 "IBM Plex Sans Arabic", var(--sans); color: var(--ivory);
  transition: background .4s var(--oc-ease), color .4s, border-color .4s, transform .4s var(--oc-spring); }
.oq-size:hover { border-color: var(--oc-gold-hi); }
.oq-size.on { background: linear-gradient(135deg, var(--oc-gold-hi), var(--oc-gold)); color: var(--oc-ink); border-color: transparent; transform: scale(1.04); }
.oq-note { margin: 10px 0 0; min-height: 1.4em; font-size: 12.5px; color: var(--oc-bad); text-align: center; }

/* toast */
.oc-toast { position: fixed; z-index: 70; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 3px; color: var(--ivory);
  background: linear-gradient(rgba(var(--oc-tint), .82), rgba(var(--oc-tint), .9)), url("../assets/ui/stone.jpg") center / cover;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(212, 173, 116, .3);
  opacity: 0; transform: translate(-50%, 30px); pointer-events: none; transition: opacity .5s var(--oc-ease), transform .7s var(--oc-ease); }
.oc-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.oc-toast img { width: 46px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.oc-toast div { flex: 1; min-width: 0; }
.ot-k { margin: 0; font-size: 11.5px; color: var(--oc-gold-hi); }
.ot-n { margin: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-toast button { flex: 0 0 auto; padding: 8px 14px; border-radius: 99px; font-size: 12px; color: var(--oc-ink); background: linear-gradient(135deg, var(--oc-gold-hi), var(--oc-gold)); }

/* the piece flying into the cart */
.oc-fly { position: fixed; z-index: 90; object-fit: contain; pointer-events: none; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .6)); will-change: transform, opacity; }

/* add-to-cart buttons placed in other parts of the site */
.oc-buy { gap: 10px; }
.lb-buy { color: var(--oc-gold-hi) !important; }

/* ── phones ── */
@media (max-width: 720px) {
  .oc-panel { width: 100vw; }
  .oc-panel .oc-edge { display: none; }
  .oc-head { padding-inline: 20px; } .oc-steps { margin-inline: 20px; } .oc-view { padding-inline: 20px; } .oc-foot { padding-inline: 20px; }
  .oc-title { font-size: 23px; }
  .oc-line { grid-template-columns: 66px 1fr auto; padding: 10px; gap: 4px 12px; }
  .oc-line figure { width: 66px; height: 82px; }
  .oq { padding: 0; place-items: end center; }
  .oq-card { grid-template-columns: 1fr; width: 100%; max-height: 92svh; border-radius: 14px 14px 0 0; overflow: auto; transform: translateY(60px); clip-path: inset(0 0 0 0 round 14px 14px 0 0); }
  .oq.open .oq-card { clip-path: inset(0 0 0 0 round 14px 14px 0 0); }
  .oq-card .oc-edge { display: none; }
  .oq-media { min-height: 0; padding: 30px 30px 6px; }
  .oq-media img { max-height: 32svh; }
  .oq-info { padding: 14px 22px calc(22px + env(safe-area-inset-bottom, 0px)); overflow: visible; }
  .oq-name { font-size: 25px; } .oq-price { margin-bottom: 12px; font-size: 23px; }
  .oc-hud b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .oc *, .oq *, .oc-toast, .oc-hud *, .oc-panel, .oq-card { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; transition-delay: 0s !important; }
  .oc-shine, .oc-stone::after, .oc-ring::before { animation: none !important; }
}
