.product-gallery { min-width: 0; }
.product-price-examples { margin: 18px 0; padding: 14px 16px; border: 1px solid #dce5de; border-radius: 12px; background: #f3f8f3; }
.product-price-examples summary { cursor: pointer; font-size: .95rem; }
.product-price-examples summary span { display: block; font-size: .78rem; color: #526454; margin-top: 4px; }
.product-price-examples p { font-size: .87rem; margin: 14px 0 0; }
.product-primary-actions { margin: 18px 0; }
.product-primary-actions .button { min-height: 48px; }
.product-colors-toggle { min-height: 46px; margin-top: 10px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: .88rem; cursor: pointer; }
.product-colors-toggle[hidden] { display: none; }
.product-color-grid.is-collapsed .product-color-swatch:nth-child(n+9):not(.is-picked) { display: none; }
.product-mobile-action { display: none; }
@media (max-width: 800px) {
    body { padding-bottom: 88px; }
    .product-mobile-action { position: fixed; z-index: 100; bottom: 0; inset-inline: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -4px 20px #2525250a; }
    .product-mobile-action > span { font-weight: 700; font-size: .86rem; min-width: 0; }
    .product-mobile-action small { display: block; font-weight: 400; font-size: .7rem; }
    .product-mobile-action .button { flex-shrink: 0; font-size: .88rem; min-height: 48px; }
    .product-primary-actions > a { flex: 1 1 auto; }
}
.product-visual { position: relative; padding: 0; overflow: hidden; background: var(--product-image-bg, #f2eeea); transition: background-color .2s ease; }
.product-gallery.is-color-preview .product-visual { background: #eff1ef; }
.product-gallery-main {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 478px;
    padding: 0;
    cursor: zoom-in;
    background: transparent;
    border: 0;
    place-items: center;
}
.product-gallery-main img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 660px;
    object-fit: contain;
}
.product-gallery-arrow {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(0,0,0,.1);
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
}
.product-gallery-arrow.is-previous { left: 14px; }
.product-gallery-arrow.is-next { right: 14px; }
.product-gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 2px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}
.product-gallery-thumbnail {
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    padding: 4px;
    cursor: pointer;
    background: var(--product-thumb-bg, #f2eeea);
    border: 2px solid transparent;
    border-radius: 10px;
    scroll-snap-align: start;
    touch-action: manipulation;
}
.product-gallery-thumbnail.is-active { border-color: var(--sand); }
.product-gallery-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.product-color-preview-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 7px 11px;
    color: #fff;
    background: rgba(31,31,31,.88);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
}
.product-colors { padding: 18px 0; margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-details .product-colors h2 { margin: 0 0 4px; font-size: 1.08rem; letter-spacing: 0; }
.product-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 8px;
    max-height: 248px;
    margin-top: 12px;
    padding: 2px;
    overflow: auto;
}
.product-color-swatch {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    gap: 7px;
    padding: 6px;
    color: var(--ink);
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    text-align: left;
    touch-action: manipulation;
}
.product-color-swatch:hover,
.product-color-swatch:focus-visible,
.product-color-swatch.is-active { border-color: var(--sand); box-shadow: 0 0 0 2px rgba(188,162,123,.22); }
.product-color-swatch.is-active { background: #faf6ef; }
.product-color-swatch > span {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    background: var(--swatch-background, var(--swatch-color));
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 50%;
}
.product-color-swatch small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-lightbox { position: fixed; z-index: 9999; inset: 0; display: grid; padding: 24px; background: rgba(14,14,14,.88); place-items: center; }
.product-lightbox-panel { position: relative; display: grid; width: min(1040px,100%); height: min(850px,88vh); place-items: center; }
.product-lightbox-image { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-lightbox-close,
.product-lightbox-nav { position: absolute; color: #fff; cursor: pointer; background: rgba(31,31,31,.78); border: 1px solid rgba(255,255,255,.45); }
.product-lightbox-close { top: 0; right: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; }
.product-lightbox-nav { top: 50%; width: 50px; height: 58px; border-radius: 10px; font-size: 2.2rem; transform: translateY(-50%); }
.product-lightbox-nav.is-previous { left: 0; }
.product-lightbox-nav.is-next { right: 0; }
.product-lightbox-open { overflow: hidden; }

@media (max-width: 800px) {
    .product-gallery-main { min-height: 310px; }
    .product-gallery-main img { max-height: 400px; }
    .product-gallery-thumbnails { margin-inline: -2px; padding-bottom: 6px; }
    .product-gallery-thumbnail { flex-basis: 68px; width: 68px; height: 68px; }
    .product-gallery-arrow { width: 42px; height: 42px; }
    .product-color-grid { grid-template-columns: repeat(2, minmax(0,1fr)); max-height: none; overflow: visible; }
    .product-color-swatch { min-height: 50px; padding: 8px; }
    .product-lightbox { padding: 12px; }
    .product-lightbox-nav { width: 42px; }
}

@media (max-width: 430px) {
    .product-gallery-main { min-height: 270px; }
    .product-gallery-main img { max-height: 345px; }
    .product-color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-color-swatch > span { flex-basis: 32px; width: 32px; height: 32px; }
}
