/* Products Page Styles */
body {
    /* Remove any default padding/margin that might push content down */
    padding-top: 0;
    margin-top: 0;
}

#header {
    margin-bottom: 0;
}

/* Make header background transparent initially */
#header:not(.scrolled) {
    background-color: transparent;
}

/* Semi-transparent yellow background when scrolled */
#header.scrolled {
    background-color: rgba(234, 177, 35, 0.95) !important; /* Override any other styling */
    backdrop-filter: blur(10px);
}

.product-sections::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px; /* Should match padding-top value */
    background: linear-gradient(to bottom, rgba(234, 177, 35, 0.9), rgba(234, 177, 35, 0.95));
    backdrop-filter: blur(10px);
    z-index: -1; /* Place it behind other content but above the body background */
    pointer-events: none; /* Don't interfere with interactions */
}

/* Create space that compensates for fixed header */
.product-sections {
    padding-top: 70px; /* Adjust this value to match your header height */
    background-color: #ECE9E2; /* Match the first section background */
}

/* Product Section Styling */
.product-section {
    padding: 0;
    width: 100%;
    height: 600px; /* Fixed height */
    overflow: hidden;
}

.light-bg {
    background-color: #ECE9E2;
}

.yellow-bg {
    background-color: #EAB123;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 100%;
}

/* Image containers */
.product-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Left-side image */
.product-section:nth-child(odd) .product-image img {
    position: absolute;
    height: 100%;
    width: auto;
    max-width: none;
    left: 0;
    object-fit: cover;
}

/* Right-side image */
.product-section:nth-child(even) .product-image img {
    position: absolute;
    height: 100%;
    width: auto;
    max-width: none;
    right: 0;
    object-fit: cover;
}

.product-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
}

.product-text h2 {
    color: var(--primary-red);
    font-size: var(--font-xl);
    margin-bottom: 20px;
}

.product-text p {
    color: #333;
    font-size: var(--font-md);
    line-height: 1.6;
}

/* Yellow section text color adjustment */
.yellow-bg .product-text h2,
.yellow-bg .product-text p {
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .product-section {
        height: 350px;
    }
    
    .product-text {
        padding: 30px 40px;
    }
    
    .product-text h2 {
        font-size: var(--font-lg);
    }
    
    .product-text p {
        font-size: var(--font-sm);
    }
}

@media (max-width: 768px) {
    /* Adjust header color for mobile */
    #header {
        background-color: rgba(236, 233, 226, 0.95);
        backdrop-filter: blur(10px);
    }

    .product-sections {
        padding-top: 60px; /* Slightly smaller for mobile */
    }

    .product-sections::before {
        height: 60px; /* Match mobile padding */
    }
    
    .product-section {
        height: auto;
    }

    .product-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    .product-image {
        height: 300px;
    }

    .slider-container {
        min-height: 300px !important;
        height: 300px !important;
        margin-bottom: 20px;
    }
    
    /* Force slider to be visible on mobile */
    .image-slider {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .product-section:nth-child(odd) .product-image img,
    .product-section:nth-child(even) .product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        position: relative;
    }
    
    /* Reverse order for yellow section on mobile */
    .yellow-bg .product-grid .product-image {
        order: -1;
    }
}

@media (max-width: 480px) {
    .product-sections {
        padding-top: 50px; /* Even smaller for very small screens */
    }

    .product-sections::before {
        height: 50px; /* Match small screen padding */
    }
    
    .product-text {
        padding: 25px 20px;
    }
    
    .product-text h2 {
        font-size: var(--font-md);
    }
    
    .product-image {
        height: 250px;
    }
}

@import 'gallery.css';