/* Devesh Digital Studio: the shop's cart and checkout, and the customer's account area (js/store.js). */

/* Product cards drawn from the studio's system */
.product .noimg, .cart .noimg, .my-items .noimg { display: block; background: var(--ink-3); }
.product > .noimg { aspect-ratio: 1; }
.product .few { font: 600 13px/1.2 var(--body); color: var(--marigold); }
.product .pr { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font: 700 18px/1.2 var(--head); }
.product .pr s { color: var(--muted); font: 400 14px/1 var(--body); }
.product .pr-off { padding: 3px 7px; border-radius: 999px; background: rgba(255, 122, 26, .16); color: var(--saffron); font: 700 12px/1 var(--body); }
button.ask { border: 0; background: none; cursor: pointer; font: inherit; }
.product .ask.add, .product .ask.is-out { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--saffron); color: #1a0900; font: 700 14px/1 var(--head); transition: background .2s; }
.product .ask.add:hover { background: #ff9142; }
.product .ask.add .i { width: 16px; height: 16px; stroke-width: 2.4; }
.product .ask.added { background: #4bb36b; }
.product .ask.is-out { background: var(--ink-3); color: var(--muted); }
.shop-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); }

/* The floating cart button */
.cart-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px 0 20px; border: 0; border-radius: 999px; background: var(--saffron); color: #1a0900; font: 700 16px/1 var(--head); cursor: pointer; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); }
.cart-fab:hover { background: #ff9142; }
.cart-fab .cart-n { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--ink); color: var(--cream); font-size: 14px; }
.cart-fab.bump { animation: cart-bump .45s ease; }
@keyframes cart-bump { 40% { scale: 1.12; } }

