/* ================================
   Multi-Products Page - Modern Premium Design
   ================================ */

.woocommerce-message a {
    display: none !important;
}
a.added_to_cart.wc-forward {
    display: none !important;
}

/* Google Fonts: Montserrat + Inter */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --primary: #d93025;
    --primary-hover: #b7201c;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #64748b;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 16px;
    --radius-sm: 12px;
}

.product-selection {
    margin: 40px auto;
    max-width: 1240px;
    padding: 24px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

/* Layout - Modern Card Design */
.main-product-row,
.additional-product-row {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 24px;
    border: 1px solid var(--border);
  /*  background: linear-gradient(135deg, #ffffff 0%, #f3f3f3 100%); */
      background-color: #ebebeb;; 
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.main-product-row:hover,
.additional-product-row:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.main-product-left,
.additional-product-left {
    flex: 1;
    text-align: center;
}

.main-product-right,
.additional-product-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Typography - Modern Hierarchy */
#quick-view-title,
.main-product-right h2,
.additional-product-right h3,
.product-name {
    font-family: "Montserrat", sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

#quick-view-price,
.main-product-right .price,
.additional-product-right .price,
.product-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

/* Upload Form - Modern Drag & Drop */
.enhanced-upload-form {
    border: 2px dashed var(--border);
    padding: 32px 24px;
    text-align: center;
    margin-top: 20px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
    transition: all 0.3s ease;
    color: var(--text-medium);
    cursor: pointer;
}

.enhanced-upload-form:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: var(--primary);
    transform: scale(1.01);
}

.enhanced-upload-form .upload-area {
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.enhanced-upload-form .upload-area::before {
    content: "📁";
    display: block;
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* Product Gallery - Premium Image Display */
.product-gallery {
    margin-bottom: 20px;
}

.product-gallery .main-image {
    max-width: 420px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-gallery .main-image:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.product-gallery .gallery-thumbnails {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.product-gallery .gallery-thumbnails img {
    max-width: 80px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.product-gallery .gallery-thumbnails img:hover {
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.product-gallery .gallery-thumbnails img.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

/* Add to Cart Button - Modern CTA */
.add-to-cart,
#select-product {
    margin-top: 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #c72d22 100%);
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: var(--radius-sm);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 14px rgba(217, 48, 37, 0.3);
    position: relative;
    overflow: hidden;
}

.add-to-cart::before,
#select-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.add-to-cart:hover::before,
#select-product:hover::before {
    left: 100%;
}

.add-to-cart:hover,
#select-product:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #a11c18 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(217, 48, 37, 0.4);
}

.add-to-cart:active,
#select-product:active {
    transform: translateY(-1px);
}

/* Quantity Selector - Sleek Input */
.quantity-selector {
    width: 90px;
    padding: 12px 16px;
   /* border: 2px solid var(--border); */
     border: 2px solid #d8d8d8;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    background: #fff;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.quantity-selector:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

/* Quick View Modal - Premium Overlay */
#quick-view-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    background: #fff;
    z-index: 1000;
    display: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: var(--text-dark);
    backdrop-filter: blur(10px);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.quick-view-content {
    padding: 36px;
    display: flex;
    gap: 36px;
}

/* Quick View Thumbnails */
.quick-view-left .gallery-thumbnails img {
    max-width: 80px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    margin-top: 12px;
    box-shadow: var(--shadow-sm);
}

.quick-view-left .gallery-thumbnails img:hover {
    border-color: var(--primary);
    transform: scale(1.08);
    box-shadow: var(--shadow-md);
}

/* Close Button - Modern Icon */
.close-quick-view {
    font-size: 28px;
    border: none;
    background: var(--bg-light);
    color: var(--text-medium);
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-quick-view:hover {
    background: var(--primary);
    color: #fff;
    transform: rotate(90deg);
}

/* Additional Products Section - Elegant Card Grid */
.additional-products {
    margin-top: 48px;
}

.additional-products h5 {
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.additional-products h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

/* Checkbox Styling - Large and Prominent */
.additional-product-row input[type="checkbox"],
.additional-products input[type="checkbox"] {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    border: 3px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.additional-product-row input[type="checkbox"]:hover,
.additional-products input[type="checkbox"]:hover {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.additional-product-row input[type="checkbox"]:checked,
.additional-products input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.2);
}

.additional-product-row input[type="checkbox"]:checked::after,
.additional-products input[type="checkbox"]:checked::after {
    content: '✓';
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 22px;
}

.additional-product-row input[type="checkbox"]:focus,
.additional-products input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.15);
}

.additional-products .main-image {
    max-width: 160px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.additional-products .main-image:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.03);
}

.additional-products .quick-view-trigger {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.additional-products .quick-view-trigger:hover {
    color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Select Dropdowns - Modern Style */
select {
    margin: 12px 0;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    background: #fff;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

select:hover {
    border-color: #cbd5e1;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

/* Responsive - Mobile First Approach */
@media (max-width: 767px) {
    .product-selection {
        padding: 16px;
        margin: 20px auto;
    }

    .main-product-row,
    .additional-product-row,
    .quick-view-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    #quick-view-title,
    .main-product-right h2,
    .additional-product-right h3,
    .product-name {
        font-size: 22px;
    }

    #quick-view-price,
    .main-product-right .price,
    .additional-product-right .price,
    .product-price {
        font-size: 26px;
    }

    .product-gallery .main-image {
        max-width: 100%;
    }

    .add-to-cart,
    #select-product {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 18px 32px;
    }

    #product-selection-form,
    #product-selection-form .main-product-right,
    #product-selection-form .additional-product-right,
    #product-selection-form .quantity,
    #product-selection-form .quantity input,
    #product-selection-form select,
    #product-selection-form input[type="number"],
    #product-selection-form input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .quantity {
        display: block !important;
    }

    .quantity-selector {
        width: 100%;
    }

    select {
        width: 100%;
        margin: 12px 0;
    }

    /* Mobile Title Styling */
    .product-name.mobile-title,
    .product-title.mobile-title {
        display: block;
        width: 100%;
        text-align: center;
        font-family: "Montserrat", sans-serif;
        font-weight: 800;
        font-size: 20px;
        line-height: 1.2;
        text-transform: uppercase;
        margin: 8px 0 16px;
        letter-spacing: -0.3px;
        color: var(--text-dark);
    }

    /* Mobile Checkbox - Larger for Touch */
    .additional-product-row input[type="checkbox"],
    .additional-products input[type="checkbox"] {
        width: 32px;
        height: 32px;
        top: 16px;
        left: 16px;
    }

    .additional-product-row input[type="checkbox"]:checked::after,
    .additional-products input[type="checkbox"]:checked::after {
        font-size: 20px;
        line-height: 26px;
    }

    .main-product-left,
    .additional-product-left {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .main-product-left .product-gallery,
    .main-product-left .main-image {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .quick-view-content {
        padding: 24px;
    }

    #quick-view-modal {
        width: 95%;
        border-radius: 16px;
    }
    
    .enhanced-upload-form {
        padding: 24px 16px;
    }
}

/* Smooth Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}




 .size-chart-section {
            text-align: left;
            padding: 40px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .size-chart-section h2 {
            font-family: "Montserrat", sans-serif;
            font-size: 28px;
            font-weight: 800;
            color: #0f172a;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 30px;
            position: relative;
            display: inline-block;
        }

        .size-chart-section h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, #d93025, transparent, #d93025);
            border-radius: 2px;
        }

        .size-chart-section img {
            max-width: 100%;
            height: auto;
         /*   display: block; */
            margin: 0 auto;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }

        .size-chart-section img:hover {
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            transform: scale(1.01);
        }

        /* Responsive styles */
        @media (max-width: 768px) {
            .size-chart-section {
                padding: 30px 16px;
            }

            .size-chart-section h2 {
                font-size: 24px;
                margin-bottom: 20px;
                letter-spacing: 1px;
            }

            .size-chart-section h2::after {
                width: 60px;
                height: 3px;
                bottom: -8px;
            }

            .size-chart-section img {
                border-radius: 8px;
            }
        }

        @media (max-width: 480px) {
            .size-chart-section {
                padding: 20px 12px;
            }

            .size-chart-section h2 {
                font-size: 20px;
                margin-bottom: 16px;
            }

            .size-chart-section h2::after {
                width: 50px;
            }
        }