/* Hide details that randomly come from SPY systems */
.about-product-details {
    display: none !important;
}

.product__info-container variant-radios {
    flex-direction: column-reverse !important;
}

.variant-radios-template {
    flex-direction: column-reverse !important;
}

.size-options-and-guide {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.product-form__group-name {
    margin-bottom: 1rem !important;
}

variant-radios.borders {
    gap: 2rem !important;
}

.product-form__controls-group {
    gap: 1rem 0 !important;
}


/* Standard aspect ratio for all */
.product__media-list__container--great-five .product__media img {
    aspect-ratio: 2/3;
    object-fit: contain;

}

/* Color Swatches -- universal */
.product-form__controls-group label.color-swatch {
    border-radius: 100% !important;
    margin-right: 1rem !important;
    border: none !important;
    outline: 3px solid rgba(var(--color-accent), 0.1) !important;
    transition: outline-color var(--duration-default), opacity var(--duration-default) !important;
}

.product__info-wrapper .product-form__controls-group label.color-swatch::after {
    width: 2.5rem;
    height: 2.5rem;
    opacity: 0.85 !important;
    transition: opacity var(--duration-default) !important;
}


/* Override to make em smaller outside of product grid */
ul#product-grid label.color-swatch {
    padding: 10px !important;
    outline-offset: -2px !important;

    &::after {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
}

ul.product-recommendations__list .product-form__controls-group {
    margin-bottom: 4px !important;
}

ul.product-recommendations__list label.color-swatch {
    padding: 10px !important;
    outline-offset: -2px !important;

    &::after {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
}


/* Selected state */
.product-form__controls-group input:checked:not(.disabled)+label.color-swatch {
    outline-color: rgb(var(--color-accent)) !important;
    outline-width: 2px !important;
}

/* Hover state */
.product-form__controls-group input+label.color-swatch:hover {
    outline-color: rgb(var(--color-accent)) !important;
}

/* Disabled/sold-out color swatches: show not-allowed cursor */
.product-form__controls-group input.disabled+label.color-swatch,
.product-form__controls-group input[disabled]+label.color-swatch,
.product-form__controls-group label.color-swatch.disabled {
    cursor: not-allowed !important;
    /* Keep pointer events so cursor shows; input prevents selection */
    pointer-events: auto !important;
}

/* Main product page: enforce not-allowed cursor for disabled swatches */
.main-product-page .product-form__controls-group input.disabled+label.color-swatch,
.main-product-page .product-form__controls-group input[disabled]+label.color-swatch,
.main-product-page .product-form__controls-group label.color-swatch.disabled {
    cursor: not-allowed !important;
    pointer-events: auto !important;
}

.product-form__input input[type="radio"]+label {
    padding-right: 0.25rem !important;
}

.link-hover-line-outer span::after {
    display: none !important;
}

.product-form__input input[type="radio"]+label span {
    outline: 1px solid rgba(var(--color-accent), 0.2) !important;
    user-select: none !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.5rem !important;
    border-radius: 0.3rem;
    margin-right: 0 !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    min-width: fit-content !important;
    text-align: center !important;
}

.product-form__input input[type="radio"]:checked+label span {
    outline-color: var(--color-accent) !important;
    outline-width: 2px !important;
}

/* Disabled size options with diagonal line */
.product-form__input input[type="radio"].disabled+label,
.product-form__input label.disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
}

.product-form__input input[type="radio"].disabled+label span::before,
.product-form__input label.disabled span::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(var(--color-accent), 0.2) !important;
    clip-path: polygon(96% 0, 100% 0, 4% 100%, 0% 100%) !important;
    z-index: 1 !important;
}

/* Hide the "VARIANT UNAVAILABLE" text for disabled options */
.product-form__input input[type="radio"].disabled+label .visually-hidden {
    display: none !important;
}

/* Responsive breakpoints for size options */
@media screen and (max-width: 1200px) {
    .product-form__input input[type="radio"]+label span {
        padding: 0.875rem 2rem !important;
        font-size: 1.4rem !important;
    }
}

@media screen and (max-width: 768px) {
    .size-options-and-guide {
        flex-direction: column;
        gap: 1.5rem;
    }

    .product-form__input input[type="radio"]+label span {
        padding: 1rem 2rem !important;
        font-size: 1.4rem !important;
    }
}

@media screen and (max-width: 576px) {
    .product-form__input input[type="radio"]+label span {
        padding: 1rem 2rem !important;
        font-size: 1.25rem !important;
    }
}

.card-information {
    padding-bottom: 1rem;
}

