.main-section {
    background-color: #191919;
    color: #f5f5f5;
    min-height: calc(100vh - 60px);
    padding: 28px 0 36px;
}

.ecommerce-product-layout {
    align-items: flex-start;
    min-height: inherit;
}

#productContainer {
    min-width: 0;
    position: relative;
    width: 100%;
    z-index: 1;
}

#productPurchase {
    color: #f5f5f5;
    min-width: 0;
}

#mainImage {    
    height: 60vh;
    left: 0;
    position: fixed;
    top: 60px;
    width: 100%;
    background-color: #111;
    overflow: hidden;
    padding: 0;
    z-index: 0;
}

#mainImage img {
    display: block;
    height: 100% !important;
    object-fit: cover;
    position: relative;
    transition: transform 350ms ease;
    width: 100%;
    z-index: 1;
}

#mainImage::after {
    background: rgba(0, 0, 0, var(--main-image-overlay, 0));
    backdrop-filter: blur(var(--main-image-blur, 0px));
    -webkit-backdrop-filter: blur(var(--main-image-blur, 0px));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

#mainImageSpacer {
    display: block;
    height: 60vh;
}

#productOverlaySection {
    background: #fff;
    color: #000;
    min-width: 0;
    padding: 15px auto;
    position: relative;
    border-radius: 25px 25px 0 0;
    box-shadow: 0px 13px 50px 25px #fff;
    z-index: 2;
}

footer.product-image-overlay-footer {
    position: relative;
    z-index: 2;
}

#productSpecificationTablesDesktop,
#productSpecificationTablesMobile {
    color: #191919;
}

#productSpecificationTablesDesktop .product-specification-table-column,
#productSpecificationTablesMobile .product-specification-accordion-item {
    min-width: 0;
}

#productSpecificationTablesDesktop table,
#productSpecificationTablesMobile table {
    color: #191919;
    margin-bottom: 0;
}

#productSpecificationTablesDesktop tr,
#productSpecificationTablesMobile tr {
    height: 56px;
}
#productSpecificationTablesDesktop th,
#productSpecificationTablesMobile th {
    width: 50%;
}
.product-container {
    max-width: 1100px;
    margin: 0 auto;
}
.product-specifications {
    max-width: 1100px;
}
.product-specifications svg {
    width: 100%;
    max-height: 56px;
    fill: #000;
}

.product-gallery-carousel {
    aspect-ratio: 1;
    height: auto;
    margin: 0 auto;
    max-height: 605px;
    max-width: 605px;
    overflow: visible;
    touch-action: pan-y;
    width: 100%;
}

.product-gallery-frame {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 693px;
    padding: 0 44px;
    width: 100%;
}

.product-gallery-carousel .carousel-inner {
    overflow: hidden;
}

.product-gallery-carousel .carousel-inner,
.product-gallery-carousel .carousel-item {
    height: 100%;
}


.product-gallery-carousel .carousel-item img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    width: 100%;
}

.product-gallery-carousel .carousel-control-prev,
.product-gallery-carousel .carousel-control-next {
    background-color: #0000001e;
    border-radius: 0;
    bottom: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
    height: 44px;
    opacity: 0.9;
    top: 50%;
    transform: translateY(-50%);
    transition: filter 0.2s ease, opacity 0.2s ease;
    width: 44px;
}

.caption-top h6{
    letter-spacing: 2px !important;
}


.product-gallery-carousel .carousel-control-prev {
    clip-path: polygon(90% 1%, 90% 99%, 50% 50%);
    left: -55px;
}

.product-gallery-carousel .carousel-control-next {
    clip-path: polygon(10% 1%, 10% 99%, 50% 50%);
    right: -55px;
}

.product-gallery-carousel .carousel-control-prev:hover,
.product-gallery-carousel .carousel-control-next:hover,
.product-gallery-carousel .carousel-control-prev:focus-visible,
.product-gallery-carousel .carousel-control-next:focus-visible {
    opacity: 1;
    background-color: #00000077;
}

.product-gallery-carousel.is-dragging {
    cursor: grabbing;
}

.product-gallery-carousel:not(.is-dragging) {
    cursor: grab;
}

.purchase-heading {
    width: 100%;
}

.purchase-heading h1 {
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.05;
    margin: 0;
    text-transform: uppercase;
}

.purchase-heading .purchase-logo {
    object-fit: contain;
    width: 100%;
}

.purchase-model-year {
    color: #aaa;
    font-size: .75rem;
    font-weight: 300;
    letter-spacing: .12em;
    margin: 8px 0 0;
}

.purchase-price {
    margin: 20px 0;
}

.purchase-installment-summary {
    color: #555;
    display: block;
    font-size: .78rem;
    line-height: 1.35;
    margin-top: 4px;
}

