/* assets/css/product-ui.css — Colour dots, compact cards, Amazon-style PDP gallery */

.rs-color-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    margin-top: 0.3rem;
    align-items: center;
}
.rs-color-dot,
.rs-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    padding: 0;
    cursor: pointer;
    background: #888;
}
.rs-color-dot.is-light,
.rs-swatch.is-light {
    border-color: #CBD5E1;
}
.rs-color-dots a.rs-color-dot {
    display: inline-block;
    text-decoration: none;
}

.rs-pdp {
    display: grid;
    gap: 1rem;
}
.rs-gallery-stage {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: none;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    touch-action: pan-y;
}
.rs-gallery-main {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #F8FAFC;
    user-select: none;
    -webkit-user-drag: none;
}
.rs-gallery-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-weight: 650;
}
.rs-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0F2C59;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 44, 89, 0.12);
}
.rs-gallery-nav.is-prev { left: 0.5rem; }
.rs-gallery-nav.is-next { right: 0.5rem; }
.rs-gallery-thumbs {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}
.rs-thumb {
    width: 58px;
    height: 58px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #F8FAFC;
    cursor: pointer;
    flex-shrink: 0;
}
.rs-thumb.is-active,
.rs-thumb:hover {
    border-color: #F97316;
}
.rs-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rs-gallery-pips {
    display: none;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
}
.rs-gallery-pips button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #CBD5E1;
    cursor: pointer;
}
.rs-gallery-pips button.is-active {
    background: #F97316;
    width: 16px;
    border-radius: 99px;
}
.rs-option-block {
    margin-top: 0.85rem;
}
.rs-option-label {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0F2C59;
}
.rs-selected-color {
    font-weight: 600;
    color: #334155;
}
.rs-swatch-row,
.rs-size-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}
.rs-swatch {
    width: 28px;
    height: 28px;
}
.rs-size-chip {
    min-width: 44px;
    padding: 0.45rem 0.7rem;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #fff;
    color: #0F2C59;
    font-weight: 650;
    font-size: 0.85rem;
    cursor: pointer;
}
.rs-size-chip.is-active {
    border-color: #F97316;
    background: #FFF7ED;
    color: #9A3412;
}
.rs-size-chip.is-oos {
    opacity: 0.45;
    text-decoration: line-through;
}

@media (max-width: 767px) {
    .rs-gallery-stage {
        width: 100%;
        max-width: none;
        aspect-ratio: 1 / 1;
        max-height: none;
        border-radius: 10px;
    }
    .rs-gallery-thumbs {
        display: none;
    }
    .rs-gallery-pips {
        display: flex;
    }
    .rs-gallery-nav {
        display: none;
    }
}

@media (min-width: 768px) {
}
