/* The shop pack. Colors come from the theme's variables. */ .shop-grid { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } .shop-card a { display: grid; gap: 10px; color: var(--text); text-decoration: none; } .shop-card a:hover strong { color: var(--accent); } .shop-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--accent-soft); display: block; } .shop-price { color: var(--muted); } .product-main { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; margin-bottom: 28px; } @media (max-width: 760px) { .product-main { grid-template-columns: minmax(0, 1fr); } } .product-photos { display: grid; gap: 10px; } .product-photo-main { width: 100%; border-radius: var(--radius); display: block; } .product-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: calc(var(--radius) - 4px); display: block; } /* The photo picker: the first photo shows until another small one is picked. Browsers without :has() keep the first. Up to 40 photos. */ .photo-thumbs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); } .photo-pick { position: relative; cursor: pointer; border-radius: calc(var(--radius) - 2px); } .photo-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; } .photo-pick:hover .product-photo { opacity: .85; } .photo-pick:has(input:checked) { outline: 2px solid var(--accent); outline-offset: 2px; } .photo-pick:has(input:focus-visible) { outline: 2px dashed var(--accent); outline-offset: 4px; } .photo-slide:not(:first-child) { display: none; } .product-photos:has(.photo-pick:not(:first-child) input:checked) .photo-slide:first-child { display: none; } .product-photos:has(.photo-pick:nth-child(2) input:checked) .photo-slide:nth-child(2), .product-photos:has(.photo-pick:nth-child(3) input:checked) .photo-slide:nth-child(3), .product-photos:has(.photo-pick:nth-child(4) input:checked) .photo-slide:nth-child(4), .product-photos:has(.photo-pick:nth-child(5) input:checked) .photo-slide:nth-child(5), .product-photos:has(.photo-pick:nth-child(6) input:checked) .photo-slide:nth-child(6), .product-photos:has(.photo-pick:nth-child(7) input:checked) .photo-slide:nth-child(7), .product-photos:has(.photo-pick:nth-child(8) input:checked) .photo-slide:nth-child(8), .product-photos:has(.photo-pick:nth-child(9) input:checked) .photo-slide:nth-child(9), .product-photos:has(.photo-pick:nth-child(10) input:checked) .photo-slide:nth-child(10), .product-photos:has(.photo-pick:nth-child(11) input:checked) .photo-slide:nth-child(11), .product-photos:has(.photo-pick:nth-child(12) input:checked) .photo-slide:nth-child(12), .product-photos:has(.photo-pick:nth-child(13) input:checked) .photo-slide:nth-child(13), .product-photos:has(.photo-pick:nth-child(14) input:checked) .photo-slide:nth-child(14), .product-photos:has(.photo-pick:nth-child(15) input:checked) .photo-slide:nth-child(15), .product-photos:has(.photo-pick:nth-child(16) input:checked) .photo-slide:nth-child(16), .product-photos:has(.photo-pick:nth-child(17) input:checked) .photo-slide:nth-child(17), .product-photos:has(.photo-pick:nth-child(18) input:checked) .photo-slide:nth-child(18), .product-photos:has(.photo-pick:nth-child(19) input:checked) .photo-slide:nth-child(19), .product-photos:has(.photo-pick:nth-child(20) input:checked) .photo-slide:nth-child(20), .product-photos:has(.photo-pick:nth-child(21) input:checked) .photo-slide:nth-child(21), .product-photos:has(.photo-pick:nth-child(22) input:checked) .photo-slide:nth-child(22), .product-photos:has(.photo-pick:nth-child(23) input:checked) .photo-slide:nth-child(23), .product-photos:has(.photo-pick:nth-child(24) input:checked) .photo-slide:nth-child(24), .product-photos:has(.photo-pick:nth-child(25) input:checked) .photo-slide:nth-child(25), .product-photos:has(.photo-pick:nth-child(26) input:checked) .photo-slide:nth-child(26), .product-photos:has(.photo-pick:nth-child(27) input:checked) .photo-slide:nth-child(27), .product-photos:has(.photo-pick:nth-child(28) input:checked) .photo-slide:nth-child(28), .product-photos:has(.photo-pick:nth-child(29) input:checked) .photo-slide:nth-child(29), .product-photos:has(.photo-pick:nth-child(30) input:checked) .photo-slide:nth-child(30), .product-photos:has(.photo-pick:nth-child(31) input:checked) .photo-slide:nth-child(31), .product-photos:has(.photo-pick:nth-child(32) input:checked) .photo-slide:nth-child(32), .product-photos:has(.photo-pick:nth-child(33) input:checked) .photo-slide:nth-child(33), .product-photos:has(.photo-pick:nth-child(34) input:checked) .photo-slide:nth-child(34), .product-photos:has(.photo-pick:nth-child(35) input:checked) .photo-slide:nth-child(35), .product-photos:has(.photo-pick:nth-child(36) input:checked) .photo-slide:nth-child(36), .product-photos:has(.photo-pick:nth-child(37) input:checked) .photo-slide:nth-child(37), .product-photos:has(.photo-pick:nth-child(38) input:checked) .photo-slide:nth-child(38), .product-photos:has(.photo-pick:nth-child(39) input:checked) .photo-slide:nth-child(39), .product-photos:has(.photo-pick:nth-child(40) input:checked) .photo-slide:nth-child(40) { display: block; } .product-buy h1 { margin: 0 0 6px; } .product-price { font-size: 1.6rem; font-weight: 750; margin: 0 0 12px; } .product-summary { color: var(--muted); margin: 0 0 18px; } .product-actions { display: flex; flex-wrap: wrap; gap: 10px; } .product-secure { margin: 12px 0 0; color: var(--muted); font-size: .88rem; } .product-sold-out { display: inline-block; padding: 8px 14px; border-radius: var(--radius); background: var(--accent-soft); font-weight: 650; } .product-from { font-size: .95rem; font-weight: 600; color: var(--muted); } .product-form { display: grid; gap: 16px; } .variants { border: 0; padding: 0; margin: 0; } .variants legend { font-weight: 650; margin-bottom: 8px; } .variant-list { display: flex; flex-wrap: wrap; gap: 8px; } .variant { position: relative; } .variant input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; } .variant span { display: inline-flex; align-items: baseline; gap: 6px; min-width: 3rem; justify-content: center; padding: 9px 14px; border: 1px solid var(--line, currentColor); border-radius: var(--radius); } .variant small { color: var(--muted); font-size: .8rem; } .variant input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); } .variant input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; } .variant-sold span, .btn.variant-sold { opacity: .5; text-decoration: line-through; } .variant-only { margin: 0; color: var(--muted); } .variant-group { display: grid; gap: 8px; justify-items: start; } .variant-group span { font-weight: 650; } .variant-group select { font: inherit; color: var(--text); background: var(--bg, transparent); border: 1px solid var(--line, currentColor); border-radius: var(--radius); padding: 9px 36px 9px 14px; min-width: 12rem; } .variant-group select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .product [hidden] { display: none !important; } .product-buy-button { justify-self: start; } .product-buttons { display: flex; flex-wrap: wrap; gap: 10px; } .product-buttons [hidden] { display: none; }