.purchase-old-price {
    color: #888;
    text-decoration: line-through;
}

.purchase-current-price {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.purchase-variant .form-label {
    color: #eee;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.variant-swatch-ecommerce {
    background: var(--variant-color, #eee);
    border: 1px solid var(--variant-color, #eee);
    border-radius: 50%;
    cursor: pointer;
    height: 35px;
    margin: 0 5px;
    padding: 0;
    position: relative;
    width: 35px;
}

.variant-swatch-ecommerce.selected::before {
    border: 2px solid #000;
    border-radius: 50%;
    content: "";
    inset: -5px;
    position: absolute;
}

.variant-swatch-ecommerce:not(.selected):hover::before {
    border: 2px solid #999;
    border-radius: 50%;
    content: "";
    inset: -5px;
    position: absolute;
}

.variant-swatch-ecommerce[data-available="false"] {
    opacity: .45;
}

.purchase-add-button {
    align-items: center;
    background: #009a48;
    border: 0;
    color: #fff;
    display: flex;
    font-size: 1rem;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 46px;
    padding: 8px 6px;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
}
.purchase-installment-summary {
    font-size: 1rem !important;
    margin-top: 0 !important;
}

.purchase-add-button:hover:not(:disabled) {
    background: #ed1c24;
}

.purchase-add-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.purchase-buy-now-error {
    color: #b02a37;
    font-size: .9rem;
    margin: 8px auto 0;
    max-width: calc(75% - 1.5rem);
    text-align: center;
}

.purchase-buy-now-error[hidden] {
    display: none;
}

@media (min-width: 992px) {
    .main-section {
        --purchase-header-offset: 60px;
        min-height: 100vh;
        overflow-x: clip;
        padding: 0;
        isolation: isolate;
        position: relative;
    }

    .ecommerce-product-layout {
        min-height: 100vh;
    }

    #productContainer {
        min-height: calc(100vh - 60px);
        width: calc(100% - 370px);
        background: transparent;
        padding: 0;
        position: relative;
        z-index: 1;
    }

    #mainImage {
        height: calc(100vh - 60px);
        background-color: #111;
        left: 0;
        position: fixed;
        padding: 0;
        top: 60px;
        transform-origin: center center;
        transition: transform 400ms ease;
        width: calc(100% - 370px);
        z-index: 0;
    }

    #mainImageSpacer {
        display: block;
        height: calc(100vh - 60px);
    }

    #productOverlaySection {
        min-height: 100vh;
        z-index: 2;
    }

    #mainImage::before {
        content: "";
        inset: 0;
        pointer-events: none;
        position: absolute;
    }

    #mainImage::before {
        background-image: var(--main-image-source);
        background-position: center;
        background-size: cover;
        filter: blur(12px) brightness(.55);
        inset: -18px;
        z-index: 0;
    }

    #mainImage img {
        z-index: 1;
    }

    

    #mainImage.is-scrolled img {
        transform: scale(.9);
    }

    #mainImage::after {
        background: rgba(0, 0, 0, var(--main-image-overlay, 0));
        backdrop-filter: blur(var(--main-image-blur, 0px));
        -webkit-backdrop-filter: blur(var(--main-image-blur, 0px));
        z-index: 2;
    }

    #productPurchase {
        background-color: rgba(255, 255, 255, .8);
        background-image:
            linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)),
            var(--purchase-background-image);
        background-position: center;
        background-size: cover;
        backdrop-filter: blur(50px);
        color: #191919;
        flex: 0 0 370px;
        height: calc(100vh - var(--purchase-header-offset));
        left: auto;
        max-width: none;
        overflow-y: auto;
        padding: 20px;
        position: fixed;
        right: 0;
        top: var(--purchase-header-offset);
        width: 370px;
        z-index: 1050;
    }

    #productPurchase .purchase-heading {
        display: block;
    }

    #productPurchase .purchase-heading h1 {
        color: #191919;
        font-size: clamp(1.2rem, 1.8vw, 1.65rem);
        overflow-wrap: anywhere;
    }

    #productPurchase .purchase-model-year,
    #productPurchase .purchase-variant .form-label,
    #productPurchase .purchase-year-label {
        color: #4f4f4f;
    }

    #productPurchase .purchase-current-price {
        color: #191919;
        font-size: 2rem;
    }

    #productPurchase .purchase-old-price {
        color: #666;
    }

    #productPurchase .purchase-price {
        margin: 12px 0;
    }

    #productPurchase .purchase-sticky-controls {
        position: static;
    }

    .purchase-year-selector {
        margin-bottom: 12px;
    }

    .purchase-year-label {
        display: block;
        font-size: .8rem;
        letter-spacing: .04em;
        margin-bottom: 6px;
        text-transform: uppercase;
    }

    .purchase-year-options {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .purchase-year-option {
        background: rgba(255, 255, 255, .65);
        border: 1px solid #666;
        border-radius: 999px;
        color: #222;
        cursor: pointer;
        font-size: .85rem;
        min-width: 64px;
        padding: 5px 12px;
    }

    .purchase-year-option.selected {
        background: #191919;
        border-color: #191919;
        color: #fff;
    }

    #productPurchase .purchase-variant {
        margin-bottom: 12px !important;
    }
}

