/* Direct shopping follows the store's palette; payment is connected separately. */
html:has(.commerce-page){scrollbar-gutter:stable}
html:has(.cart-drawer[open]){overflow:hidden}
.cart-drawer{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--commerce-ink);overflow:hidden}
.cart-drawer::backdrop{background:transparent}
.cart-drawer [hidden]{display:none!important}
.cart-drawer-shade{position:absolute;inset:0;background:rgba(16,28,37,.12)}
.cart-drawer-sheet,.cart-drawer-surface{box-sizing:border-box;background:var(--commerce-bg);border:1px solid var(--commerce-line);border-radius:20px;box-shadow:0 14px 48px #14243329,0 3px 10px #1424330d}
.cart-drawer-surface{display:none;position:absolute;pointer-events:none}
.cart-drawer:is([data-state="opening"],[data-state="closing"]) .cart-drawer-surface{display:block}
.cart-drawer:is([data-state="opening"],[data-state="closing"]) .cart-drawer-sheet{background:transparent;border-color:transparent;box-shadow:none}
.cart-drawer-sheet{position:absolute;inset:auto;width:min(380px,calc(100% - 32px));height:auto;max-height:min(600px,calc(100dvh - 32px));display:flex;flex-direction:column;overflow:hidden}
.cart-drawer-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 22px 18px;border-bottom:1px solid var(--commerce-line)}
.cart-drawer-header p{margin:0 0 9px;color:var(--commerce-muted);font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.cart-drawer-header h2{display:flex;align-items:baseline;gap:12px;margin:0;font-size:26px;font-weight:500;letter-spacing:-.045em}
.cart-drawer-header [data-summary-count]{font-size:13px;letter-spacing:0;color:var(--commerce-muted)}
.cart-drawer-close{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:0;border:1px solid var(--commerce-line-strong);border-radius:50%;background:var(--commerce-bg-soft);color:inherit;font:inherit;font-size:26px;cursor:pointer}
.cart-drawer-body{flex:1;min-height:0;padding:0 22px;overflow:auto;overscroll-behavior:contain}
.cart-drawer .cart-line{grid-template-columns:76px minmax(0,1fr);align-items:start;gap:8px 16px;padding:20px 0}
.cart-drawer .cart-line-copy h3{margin:0 0 8px;font-size:19px;font-weight:500;letter-spacing:-.035em}
.cart-drawer .cart-line-copy p{margin:0 0 14px;line-height:1.6}
.cart-drawer .cart-line-end{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
.cart-drawer .shop-text-button{min-height:32px;padding:0;border:0;background:none;color:var(--commerce-muted);font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.cart-drawer button:disabled{opacity:.4;cursor:not-allowed}
.cart-drawer .cart-drawer-footer{padding:18px 22px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--commerce-line);background:var(--commerce-bg-soft)}
.cart-drawer-footer dl{margin:0}.cart-drawer-footer dl>div{display:flex;justify-content:space-between;gap:20px;font-size:15px}.cart-drawer-footer dd{margin:0}
.cart-drawer-footer p{margin:10px 0 18px;font-size:13px;color:var(--commerce-muted)}
.cart-drawer .commerce-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;padding:12px 20px;border-radius:999px;font-size:14px;cursor:pointer}
.cart-drawer-continue{display:block;min-height:40px;margin:8px auto 0;border:0;background:none;color:var(--commerce-muted);font:inherit;font-size:13px;cursor:pointer}
.cart-drawer-empty{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:100%;padding:28px 0}
.cart-drawer-empty h3{max-width:270px;margin:0;font-size:26px;font-weight:500;line-height:1.15;letter-spacing:-.045em}
.cart-drawer-empty p{margin:16px 0 24px;font-size:14px;line-height:1.65;color:var(--commerce-muted)}
.cart-drawer-storage{padding:12px 24px;margin:0;font-size:12px;line-height:1.5}
@media(max-width:560px){.cart-drawer-header{padding-top:22px}}
.store-page [hidden] { display: none !important; }
.shop-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shop-page .shop-main { min-height: 65vh; padding-top: 30px; padding-bottom: 90px; }
.shop-page-heading { margin: 35px 0 40px; }
.shop-page .store-title { font-size: clamp(44px, 5.5vw, 72px); }
.shop-page-heading .store-eyebrow { margin-bottom: 17px; }
.shop-page-heading .store-lede { max-width: none; margin-bottom: 0; }
.shop-buy-row { flex-wrap: wrap; scroll-margin-top: 115px; }
.store-page .shop-product-price { margin: 0; font-size: 13px; color: var(--commerce-ink); }
.shop-card-purchase { display: flex; align-items: center; gap: 10px; }
.store-page .shop-add-button { min-height: 44px; padding: 0 18px; font-size: 12px; cursor: pointer; }
.shop-quantity { display: inline-flex; align-items: center; border: 1px solid var(--commerce-line-strong); border-radius: 999px; overflow: hidden; }
.shop-quantity button { width: 38px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--commerce-ink); font-size: 18px; cursor: pointer; }
.shop-quantity button:hover { background: var(--commerce-panel-strong); }
.shop-quantity input,
html[data-theme="day"] .shop-quantity input { width: 40px; height: 44px; padding: 0; border: 0; background: transparent !important; color: var(--commerce-ink) !important; font: inherit; font-size: 13px; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.shop-quantity input::-webkit-inner-spin-button, .shop-quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.shop-quantity :focus-visible { outline-offset: -4px !important; }
.store-page button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.store-page .shop-text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--commerce-muted); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.shop-text-button:hover { color: var(--commerce-ink); }
.store-page .shop-small-copy { color: var(--commerce-muted); font-size: 12px; line-height: 1.75; margin: 15px 0 0; }
.shop-notice { padding: 18px 20px; border: 1px solid var(--commerce-line-strong); border-radius: 12px; color: var(--commerce-muted); font-size: 13px; line-height: 1.75; }
.shop-empty { padding: 45px 24px 60px; text-align: center; border-radius: 12px 80px 12px 12px; background: var(--commerce-bg-soft); }
.shop-empty-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: var(--commerce-action); color: var(--commerce-action-ink); font-family: Georgia, serif; font-size: 50px; font-weight: 300; }
.shop-empty h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 500; letter-spacing: -.05em; }
.shop-empty p { max-width: 390px; margin: 0 auto 24px; color: var(--commerce-muted); font-size: 14px; line-height: 1.8; }
.shop-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 52px; align-items: start; }
.cart-lines { min-width: 0; border-top: 1px solid var(--commerce-line); }
.cart-line { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--commerce-line); }
.cart-line-image { display: block; aspect-ratio: 1; background: var(--piece-panel); border-radius: 10px 30px 10px 10px; }
.cart-line-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cart-line-copy { min-width: 0; }
.cart-line-copy h2 { margin: 0 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -.04em; }
.cart-line-copy p { margin: 0 0 15px; color: var(--commerce-muted); font-size: 12px; }
.cart-line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 12px; }
.shop-summary { position: sticky; top: 108px; border: 1px solid var(--commerce-line); border-radius: 14px; padding: 26px; background: var(--commerce-bg-soft); }
.shop-summary-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.shop-summary h2 { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -.04em; }
.shop-summary-heading > span { color: var(--commerce-muted); font-size: 12px; white-space: nowrap; }
.shop-totals { display: grid; gap: 18px; margin: 26px 0; }
.shop-totals > div { display: flex; justify-content: space-between; gap: 18px; color: var(--commerce-muted); font-size: 12px; }
.shop-totals dd { margin: 0; text-align: right; }
.shop-totals .shop-total { padding-top: 20px; border-top: 1px solid var(--commerce-line); color: var(--commerce-ink); font-size: 13px; }
.shop-wide-button { width: 100%; justify-content: space-between !important; cursor: pointer; }
.shop-checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr); gap: clamp(40px, 7vw, 105px); align-items: start; }
.checkout-steps { display: flex; list-style: none; margin: 0 0 38px; padding: 0 0 20px; border-bottom: 1px solid var(--commerce-line); gap: 30px; }
.checkout-steps li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--commerce-muted); }
.checkout-steps li span { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid var(--commerce-line-strong); border-radius: 50%; font-size: 9px; }
.checkout-steps li[aria-current] { color: var(--commerce-ink); }
.checkout-steps li[aria-current] span { background: var(--store-action); border-color: var(--store-action); color: var(--commerce-action-ink); }
.checkout-main h2 { font-size: 28px; font-weight: 500; letter-spacing: -.04em; margin: 0; }
.checkout-fields { display: grid; gap: 22px; margin: 30px 0; }
.checkout-fields label { display: grid; gap: 10px; color: var(--commerce-ink); font-size: 13px; }
.checkout-fields input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--commerce-line-strong); border-radius: 8px; background: var(--commerce-bg-soft); color: var(--commerce-ink); font: inherit; font-size: 16px; }
.pickup-choice { margin: 0 0 28px; padding: 22px; border: 1px solid var(--commerce-line-strong); border-radius: 12px; }
.pickup-choice legend { padding: 0 6px; font-size: 13px; }
.pickup-choice label { display: flex; align-items: center; gap: 14px; }
.pickup-choice label > span { display: grid; gap: 5px; }
.pickup-choice strong { font-size: 14px; font-weight: 500; }
.pickup-choice label span span { color: var(--commerce-muted); font-size: 12px; }
.pickup-choice input { accent-color: var(--commerce-accent); width: 18px; height: 18px; }
.checkout-review h3 { margin: 0 0 10px; font-size: 14px; font-weight: 500; }
.checkout-review-contact, .checkout-review-pickup { padding: 24px 0; border-bottom: 1px solid var(--commerce-line); }
.checkout-review p:not(.shop-notice) { margin: 5px 0; color: var(--commerce-muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.checkout-review .shop-notice { margin: 26px 0; }
.checkout-lines { border-top: 1px solid var(--commerce-line); }
.checkout-lines .cart-line { grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 12px; padding: 18px 0; }
.checkout-lines .cart-line h2 { font-size: 16px; }
.checkout-lines .cart-line p { margin-bottom: 5px; font-size: 11px; }
.checkout-lines .cart-line-end { grid-column: 2; align-items: flex-start; font-size: 11px; }

.product-dialog { position: fixed; max-width: 900px; width: calc(100% - 40px); max-height: 90svh; padding: 0; margin: auto; overflow: auto; border: 1px solid var(--commerce-line-strong); border-radius: 18px; background: var(--commerce-bg); color: var(--commerce-ink); }
.product-dialog::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(5px); }
html:has(.product-dialog[open]) { overflow: hidden; }
.shop-dialog-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 1px solid var(--commerce-line-strong); border-radius: 50%; background: var(--commerce-bg); color: var(--commerce-ink); font-size: 26px; cursor: pointer; }
.product-dialog-layout { display: grid; grid-template-columns: 1fr 1fr; }
.product-dialog-visual { min-width: 0; display: flex; flex-direction: column; }
.product-dialog:not(.has-gallery) .product-dialog-image { flex: 1; }
.product-dialog-image { display: grid; place-items: center; padding: 15px; background: var(--piece-panel); min-height: 400px; }
.product-dialog-image img { width: 100%; height: auto; object-fit: contain; }
.product-dialog-copy { padding: 66px 32px 30px; }
.product-dialog.has-gallery { max-width: 1080px; }
.has-gallery .product-dialog-layout { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); align-items: start; }
.has-gallery .product-dialog-image.render-frame { min-height: 0; max-height: none; padding: 0 0 var(--render-banner-height); }
.has-gallery .product-dialog-image > img { display: block; width: 100%; max-height: none; height: auto; aspect-ratio: 1; }
.product-gallery-navigation { position: absolute; inset: 0 0 var(--render-banner-height); display: flex; align-items: center; justify-content: space-between; padding: 12px; pointer-events: none; }
.product-gallery-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 253 247 / .88); color: #332d2a; cursor: pointer; pointer-events: auto; }
.product-gallery-arrow:hover { background: #fffdf7; }
.product-gallery-arrow:focus-visible { outline: 2px solid var(--store-label); outline-offset: 3px; }
.product-gallery-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-gallery { padding: 20px; }
.product-gallery-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 12px; font-weight: 500; }
.product-gallery-heading [data-gallery-count] { color: var(--commerce-muted); font-variant-numeric: tabular-nums; }
.product-gallery-thumbs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.product-gallery-thumb { display: block; min-width: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; opacity: .75; }
.product-gallery-thumb:hover, .product-gallery-thumb[aria-pressed="true"] { opacity: 1; }
.product-gallery-thumb:focus-visible { outline: 2px solid var(--store-label); outline-offset: 3px; }
.product-gallery-thumbnail { display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--piece-panel); }
.product-gallery-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-gallery-caption { min-height: 3.4em; margin: 15px 0 0; color: var(--commerce-muted); font-size: 12px; line-height: 1.7; }
.has-gallery .product-dialog-image.is-scene { background: transparent; }
.product-dialog-copy h2 { margin: 0 0 12px; font-size: 34px; font-weight: 500; letter-spacing: -.05em; }
.product-dialog-copy > p:not(.store-eyebrow):not(.shop-product-price) { margin: 18px 0; color: var(--commerce-muted); font-size: 13px; line-height: 1.8; }
.product-facts { display: grid; gap: 13px; margin: 24px 0; font-size: 12px; }
.product-facts > div { display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.product-facts dt { color: var(--commerce-muted); }
.product-facts dd { margin: 0; }
.shop-dialog-purchase { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 6px; }
.shop-dialog-purchase .commerce-btn { min-height: 46px; cursor: pointer; }
.shop-dialog-status:empty { display: none; }
.shop-option-selector { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.shop-option-selector legend { display: block; width: 100%; padding: 0; margin-bottom: 12px; font-size: 12px; font-weight: 500; }
.shop-option-selector legend span { margin-left: 10px; color: var(--commerce-muted); font-weight: 400; }
.shop-shape-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.shop-option-choice { position: relative; display: grid; min-width: 0; border: 1px solid var(--commerce-line-strong); border-radius: 9px; cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.shop-option-choice:hover { background: var(--commerce-panel-strong); border-color: var(--commerce-ink); }
.shop-option-choice:has(input:checked) { background: var(--commerce-panel-strong); border-color: var(--store-label); box-shadow: inset 0 0 0 1px var(--store-label); }
.shop-option-choice:has(input:focus-visible) { outline: 2px solid var(--store-label); outline-offset: 4px; }
.shop-option-choice input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shop-shape-choice { padding: 5px 3px 9px; gap: 4px; }
.shop-shape-thumbnail { display: block; height: clamp(44px, 5.8vw, 76px); overflow: hidden; }
.shop-shape-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shop-shape-name { text-align: center; font-size: 11px; line-height: 1.4; }
.shop-color-options { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 3px; }
.shop-color-choice { width: 58px; height: 58px; padding: 5px; }
.shop-color-swatch { display: block; width: 100%; aspect-ratio: 1; border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.shop-color-selected { position: absolute; right: -4px; bottom: -4px; display: none; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--store-label); color: var(--commerce-bg); box-shadow: 0 0 0 2px var(--commerce-bg); font-size: 11px; font-weight: 700; }
.shop-color-choice:has(input:checked) .shop-color-selected { display: grid; }
.shop-planter-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.shop-planter-type { gap: 5px; padding: 12px; font-size: 12px; }
.shop-planter-type small { color: var(--commerce-muted); font-size: 10px; line-height: 1.5; }
.shop-planter-addon { margin-top: 18px; padding: 13px; border: 1px solid var(--commerce-line-strong); border-radius: 10px; }
.shop-planter-addon:has([data-add-spill-tray]:checked) { border-color: var(--store-label); background: var(--commerce-panel-strong); }
.shop-addon-choice { display: grid; grid-template-columns: 18px 56px minmax(0, 1fr); align-items: center; gap: 10px; cursor: pointer; }
.shop-addon-choice > input { width: 18px; height: 18px; margin: 0; accent-color: var(--commerce-accent); }
.shop-addon-choice > input:focus-visible { outline: 2px solid var(--store-label); outline-offset: 4px; }
.shop-addon-choice > img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: var(--piece-panel); }
.shop-addon-choice strong { display: block; font-size: 12px; font-weight: 500; line-height: 1.5; }
.shop-addon-choice small { display: block; margin-top: 4px; color: var(--commerce-muted); font-size: 10px; line-height: 1.5; }
.shop-addon-note { margin: 9px 0 0; color: var(--commerce-muted); font-size: 10px; line-height: 1.7; }
.shop-tray-color { margin-top: 12px; }
.shop-tray-color legend { margin-bottom: 8px; font-size: 10px; }
.shop-tray-color .shop-color-choice { width: 36px; height: 36px; padding: 3px; }
/* Cards keep quick choices compact; the dialog retains the visual selectors. */
.shop-card-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 16px; }
.shop-card-options > :only-child { grid-column: 1 / -1; }
.shop-card-options .shop-option-selector { margin: 0; }
.shop-card-options legend { margin-bottom: 6px; font-size: 11px; }
.shop-card-options legend span { margin-left: 6px; font-size: 10px; }
.shop-card-options .shop-color-options { display: flex; flex-wrap: wrap; max-width: none; gap: 4px; padding: 0; }
.shop-card-options .shop-color-choice { width: 40px; height: 44px; padding: 6px 4px; display: grid; place-items: center; }
.shop-card-options .shop-color-swatch { width: 30px; }
.shop-card-options .shop-color-selected { width: 14px; height: 14px; right: -2px; bottom: -2px; font-size: 9px; }
.shop-compact-select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--commerce-line-strong); border-radius: 8px; background: var(--commerce-bg-soft); color: var(--commerce-ink); font: inherit; font-size: 12px; cursor: pointer; }
.shop-card-addon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 10px; padding: 0; border: 0; }
.shop-card-addon:has([data-add-spill-tray]:checked) { background: transparent; }
.shop-compact-addon { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; cursor: pointer; }
.shop-compact-addon input { width: 17px; height: 17px; margin: 0; accent-color: var(--commerce-accent); }
.shop-compact-addon small { margin-left: 5px; color: var(--commerce-muted); font-size: 10px; }
.shop-card-addon .shop-tray-color { margin: 0; }
.shop-card-addon legend { margin-bottom: 4px; }
.store-piece .shop-quantity button { width: 32px; }
.store-piece .shop-quantity input { width: 30px; }
.cart-line-finish { display: flex; align-items: center; gap: 8px; }
.cart-line-finish .shop-color-swatch { flex: 0 0 18px; width: 18px; border-radius: 2px; }
.product-dialog .shop-shape-options { gap: 5px; }
.product-dialog .shop-shape-name { font-size: 10px; }
.product-dialog .shop-shape-thumbnail { height: 45px; }
.cart-toast { position: fixed; z-index: 60; right: 24px; bottom: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; max-width: min(530px, calc(100vw - 48px)); padding: 18px 54px 18px 22px; border: 1px solid var(--commerce-line-strong); border-radius: 14px; background: var(--commerce-bg-soft); box-shadow: var(--commerce-shadow); font-size: 13px; line-height: 1.6; }
.cart-toast a { color: var(--store-label); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.cart-toast button { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--commerce-muted); font-size: 23px; cursor: pointer; }