/* The cart drawer: slides in from the right; full width on phones */
dialog.cart { position: fixed; inset: 0 0 0 auto; width: min(480px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--ink-2); color: var(--cream); display: none; flex-direction: column; }
dialog.cart[open] { display: flex; animation: cart-in .3s ease; }
dialog.cart::backdrop { background: rgba(0, 0, 0, .6); }
@keyframes cart-in { from { translate: 40px 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { dialog.cart[open] { animation: none; } }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 16px 24px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 26px; }
.cart-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; display: grid; place-items: center; cursor: pointer; }
.cart-x:hover { border-color: var(--saffron); }
.cart-body { flex: 1; overflow-y: auto; margin: 0; padding: 20px 24px; }
.cart-empty { display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; color: var(--muted); }
.cart-list { list-style: none; display: grid; gap: 14px; align-content: start; }
.cart-list li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-list img, .cart-list .noimg { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; }
.cl-main { display: grid; gap: 6px; min-width: 0; }
.cl-main strong { font: 600 16px/1.3 var(--head); }
.cl-main small { color: var(--muted); }
.cl-note input { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 245, 234, .18); background: var(--ink); color: var(--cream); font: 400 14px/1 var(--body); }
.cl-note input:focus { outline: none; border-color: var(--saffron); }
.cl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 38px; height: 38px; border: 0; background: none; color: var(--cream); font-size: 20px; cursor: pointer; border-radius: 50%; }
.qty button:hover { color: var(--saffron); }
.qty output { min-width: 26px; text-align: center; font-weight: 600; }
.cart-foot { display: grid; gap: 12px; padding: 18px 24px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--ink); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; }
.cart-total span { color: var(--muted); }
.cart-total strong { font: 700 20px/1.2 var(--head); text-align: right; }
.cart-foot .pbtn { width: 100%; }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.cart-actions .pbtn .i { width: 18px; height: 18px; margin-right: 8px; }
.checkout .form-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
.choices.col { flex-direction: column; align-items: stretch; }
.choices.col .choice span { width: 100%; }
.co-sum { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--ink); border: 1px solid var(--line); }
.muted-s { color: var(--muted); font-size: 14px; }
.placed { display: grid; gap: 14px; align-content: start; }
.placed h3 { font-size: 26px; line-height: 1.15; }
.placed h3 b { color: var(--saffron); }
.placed p { margin: 0; color: var(--muted); }
.placed ol { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.placed-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(75, 179, 107, .18); color: #6fd38d; }
.placed-ic .i { width: 28px; height: 28px; stroke-width: 2.4; }
@media (max-width: 480px) { .checkout .form-grid { grid-template-columns: 1fr; } .cart-body, .cart-foot { padding-inline: 16px; } }

/* Messages inside forms */
.store-msg { margin-bottom: 18px; }
.store-msg[data-kind="error"] { background: rgba(255, 107, 74, .1); border-color: rgba(255, 107, 74, .45); }
.store-msg[data-kind="error"] .i { color: #ff8a6b; }
.store-msg[data-kind="ok"] { background: rgba(75, 179, 107, .1); border-color: rgba(75, 179, 107, .45); }
.store-msg[data-kind="ok"] .i { color: #6fd38d; }
.pbtn:disabled { opacity: .6; cursor: progress; }

/* Status badges */
.badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font: 600 13px/1 var(--body); white-space: nowrap; background: rgba(255, 245, 234, .1); color: var(--cream); }
.badge.s-new, .badge.b-new { background: rgba(255, 178, 62, .16); color: var(--marigold); }
.badge.s-confirmed, .badge.b-confirmed { background: rgba(96, 165, 250, .16); color: #93c5fd; }
.badge.s-in_progress { background: rgba(167, 139, 250, .16); color: #c4b5fd; }
.badge.s-ready { background: rgba(255, 122, 26, .2); color: var(--saffron); }
.badge.s-completed, .badge.b-completed { background: rgba(75, 179, 107, .18); color: #6fd38d; }
.badge.s-cancelled, .badge.b-cancelled { background: rgba(255, 245, 234, .08); color: var(--muted); }

/* My account */
.my { display: grid; gap: 24px; }
.my-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.my-tabs { margin: 0; flex: 0 1 460px; }
.my-bar-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.my-bar-act .sb-in { height: 46px; padding: 0 22px; font-size: 15px; }
.my-panel { display: grid; gap: 18px; }
.my-card { padding: clamp(18px, 3vw, 28px); border-radius: 24px; background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 18px; }
.my-card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.my-card > header strong { display: block; font: 700 20px/1.2 var(--head); }
.my-card > header small { color: var(--muted); }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: 13px; color: var(--muted); }
.track li { display: grid; gap: 8px; }
.track li span { height: 6px; border-radius: 999px; background: rgba(255, 245, 234, .12); }
.track li.on span { background: var(--saffron); }
.track li.now { color: var(--cream); font-weight: 600; }
.my-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.my-items li { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; }
.my-items img, .my-items .noimg { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.my-items b { display: block; font-weight: 600; }
.my-items small { color: var(--muted); }
.my-items li > span:last-child { color: var(--muted); font-size: 14px; white-space: nowrap; }
.my-notes { list-style: none; margin: 0; padding: 14px 16px; border-radius: 14px; background: rgba(255, 178, 62, .08); border: 1px solid rgba(255, 178, 62, .25); display: grid; gap: 10px; }
.my-notes small { display: block; color: var(--marigold); font-size: 12px; }
.my-card > footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.my-card > footer p { margin: 0; display: flex; align-items: center; gap: 10px; }
.my-card > footer strong { font: 700 18px/1 var(--head); }
.my-act { display: flex; gap: 18px; }
.my-dl { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin: 0; }
.my-dl dt { color: var(--muted); font-size: 13px; }
.my-dl dd { margin: 0; }
.my-empty { padding: 40px; text-align: center; border-radius: 24px; border: 1px dashed var(--line); color: var(--muted); display: grid; justify-items: center; gap: 12px; }
.my-empty p { margin: 0; }
.my-two { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; align-items: start; }
.field input:disabled { opacity: .6; }
@media (max-width: 900px) { .my-two { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .my-tabs { flex-basis: 100%; }
  .track { font-size: 11px; }
  .my-items li { grid-template-columns: 40px 1fr; }
  .my-items li > span:last-child { grid-column: 2; }
}

/* ---------- Personalising with your own photos (js/customize.js) ---------- */
.product .own { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1.3 var(--body); color: var(--marigold); }
.product .own .i { width: 16px; height: 16px; }
.cl-own { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cl-own small { color: var(--cream); }
.cl-need { display: inline-flex; align-items: center; gap: 6px; color: var(--marigold); font-size: 13.5px; }
.cl-need .i { width: 16px; height: 16px; }
.cust-mini { display: inline-flex; align-items: center; }
.cust-mini img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; border: 2px solid var(--ink-2); }
.cust-mini img + img { margin-left: -10px; }
.cust-mini b { margin-left: 4px; font-size: 12px; color: var(--muted); }

dialog.cust { width: min(1040px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 26px; background: var(--ink-2); color: var(--cream); overflow: hidden; }
dialog.cust[open] { display: flex; flex-direction: column; animation: cust-in .25s ease; }
dialog.cust::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); }
@keyframes cust-in { from { opacity: 0; translate: 0 14px; } }
@media (prefers-reduced-motion: reduce) { dialog.cust[open] { animation: none; } }
.cust-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 14px 24px; border-bottom: 1px solid var(--line); }
.cust-head small { font: 600 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--marigold); }
.cust-head h2 { margin-top: 6px; font-size: clamp(22px, 3vw, 28px); }
.cust-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); overflow: auto; }
.cust-stage { --mh: 340px; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 30px 24px; background: radial-gradient(circle at 50% 38%, #3b2c21, #1b140f 72%); min-height: 100%; }
.cust-tip { margin: 0; min-height: 1.4em; text-align: center; color: var(--muted); font-size: 13.5px; }
.cust-side { display: grid; align-content: start; gap: 16px; padding: 22px 24px 24px; }
.cust-side .field { margin: 0; }
.cust-side .field input { width: 100%; }
.cust-side .pbtn { width: 100%; }
.cust-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; }
.cust-slot { position: relative; aspect-ratio: 1; padding: 0; border-radius: 12px; border: 1.5px dashed rgba(255, 245, 234, .3); background: var(--ink); color: var(--muted); display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.cust-slot.has { border-style: solid; border-color: transparent; }
.cust-slot.on { outline: 2.5px solid var(--saffron); outline-offset: 2px; }
.cust-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cust-slot small { position: absolute; left: 4px; bottom: 3px; padding: 1px 5px; border-radius: 6px; background: rgba(13, 10, 8, .7); color: var(--cream); font-size: 10.5px; line-height: 1.4; }
.cust-slot .i { width: 18px; height: 18px; }
.cust-drop { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1.5px dashed rgba(255, 178, 62, .55); background: rgba(255, 178, 62, .06); cursor: pointer; transition: background .2s, border-color .2s; }
.cust-drop:hover, .cust-drop.over { background: rgba(255, 178, 62, .14); border-color: var(--marigold); }
.cust-drop:focus-within { outline: 3px solid var(--marigold); outline-offset: 2px; }
.cust-drop > .i { width: 30px; height: 30px; color: var(--marigold); }
.cust-drop span { display: grid; gap: 2px; }
.cust-drop b { font: 700 16px/1.2 var(--head); }
.cust-drop small { color: var(--muted); font-size: 13px; }
.cust-tools { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--ink); border: 1px solid var(--line); }
.cust-zoom { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.cust-zoom input { width: 100%; accent-color: var(--saffron); }
.cust-tool-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.cust-warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 178, 62, .1); color: var(--marigold); font-size: 13px; }
.cust-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cust-buy strong { font: 700 20px/1.2 var(--head); }
.cust-msg { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 107, 74, .12); color: #ffb09c; font-size: 14px; }
@media (max-width: 820px) {
  dialog.cust { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .cust-body { grid-template-columns: 1fr; }
  .cust-stage { --mh: 250px; min-height: 0; padding: 22px 16px; }
  .cust-side { padding: 18px 16px max(22px, env(safe-area-inset-bottom)); }
  .cust-head { padding-left: 16px; }
}

/* The mockups: the product drawn around the print area. The area keeps the print's shape (aspect-ratio and --r). */
.mk { display: grid; justify-items: center; gap: 10px; width: 100%; }
.mk-area { position: relative; overflow: hidden; width: calc(var(--mh) * var(--r, 1)); max-width: 100%; background: #e9e2da; cursor: grab; touch-action: none; }
.mk-area.grab { cursor: grabbing; }
.mk-area img[data-img] { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.mk-area .mk-prev { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mk-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; width: 100%; border: 0; background: repeating-linear-gradient(45deg, #efe8e0 0 12px, #e7ded4 12px 24px); color: #7a6c61; font: 600 14px/1.2 var(--body); cursor: pointer; }
.mk-empty .i { width: 34px; height: 34px; }
.mk-text { position: absolute; left: 50%; bottom: 7%; translate: -50% 0; max-width: 90%; color: #fff; font: 700 clamp(15px, 2.4vw, 24px)/1.15 var(--head); text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, .65); pointer-events: none; overflow-wrap: anywhere; }
.mk-up { position: absolute; left: 10%; right: 10%; bottom: 10%; height: 6px; border-radius: 99px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.mk-up i { display: block; height: 100%; background: var(--saffron); transition: width .2s; }
.mk-cap { margin: 0; color: var(--muted); font-size: 12.5px; }
/* Frame: wood, an ivory mount */
.mk-frame { --mh: 280px; padding: 16px; border-radius: 3px; background: linear-gradient(135deg, #6b4728, #2b1a0e 38%, #5a3a22 62%, #24150b); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .45), 0 30px 50px -22px rgba(0, 0, 0, .85); max-width: 100%; }
@media (max-width: 820px) { .mk-frame { --mh: 190px; } }
.mk-mount { display: grid; justify-items: center; gap: 12px; padding: clamp(16px, 3.5vw, 34px); background: #f7f1e8; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .28); }
.mk-mount .mk-area { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 1px 0 rgba(255, 255, 255, .8); }
.mk-caption { max-width: 100%; color: #3b2c21; font: italic 600 clamp(14px, 2vw, 19px)/1.2 Georgia, "Times New Roman", serif; text-align: center; overflow-wrap: anywhere; }
/* Canvas: deep edges */
.mk-canvas-wrap { box-shadow: 7px 9px 0 #2a1d14, 0 34px 44px -20px rgba(0, 0, 0, .9); max-width: 100%; }
/* Print */
.mk-print-wrap, .mk-tshirt-wrap { padding: 12px; background: #fff; box-shadow: 0 30px 44px -22px rgba(0, 0, 0, .85); max-width: 100%; }
/* Cushion: soft corners and a puffed middle */
.mk-cushion-wrap { position: relative; border-radius: 16%; overflow: hidden; box-shadow: 0 30px 44px -18px rgba(0, 0, 0, .85); max-width: 100%; }
.mk-cushion-wrap .mk-area { border-radius: 16%; }
.mk-puff { position: absolute; inset: 0; pointer-events: none; border-radius: 16%; background: radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, .18), transparent 55%), radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0, 0, 0, .35)); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25); }
/* Acrylic block: a clear thick edge and a shine */
.mk-block-wrap { position: relative; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 45%, rgba(255, 255, 255, .4)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 30px 44px -20px rgba(0, 0, 0, .9); max-width: 100%; }
.mk-block-wrap .mk-area { border-radius: 4px; }
.mk-gloss { position: absolute; inset: 12px; border-radius: 4px; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 68%, rgba(255, 255, 255, .14)); }
/* Mug: the front of a white mug, the print going round it */
.mk-mug { display: flex; align-items: center; filter: drop-shadow(0 26px 24px rgba(0, 0, 0, .7)); }
.mk-mug-body { position: relative; width: min(64vw, calc(var(--mh) * .78)); aspect-ratio: .92; border-radius: 10px 10px 30px 30px / 10px 10px 22px 22px; overflow: hidden; background: #f6f4f1; }
.mk-mug-body .mk-area { position: absolute; left: -50%; top: 50%; width: 200%; max-width: none; translate: 0 -50%; }
.mk-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(255, 255, 255, .16) 26%, rgba(255, 255, 255, 0) 46%, rgba(0, 0, 0, .06) 70%, rgba(0, 0, 0, .42)); }
.mk-handle { width: calc(var(--mh) * .26); height: calc(var(--mh) * .42); margin-left: -8px; border: calc(var(--mh) * .055) solid #ebe7e2; border-left: 0; border-radius: 0 999px 999px 0; }
/* Calendar: rings, the month's photo and its days */
.mk-cal { position: relative; display: grid; gap: 10px; width: min(100%, calc(var(--mh) * 1.05)); padding: 26px 14px 14px; border-radius: 6px; background: #fff; box-shadow: 0 30px 44px -22px rgba(0, 0, 0, .85); color: #1d1712; }
.mk-cal .mk-area { width: 100%; }
.mk-rings { position: absolute; left: 12px; right: 12px; top: 9px; height: 8px; background: radial-gradient(circle, #3b3b3b 3px, transparent 4px) 0 0 / 18px 8px repeat-x; }
.mk-month { display: grid; gap: 6px; }
.mk-month b { font: 700 15px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; }
.mk-days { height: calc(var(--mh) * .2); background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), #e8e1d9 calc(100% / 7 - 1px) calc(100% / 7)), repeating-linear-gradient(transparent 0 calc(20% - 1px), #e8e1d9 calc(20% - 1px) 20%); border: 1px solid #e8e1d9; }

/* After ordering: pay now */
.placed-pay, .bk-pay { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: rgba(255, 122, 26, .08); border: 1px solid rgba(255, 122, 26, .35); }
.placed-pay p, .bk-pay > p:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; }
.placed-pay p span, .bk-pay > p:first-child span { color: var(--muted); }
.placed-pay strong, .bk-pay strong { font: 700 22px/1 var(--head); color: var(--cream); }
.bk-pay { margin: 16px 0; }
.bk-pay .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.choice small.muted-s { display: block; margin-top: 2px; font-size: 12.5px; }
.choices.col .choice span { display: block; height: auto; min-height: 44px; padding: 12px 18px; border-radius: 16px; line-height: 1.3; }
.choices.col .choice input:checked + span small { color: rgba(26, 9, 0, .75); }
.bk-pay p { max-width: none; margin: 0; }
.bk-pay .cta-row { margin: 0; }
.cl-add { --h: 40px; padding: 0 16px; font-size: 14px; gap: 6px; }
.cl-add .i { width: 16px; height: 16px; }

/* My photos & videos (account) */
.my { grid-template-columns: minmax(0, 1fr); }
.my-tabs { flex: 0 1 620px; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.my-tabs::-webkit-scrollbar { display: none; }
.my-tabs button { flex: 1 0 auto; padding: 0 16px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 600px) { .my-tabs { flex-basis: 100%; } .my-tabs button { padding: 0 14px; font-size: 14px; } }
.tab-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 99px; background: var(--saffron); color: #1a0900; font: 700 12px/1 var(--body); }
.dl-note { margin: 0; color: var(--muted); white-space: pre-line; }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dl-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--ink); border: 1px solid var(--line); }
.dl-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 122, 26, .14); color: var(--saffron); }
.dl-main { display: grid; gap: 2px; min-width: 0; }
.dl-main b { overflow-wrap: anywhere; font-weight: 600; }
.dl-main small { color: var(--muted); }
.dl-act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.dl-act .pbtn .i, .dl-act .sb-in .i { width: 18px; height: 18px; margin-right: 6px; }
.dl-act .sb-in { height: 46px; padding: 0 18px; font-size: 15px; }
.dl-video { grid-column: 1 / -1; }
.dl-video video { display: block; width: 100%; max-height: 70vh; border-radius: 14px; background: #000; }
@media (max-width: 600px) {
  .dl-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .dl-ic { width: 40px; height: 40px; }
  .dl-act { grid-column: 1 / -1; }
  .dl-act > * { flex: 1; }
  .dl-act .sb-in { justify-content: center; width: 100%; }
}

/* ---------- Product pictures as slides, and the product window with its sizes ---------- */
.product > .p-media { position: relative; }
.p-media .noimg { aspect-ratio: 1; }
.p-open { display: block; width: 100%; padding: 0; border: 0; background: var(--ink-3); cursor: pointer; }
.p-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.p-slides::-webkit-scrollbar { display: none; }
.p-slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; }
.p-dots { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; display: flex; gap: 6px; padding: 5px 8px; border-radius: 999px; background: rgba(13, 10, 8, .55); }
.p-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 245, 234, .5); transition: background .2s, transform .2s; }
.p-dots i.on { background: var(--saffron); transform: scale(1.25); }
.p-dots i[data-dot] { cursor: pointer; }
.p-title { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.p-title:hover { color: var(--marigold); }
.product .sizes-line { font: 500 13px/1.35 var(--body); color: var(--muted); }
.pr-from { margin-right: 2px; color: var(--muted); font: 500 13px/1 var(--body); }

dialog.pv { width: min(1000px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 26px; background: var(--ink-2); color: var(--cream); overflow: auto; }
dialog.pv[open] { animation: cust-in .25s ease; }
dialog.pv::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); }
.pv-x { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(13, 10, 8, .7); }
.pv-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.pv-media { position: relative; background: var(--ink-3); align-self: start; }
.pv-media .p-slides img { aspect-ratio: 1; object-fit: contain; background: var(--ink-3); }
.pv-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(13, 10, 8, .7); color: var(--cream); cursor: pointer; }
.pv-nav:hover { border-color: var(--saffron); color: var(--marigold); }
.pv-nav:disabled { opacity: .3; cursor: default; }
.pv-nav.prev { left: 12px; }
.pv-nav.next { right: 12px; }
.pv-side { display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 28px; min-width: 0; }
.pv-side .cat { font: 600 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--marigold); }
.pv-side h2 { font-size: clamp(26px, 3vw, 34px); padding-right: 40px; }
.pv-desc { margin: 0; color: var(--muted); }
.pv-price .pr { font-size: 26px; }
.pv-price strong { font: 700 20px/1.2 var(--head); }
.pv-sizes { margin: 0; padding: 0; border: 0; min-width: 0; }
.pv-sizes legend { margin-bottom: 10px; font-weight: 600; }
.sz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sz { position: relative; }
.sz input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sz span { display: grid; gap: 3px; min-width: 84px; padding: 9px 14px; border-radius: 14px; border: 1px solid rgba(255, 245, 234, .2); font: 700 15px/1.1 var(--head); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.sz small { color: var(--muted); font: 500 12.5px/1 var(--body); }
.sz span:hover { border-color: var(--saffron); }
.sz input:checked + span { background: var(--saffron); border-color: var(--saffron); color: #1a0900; }
.sz input:checked + span small { color: rgba(26, 9, 0, .75); }
.sz input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 3px; }
.pv-own { display: flex; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 178, 62, .08); color: var(--muted); font-size: 14px; }
.pv-own .i { flex: none; color: var(--marigold); }
.pv-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.pv-buy .pbtn { flex: 1; gap: 8px; }
.pv-buy .pbtn .i { width: 18px; height: 18px; }
.pv-photo { align-self: stretch; }
.pv-photo .sb-in { justify-content: center; width: 100%; }
.pv-photo small { font: 500 13px/1 var(--body); color: var(--muted); }
@media (max-width: 760px) {
  .pv-in { grid-template-columns: 1fr; }
  .pv-side { padding: 20px 18px 22px; }
}
/* The size in a cart line */
.cl-size { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.cl-size select { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 245, 234, .18); background: var(--ink); color: var(--cream); font: 500 14px/1 var(--body); }
.cl-size select:focus { outline: none; border-color: var(--saffron); }
.cl-own .linkish .i { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.pv .pr { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font: 700 26px/1.2 var(--head); }
.pv .pr s { color: var(--muted); font: 400 16px/1 var(--body); }
.pv .pr-off { align-self: center; padding: 4px 9px; border-radius: 999px; background: rgba(255, 122, 26, .16); color: var(--saffron); font: 700 13px/1 var(--body); }
