/* FIX: Prevent horizontal page scroll - using 'clip' instead of 'hidden' to preserve sticky positioning */
    html {
        overflow-x: clip;
        max-width: 100vw;
    }

    body {
        overflow-x: clip;
        max-width: 100vw;
    }

    /* Quick Dissolve transition (Style #3) */
    #main-image {
        transition: opacity 0.12s ease-out;
    }

    #main-image.fade-out {
        opacity: 0.5;
        transition: opacity 0.08s ease-in;
    }

    .express-countdown-label,
    .overlay-countdown-label {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: normal;
        text-transform: none;
    }

    .express-button-disabled {
        opacity: 0.7;
        pointer-events: none;
    }

    .product-cta-block {
        position: relative;
        padding: 0 10px;
    }

    @media (max-width: 1023px) {
        .product-cta-block {
            position: static;
            background: #ffffff;
            margin: 1.5rem 0 2.25rem;
            padding: 1rem 12px 1.5rem;
            box-shadow: 0 -1px 0 rgba(15, 23, 42, 0.08);
        }
    }

    #AddToCart--main {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
        transition: background-color 0.2s ease, transform 0.2s ease;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    #AddToCart--main:hover {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
        transform: translateY(-1px);
    }

    /* Glassmorphism for cart/checkout overlays */
    .overlay-layer {
        position: fixed;
        inset: 0;
        z-index: 11000;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(248, 249, 251, 0.97));
        backdrop-filter: blur(14px) saturate(120%);
        -webkit-backdrop-filter: blur(14px) saturate(120%);
        transition: opacity 0.48s ease, visibility 0.48s ease;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .overlay-layer.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .overlay-layer__content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -48%) scale(0.96);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        opacity: 0;
        transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .overlay-layer.is-visible .overlay-layer__content {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    body.overlay-layer-open {
        overflow: hidden;
    }

    /* Spinner container - PERFECTLY CENTERED */
    .overlay-layer__spinner {
        width: 48px;
        height: 48px;
        margin: 0 auto 16px auto;
        position: relative;
        display: block;
    }

    /* Static gray ring */
    .overlay-layer__spinner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 48px;
        height: 48px;
        border: 2px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
    }

    /* Spinning black ring */
    .overlay-layer__spinner::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 48px;
        height: 48px;
        border: 2px solid transparent;
        border-top-color: #000;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    /* Title - CENTERED */
    .overlay-layer__title {
        font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
        font-size: 18px;
        font-weight: 500;
        color: #000;
        margin: 0 0 4px 0;
        letter-spacing: -0.01em;
        text-align: center;
        display: block;
    }

    /* Subtitle - CENTERED */
    .overlay-layer__subtitle {
        font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: rgba(0, 0, 0, 0.6);
        margin: 0;
        text-align: center;
        display: block;
        transition: opacity 0.28s ease, transform 0.28s ease;
    }

    .overlay-layer__subtitle.overlay-layer__subtitle--transition {
        opacity: 0;
        transform: translateY(6px);
    }

    /* Hide everything else */
    .overlay-layer__spinner-dot,
    .overlay-layer__dots,
    .overlay-layer__progress,
    .overlay-layer__progress-bar,
    .overlay-layer__note {
        display: none !important;
    }

    /* Highlight the required option in error state */
    .required-spotlight-target {
        /* No special styling needed once overlay removed */
    }

    /* Button loading state */
    #AddToCart--main.is-loading {
        opacity: 0.85;
        pointer-events: none;
    }

    /* Spinner animation */
    @keyframes spin {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }

    /* Responsive adjustments */
    @media (max-width: 640px) {
        .overlay-layer__spinner {
            width: 40px;
            height: 40px;
        }

        .overlay-layer__spinner::before,
        .overlay-layer__spinner::after {
            width: 40px;
            height: 40px;
        }

        .overlay-layer__title {
            font-size: 16px;
        }

        .overlay-layer__subtitle {
            font-size: 13px;
        }
    }

    /* Accessibility: Respect reduced motion preference */
    @media (prefers-reduced-motion: reduce) {
        .overlay-layer {
            transition: opacity 0.2s ease;
        }

        .overlay-layer__spinner::after {
            animation: none;
        }
    }

    /* CSS VARIABLES FROM LIVE SHOPIFY THEME - EXACT VALUES FROM SITE */
    :root {
        --color-background: 255, 255, 255;
        --color-headings: 33, 37, 41;
        --color-text: 68, 68, 68;
        --color-text-muted: #b4b4b4;
        --color-sales: 255, 0, 0;  /* RED for sale prices */
        --text-font-weight-semibold: 600;
        --text-font-size: 14px;
        --text-font-size-lg: 18px;
        --border-radius: 6px;
    }

    /* EXACT SHOPIFY PRICE CONTAINER STYLES - MEASURED FROM LIVE SITE */
    .product-price-container {
        font-family: Poppins, sans-serif;
        font-size: 19px;
        font-weight: 600;
        line-height: 30.4px;
        letter-spacing: normal;
        display: flex;
        align-items: center;
        margin: 2px 0px 10px;  /* Minimal 2px top margin - super tight */
        padding: 0px;  /* REMOVED left padding - flush left */
        color: rgb(68, 68, 68);
    }

    /* EXACT CURRENT PRICE STYLES - ALL ATTRIBUTES FROM LIVE SITE */
    .on-sale.text-sale {
        color: rgb(255, 0, 0) !important;
        font-size: 19px !important;
        font-weight: 600 !important;
        font-family: Poppins, sans-serif !important;
        line-height: 30.4px !important;
        letter-spacing: normal !important;
        text-decoration: none !important;
        opacity: 1 !important;
        display: block !important;
        margin: 0px 8px 0px 0px !important;
        padding: 0px !important;
    }

    .on-sale.text-sale .money {
        font-family: inherit;
        font-weight: inherit;
        color: inherit;
        font-size: inherit;
        line-height: inherit;
    }

    /* EXACT COMPARE PRICE STYLES - ALL ATTRIBUTES FROM LIVE SITE */
    .text-muted.text-strike {
        color: rgb(180, 180, 180) !important;
        font-size: 19px !important;
        font-weight: 600 !important;
        font-family: Poppins, sans-serif !important;
        line-height: 30.4px !important;
        letter-spacing: normal !important;
        text-decoration: line-through !important;
        opacity: 1 !important;
        display: block !important;
        margin: 0px 8px 0px 0px !important;
        padding: 0px !important;
    }

    /* EXACT DISCOUNT SAVED CONTAINER */
    .dbtfy-discount-saved {
        display: inline-flex !important;
        align-items: center;
        white-space: nowrap;
        margin-left: 0px;  /* NO spacing - directly touching compare price */
    }

    /* EXACT BADGE STYLES FROM LIVE SITE - MEASURED WITH PUPPETEER */
    .badge {
        position: relative;
        display: inline-block;
        overflow: hidden;
        padding: 4px 5px;
        background-color: rgb(33, 37, 41);  /* EXACT: Dark gray background */
        color: rgb(250, 248, 255);  /* EXACT: Off-white text color */
        border-radius: 6px;  /* EXACT: 6px border radius */
        font-size: 12px;  /* EXACT: 12px font size */
        font-weight: 700;
        letter-spacing: 0.1em;
        line-height: 1;
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .dbtfy-discount-saved__item {
        display: inline-flex !important;
        align-items: center;
        gap: 3px;
    }

    /* MATERIAL ICONS EXACT SIZE - FROM LIVE SITE */
    .material-icons-outlined {
        font-family: 'Material Icons Outlined';
        font-weight: normal;
        font-style: normal;
        font-size: 12px !important;  /* EXACT: 12px from live site */
        line-height: 1;
        letter-spacing: normal;
        text-transform: none;
        display: inline-block;
        white-space: nowrap;
        word-wrap: normal;
        direction: ltr;
        vertical-align: bottom;  /* EXACT: bottom alignment */
        margin-right: 3px;  /* Small gap between icon and text */
    }

    /* ZIP PAYMENT SECTION - EXACT STYLES */
    .zip-payment-section {
        display: block;
        width: 100%;
        clear: both;
        font-size: 12px !important;  /* EXACT: 12px */
        font-weight: 400 !important;  /* EXACT: 400 */
        color: rgb(44, 46, 47) !important;  /* EXACT: Dark gray */
        text-align: left;
        font-family: inherit;
        margin: 0px;  /* NO margin - directly touching */
        padding: 0;
    }

    .zip-payment-section a {
        text-decoration: none;
        color: inherit;
    }

    .zip-payment-section img {
        vertical-align: middle;
        display: inline-block;
        height: 14px;
        margin-left: 2px;
    }

    .tooltip {
        position: absolute;
        display: none !important;
        background: rgba(15, 23, 42, 0.95);
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 13px;
        white-space: nowrap;
        z-index: 100;
        pointer-events: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Explicitly hide tooltip when active/selected - HIGHEST PRIORITY */
    .option-card.active .tooltip,
    .option-card.active:hover .tooltip,
    .option-button.active .tooltip,
    .option-button.active:hover .tooltip,
    .option-card.selected .tooltip,
    .option-card.selected:hover .tooltip,
    .option-button.selected .tooltip,
    .option-button.selected:hover .tooltip,
    [data-has-tooltip].active .tooltip,
    [data-has-tooltip].active:hover .tooltip {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Show tooltip ONLY on hover when NOT active/selected */
    .option-card:not(.active):not(.selected):hover .tooltip,
    .option-button:not(.active):not(.selected):hover .tooltip,
    [data-has-tooltip]:not(.active):not(.selected):hover .tooltip {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .product-price-container__unit {
        display: none; /* Hide unit price if $0 */
    }

    .visually-hidden {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0,0,0,0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
    /* Grid Layout Fix for Tailwind v4 */
    @media (min-width: 1024px) {
        .lg\:grid-cols-2 {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    body {
        background: white;
        margin: 0; /* Eliminate default UA margin that can create top gap */
    }

    /* Clean up any transition overlays on load */
    .page-transition-overlay {
        display: none !important;
    }

    /* Swipe and touch enhancements */
    .main-image-container {
        overflow: hidden;
        position: relative;
        cursor: grab;
        touch-action: pan-y pinch-zoom;
        /* Prevent history navigation/back-forward swipe from chaining */
        overscroll-behavior-x: contain;
    }

    .main-image-container:active {
        cursor: grabbing;
    }

    .main-image-container:focus-visible,
    .lightbox-close:focus-visible,
    .lightbox-nav:focus-visible,
    .lightbox-thumb:focus-visible {
        outline: 3px solid #0f766e;
        outline-offset: 3px;
        box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
    }

    .thumbnail-item:focus-visible {
        outline: none;
        box-shadow: none;
        opacity: 1 !important;
    }

    .thumbnail-item:focus-visible img {
        filter: brightness(0.92);
    }

    .main-image {
        touch-action: pan-y pinch-zoom;
        will-change: transform;
        position: relative;
        z-index: 1;
    }

    .gallery-swipe-preview {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        pointer-events: none;
        user-select: none;
        -webkit-user-drag: none;
        transform: translate3d(100%, 0, 0);
        opacity: 1;
        z-index: 3;
        will-change: transform;
    }

    @media (prefers-reduced-motion: reduce) {
        .gallery-swipe-preview {
            transition: none !important;
        }
    }

    .gallery-swipe-active .main-image,
    .gallery-swipe-active .main-inline-video.video-visible,
    .gallery-swipe-active #lightbox-main-image,
    .gallery-swipe-active #lightbox-main-video.video-visible {
        position: relative;
        z-index: 4;
        will-change: transform;
    }

    .main-inline-video,
    :is(body, html) .main-inline-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        border: none;
        background: #000;
        display: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 2;
        transition: opacity 0.2s ease;
    }

    .main-inline-video.video-visible {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-image[data-media-type="video"] {
        opacity: 0;
        visibility: hidden;
    }

    .main-image[data-media-type="video"] ~ .main-inline-video {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-image.is-hidden-by-video {
        opacity: 0;
        visibility: hidden;
    }

    .main-image.premium-image,
    .thumbnail-img.premium-image {
        transition: opacity 0.4s ease;
    }

    .thumbnail-img.premium-image:not(.premium-image--loaded) {
        opacity: 0;
    }

    .main-image-container .premium-image-skeleton,
    .thumbnail-item .premium-image-skeleton {
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
        background-size: 400% 100%;
        animation: premium-image-shimmer 1.4s ease infinite;
        transition: opacity 0.35s ease;
        z-index: 3;
    }

    .main-image-container.premium-image-parent--loaded .premium-image-skeleton,
    .thumbnail-item.premium-image-parent--loaded .premium-image-skeleton {
        opacity: 0;
        animation: none;
    }

    .main-image-container:not(.premium-image-parent--loaded) {
        aspect-ratio: var(--skel-aspect, 1 / 1);
        background: #f0f1f3;
        border-radius: 8px;
    }

    .main-image-container:not(.premium-image-parent--loaded) .main-image {
        opacity: 0 !important;
    }

    .main-image-container.premium-image-parent--loaded .main-image {
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .thumbnail-item:not(.premium-image-parent--loaded) {
        background: #f0f1f3;
        border-radius: 6px;
    }

    .thumbnail-item:not(.premium-image-parent--loaded) .thumbnail-img {
        opacity: 0 !important;
    }

    .thumbnail-item.premium-image-parent--loaded .thumbnail-img {
        opacity: 1;
        transition: opacity 0.25s ease;
    }

    @media (prefers-reduced-motion: reduce) {
        .main-image-container .premium-image-skeleton,
        .thumbnail-item .premium-image-skeleton {
            animation: none;
        }
    }

    /* Thumbnails enhanced scrolling */
    .thumbnails-container {
        cursor: grab;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        /* Disable snapping to ensure frictionless scroll */
        scroll-snap-type: none;
        /* Prevent back/forward navigation due to overscroll */
        overscroll-behavior-x: contain;
        /* Hide scrollbar but keep functionality */
        scrollbar-width: none;           /* Firefox */
        -ms-overflow-style: none;        /* IE/Edge legacy */
    }

    .thumbnails-container:active {
        cursor: grabbing;
    }
    .thumbnails-container::-webkit-scrollbar { /* Chrome/Safari */
        width: 0;
        height: 0;
        background: transparent;
    }

    /* Disable snap alignment for smoother free scroll on the thumbnail strip */
                .thumbnail-item {
                position: relative;
            }

            .video-pill {
                color: white;
                filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
                transition: all 0.25s ease;
                pointer-events: none;
            }

            .video-pill:hover {
                transform: scale(1.1);
                filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
            }

            .video-pill--thumb {
                width: 40px;
                height: 40px;
            }

            .video-pill--hero {
                width: 70px;
                height: 70px;
            }

            .thumbnail-video-indicator {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                pointer-events: none;
                z-index: 4;
            }

            .thumbnail-item.is-video .thumbnail-img {
                border: 1px solid rgba(17, 24, 39, 0.18);
            }

            .main-image-container {
                position: relative;
            }

            .main-media-indicator {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                display: none;
                z-index: 10;
            }

            .main-image-container.is-video .main-media-indicator {
                display: inline-flex;
            }

            .main-image-container.is-video::after {
                content: '';
                position: absolute;
                inset: 0;
                pointer-events: none;
            }

            .main-image-container.is-video .main-image {
                box-shadow: none;
            }
.thumbnail-item {
        /* no snap */
    }

    /* Add to Cart Button Styling */
    #AddToCart--main {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
        color: white !important;
        border: none !important;
        border-radius: 0.5rem !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        padding: 0.875rem !important;
        width: 100% !important;
    }

    #AddToCart--main:hover {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.3) !important;
    }

    #AddToCart--main[disabled],
    #AddToCart--main.is-disabled {
        opacity: 0.55 !important;
        cursor: not-allowed !important;
        box-shadow: none !important;
    }

    #AddToCart--main [data-product-add-to-cart-text] {
        font-variant-numeric: tabular-nums;
        font-feature-settings: 'tnum' 1;
    }

    /* Lightbox swipe enhancements */
    .lightbox-image-container {
        cursor: grab;
        touch-action: pan-y pinch-zoom;
        overflow: hidden;
        user-select: none;
        -webkit-user-select: none;
        /* Contain overscroll inside the lightbox */
        overscroll-behavior-x: contain;
    }

    .lightbox-image-container:active {
        cursor: grabbing;
    }

    .lightbox-image-container img {
        pointer-events: none;
        user-select: none;
        -webkit-user-drag: none;
        will-change: transform;
    }

    /* Lightbox thumbnails scroll */
    .lightbox-thumbnails-container {
        cursor: grab;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .lightbox-thumbnails-container:active {
        cursor: grabbing;
    }

    .lightbox-thumb {
        scroll-snap-align: center;
    }

    /* Swipe hint animation - DISABLED
    @keyframes premium-image-shimmer {
        0% { background-position: 220% 0; }
        100% { background-position: -220% 0; }
    }

    @keyframes swipeHint {
        0% { transform: translateX(0); }
        25% { transform: translateX(-10px); }
        75% { transform: translateX(10px); }
        100% { transform: translateX(0); }
    }

    .swipe-hint {
        animation: swipeHint 2s ease-in-out;
    } */

    /* Custom scrollbar for thumbnails */
    .scrollbar-thin::-webkit-scrollbar {
        height: 6px;
    }

    .scrollbar-thin::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .scrollbar-thin::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

    .scrollbar-thin::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    /* Firefox scrollbar */
    .scrollbar-thin {
        scrollbar-width: thin;
        scrollbar-color: #888 #f1f1f1;
    }

    /* Announcement bar - normal stacking */
    .announcement-bar {
        /* z-index removed - consent banner should be highest */
    }

    /* Smooth image loading */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    /* NEUE GALLERY STYLES */
    /* Responsive typography - EXACT MATCH FROM BROWSER INSPECTOR */
    .product-title {
        font-family: Poppins, sans-serif;
        font-weight: 600 !important;
        font-size: clamp(1.3rem, 2.4vw, 1.85rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    .product-layout {
        display: flex;
        gap: 1.5rem; /* Adjusted from 2rem */
        align-items: flex-start;
    }

    .product-gallery {
        width: calc(47% - 0.75rem); /* 3% smaller (50% - 3% = 47%) + adjusted for gap (1.5rem / 2) */
        position: sticky;
        top: 115px; /* Increased from 75px to clear header (53px) + announcement (52px) + buffer (10px) */
        align-self: flex-start;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: none;
        overflow: visible;
    }

    .product-info {
        width: calc(53% - 0.75rem); /* Adjusted to use remaining space (100% - 47% = 53%), gap adjusted */
        overflow-x: visible;
        word-wrap: break-word;
        padding-bottom: 0; /* Remove padding so right column ends at same height as left */
    }

    /* Remove margin from last child to eliminate bottom spacing */
    .product-info > *:last-child {
        margin-bottom: 0 !important;
    }

    /* Specifically target product options and CTA block */
    .product-info .product-options-davis,
    .product-info .product-cta-block {
        margin-bottom: 0 !important;
    }

    .main-image-container {
        width: 100%;
        margin-bottom: 12px;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        position: relative;
        flex: 1 1 auto;
        min-height: 0;
        max-height: min(760px, calc(100vh - 220px));
    }

    .main-image {
        width: 100%;
        height: auto;
        max-height: 100%;
        display: block;
        aspect-ratio: auto;
        object-fit: contain;
        transition: opacity 0.04s ease-out;  /* SUPER ULTRA FAST transition */
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-user-drag: none;
        -khtml-user-drag: none;
        -moz-user-drag: none;
        -o-user-drag: none;
        pointer-events: auto;
        cursor: pointer;  /* Always show pointer for main image */
    }

    /* Fade effect when switching images */
    .main-image.fade-out {
        opacity: 0.85;  /* Even more subtle fade */
    }

    /* Navigation arrows for main image - Design 4 Chevrons */
    .main-nav-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        color: white;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
        cursor: pointer;
        z-index: 5;
        opacity: 0.7;
        transition: all 0.25s ease;
        border: none;
        background: transparent;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav-arrow:hover {
        opacity: 1;
        transform: translateY(-50%) scale(1.12);
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    }

    .main-nav-arrow-left {
        left: 18px;
    }

    .main-nav-arrow-right {
        right: 18px;
    }

    .main-nav-arrow.is-disabled {
        opacity: 0.35;
        pointer-events: auto;
        cursor: not-allowed;
        filter: drop-shadow(0 0 0 rgba(0,0,0,0));
    }

    .main-nav-arrow.is-disabled svg {
        opacity: 0.55;
    }

    .main-image-counter {
        position: absolute;
        bottom: 14px;
        right: 14px;
        background: rgba(15, 23, 42, 0.68);
        color: #f8fafc;
        padding: 4px 10px;
        border-radius: 8px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.04em;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        z-index: 6;
        pointer-events: none;
        font-variant-numeric: tabular-nums;
    }

    .main-image-counter span {
        display: inline-flex;
        align-items: baseline;
    }

    .main-image-counter-separator {
        opacity: 0.55;
        font-weight: 500;
    }


    /* Mobile: Auto-hide arrows */
    @media (max-width: 768px) {
        .main-nav-arrow {
            width: 28px;
            height: 28px;
            opacity: 0.45;
            pointer-events: auto;
            transition: opacity 0.3s ease, transform 0.25s ease;
        }

        .main-nav-arrow-left {
            left: 12px;
        }

        .main-nav-arrow-right {
            right: 12px;
        }

        .main-nav-arrow.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .main-nav-arrow.visible:active {
            transform: translateY(-50%) scale(1.15);
        }

        .main-image-counter {
            bottom: 10px;
            right: 10px;
            font-size: 10px;
            gap: 3px;
            padding: 3px 8px;
        }
    }

    /* Desktop: Always visible on hover */
    @media (min-width: 769px) {
        .main-nav-arrow {
            opacity: 0.7;
        }

        .main-image-container:hover .main-nav-arrow {
            opacity: 1;
        }
    }

    /* Thumbnails Wrapper - VOLLE BREITE */
    .thumbnails-wrapper {
        position: relative;
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
    }

    .thumbnails-container {
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbar but keep functionality */
    .thumbnails-container::-webkit-scrollbar {
        height: 4px;
    }

    .thumbnails-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .thumbnails-container::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
    }

    .thumbnails-container:hover::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
    }

    .thumbnails-track {
        display: flex;
        gap: 8px;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }

    .thumbnail-item {
        flex: 0 0 calc((100% - 32px) / 5); /* Fixed width, not flexible */
        min-width: 0;
        aspect-ratio: 1;
        border: none !important;  /* No borders at all */
        border-radius: 6px;
        overflow: hidden;
        position: relative;
        cursor: pointer;
        transition: opacity 0.2s ease;
        opacity: 0.4 !important;  /* Non-active thumbnails are semi-transparent */
    }

    .thumbnail-item:hover {
        opacity: 0.7 !important;  /* Slightly more visible on hover */
    }

    .thumbnail-item.active {
        opacity: 1 !important;  /* Full opacity when selected */
    }

    .thumbnail-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Arrow Buttons - INNERHALB DES CONTAINERS */
    .thumb-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        color: white;
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
        cursor: pointer;
        z-index: 5;
        opacity: 0.6;
        transition: all 0.25s ease;
        border: none;
        background: transparent;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .thumbnails-wrapper:hover .thumb-arrow {
        opacity: 1;
    }

    .thumb-arrow:hover {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    }

    .thumb-arrow:disabled,
    .thumb-arrow.disabled {
        opacity: 0.2;
        pointer-events: none;
        cursor: default;
    }

    .thumb-arrow-left {
        left: 8px;
    }

    .thumb-arrow-right {
        right: 8px;
    }

    @media (max-width: 768px) {
        .thumbnails-container {
            max-width: 100%;
        }

        .thumb-arrow {
            display: none !important;
        }
    }

    /* Stack layout on tablets and phones */
    @media (max-width: 1023px) {
        .product-layout {
            flex-direction: column;
            width: 100%;
            min-width: 0;
        }
        .product-gallery,
        .product-info {
            width: 100% !important;
            min-width: 0;
            max-width: 100%;
        }
        .product-gallery { position: static; top: auto; display: block; max-height: none; overflow: visible; }
        .main-image-container {
            width: 100%;
            max-width: 100%;
            aspect-ratio: 1 / 1;
            max-height: none;
        }
        .main-image {
            width: 100%;
            max-width: 100%;
            height: 100%;
            aspect-ratio: 1 / 1;
            object-fit: contain;
        }
        /* Remove top padding for this page's container to close gap under header */
        .container.py-8 { padding-top: 0 !important; }
        /* Ensure no accidental top margins */
        .product-layout { margin-top: 0 !important; }
    }

    /* Trustpilot Review Styles */
    .trustpilot-grid {
        display: grid;
        gap: 1.5rem;
        grid-template-columns: minmax(0, 1fr);
    }

    @media (min-width: 640px) {
        .trustpilot-grid {
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        }
    }

    .trustpilot-card {
        border-radius: 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(241, 245, 249, 0.08);
        backdrop-filter: blur(18px);
        padding: 2rem;
        font-size: 0.95rem;
        color: rgba(226, 232, 240, 0.92);
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .trustpilot-card__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .trustpilot-card__headline {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: #f8fafc;
    }

    .trustpilot-card__flag {
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #34d399;
    }

    .trustpilot-card__stars {
        margin-top: 1rem;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        color: #34d399;
    }

    .trustpilot-card__star {
        width: 1rem;
        height: 1rem;
        display: block;
    }

    .trustpilot-card__star--empty {
        color: rgba(148, 163, 184, 0.55);
    }

    .trustpilot-card__text {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.6;
        word-break: break-word;
    }

    .trustpilot-card__footer {
        margin-top: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.75rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: rgba(226, 232, 240, 0.75);
    }

    .trustpilot-card__link {
        color: #38bdf8;
        text-decoration: none;
    }

    .trustpilot-card__link:hover {
        color: #7dd3fc;
    }

    /* Loox Review Styles */
    .loox-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        grid-auto-rows: auto;
        grid-auto-flow: row;
        gap: 1.5rem;
        align-items: start;
    }

    @media (max-width: 767px) {
        .loox-grid {
            grid-template-columns: minmax(0, 1fr);
            grid-auto-rows: auto;
        }

        .loox-grid .loox-card {
            grid-row: auto !important;
        }
    }

    .loox-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        gap: 1rem;
        height: auto;
        align-self: start;
    }

    .loox-product-thumb {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        overflow: hidden;
        background: #f3f4f6;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .loox-product-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .loox-product-placeholder {
        font-size: 0.9rem;
        font-weight: 600;
        color: #475569;
    }

    .loox-product-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-decoration: none;
        color: inherit;
    }

    .loox-product-link:hover .loox-product-name {
        color: #0f172a;
    }

    .loox-product-name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .loox-review-media {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        border: none;
        background: transparent;
        padding: 0;
        cursor: zoom-in;
        text-align: left;
    }

    .loox-review-media:focus-visible {
        outline: 2px solid #0f172a;
        outline-offset: 2px;
    }

    .loox-review-media-frame {
        position: relative;
        display: block;
        width: 100%;
        overflow: hidden;
        border-radius: 12px;
        background: #0f172a;
        aspect-ratio: 4 / 3;
    }

    .loox-review-media-main {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .loox-review-media-play,
    .loox-review-media-thumb-play {
        position: absolute;
        inset: 50% auto auto 50%;
        transform: translate(-50%, -50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 9999px;
        background: rgba(15, 23, 42, 0.86);
        color: #ffffff;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        pointer-events: none;
    }

    .loox-review-media-play {
        min-width: 58px;
        height: 38px;
        padding: 0 14px;
    }

    .loox-review-media-thumb-play {
        min-width: 44px;
        height: 28px;
        font-size: 0.58rem;
    }

    .loox-review-media-video-fallback {
        width: 100%;
        height: 100%;
        min-height: 72px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #0f172a;
        color: #ffffff;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .loox-review-media-thumbs {
        display: flex;
        gap: 0.5rem;
        pointer-events: none;
    }

    .loox-review-media-thumb-wrap {
        position: relative;
        display: block;
        width: 72px;
        height: 72px;
        border-radius: 10px;
        overflow: hidden;
        background: #0f172a;
        flex-shrink: 0;
    }

    .loox-review-media-thumb {
        display: block;
        width: 72px;
        height: 72px;
        object-fit: cover;
    }

    .loox-review-media-more {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 72px;
        height: 72px;
        border-radius: 10px;
        background: rgba(15, 23, 42, 0.75);
        color: #fff;
        font-size: 0.875rem;
        font-weight: 600;
    }

    /* Loox Lightbox */
    .loox-review-lightbox {
        position: fixed;
        inset: 0;
        z-index: 500;
        display: none;
    }

    .loox-review-lightbox.is-open {
        display: block;
    }

    .loox-review-lightbox__overlay {
        position: absolute;
        inset: 0;
        background: rgba(2, 6, 23, 0.78);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .loox-review-lightbox__dialog {
        position: relative;
        z-index: 1;
        width: min(1100px, 92vw);
        margin: 3.5rem auto;
        background: #fff;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 4rem);
        overflow: hidden;
    }

    .loox-review-lightbox__close {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        border-radius: 9999px;
        background: rgba(15, 23, 42, 0.85);
        color: #fff;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
    }

    .loox-review-lightbox__body {
        display: flex;
        flex: 1;
        gap: 0;
        height: 100%;
    }

    .loox-review-lightbox__media {
        flex: 3;
        position: relative;
        background: #000;
        display: flex;
        flex-direction: column;
        padding: 48px 56px 32px;
        min-width: 0;
    }

    .loox-review-lightbox__canvas {
        position: relative;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .loox-review-lightbox__image,
    .loox-review-lightbox__video,
    .loox-review-lightbox__iframe {
        max-width: 100%;
        max-height: 100%;
        border-radius: 14px;
        display: none;
        box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
    }

    .loox-review-lightbox__iframe {
        width: min(100%, 900px);
        aspect-ratio: 16 / 9;
        border: 0;
    }

    .loox-review-lightbox__image.is-visible,
    .loox-review-lightbox__video.is-visible,
    .loox-review-lightbox__iframe.is-visible {
        display: block;
    }

    .loox-review-lightbox__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 9999px;
        background: rgba(15, 23, 42, 0.75);
        color: #fff;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
    }

    .loox-review-lightbox__nav:hover {
        background: rgba(15, 23, 42, 0.9);
    }

    .loox-review-lightbox__nav--prev {
        left: 20px;
    }

    .loox-review-lightbox__nav--next {
        right: 20px;
    }

    .loox-review-lightbox__thumbs {
        display: flex;
        gap: 0.75rem;
        margin-top: 24px;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .loox-review-lightbox__thumb {
        width: 70px;
        height: 70px;
        border-radius: 12px;
        overflow: hidden;
        border: none;
        padding: 0;
        background: rgba(255, 255, 255, 0.1);
        cursor: pointer;
        position: relative;
    }

    .loox-review-lightbox__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .loox-review-lightbox__thumb-fallback {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #0f172a;
        color: #ffffff;
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .loox-review-lightbox__thumb-video {
        position: absolute;
        inset: 6px;
        border-radius: 10px;
        border: 2px solid #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 0.65rem;
        backdrop-filter: blur(2px);
    }

    .loox-review-lightbox__thumb.is-active {
        outline: 3px solid #ffffff;
        outline-offset: -3px;
    }

    .loox-review-lightbox__panel {
        flex: 2;
        background: #0f172a;
        color: #f8fafc;
        padding: 48px 40px;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .loox-review-lightbox__panel-inner {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .loox-review-lightbox__rating {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .loox-review-lightbox__rating span {
        font-weight: 600;
        font-size: 0.95rem;
    }

    .loox-review-lightbox__title {
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0;
    }

    .loox-review-lightbox__text {
        font-size: 0.95rem;
        line-height: 1.7;
        color: rgba(241, 245, 249, 0.9);
    }

    .loox-review-lightbox__meta {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.85rem;
        color: rgba(226, 232, 240, 0.85);
    }

    .loox-review-lightbox__source-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        align-self: flex-start;
        padding: 0.3rem 0.7rem;
        border-radius: 9999px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.18);
        color: #f8fafc;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .loox-review-lightbox__product-link {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        margin-top: 0.4rem;
        color: #f87171;
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
    }

    .loox-review-lightbox__product-link:hover {
        text-decoration: underline;
    }

    /* Mobile lightbox: media on top, review details below, everything scrolls */
    @media (max-width: 768px) {
        .loox-review-lightbox__dialog {
            width: 100vw;
            margin: 0;
            border-radius: 0;
            max-height: 100dvh;
            height: 100dvh;
        }

        .loox-review-lightbox__body {
            flex-direction: column;
            overflow-y: auto;
        }

        .loox-review-lightbox__media {
            flex: 0 0 auto;
            padding: 20px 12px 14px;
        }

        .loox-review-lightbox__canvas {
            min-height: 46vh;
        }

        .loox-review-lightbox__nav--prev {
            left: 8px;
        }

        .loox-review-lightbox__nav--next {
            right: 8px;
        }

        .loox-review-lightbox__thumbs {
            margin-top: 14px;
        }

        .loox-review-lightbox__panel {
            flex: 0 0 auto;
            padding: 24px 20px 40px;
            overflow-y: visible;
        }
    }

    .loox-review-photo {
        width: 100%;
        border-radius: 12px;
        object-fit: cover;
        aspect-ratio: 4 / 3;
    }

    .loox-review-text {
        margin: 0;
    }

    .loox-card-footer {
        margin-top: auto;
        display: flex;
        align-items: center;
        gap: 0.375rem; /* ULTRA-COMPACT: 6px statt 12px */
        padding-top: 0.25rem; /* ULTRA-COMPACT */
    }

    .loox-card-footer .text-xs {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
        max-height: calc(1.4em * 2);
    }