@media (min-width: 1920px) {
    #productPurchase {
        padding: clamp(28px, 1.5vw, 40px);
    }

    #productPurchase .purchase-heading h1 {
        font-size: clamp(1.8rem, 1.8vw, 2.5rem);
    }

    #productPurchase .purchase-model-year {
        font-size: 1rem;
    }

    #productPurchase .purchase-current-price {
        font-size: clamp(2.2rem, 2.4vw, 2.8rem);
    }

    #productPurchase .purchase-old-price {
        font-size: 1rem;
    }

    #productPurchase .purchase-year-label {
        font-size: .95rem;
    }

    #productPurchase .purchase-year-option {
        font-size: 1.05rem;
        min-width: 80px;
        padding: 8px 16px;
    }

    #productPurchase .purchase-variant .variant-swatch-ecommerce {
        height: 40px;
        width: 40px;
    }

    #productPurchase .purchase-add-button {
        font-size: 1.1rem;
        min-height: 58px;
    }
}

@media (max-width: 991.98px) {
    .main-section {
        padding-top: 0;
    }

    .ecommerce-product-layout {
        min-height: 0;
    }

    #productPurchase {
        order: 0;
    }

    .purchase-heading {
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .purchase-heading .purchase-logo {
        border-right: 0;
        flex: 0 1 auto;
        margin: 0 auto;
        max-height: 72px;
        padding-right: 0;
        width: min(70%, 280px);
    }

    .purchase-heading > div {
        align-items: center;
        text-align: center;
    }



    .purchase-heading h1 {
        font-size: clamp(1.2rem, 5.2vw, 1.65rem);
        line-height: 1;
        overflow-wrap: anywhere;
    }

    .purchase-model-year {
        font-size: .6rem;
        letter-spacing: .14em;
        margin: 0 0 5px;
    }

    .purchase-sticky-controls {
        background: #fff;
        backdrop-filter: blur(12px);
        border-radius: 12px 12px 0 0;
        border-top: 1px solid rgba(0, 0, 0, .18);
        bottom: 0;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, .35);
        color: #191919;
        left: 0;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        position: fixed;
        right: 0;
        z-index: 1050;
    }

    .purchase-sticky-controls .purchase-price {
        align-items: baseline;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 0 0 8px !important;
    }

    .purchase-sticky-controls .purchase-current-price {
        color: #191919;
        font-size: 1.6rem;
        order: -1;
    }

    .purchase-sticky-controls .purchase-old-price {
        font-size: .9rem;
    }

    .purchase-sticky-controls .purchase-installment-summary {
        flex-basis: 100%;
        font-size: .75rem;
    }

    .purchase-sticky-controls .purchase-variant {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 8px !important;
    }

    .purchase-sticky-controls .purchase-year-selector {
        margin: 0;
        width: 100%;
    }

    .purchase-sticky-controls .purchase-year-label {
        color: #4f4f4f;
        display: block;
        font-size: .8rem;
        letter-spacing: .04em;
        margin-bottom: 6px;
        text-transform: uppercase;
    }

    .purchase-sticky-controls .purchase-year-options {
        gap: 8px;
    }

    .purchase-sticky-controls .purchase-year-option {
        background: rgba(255, 255, 255, .65);
        border: 1px solid #666;
        border-radius: 999px;
        color: #222;
        cursor: pointer;
        font-size: .85rem;
        min-width: 64px;
        padding: 5px 12px;
    }

    .purchase-sticky-controls .purchase-year-option.selected {
        background: #191919;
        border-color: #191919;
        color: #fff;
    }

    .purchase-sticky-controls .variant-swatch-ecommerce {
        height: 35px;
        margin: 0;
        width: 35px;
    }

    .purchase-sticky-controls .purchase-cart-actions {
        margin: 0;
    }

    .purchase-sticky-controls .purchase-cart-actions > div {
        padding: 0;
        width: 100%;
    }

}

@media (max-width: 767.98px) {
    .accessory-product-card {
        flex-basis: calc((100% - 1rem) / 2);
    }
}

@media (max-width: 575.98px) {
    .accessory-product-card {
        flex-basis: 82%;
    }
}

@media (max-width: 575.98px) {
    .purchase-heading h1 {
        font-size: 1.65rem;
    }
}
