/* Global Detail Font Adjustment */
#product-title {
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.product-view-more {
    font-size: 0.78rem;
    font-weight: 600;
    vertical-align: baseline;
}

.cart-quantity-stepper {
    align-items: stretch;
    border: 1px solid var(--site-brand-primary, #0057b8);
    border-radius: 0.4rem;
    display: inline-flex;
    height: 2.1rem;
    overflow: hidden;
}

.cart-quantity-button {
    align-items: center;
    background: var(--site-brand-primary, #0057b8);
    border: 0;
    color: #fff;
    display: inline-flex;
    justify-content: center;
    padding: 0;
    width: 2.1rem;
}

.cart-quantity-button:hover,
.cart-quantity-button:focus-visible {
    background: var(--site-brand-secondary, #003f86);
}

.cart-quantity-input {
    appearance: textfield;
    border: 0;
    color: var(--site-brand-primary, #0057b8);
    font-weight: 700;
    outline: 0;
    text-align: center;
    font-size: 0.9rem;
    width: 2.8rem;
}

.cart-quantity-input::-webkit-inner-spin-button,
.cart-quantity-input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

.product-more-details-content {
    line-height: 1.6;
    white-space: pre-line;
}

.product-spec-row {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(7rem, 42%) minmax(0, 1fr);
}

#mainImagePicture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

#mainImage {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 140ms ease-out;
    user-select: none;
}

#main-image-container {
    overflow: hidden;
    position: relative;
}

@media (hover: hover) and (pointer: fine) {
    #main-image-container {
        cursor: zoom-in;
    }

    #mainImage.is-zoomed {
        cursor: zoom-out;
        transform: scale(2);
    }

}

.product-image-frame {
    width: 100%;
    height: 405px;
    margin: 0;
}

.product-thumbnail-carousel {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    max-width: 100%;
}

.product-thumbnail-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

#gallery-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-left: 0;
    margin-right: 0;
    width: max-content;
}

#gallery-container > [class*='col-'] {
    flex: 0 0 80px;
    width: 80px;
    max-width: 80px;
    padding: 0;
}

.product-thumbnail-scroll {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd8e4;
    border-radius: 50%;
    color: var(--site-brand-primary, #0057b8);
    display: inline-flex;
    flex: 0 0 2rem;
    height: 2rem;
    justify-content: center;
    padding: 0;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
    width: 2rem;
}

.product-thumbnail-scroll:hover:not(:disabled),
.product-thumbnail-scroll:focus-visible:not(:disabled) {
    background: var(--site-brand-primary, #0057b8);
    border-color: var(--site-brand-primary, #0057b8);
    color: #fff;
}

.product-thumbnail-scroll:disabled {
    display: none;
}

.product-mobile-gallery {
    display: none;
}

.product-mobile-intro,
.product-mobile-detail-tabs {
    display: none;
}

.product-suggested-companion-card {
    background: #fff;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.product-suggested-companion-card:hover {
    box-shadow: 0 .45rem 1.1rem rgba(24, 48, 75, .14) !important;
    transform: translateY(-2px);
}

.product-suggested-companion-image-link {
    background: #fff;
    display: block;
}

.product-suggested-companion-image {
    aspect-ratio: 1 / 1;
    background: #fff;
    display: block;
    object-fit: contain;
    padding: .5rem;
    width: 100%;
}

.product-suggested-companion-name {
    font-size: .9rem;
    line-height: 1.25;
}

@media (max-width: 767.98px) {
    .product-mobile-intro {
        display: block;
    }

    .product-mobile-web-code {
        color: #6c757d;
        font-size: 0.73rem;
        line-height: 1.25;
        margin-bottom: 0.25rem;
    }

    .product-mobile-variants .product-detail-constrained {
        width: 100%;
    }

    .product-mobile-favorite {
        margin: 0.25rem 0 1rem;
    }

    .product-mobile-detail-tabs {
        display: block;
        margin-bottom: 1.5rem;
    }

    .product-mobile-detail-tabs .nav-link {
        font-weight: 600;
    }

    .product-mobile-detail-tabs .tab-content {
        padding-top: 1rem;
    }

    .product-mobile-detail-tabs .card {
        margin-bottom: 1rem !important;
    }

    .product-mobile-detail-tabs .product-suggested-companions {
        margin-top: 1rem !important;
    }

    .product-mobile-detail-tabs .product-web-code-spec {
        display: none;
    }

    .product-mobile-detail-tabs .product-specifications-heading {
        display: none;
    }

    .product-desktop-gallery {
        display: none;
    }

    .product-mobile-gallery {
        display: flex;
        gap: 0.65rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0.75rem 0.65rem 0;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .product-mobile-gallery::-webkit-scrollbar {
        display: none;
    }

    .product-mobile-gallery-slide {
        align-items: center;
        background: #fff;
        border: 1px solid #e3e8ee;
        border-radius: 0.5rem;
        display: flex;
        flex: 0 0 85%;
        justify-content: center;
        overflow: hidden;
        scroll-snap-align: start;
        aspect-ratio: 1 / 1;
    }

    .product-mobile-gallery-slide picture,
    .product-mobile-gallery-slide img {
        display: block;
        height: 100%;
        width: 100%;
    }

    .product-mobile-gallery-slide img {
        object-fit: contain;
    }

    .product-mobile-gallery-empty {
        color: #adb5bd;
        font-size: 4rem;
    }
}

@media (min-width: 768px) {
    .product-detail-layout {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    }

    .product-media-column {
        grid-column: 1;
        width: auto;
        max-width: none;
    }

    .product-details-column {
        grid-column: 2;
        min-width: 0;
        width: auto;
        max-width: none;
    }

    .product-detail-constrained {
        max-width: calc(66.6667% + 0.5rem);
        width: calc(66.6667% + 0.5rem);
    }
}
    
    #description-text, #more-details-text {
        font-size: 1rem; /* Standard reading size */
        color: #4a4a4a !important;
    }

    .variant-btn {
        font-size: 0.9rem;
        padding: 8px 15px;
        font-weight: 500;
    }

    .table thead th {
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .list-group-item span {
        font-size: 0.95rem; /* Specification text size */
    }

    .thumb-img {
        width: 100%;
        height: 80px;
        object-fit: contain;
        background: #fff;
        cursor: pointer;
        transition: transform 0.2s, border-color 0.2s;
        border: 2px solid transparent;
    }
    .thumb-img:hover { border-color: #0d6efd; }
    .breadcrumb-item a { text-decoration: none; color: #6c757d; }
    .breadcrumb-item a:hover { color: #0d6efd; }
    .list-group-item { border-color: #f1f1f1; }
