.gd-card,.gd-detail{color:var(--text,#eef4fa);font-size:14px;line-height:1.65;min-width:0}
.gd-goods{display:grid;gap:18px;margin-top:18px}.gd-card{border:1px solid var(--line,#344958);border-radius:16px;overflow:hidden;background:var(--surface,#131e26)}
.gd-card-art,.gd-hero{background:radial-gradient(ellipse at 50% 95%,#244c77 0,transparent 65%),#0a1522;display:flex;align-items:center;justify-content:center}
.gd-card-art{min-height:160px;padding:28px}.gd-card-art img{display:block;width:100%;max-width:390px;height:auto;image-rendering:pixelated}
.gd-card-copy{padding:20px;display:grid;gap:10px}.gd-card-copy small,.gd-heading>small{letter-spacing:.16em;font-size:10px;color:#86b9ed;font-weight:700}
.gd-card h3,.gd-heading h3{font-size:22px;margin:0;line-height:1.4;word-break:keep-all}.gd-card p,.gd-heading p{margin:0;color:var(--muted,#a4b6c7)}
.gd-card-copy>strong{font-size:23px}.gd-card-copy>span{font-size:12px;color:var(--muted,#a4b6c7)}
.garage-shop .gd-card button,.garage-shop .gd-primary{width:100%;background:#85b8f2;border-color:#85b8f2;color:#0c1928;font-weight:750;min-height:48px}
.gd-detail{padding-top:14px}.garage-shop .gd-back{padding:4px 0;border:0;text-align:left;color:var(--muted,#a4b6c7);margin-bottom:12px}
.gd-hero{padding:24px 20px;min-height:210px;border-radius:14px;flex-direction:column;gap:28px;border:1px solid #2c4662}
.gd-hero>span{font-size:10px;letter-spacing:.22em;color:#a2c7ef}.gd-hero img{width:100%;max-width:430px;height:auto;image-rendering:pixelated}.gd-hero>small{font-size:11px;color:#9db0c8}
.gd-heading{padding:24px 0 20px}.gd-heading h3{margin:6px 0 8px}.gd-story{border-top:1px solid var(--line,#344958);padding:20px 0 12px;word-break:keep-all;overflow-wrap:anywhere}
.gd-story h4{font-size:19px;margin:0 0 14px}.gd-story p{margin:0 0 14px;color:var(--muted,#a4b6c7)}
.gd-options{border:0;margin:8px 0 22px;padding:0;display:grid;gap:8px;min-width:0}.gd-options legend{font-weight:700;margin-bottom:10px}
.gd-options label{display:flex;align-items:center;gap:10px;border:1px solid var(--line,#344958);border-radius:12px;padding:14px;cursor:pointer;min-height:50px;box-sizing:border-box}
.gd-options label:has(input:checked){border-color:#80b6f4;background:#267cff18}.gd-options input{width:18px;height:18px;flex:0 0 18px;accent-color:#83b9f5;margin:0}.gd-options strong{margin-left:auto;font-size:15px;white-space:nowrap}.gd-options span{white-space:nowrap}
.gd-quantity,.gd-total{display:flex;justify-content:space-between;align-items:center;gap:12px}.gd-quantity>label{font-weight:700}.gd-quantity>div{display:flex;align-items:center;gap:4px}
.gd-quantity input{width:62px;min-width:0;height:44px;text-align:center;font:inherit;background:var(--surface,#131e26);color:inherit;border:1px solid var(--line,#344958);border-radius:8px;padding:4px;box-sizing:border-box}
.garage-shop .gd-quantity button{width:44px;height:44px;min-height:44px;padding:0;font-size:20px}.garage-shop .gd-quantity button:disabled{opacity:.35}
.gd-error{font-size:12px;color:#f6a6a0;min-height:0;margin:8px 0}.gd-error:empty{display:none}.gd-total{margin:20px 0 14px;padding-top:18px;border-top:1px solid var(--line,#344958)}.gd-total strong{font-size:27px;letter-spacing:-.03em}
.gd-delivery{margin:0 0 18px;font-size:12px}.gd-delivery>div,.gd-review dl>div{display:flex;justify-content:space-between;gap:16px;margin:6px 0}.gd-delivery dt{color:var(--muted,#a4b6c7);flex-shrink:0}.gd-delivery dd,.gd-review dd{margin:0;text-align:right;word-break:keep-all}
.gd-preview-note{font-size:11px;line-height:1.7;color:var(--muted,#a4b6c7);text-align:center;margin:12px 0}.garage-shop .gd-primary:disabled{opacity:.4;cursor:not-allowed}
.gd-review{margin-top:22px;padding:18px;border:1px solid #659ed2;border-radius:14px;background:#267cff0b}.gd-review h4{font-size:19px;margin:0 0 12px}.gd-review p{font-size:13px}.gd-review button{width:100%}
.gd-detail :focus-visible{outline:3px solid #80b6f4;outline-offset:3px}
@media(max-width:400px){.gd-card-copy{padding:16px}.gd-card-art{min-height:130px;padding:24px}.gd-heading h3,.gd-card h3{font-size:20px}.gd-options label{padding:12px;gap:8px}.gd-hero{min-height:170px}.gd-story h4{font-size:18px}}

.gd-region{display:grid;gap:8px;font-size:13px;margin:16px 0;font-weight:650}.gd-region input{width:100%;min-width:0;min-height:46px;border:1px solid var(--line,#344958);border-radius:10px;padding:10px;background:var(--surface,#131e26);color:inherit;font:inherit;font-size:16px;box-sizing:border-box}.gd-address-status{font-size:12px;line-height:1.6;color:var(--muted,#a4b6c7);margin:-6px 0 14px}.gd-grand{margin-top:12px}.gd-grand strong{font-size:25px}

.gd-shipping-note{font-size:13px;line-height:1.7;color:var(--muted,#a4b6c7);margin:16px 0}.gd-shipping-note small{font-size:11px}.gd-recipient-summary{white-space:pre-line;overflow-wrap:anywhere}.gd-detail [hidden]{display:none!important}

.gd-address-search{width:100%;min-height:44px;margin-top:-4px}.gd-address-help{font-size:12px;line-height:1.6;color:var(--muted,#a4b6c7)}.gd-detail .address-finder{margin:12px 0;padding:10px;border:1px solid var(--line,#344958);border-radius:12px;scroll-margin-top:24px;min-width:0}.gd-detail .address-finder-host{height:500px;width:100%;min-width:0;background:#fff}.gd-detail .address-finder>p{font-size:13px;line-height:1.5}.gd-detail .address-finder iframe{max-width:100%}

/* Shared isolated goods cards: same hierarchy as the customer checkout. */
.garage-shop .gd-goods{gap:16px;align-items:start}
.garage-shop .gd-goods .goods-card{margin:0;padding:0;border:1px solid #2d3c48;border-radius:16px;background:#131e26;overflow:hidden;min-width:0;box-sizing:border-box}
.garage-shop .gd-goods .goods-art{box-sizing:border-box;position:relative;width:100%;max-width:none;height:200px;min-height:200px;margin:0;border-bottom:1px solid #2d3c48;background:radial-gradient(ellipse at 50% 90%,#26415a 0,transparent 75%),#101c26}
.garage-shop .gd-goods .gd-card-art{padding:32px 28px}
.garage-shop .gd-goods .goods-copy{display:flex;flex-direction:column;gap:10px;padding:20px}
.garage-shop .gd-goods .goods-title{font-size:20px;line-height:1.4;color:#f5f7fa;margin:0;font-weight:700}
.garage-shop .gd-goods .goods-description{font-size:13px;line-height:1.65;color:#98acba;margin:0;min-height:0}
.garage-shop .gd-goods .goods-price{display:block;font-size:24px;font-weight:700;line-height:1.4;color:#f5f7fa;margin:2px 0 0}
.garage-shop .gd-goods .goods-meta{font-size:12px;color:#98acba;line-height:1.6}
.garage-shop .gd-goods .goods-action,.garage-shop .gd-primary{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:50px;margin:6px 0 0;padding:12px 16px;border:1px solid #3976f7;border-radius:10px;background:#3976f7;color:#fff;font-size:14px;font-weight:700;box-sizing:border-box}
.garage-shop .gd-goods .goods-policy{margin:0;font-size:12px;line-height:1.6}.garage-shop .gd-goods .goods-policy a{display:block;padding-top:4px;color:#9bc4ff;text-decoration:none}
@media(min-width:700px){.garage-shop .gd-goods{grid-template-columns:repeat(2,minmax(0,1fr))}}

.garage-shop .gd-goods .goods-action,.garage-shop .gd-primary{justify-content:center;text-align:center}

/* Swipeable card photos; retain the existing logo, card height and purchase controls. */
.garage-shop .gd-goods .gd-gallery{display:block;padding:0;overflow:hidden}
.gd-gallery-track{display:flex;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
.gd-gallery-track::-webkit-scrollbar{display:none}
.gd-gallery-slide{flex:0 0 100%;min-width:0;height:100%;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center}
.gd-gallery-slide.gd-gallery-logo{padding:32px 28px}
.gd-card-art .gd-gallery-slide img{width:100%;height:100%;max-width:none;object-fit:contain;image-rendering:auto;user-select:none}
.gd-card-art .gd-gallery-logo img{height:auto;max-width:390px;image-rendering:pixelated}
.gd-gallery-dots{position:absolute;bottom:0;left:50%;transform:translateX(-50%);display:flex;align-items:center}
.garage-shop .goods-card .gd-gallery-dots button{display:flex;align-items:center;justify-content:center;width:36px;min-width:36px;height:36px;min-height:36px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit}
.gd-gallery-dots span{display:block;width:5px;height:5px;border-radius:50%;background:#76899c;box-shadow:0 0 0 2px #13202c90}
.gd-gallery-dots [aria-pressed="true"] span{background:#fff;width:7px;height:7px}
.gd-gallery :focus-visible{outline:2px solid #80b6f4;outline-offset:-3px}

.gk-gallery .gd-gallery-slide>.gk-card-art{width:100%;height:100%;max-width:none;margin:0}
.gk-gallery .gd-gallery-slide>img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:auto;user-select:none}

/* Product crops are display-only; the viewer always uses the complete original. */
.garage-shop .goods-card .goods-photo-open{display:block;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;cursor:zoom-in;overflow:hidden}
.garage-shop .goods-card .goods-photo-open img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;image-rendering:auto;user-select:none}
dialog.goods-photo-viewer{position:fixed;inset:0;margin:auto;padding:56px 12px 12px;width:min(1000px,calc(100vw - 24px));height:min(900px,calc(100dvh - 24px));max-width:none;max-height:none;box-sizing:border-box;border:1px solid #344958;border-radius:16px;background:#0b141c;color:#eef4fa;overflow:hidden}
dialog.goods-photo-viewer[open]{display:flex;align-items:center;justify-content:center}
dialog.goods-photo-viewer::backdrop{background:#03080de8}
dialog.goods-photo-viewer>img{display:block;width:100%;height:100%;object-fit:contain;min-width:0;min-height:0}
dialog.goods-photo-viewer .goods-photo-close{position:absolute;top:8px;right:12px;min-width:64px;height:40px;padding:0 16px;border:1px solid #526678;border-radius:10px;background:#182735;color:#fff;font:inherit;font-size:14px;cursor:pointer}
dialog.goods-photo-viewer :focus-visible{outline:2px solid #80b6f4;outline-offset:2px}

.gd-gallery-slide{position:relative}
.goods-photo-tools{position:absolute;top:8px;right:8px;display:flex;gap:4px}
.garage-shop .goods-card .goods-photo-tools button,.garage-shop .gd-size-gallery .goods-photo-tools button{width:auto;min-width:48px;min-height:32px;height:32px;margin:0;padding:4px 10px;border:1px solid #ffffff50;border-radius:8px;background:#0b1821d9;color:#fff;font-size:11px;line-height:1.4}
.goods-photo-tools [hidden],.goods-photo-hint[hidden]{display:none!important}
.goods-photo-hint{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);padding:5px 9px;border-radius:8px;background:#0b1821dd;color:#fff;font-size:11px;white-space:nowrap;pointer-events:none}
.gd-gallery.is-positioning .gd-gallery-track{overflow:hidden;scroll-snap-type:none}
.gd-gallery.is-positioning .gd-gallery-dots{visibility:hidden}
.garage-shop .goods-card .is-positioning .goods-photo-open{touch-action:none;cursor:move;outline:2px solid #80b6f4;outline-offset:-2px}

/* Compact motion preview in the isolated shop. */
.garage-shop .gs-preview{margin:10px 0;padding:8px}
.garage-shop .gs-preview canvas{width:min(210px,100%);max-width:210px;height:auto;margin:0 auto}
.garage-shop .gs-preview-controls{gap:8px;min-height:36px;font-size:13px}
.garage-shop .gs-preview-controls .garage-motion-toggle{min-height:36px;padding:6px 10px}
.garage-shop .gs-filters{margin:8px 0}

.garage-shop .gs-wallet button[data-charge]{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:76px;min-height:44px;padding:10px 14px;font-size:14px;font-weight:700;line-height:20px;letter-spacing:-.02em;white-space:nowrap}
.garage-shop .gs-wallet .gs-charge-plus{font-family:Arial,sans-serif;font-size:18px;font-weight:400;line-height:20px;letter-spacing:0}

.gd-options .gd-size-thumb{width:52px;height:42px;flex:0 0 52px;object-fit:cover;border-radius:6px}
.gd-size-preview{margin:0 0 22px;padding:0}
.gd-size-preview figcaption{font-size:13px;font-weight:700;margin-bottom:8px}
.gd-size-gallery{position:relative;height:220px;border:1px solid #344958;border-radius:12px;overflow:hidden;background:#101c26}
.garage-shop .gd-size-gallery .goods-photo-open{display:block;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;cursor:zoom-in}
.gd-size-gallery .goods-photo-open img{display:block;width:100%;height:100%;object-fit:cover;image-rendering:auto}
.gd-size-preview>small{display:block;font-size:11px;color:#98acba;margin-top:6px}
@media(max-width:360px){.gd-options .gd-size-thumb{width:40px;flex-basis:40px;height:36px}.gd-options label{gap:6px}.gd-options strong{font-size:13px}.gd-options span{font-size:13px}}

.garage-shop .gd-size-gallery.is-positioning .goods-photo-open{touch-action:none;cursor:move;outline:2px solid #80b6f4;outline-offset:-2px}
.gd-size-gallery .goods-photo-open img{user-select:none}

.garage-shop .gd-detail-hero{border:1px solid #2d3c48;border-radius:14px;overflow:hidden}
.garage-shop .gd-detail-hero .gd-gallery{position:relative;display:block;width:100%;height:200px;min-height:200px;padding:0;overflow:hidden;box-sizing:border-box}

.garage-shop .gk-gallery .gd-gallery-dots button{width:32px;min-width:32px}

.gk-gallery .keyring-photo-editor{position:absolute;top:4px;right:4px;z-index:5;display:flex;gap:3px;flex-wrap:wrap;justify-content:flex-end;max-width:100%}.gk-gallery .keyring-photo-editor button{font-size:11px;min-height:30px;padding:3px 6px}.gk-gallery.is-positioning .goods-photo-open{touch-action:none;cursor:grab}.gk-gallery .keyring-photo-editor [hidden]{display:none!important}

.gk-gallery .goods-photo-open{position:relative}.garage-shop .gk-gallery .gd-gallery-dots button{width:clamp(24px,8vw,32px);min-width:clamp(24px,8vw,32px)}

.gk-gallery .keyring-photo-editor a{display:inline-flex;align-items:center;min-height:36px;padding:4px 9px;border:1px solid #ffffff80;border-radius:8px;background:#0b1821e8;color:#fff;font-size:12px;text-decoration:none}
.goods-gallery-manage{position:absolute;top:4px;right:4px;z-index:6;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:3px;max-width:100%}.garage-shop .goods-gallery-manage button,.goods-gallery-manage a,.goods-gallery-add{display:inline-flex;align-items:center;width:auto;min-width:0;min-height:36px;margin:0;padding:4px 7px;border:1px solid #ffffff80;border-radius:7px;background:#0b1821e8;color:#fff;font-size:11px;text-decoration:none;cursor:pointer}.goods-gallery-add input{position:absolute;width:1px;height:1px;opacity:0}.goods-gallery-manage [role=status]{flex-basis:100%;background:#0b1821e8;color:white;font-size:12px}.gd-gallery.is-positioning .goods-photo-open{touch-action:none;cursor:grab}.gd-gallery-slide .goods-photo-open{position:relative}
