/* =====================================================================================
   commerce.css — Dahab v24 commerce (owner: COMMERCE)
   Product quick-view dialog, bundle fragrance dialog, Radix-style select (trigger + popup), cart sheet,
   /checkout (form, summary, states, success), /track-order, /cart shell.
   Values are the resolved reference cascade (spec 05 + appendix, spec 03 §2.3, 07 G2 G3 G12 G14 G27).

   Cascade model (same as base.css): the shadcn primitives live in the low-priority layers
   (components / utilities), every reference rule below is UNLAYERED, so it wins exactly like in the
   reference build (e.g. `button{border:0}` removing the select-trigger border, `.add-to-cart` colours).
   ===================================================================================== */

/* ---------- 1. Keyframes (tw-animate-css `enter` / `exit`, verbatim; renamed to avoid collisions) ---------- */
@keyframes dahab-enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}
@keyframes dahab-exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}
@keyframes dahab-spin{to{transform:rotate(360deg)}}

/* ---------- 2. shadcn primitives (layered defaults) ---------- */
@layer components{
  /* Dialog / Sheet overlay: fixed inset-0 z-50 bg-black/50 */
  .shop-overlay{position:fixed;inset:0;z-index:50;background-color:#00000080;background-color:color-mix(in oklab,#000 50%,transparent)}

  /* DialogContent: centred with the independent `translate` property (G14) so the scale keyframes never fight it */
  [data-slot=dialog-content]{position:fixed;top:50%;left:50%;z-index:50;display:grid;width:100%;max-width:calc(100% - 2rem);translate:-50% -50%;
    gap:16px;border-width:1px;border-radius:8px;background-color:var(--background);padding:24px;
    box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;outline:none}
  [data-slot=dialog-title]{font-size:18px;line-height:1;font-weight:600}
  [data-slot=dialog-description]{font-size:14px;line-height:calc(1.25/.875);color:var(--muted-foreground)}

  /* SheetContent (side left in AR, right in EN) */
  .cart-drawer[data-slot=sheet-content]{position:fixed;z-index:50;display:flex;flex-direction:column;gap:16px;background-color:var(--background);
    box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;outline:none}
  .cart-drawer[data-slot=sheet-content][data-side=left]{top:0;bottom:0;left:0;height:100%;width:75%;border-right-width:1px}
  .cart-drawer[data-slot=sheet-content][data-side=right]{top:0;bottom:0;right:0;height:100%;width:75%;border-left-width:1px}
  .cart-drawer [data-slot=sheet-title]{font-weight:600;color:var(--foreground)}
  .cart-drawer [data-slot=sheet-description]{font-size:14px;color:var(--muted-foreground)}

  /* Select trigger (shadcn SelectTrigger) */
  [data-slot=select-trigger]{display:flex;width:fit-content;align-items:center;justify-content:space-between;gap:8px;border-width:1px;border-color:var(--input);
    border-radius:var(--radius-md);background-color:transparent;padding:8px 12px;font-size:14px;line-height:calc(1.25/.875);white-space:nowrap;
    box-shadow:0 1px 2px 0 #0000000d;transition:color .15s cubic-bezier(.4,0,.2,1),box-shadow .15s cubic-bezier(.4,0,.2,1);outline:none}
  [data-slot=select-trigger][data-size=default]{height:36px}
  [data-slot=select-trigger]:focus-visible{border-color:var(--ring);box-shadow:0 0 0 3px color-mix(in oklab,var(--ring) 50%,transparent),0 1px 2px 0 #0000000d}
  [data-slot=select-trigger]:disabled{cursor:not-allowed;opacity:.5}
  [data-slot=select-trigger]>[data-slot=select-value]{display:flex;align-items:center;gap:8px;overflow:hidden;min-width:0}
  [data-slot=select-trigger] svg{pointer-events:none;flex-shrink:0;width:16px;height:16px;color:var(--muted-foreground)}

  /* Select popup (shadcn SelectContent / SelectItem, item-aligned) */
  [data-slot=select-content]{position:relative;z-index:50;min-width:8rem;overflow-x:hidden;overflow-y:auto;border-width:1px;border-radius:var(--radius-md);
    background-color:var(--popover);color:var(--popover-foreground);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}
  [data-radix-select-viewport]{padding:4px;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch}
  [data-radix-select-viewport]::-webkit-scrollbar{display:none}
  [data-slot=select-item]{position:relative;display:flex;width:100%;cursor:default;align-items:center;gap:8px;border-radius:var(--radius-sm);
    padding:6px 32px 6px 8px;font-size:14px;line-height:20px;outline:none;-webkit-user-select:none;user-select:none}
  [data-slot=select-item]:focus{background-color:var(--accent);color:var(--accent-foreground)}
  [data-slot=select-item]>[data-select-item-text]{display:flex;align-items:center;gap:8px}
  [data-slot=select-item-indicator]{position:absolute;right:8px;display:flex;width:14px;height:14px;align-items:center;justify-content:center}
  [data-slot=select-item-indicator] svg{width:16px;height:16px;flex-shrink:0;pointer-events:none;color:var(--muted-foreground)}

  /* Label / Input / Textarea / Checkbox */
  [data-slot=label]{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1;font-weight:500;-webkit-user-select:none;user-select:none}
  [data-slot=input]{display:block;height:36px;width:100%;min-width:0;border-width:1px;border-color:var(--input);border-radius:var(--radius-md);background-color:transparent;
    padding:4px 12px;font-size:16px;line-height:1.5;box-shadow:0 1px 2px 0 #0000000d;transition:color .15s cubic-bezier(.4,0,.2,1),box-shadow .15s cubic-bezier(.4,0,.2,1);outline:none}
  [data-slot=textarea]{display:flex;field-sizing:content;min-height:64px;width:100%;border-width:1px;border-color:var(--input);border-radius:var(--radius-md);
    background-color:transparent;padding:8px 12px;font-size:16px;line-height:1.5;box-shadow:0 1px 2px 0 #0000000d;transition:color .15s cubic-bezier(.4,0,.2,1),box-shadow .15s cubic-bezier(.4,0,.2,1);outline:none}
  [data-slot=input]::placeholder,[data-slot=textarea]::placeholder{color:var(--muted-foreground)}
  [data-slot=input]:focus-visible,[data-slot=textarea]:focus-visible{border-color:var(--ring);box-shadow:0 0 0 3px color-mix(in oklab,var(--ring) 50%,transparent)}
  [data-slot=input]:disabled,[data-slot=textarea]:disabled{cursor:not-allowed;opacity:.5}
  [data-slot=checkbox]{display:inline-flex;width:16px;height:16px;flex-shrink:0;align-items:center;justify-content:center;padding:0;border-width:1px;border-color:var(--input);
    border-radius:4px;box-shadow:0 1px 2px 0 #0000000d;transition:box-shadow .15s cubic-bezier(.4,0,.2,1);outline:none}
  [data-slot=checkbox][data-state=checked]{background-color:var(--primary);border-color:var(--primary);color:var(--primary-foreground)}
  [data-slot=checkbox]:disabled{cursor:not-allowed;opacity:.5}
  [data-slot=checkbox-indicator]{display:grid;place-content:center;color:currentColor}
  @media (min-width:640px){
    [data-slot=dialog-content]{max-width:32rem}
    .cart-drawer[data-slot=sheet-content][data-side]{max-width:24rem}
  }
  @media (min-width:768px){
    [data-slot=input],[data-slot=textarea]{font-size:14px;line-height:calc(1.25/.875)}
  }
}

@layer utilities{
  .shop-overlay[data-state=open]{animation:dahab-enter .15s ease;--tw-enter-opacity:0}
  .shop-overlay[data-state=closed]{animation:dahab-exit .15s ease forwards;--tw-exit-opacity:0;pointer-events:none}
  [data-slot=dialog-content][data-state=open]{animation:dahab-enter .2s ease;--tw-enter-opacity:0;--tw-enter-scale:.95}
  [data-slot=dialog-content][data-state=closed]{animation:dahab-exit .2s ease forwards;--tw-exit-opacity:0;--tw-exit-scale:.95;pointer-events:none}
  .cart-drawer[data-slot=sheet-content][data-state=open]{animation:dahab-enter .5s cubic-bezier(.4,0,.2,1)}
  .cart-drawer[data-slot=sheet-content][data-state=closed]{animation:dahab-exit .3s cubic-bezier(.4,0,.2,1) forwards;pointer-events:none}
  .cart-drawer[data-slot=sheet-content][data-side=left]{--tw-enter-translate-x:-100%;--tw-exit-translate-x:-100%}
  .cart-drawer[data-slot=sheet-content][data-side=right]{--tw-enter-translate-x:100%;--tw-exit-translate-x:100%}
  [data-slot=select-content][data-state=open]{animation:dahab-enter .15s ease;--tw-enter-opacity:0;--tw-enter-scale:.95}
  [data-slot=select-content][data-state=closed]{animation:dahab-exit .15s ease forwards;--tw-exit-opacity:0;--tw-exit-scale:.95;pointer-events:none}
  .animate-spin{animation:dahab-spin 1s linear infinite}
  .opacity-50{opacity:.5}
  .size-4{width:16px;height:16px}
  .size-3\.5{width:14px;height:14px}
}

/* ---------- 3. Select popup plumbing (Radix wrapper + outside-pointer catcher) ---------- */
[data-select-backdrop]{position:fixed;inset:0;z-index:50;background:transparent}
/* Radix item-aligned wrapper: pointer-events none (like Radix), so a press in its empty part reaches the backdrop and
   closes the list; only the open list takes the pointer (the closed state keeps none during the exit animation) */
[data-select-wrapper]{font-family:Damas,Arial,sans-serif;pointer-events:none}
[data-select-wrapper]>[data-slot=select-content][data-state=open]{pointer-events:auto}

/* ---------- 4. Scent select triggers (spec 03 §2.3, spec 05 §5.2, 07 G2) ---------- */
/* .scent-field / .scent-field label: catalog.css (card owner) */
.scent-select{background:0 0;width:100%;min-height:44px}
.scent-inline .scent-select{background:#fff8;border:1px solid #ab66877a;border-radius:24px;height:42px;min-height:42px;padding:8px 12px;font-size:14px}
.scent-select>[data-slot=select-value]{pointer-events:none}
.scent-inline .scent-select:focus-visible{box-shadow:0 0 0 3px rgba(175,91,125,.5),0 1px 2px rgba(0,0,0,.05)}
.cart-scent{color:#733954;margin:5px 0;font-size:14px}

/* ---------- 5. Product quick-view dialog (spec 05 §4.3) ---------- */
.product-dialog{max-height:90svh;overflow:auto;direction:ltr!important;background:#fffaf8!important;border:0!important;border-radius:20px!important;
  grid-template-columns:1fr 1fr!important;gap:0!important;width:min(860px,100vw - 32px)!important;max-width:860px!important;padding:0!important;display:grid!important}
.dialog-close{z-index:3;background:#fff9;position:absolute;top:15px;right:15px}
.dialog-image{border-radius:20px 0 0 20px;place-items:center;min-height:510px;display:grid;overflow:hidden;border:0;box-shadow:none;background:0 0!important}
.dialog-image>a{background:0 0!important;box-shadow:none;border-radius:0;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:relative}
.dialog-image :is(img,svg[data-product-image]){object-fit:contain;mix-blend-mode:normal;width:100%;height:510px;padding:15px 20px 45px}
.photo-zoom-hint{color:#824363;justify-content:center;align-items:center;gap:7px;font-size:13px;display:flex;position:absolute;bottom:16px;left:0;right:0}
.dialog-info{text-align:right;direction:rtl;align-self:center;padding:70px 35px 40px;align-items:stretch;gap:13px;max-height:80vh;overflow-y:auto;min-width:0}
[dir=ltr] .dialog-info{text-align:left}
.dialog-info .eyebrow{letter-spacing:1px;font-size:11px}
.product-dialog .product-title-row{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:10px;min-height:50px}
.product-dialog .scent-inline{flex-basis:180px}
.dialog-title{font-family:Damas,Arial,sans-serif!important;margin:8px 0 12px!important;font-size:32px!important;line-height:1.5!important;font-weight:600!important}
.dialog-description{color:#7b5c6c!important;margin:23px 0 30px!important;font-size:18px!important;line-height:1.9!important;white-space:pre-line}
.product-usage h3{margin-bottom:8px;font-size:19px}
.product-usage p{color:#806475;font-size:16px;line-height:1.9;white-space:pre-line}
.dialog-info .text-link{margin-top:9px;font-size:15px}
.dialog-image>a>svg[data-product-image]{width:100%;height:100%;max-height:570px;padding:22px}
.product-dialog .cart-action{width:100%}
.product-dialog .cart-action .add-to-cart:disabled{color:#65374f;opacity:1;background:#ead7e2}

/* ---------- 6. Add to cart + price: one owner each (integration pass) ----------
   .add-to-cart (+ :hover, :disabled, ≤600) → base.css; .shop-price, .cart-action, .cart-action-note → catalog.css.
   Only the dialog-scoped variants live here. */

/* ---------- 7. Bundle fragrance dialog (spec 05 §5.3) ---------- */
.bundle-choice-dialog{color:#4d1834;background:#fffafc;border-radius:22px;max-height:calc(100dvh - 32px);padding:36px 28px 28px;font-family:Damas,Arial,sans-serif;overflow-y:auto}
.bundle-choice-dialog [data-slot=dialog-title]{padding-inline-end:25px;font-size:26px;line-height:1.6}
.bundle-choice-dialog [data-slot=dialog-description]{color:#795466;font-size:16px;line-height:1.8}
.bundle-choice-dialog .shop-price{margin:0}
.bundle-choice-close{top:10px;position:absolute;inset-inline-end:10px}
.bundle-choice-dialog .scent-field{margin:0 0 8px}
.bundle-choice-dialog .add-to-cart{width:100%;min-height:48px}

/* ---------- 8. Cart sheet (spec 05 §7.3) ---------- */
.cart-drawer [data-slot=button]{font-family:inherit}
.cart-drawer{color:#4d1834;background:#fffafc;flex-direction:column;height:100dvh;max-height:100dvh;font-family:Damas,Arial,sans-serif;display:flex;
  gap:0!important;width:490px!important;max-width:100vw!important;padding:0!important}
.cart-title{border-bottom:1px solid #eadce4;justify-content:space-between;align-items:center;gap:15px;padding:28px;display:flex;flex-shrink:0}
.cart-title [data-slot=sheet-title]{font-size:29px;font-weight:600}
.cart-title [data-slot=sheet-title]>span{font-size:19px;font-weight:500}
.cart-title .eyebrow{font-size:12px}
.cart-body{overscroll-behavior:contain;flex:1;min-height:0;padding:12px 28px;overflow-y:auto}
.cart-line{border-bottom:1px solid #eadce4;grid-template-columns:90px 1fr;align-items:center;gap:19px;padding:22px 0;display:grid}
.cart-line>:is(img,svg[data-product-image]){object-fit:contain;width:90px;height:132px}
.cart-line>svg[data-product-image]{width:90px;height:132px}
.cart-line h3{font-size:20px;font-weight:600}
.cart-line .shop-price{margin:7px 0;font-size:17px}
.quantity-control{align-items:center;gap:6px;display:flex}
.quantity-control>span{text-align:center;min-width:25px;font-size:16px}
.quantity-control [data-slot=button]{border:1px solid #e3d1db;border-radius:50%;width:32px;height:32px;padding:0}
.quantity-control [data-slot=button]:last-child{border:0;margin-inline-start:auto}
.cart-bottom{background:#fff;border-top:1px solid #eadce4;padding:24px 28px max(22px,env(safe-area-inset-bottom));flex-shrink:0}
.cart-bottom>p{color:#85667a;margin:12px 0;font-size:14px;line-height:1.8}
.checkout-button{border-radius:30px;width:100%;font-size:17px;height:48px!important}
.cart-bottom .checkout-button{color:#fff;opacity:1;background:#581d3e;justify-content:center;align-items:center;gap:12px;min-height:52px;font-weight:600;display:flex}
.cart-bottom .checkout-button:disabled{color:#fff;opacity:1;background:#a17a90}
.cart-bottom .checkout-button>span{align-items:center;gap:10px;display:flex}
.total-line{justify-content:space-between;align-items:center;gap:20px;margin:14px 0;font-size:17px;display:flex}
.total-line b{white-space:nowrap}

/* shared empty / error blocks (.shop-empty itself is styled once, in catalog.css) */
.shop-error{color:#8e2945;background:#fff0f1;border:1px solid #e9b5c1;border-radius:10px;padding:14px 16px;font-size:15px;line-height:1.8;display:block}
.shop-error [data-slot=button]{margin:8px}
.cart-line .shop-error{margin-top:12px;padding:9px 12px;font-size:14px}

/* ---------- 9. Checkout page (spec 05 §8.4) ---------- */
.checkout-page [data-slot=input],.checkout-page [data-slot=textarea],.checkout-page [data-slot=button]{font-family:inherit}
.checkout-page{max-width:1240px;min-height:65vh;margin:auto;padding:65px 32px 95px}
.checkout-heading{margin-bottom:45px}
.checkout-heading h1{margin:8px 0;font-size:clamp(36px,4.6vw,58px);font-weight:600;line-height:1.55}
.checkout-heading p{color:#86647a;font-size:18px}
.checkout-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:start;gap:42px;display:grid}
.checkout-form{background:#fff;border:1px solid #eadce4;border-radius:22px;padding:32px}
.checkout-form fieldset{border:0;min-width:0;margin:0;padding:0}
.checkout-form h2{align-items:center;gap:12px;margin:0 0 28px;font-size:24px;font-weight:600;display:flex}
.checkout-form h2:not(:first-child){border-top:1px solid #eadce4;margin-top:32px;padding-top:25px}
.shop-field{flex-direction:column;gap:9px;min-width:0;margin-bottom:21px;display:flex}
.shop-field [data-slot=label]{font-size:16px;font-weight:500;line-height:1.6}
.shop-field [data-slot=input],.shop-field [data-slot=select-trigger]{width:100%;height:50px;box-shadow:none;background:#fff;border:1px solid #ddcbd5;border-radius:10px;font-family:inherit;font-size:16px}
.shop-field [data-slot=textarea]{resize:vertical;background:#fff;border:1px solid #ddcbd5;border-radius:10px;font-family:inherit;font-size:16px;line-height:1.8}
.shop-field>p{color:#8e6d80;font-size:14px;line-height:1.8}
.checkout-consent{cursor:pointer;align-items:flex-start;gap:12px;font-size:15px;line-height:1.9;display:flex}
.checkout-consent [data-slot=checkbox]{flex-shrink:0;margin-top:6px}
.checkout-note{color:#896779;align-items:flex-start;gap:8px;margin:12px 0;line-height:1.9;display:flex;font-size:14px!important}
.checkout-note svg{flex-shrink:0;margin-top:6px}
.checkout-honeypot{clip-path:inset(100%);width:1px;height:1px;position:absolute;overflow:hidden}
.checkout-summary{background:#f5e8ef;border:1px solid #ecd7e3;border-radius:22px;padding:29px;position:sticky;top:30px}
.summary-heading{justify-content:space-between;align-items:center;gap:10px;margin-bottom:22px;display:flex}
.summary-heading h2{font-size:24px;font-weight:600}
.summary-heading [data-slot=button]{padding:5px;font-size:14px}
.summary-lines{display:contents}
.summary-item{justify-content:space-between;align-items:baseline;gap:15px;padding:13px 0;font-size:16px;display:flex}
.summary-item b{white-space:nowrap}
.summary-divider{background:#e0c6d4;height:1px;margin:17px 0}
.grand-total{border-top:1px solid #d9bbcc;margin-top:20px;padding-top:18px;font-size:23px;font-weight:600}
.payment-option{background:#fffafc;border:1px solid #dfc5d3;border-radius:12px;align-items:flex-start;gap:12px;margin:22px 0;padding:15px;display:flex}
.payment-option svg{flex-shrink:0;margin-top:5px}
.payment-option b{font-size:16px;font-weight:600}
.payment-option p{color:#896779;margin-top:4px;font-size:14px;line-height:1.8}
.place-order{white-space:normal;border-radius:30px;width:100%;height:auto;min-height:50px;margin-top:18px;font-size:17px}
.checkout-summary>.shop-error{margin-top:12px}
/* Reference quirk NOT copied (spec 05 §13.1): the default-variant Buttons inherit the dark text colour there.
   The label is set to --primary-foreground, the colour the shadcn variant intends. */
.place-order,.success-actions [data-slot=button]{color:#fffaf8}   /* .shop-empty button colour: catalog.css */

/* ---------- 10. Order success (spec 05 §8.8) ---------- */
.order-success{text-align:center;flex-direction:column;align-items:center;gap:20px;max-width:750px;margin:auto;display:flex}
.order-success h1{font-size:clamp(35px,5vw,58px);font-weight:600;line-height:1.5}
.order-success>p{color:#876279;max-width:620px;font-size:17px;line-height:1.9}
.success-icon{background:#f1d8e6;border-radius:50%;place-items:center;width:80px;height:80px;margin-bottom:10px;display:grid}
.receipt-number{background:#f6e9f0;border-radius:12px;flex-direction:column;gap:10px;width:100%;max-width:540px;padding:18px;display:flex}
.receipt-number label{justify-content:center;font-size:15px}
.receipt-number strong{overflow-wrap:anywhere;font-size:15px}
.receipt-lines{width:100%;max-width:540px}
.receipt-lines>div{text-align:start;justify-content:space-between;gap:20px;padding:10px 0;font-size:17px;display:flex}
.receipt-lines b{white-space:nowrap}
.receipt-lines .total-line{border-top:1px solid #dec8d4;padding-top:19px;font-size:22px}
.success-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}
.success-actions [data-slot=button]{border-radius:28px;height:46px;padding-inline:24px;font-size:16px}

/* ---------- 11. /track-order (CONTRACT D3 / 07 G25: checkout-page language) ---------- */
.track-grid.is-single{grid-template-columns:minmax(0,720px)}
.track-form .shop-field{margin-bottom:24px}
.track-submit{border-radius:30px;width:100%;color:#fff;background:#581d3e;justify-content:center;align-items:center;gap:12px;min-height:52px;font-size:17px;font-weight:600;display:flex;transition:background .15s cubic-bezier(.4,0,.2,1)}
.track-submit:hover{background:#6c2a4d}
.track-form .shop-error{margin-bottom:22px}
.track-result .receipt-number{max-width:none;margin-bottom:8px;text-align:center;background:#fffafc;border:1px solid #dfc5d3}
.track-status{display:inline-flex;align-items:center;border:1px solid #d9bbcc;border-radius:40px;padding:4px 14px;background:#fffafc;font-size:14px;white-space:nowrap}
.track-status.is-cancelled{color:#8e2945;border-color:#e9b5c1;background:#fff0f1}
.track-status.is-done{color:#3f6b4f;border-color:#bcd8c5;background:#f1faf4}
.track-result .summary-item span{min-width:0}

/* ---------- 12. Breakpoints ---------- */
@media (max-width:1150px){
  .product-dialog{width:min(800px,100vw - 32px)!important}
  .checkout-grid{gap:24px}
  .checkout-form,.checkout-summary{padding:23px}
}
@media (max-width:1000px){
  .product-dialog .scent-inline{flex-basis:145px}
}
@media (max-width:900px){
  .cart-drawer{width:440px!important}
  .dialog-info{max-height:none}
  .product-dialog{max-height:90dvh;overflow:auto}
  .checkout-grid{grid-template-columns:1fr}
  .checkout-summary{position:static}
  .checkout-page{padding:38px 22px 60px}
  .checkout-heading{margin-bottom:28px}
  .checkout-form{padding:25px}
  .track-grid.is-single{grid-template-columns:1fr}
}
@media (max-width:800px){
  .product-dialog{grid-template-columns:1fr!important;max-width:450px!important}
  .dialog-image{border-radius:20px 20px 0 0;height:340px;min-height:0}
  .dialog-image :is(img,svg[data-product-image]){object-fit:contain;height:340px}
  .dialog-info{padding:30px 25px}
  .dialog-title{font-size:27px!important}
  .dialog-description{margin:15px 0 22px!important;font-size:16px!important}
  .dialog-info .eyebrow{font-size:10px}
}
@media (max-width:700px){
  .dialog-image{height:360px;min-height:0}
  .dialog-image :is(img,svg[data-product-image]){height:360px;padding:10px 12px 35px}
  .dialog-image>a>svg[data-product-image]{height:100%;padding:22px}
  .photo-zoom-hint{font-size:12px;bottom:8px}
  .cart-title{padding:20px}
  .cart-bottom{padding:16px 20px max(20px,env(safe-area-inset-bottom))}
  .cart-bottom>p{margin:8px 0;font-size:14px}
  .cart-body{padding:8px 20px}
  .cart-bottom .total-line{margin:7px 0}
}
@media (max-width:600px){
  .cart-line{grid-template-columns:80px 1fr;gap:13px}
  .cart-line>:is(img,svg[data-product-image]){width:80px;height:120px}
  .cart-line>svg[data-product-image]{width:90px;height:132px}
  .cart-line h3{font-size:19px}
  .checkout-heading h1{font-size:36px;line-height:1.45}
  .checkout-page{padding-inline:18px}
  .checkout-form,.checkout-summary{border-radius:16px;padding:21px 18px}
  .checkout-heading p{font-size:16px}
  .summary-item{font-size:15px}
  .receipt-lines>div{font-size:15px}
  .receipt-lines .total-line{font-size:21px}
  .receipt-number strong{font-size:13px}
}
