/* Extracted from product_page.html for SEO PDPs and the interactive PDP */
body {
            font-family: Arial, sans-serif;
        }

        .image-gallery {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
            max-width: 100%;
            margin-left: 0;
            box-sizing: border-box;
        }

        #mainImage.main-image,
        .image-gallery .main-image {
            width: 100%;
            max-width: 100%;
            height: auto;
            aspect-ratio: 1;
            object-fit: cover;
            margin-left: 0;
            display: block;
        }

        #thumbnailCarousel.carousel,
        #thumbnailCarousel {
            display: grid !important;
            grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
            gap: 8px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            flex-direction: unset !important;
            overflow: visible;
        }

        #thumbnailCarousel .thumbnail {
            width: 100%;
            aspect-ratio: 1;
            height: auto;
            object-fit: cover;
            cursor: pointer;
            border: 2px solid transparent;
            margin: 0;
            display: block;
        }

        #thumbnailCarousel .thumbnail.active {
            border-color: #333;
            margin-left: 0;
        }
        
        /* SEO Description Styling */
        .seo-description {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
            border-left: 4px solid #fbbb65;
            line-height: 1.65;
        }

        .seo-description h2 {
            font-size: 1.15rem;
            margin: 1.2em 0 0.45em;
            color: #222;
        }

        .seo-description p {
            margin: 0 0 1em;
            color: #333;
            font-size: 16px;
        }

        .seo-description p:last-child {
            margin-bottom: 0;
        }
        
        /* Collapsible Product Info */
        .product-info-section {
            margin: 20px 0;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
        }
        
        /* Reviews Summary */
        .reviews-summary {
            background: #f8f9fa;
            padding: 15px 20px;
            border-radius: 8px;
            margin: 20px 0;
            border-left: 4px solid #fbbb65;
        }
        
        .rating-display {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .rating-text {
            font-size: 1.2rem;
            font-weight: bold;
            color: #333;
        }
        
        .reviews-link {
            color: #fbbb65;
            text-decoration: none;
            font-weight: bold;
        }
        
        .reviews-link:hover {
            text-decoration: underline;
        }
        
        .info-toggle {
            width: 100%;
            background: #f8f9fa;
            border: none;
            padding: 15px 20px;
            text-align: left;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 16px;
            font-weight: bold;
            color: #333;
            transition: background-color 0.3s ease;
        }
        
        .info-toggle:hover {
            background: #e9ecef;
        }
        
        .toggle-icon {
            transition: transform 0.3s ease;
        }
        
        .info-toggle.active .toggle-icon {
            transform: rotate(180deg);
        }
        
        .product-info-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }
        
        .product-info-content.expanded {
            max-height: 2000px;
            padding: 20px;
            border-top: 1px solid #eee;
        }
        
        .product-info-content img {
            max-width: 100px;
            height: auto;
            margin: 5px;
            border-radius: 4px;
            cursor: pointer;
            transition: transform 0.2s ease;
        }
        
        .product-info-content img:hover {
            transform: scale(1.05);
        }

        .main-image {
            width: 100%;
            height: auto;
            aspect-ratio: 1;
            object-fit: cover;
            margin-left: 0;
        }
        .product-title {
            font-size: 24px;
            font-weight: bold;
        }
        .price {
            font-size: 20px;
            font-weight: bold;
            color: #e60023;
            margin: 0 auto;
        }
        #productPrice {
        text-align: center;
        padding: 10px;
        }
        .variant-options {
            margin: 20px 0;
            max-width: 100%;
        }
        .variant-availability-note {
            font-size: 13px;
            color: #555;
            background: #f4f6f8;
            border-left: 3px solid #fbbb65;
            padding: 10px 12px;
            margin: 0 0 14px;
            line-height: 1.45;
            max-width: 520px;
        }
        .vid-variant-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
            gap: 12px;
            max-width: 560px;
            margin-top: 8px;
        }
        .vid-variant-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 8px;
            border: 2px solid #ddd;
            border-radius: 8px;
            background: #fff;
            cursor: pointer;
            font: inherit;
            text-align: center;
        }
        .vid-variant-card.active {
            border-color: #e60023;
            box-shadow: 0 0 0 1px #e60023;
        }
        .vid-variant-card .variant-thumbnail {
            width: 88px;
            height: 88px;
            object-fit: cover;
            border-radius: 4px;
            border: none;
        }
        .vid-variant-label {
            font-size: 12px;
            font-weight: 600;
            line-height: 1.25;
            color: #222;
        }
        .vid-variant-meta {
            font-size: 11px;
            color: #666;
        }
        .vid-size-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 10px 0 8px;
            max-width: 100%;
        }
        .vid-size-chip {
            min-width: 44px;
            min-height: 44px;
            padding: 8px 12px;
            border: 2px solid #ddd;
            border-radius: 6px;
            background: #fff;
            cursor: pointer;
            font: inherit;
            font-weight: 600;
        }
        .vid-size-chip.active {
            border-color: #e60023;
            box-shadow: 0 0 0 1px #e60023;
        }
        .vid-size-chip:disabled {
            opacity: 0.35;
            cursor: not-allowed;
        }
        .vid-stock-line {
            font-size: 13px;
            color: #444;
            margin: 0 0 8px;
        }
        #vidStyleLabel,
        #vidSizeLabel {
            display: block;
            margin-top: 12px;
        }
        /* Styling for color options */
        #colorOptions {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
            gap: 10px;
            justify-items: center;
            max-width: 100%;
        }

        .variant-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            cursor: pointer;
        }

        .variant-thumbnail {
            width: 80px; /* Thumbnail width */
            height: 80px; /* Thumbnail height */
            object-fit: cover;
            border: 2px solid transparent;
            transition: transform 0.2s ease-in-out;        }

        .variant-option.active .variant-thumbnail {
            border-color: #e60023; /* Highlight the selected thumbnail */
        }
        .variant-option:hover .variant-thumbnail, 
        .thumbnail:hover,
        .vid-variant-card:hover .variant-thumbnail {
            transform: scale(1.06);
        }
        /* Styling for size options */
        #sizeOptions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: flex-start;
            max-width: 100%;
            margin-top: 16px;
        }

        .size-button {
            padding: 10px;
            font-size: 14px;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: #f8f8f8;
            cursor: pointer;
            transition: background-color 0.2s ease, border-color 0.2s ease;
        }

        .size-button.active {
            background-color: #e60023;
            color: white;
            border-color: #e60023;
        }

        .size-button:hover {
            background-color: #ddd;
            border-color: #999;
        }

        .checkout-sidebar img{
            width: 100% !important;
            margin: 15px auto;
        }
        /* Make quantity input full width */
        #quantity {
            width: 100% !important;
            max-width: 100%;
            box-sizing: border-box; /* Ensures it respects padding and borders */
        }

        @media (max-width: 480px) {
            .image-gallery,
            #thumbnailCarousel,
            #mainImage.main-image {
                width: 100%;
                margin-left: 0;
            }
            #mainImage.main-image {
                height: auto;
                aspect-ratio: 1;
            }
        }
