/*
================================================

Space Vanta Theme 1.0

Module:
Product Collection / Variant Selector

Version:
Brand Visual 1.2

Purpose:
Lightweight Single-row Variant Selector

================================================
*/


.sv-product-collection__variant-selector {

    width: 100%;

    display: flex;
    flex-wrap: nowrap;
    align-items: center;

    gap: 6px;

    margin-top: 14px;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;

}


.sv-product-collection__variant-selector::-webkit-scrollbar {

    display: none;

}


.sv-product-collection__variant-button {

    position: relative;

    flex: 0 0 auto;

    min-width: 72px;
    min-height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 4px 8px 6px;

    border: 0;

    background: transparent;

    color: inherit;

    font: inherit;
    font-size: 11px;
    font-weight: 400;

    line-height: 1.3;

    text-align: center;
    white-space: nowrap;

    cursor: pointer;

    opacity: 0.54;

    transform: translateY(0);

    transition:
        opacity 160ms ease,
        transform 160ms ease,
        font-weight 160ms ease;

}


/*
================================================
Selected State

No black fill.
No pill.
No extra selector row.
The active SKU is signalled by weight, opacity,
a cool-silver rail and a short micro-motion.
================================================
*/

.sv-product-collection__variant-button[aria-selected="true"] {

    opacity: 1;

    font-weight: 500;

    color:
        rgba(52, 63, 73, 0.94);

}


.sv-product-collection__variant-button[aria-selected="true"]::after {

    content: "";

    position: absolute;

    left: 10%;
    right: 10%;
    bottom: 0;

    height: 1px;

    background:
        rgba(92, 108, 122, 0.68);

    transform-origin: center;

}


.sv-product-collection__variant-button[aria-selected="true"]::before {

    content: "";

    position: absolute;

    left: 50%;
    bottom: -2px;

    width: 3px;
    height: 3px;

    background:
        rgba(92, 108, 122, 0.72);

    transform:
        translateX(-50%) rotate(45deg);

    opacity: 0.9;

}


/*
================================================
Click Feedback
================================================
*/

.sv-product-collection__variant-button.sv-variant-is-selected {

    animation:
        sv-list-variant-select 360ms ease-out;

}


@keyframes sv-list-variant-select {

    0% {
        opacity: 0.56;
        transform: translateY(1px) scale(0.985);
    }

    45% {
        opacity: 1;
        transform: translateY(-1px) scale(1.025);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


.sv-product-collection__variant-button:not(:disabled):hover {

    opacity: 0.78;

}


.sv-product-collection__variant-button[aria-selected="true"]:hover {

    opacity: 1;

}


.sv-product-collection__variant-button:focus-visible {

    outline: 1px solid rgba(92, 108, 122, 0.42);
    outline-offset: 2px;

}


.sv-product-collection__variant-button:disabled {

    opacity: 0.24;

    cursor: not-allowed;

}


@media (max-width: 767px) {

    .sv-product-collection__variant-selector {

        gap: 4px;

        margin-top: 12px;

    }


    .sv-product-collection__variant-button {

        min-width: 62px;
        min-height: 28px;

        padding: 3px 7px 5px;

        font-size: 10px;

    }

}


@media (prefers-reduced-motion: reduce) {

    .sv-product-collection__variant-button {

        transition: opacity 120ms ease;

    }

    .sv-product-collection__variant-button.sv-variant-is-selected {

        animation: none;

    }

}