@media (max-width: 1100px) {
  .shop-buy-row { gap: 8px 16px; }
  .shop-cart-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; }
  .cart-line { grid-template-columns: 88px minmax(0, 1fr); gap: 18px; }
  .cart-line-end { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 800px) {
  .shop-cart-layout, .shop-checkout-layout { grid-template-columns: 1fr; gap: 36px; }
  .shop-summary { position: static; }
  .shop-page .shop-main { padding-bottom: 55px; }
  .shop-page-heading { margin: 25px 0 30px; }
  .checkout-summary .cart-line { grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; }
  .checkout-summary .cart-line-end { grid-column: auto; }
  .product-dialog-layout { grid-template-columns: 1fr; }
  .has-gallery .product-dialog-layout { grid-template-columns: 1fr; }
  .product-gallery { padding: 16px; }
  .product-gallery-thumbs { display: flex; overflow-x: auto; gap: 9px; padding: 4px 3px 9px; scroll-padding: 3px; }
  .product-gallery-thumb { flex: 0 0 76px; }
  .product-gallery-thumbs:not(:has(> :nth-child(5))) .product-gallery-thumb { flex-shrink: 1; }
  .has-gallery .product-dialog-copy { padding-top: 12px; }
  .product-dialog-image { min-height: 0; max-height: 330px; }
  .product-dialog-image img { max-height: 300px; width: auto; max-width: 100%; }
  .product-dialog-copy { padding: 28px; }
}
@media (max-width: 420px) {
  .shop-summary { padding: 22px; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .cart-line-copy h2 { font-size: 18px; }
  .checkout-steps { gap: 18px; }
  .checkout-summary .cart-line { grid-template-columns: 56px minmax(0, 1fr); }
  .checkout-summary .cart-line-end { grid-column: 2; }
  .product-dialog { width: calc(100% - 24px); }
  .product-dialog-copy { padding: 25px; }
  .cart-toast { right: 14px; bottom: 14px; max-width: calc(100vw - 28px); }
}