.swiper-zoom-container>img,
.card--product .media,
.product__media-item {
    background-image: url("product_bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.product__media-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Center images on product page when max-height metafield is present */
.main-product-page[data-maxh="true"] .product__media-item,
.main-product-page[data-maxh="true"] .product__media-subitem {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-page[data-maxh="true"] .product__media-item img,
.main-product-page[data-maxh="true"] .product__media-subitem img {
    /* width: auto !important; */
    height: auto;
    max-width: 100%;
    /* Do NOT set a global max-height here; JS applies it only to non-model images */
    object-fit: contain;
}

.product__media-list__container--great-five {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
}

.product__media-list__container--great-five>.product__media-item:nth-child(3) {
    grid-column: 1 / 3 !important;
}

/* Move resize button from top-right to top-left corner */
.product__media-icon {
    left: 2rem !important;
}

/* Carousel on mobile */
@media screen and (max-width: 990px) {
    .product__media-list__container--great-five {
        display: none !important;
    }
}

@media screen and (max-width: 749px) {
    .wishlist-heart--productPage {
        top: 0.5rem !important;
        right: 0.5rem !important;
    }

    .wishlist-heart--productPage .wishlist-icon {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Perfect-fit cards: reuse product background behind PNG imagery */
.product .about__accordion-description-image .product-recommendations--single {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.product .about__accordion-description-image .product-recommendations--single>.about__wrapper__perfect-fit-title,
.product .about__accordion-description-image .product-recommendations--single>.perfect-fit-description-item {
    grid-column: 1 / -1;
}

.product .about__accordion-description-image .card-wrapper--perfect-fit {
    position: relative;
    background-image: url("product_bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-width: 100%;
    width: 100%;
    margin: 0;
}

/* Perfect-fit card images: enforce 2:3 ratio and contain within background */
.product .about__accordion-description-image .card-wrapper--perfect-fit img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    object-position: center;
    display: block;
}

@media screen and (max-width: 382px) {
    .wishlist-heart--productPage {
        top: 0.75rem !important;
        right: 0.75rem !important;
    }
}

/* Lipscore small review */
.product__info-wrapper {
    height: fit-content;
}

.product__info-wrapper .price_and_lipscore_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product__info-wrapper div#lipscore-rating {
    display: flex;
    align-items: center;
}

.product__info-wrapper div.lipscore-rating-slider-readonly {
    transform: scale(0.7) translateX(30px) translateY(-1.5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product__info-wrapper span.lipscore-rating-value {
    display: none !important;
}

.product__info-wrapper span.lipscore-compact-rating-votes {
    display: none !important;
}

.product__info-wrapper a.lipscore-rating-review-link {
    color: var(--color-foreground) !important;
    font-size: 16px !important;
    margin: 0 !important;
}

svg.lipscore-rating-star:not(.lipscore-rating-star-inactive) {
    fill: var(--indi-pink) !important;
}

/* Lipscore large review */
div#lipscore-review-list * {
    color: rgb(var(--color-foreground)) !important;
}

.lipscore-review-summary {
    padding-bottom: 1.5rem !important;
    border-bottom: 1px solid rgba(var(--color-foreground), 0.05) !important;
}

.lipscore-review-summary-distribution {
    border-right: 1px solid rgba(var(--color-foreground), 0.05) !important;
}

.lipscore-review-list-filters {
    margin-top: 3rem !important;
}

.h2 {
    font-size: 5rem !important;
}

div#lipscore-review-list {
    max-width: 1000px !important;
    margin: 5rem auto 0 auto !important;
}

.lipscore-review-box {
    border: none !important;
}

.lipscore-review-content,
.lipscore-review-content-wrapper,
.lipscore-review-footer {
    background: none !important;
}

img.lipscore-review-media-image {
    border-radius: 3px !important;
}

/* Hide view details on PDP only; show in quick view (adds .inside-quickview) */
.product-section:not(.inside-quickview) .about__view-details-link {
    display: none;
}

/* Product Info Pin Effect Styles */
@media (min-width: 990px) {
    div.product__outer.product__outer--desktop-order {
        flex-direction: row !important;
    }

    .product__info-wrapper {
        transition: opacity 0.3s ease;
        will-change: transform;
    }

    .product__outer {
        position: relative;
    }
}

/* Pin effect spacer */
.product__outer {
    position: relative;
}

.pin-effect-spacer {
    height: 0px;
}

/* Pin effect state classes (JS toggles these) */
.is-pinned--fixed {
    position: fixed;
    right: var(--pin-right, 0px);
}

.is-pinned--absolute {
    position: absolute;
    right: 0;
}

/* Disable pin effect on mobile and tablet (legacy) */
@media (max-width: 989px) {
    .product__info-wrapper {
        position: relative !important;
        transform: none !important;
        will-change: auto !important;
    }
}


/* Mobile improvements  */
@media (max-width: 600px) {
    .product {
        padding: 0 !important;
    }

    .product__outer>*:not(.product__media-wrapper) {
        padding: 0 1rem !important;
    }

    product-recommendations-also-like {
        padding: 0 1rem !important;
    }

    .recently-viewed-section {
        padding: 0 1rem !important;
    }

    .product-recommendations__header--container .h2 {
        font-size: 3rem !important;
    }
}




@media (max-width: 600px) {
    .products-grid__heading.h2.recently-viewed-heading>p {
        font-size: 3rem !important;
    }
}

/* Reviews header text alignment */
.section-template--24845053100327__rich_text_8xzPtQ-padding h2.title--section.h2 {
    text-align: left !important;
}

.rich-text__blocks {
    margin: 0 !important;
    padding: 0 4rem !important;
}

@media (max-width: 600px) {
    h2.h2 {
        font-size: 3rem !important;
    }

    .rich-text__blocks {
        padding: 0 1rem !important;
    }
}


/* About accordian */


/* Have list in top of description */

.about__accordion-description {
    height: fit-content;
    padding-bottom: 1rem;
    background-color: rgb(var(--color-background));
}

.about__accordion-description p {
    text-align: left;
}

/* Hide support heading on product page */
.about__accordion-description h3 {
    display: none !important;
}