/* Product detail only. The list keeps its existing layout and tokens. */
.product-head { color:#1a1a1a; overflow-wrap:normal; word-break:normal }
.gallery-heading h1 { font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif; font-size:26px; line-height:1.5; margin:5px 0 21px }
.gallery-maker { color:#6e6e6e; font-size:15px; letter-spacing:.1em; margin:0 }
.gallery-hero { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:28px; align-items:start }
.gallery-left,.gallery-right { min-width:0 }
.gallery-left { display:flex; flex-direction:column }
.gallery-slides { background:#fff; border:1px solid #e3ddd0; border-radius:6px; overflow:hidden }
.gallery-slide { display:none; margin:0 }
.gallery-slide img { width:100%; height:auto; display:block }
.gallery-slide figcaption { padding:12px 16px; border-top:1px solid #e3ddd0; font-size:15px; color:#6e6e6e }
.gallery-thumbs { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; margin-top:12px }
.gallery-thumbs label { margin:0; border:1px solid #e3ddd0; border-radius:6px; padding:5px; background:#fff }
.gallery-thumbs img { display:block; width:100%; aspect-ratio:1.15; object-fit:cover }
.gallery-credit,.gallery-help { font-size:15px; color:#6e6e6e; margin:8px 0 0 }
.gallery-help { margin:16px 0 20px }
.gallery-price .set-price { background:#fff; border:1px solid #e3ddd0; border-top:3px solid #b8a06a; border-radius:6px; padding:17px 20px }
.gallery-price .set-amount { font-size:36px; line-height:1.4 }
.gallery-price .set-spec,.gallery-price .set-contents,.gallery-price .set-from { font-size:15px }
.gallery-price .set-contents { margin-top:13px; padding-top:12px; border-top:1px solid #e3ddd0 }
section.gallery-colors { border:0; padding:0; margin-top:18px }
.gallery-colors h2 { font:700 15px/1.5 sans-serif; margin:0 0 12px }
.gallery-colors h2 small { color:#6e6e6e; font-weight:400; margin-left:10px }
.gallery-swatches { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 6px }
.gallery-swatches label { position:relative; display:flex; align-items:center; flex-direction:column; gap:6px; margin:0; padding:8px 2px; border-radius:6px; border:1px solid transparent; text-align:center; font-size:15px; line-height:1.5 }
.gallery-swatches img { width:64px; height:64px; object-fit:cover; object-position:50% 40%; border-radius:50%; border:1px solid #e3ddd0 }
.gallery-swatches label::after { position:absolute; top:4px; right:4px; width:20px; height:20px; font-size:14px; font-weight:700; line-height:20px; border-radius:3px; background:#1a1a1a; color:#fff }
.gallery-word { display:inline-block; white-space:nowrap }
.gallery-feature { display:flex; gap:18px; align-items:center; padding-top:18px; border-top:1px solid #e3ddd0 }
.gallery-feature img { width:92px; height:auto; flex-shrink:0 }
.gallery-feature p { margin:0; font-size:15px }
.gallery-feature small { display:block; color:#6e6e6e; margin-top:4px }
.product-head input.gallery-selector { position:absolute; width:1px; height:1px; padding:0; opacity:0; overflow:hidden }
.gallery-selector:focus-visible ~ .gallery-hero label { outline:2px solid #b8a06a; outline-offset:3px }
.gallery-hero label { cursor:pointer }
/* Keep item names whole inside the existing horizontally scrollable catalog. */
.product-head ~ section table.cat tbody th[scope=row] { white-space:nowrap; max-width:none; width:auto }
@media(max-width:700px) {
    .gallery-hero { display:flex; flex-direction:column; gap:12px }
    .gallery-left,.gallery-right { display:contents }
    .gallery-heading { order:1 }
    .gallery-slides { order:2; width:100% }
    .gallery-thumbs { order:3; width:100%; gap:5px; margin:0 }
    .gallery-credit { order:4; margin:0 }
    .gallery-price { order:5; width:100% }
    .gallery-colors { order:6; width:100% }
    .gallery-help { order:7; margin:0 }
    .gallery-feature { order:8; width:100% }
    .gallery-heading h1 { font-size:24px; margin-bottom:4px }
    .gallery-price .set-price { padding:15px 17px }
    .gallery-price .set-amount { font-size:32px }
    .gallery-swatches { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px }
    .gallery-swatches img { width:60px; height:60px }
    .gallery-colors h2 small { display:block; margin-left:0 }
}

#gallery-color-0:checked ~ .gallery-hero .gallery-slide[data-color="0"] { display:block }
#gallery-color-0:checked ~ .gallery-hero label[for="gallery-color-0"] { border-color:#b8a06a; background:#f0ede7; box-shadow:inset 0 0 0 1px #b8a06a }
#gallery-color-0:checked ~ .gallery-hero .gallery-swatches label[for="gallery-color-0"]::after { content:"✓" }

#gallery-color-1:checked ~ .gallery-hero .gallery-slide[data-color="1"] { display:block }
#gallery-color-1:checked ~ .gallery-hero label[for="gallery-color-1"] { border-color:#b8a06a; background:#f0ede7; box-shadow:inset 0 0 0 1px #b8a06a }
#gallery-color-1:checked ~ .gallery-hero .gallery-swatches label[for="gallery-color-1"]::after { content:"✓" }

#gallery-color-2:checked ~ .gallery-hero .gallery-slide[data-color="2"] { display:block }
#gallery-color-2:checked ~ .gallery-hero label[for="gallery-color-2"] { border-color:#b8a06a; background:#f0ede7; box-shadow:inset 0 0 0 1px #b8a06a }
#gallery-color-2:checked ~ .gallery-hero .gallery-swatches label[for="gallery-color-2"]::after { content:"✓" }

#gallery-color-3:checked ~ .gallery-hero .gallery-slide[data-color="3"] { display:block }
#gallery-color-3:checked ~ .gallery-hero label[for="gallery-color-3"] { border-color:#b8a06a; background:#f0ede7; box-shadow:inset 0 0 0 1px #b8a06a }
#gallery-color-3:checked ~ .gallery-hero .gallery-swatches label[for="gallery-color-3"]::after { content:"✓" }

#gallery-color-4:checked ~ .gallery-hero .gallery-slide[data-color="4"] { display:block }
#gallery-color-4:checked ~ .gallery-hero label[for="gallery-color-4"] { border-color:#b8a06a; background:#f0ede7; box-shadow:inset 0 0 0 1px #b8a06a }
#gallery-color-4:checked ~ .gallery-hero .gallery-swatches label[for="gallery-color-4"]::after { content:"✓" }

#gallery-color-5:checked ~ .gallery-hero .gallery-slide[data-color="5"] { display:block }
#gallery-color-5:checked ~ .gallery-hero label[for="gallery-color-5"] { border-color:#b8a06a; background:#f0ede7; box-shadow:inset 0 0 0 1px #b8a06a }
#gallery-color-5:checked ~ .gallery-hero .gallery-swatches label[for="gallery-color-5"]::after { content:"✓" }
main:has(> .product-head) { max-width:1200px; padding:24px 32px 56px }
@media(max-width:700px) { main:has(> .product-head) { padding:18px 18px 36px } }
