* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    padding-bottom: 0;
}

.product-item:hover .image-container img {
    transform: scale(1);
    filter: grayscale(0%);
}

.products-section {
    width: 100vw;
    background-color: #f8fbff; /* Extremely light blue-grey to differentiate from white */
    text-align: center;
}

.section-title {
    font-size: 40px;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 80px;
    color: #1a1a1a;
    margin-top: 80px;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 50px;
    padding-bottom: 40px;
}

.image-container {
    margin-bottom: 20px;
    width: 100%;
    aspect-ratio: 1 / 1; 
    position: relative;
    overflow: hidden;
    background: #f2f2f28c;
    box-shadow: inset 0 0 50px rgba(255, 235, 183, 0.1); /* Very faint golden internal glow */
}


.image-container img {
   height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}



.product-details h3 {
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: 400;
    margin-bottom: 6px;
    color: #1a1a1a;
    /* Ensuring small letters are used if not specified in JSON */
    text-transform: none; 
}

.product-details h4 {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 0px;
    color: #1a1a1a;
    /* Ensuring small letters are used if not specified in JSON */
    text-transform: none; 
    font-family: 'Didot', 'Playfair Display', serif;
    font-style: italic;
    font-weight: 800;
    
}

.discover-link {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    border-bottom: 1px solid #ddd;
    padding-bottom: 3px;
    transition: all 0.3s;
}

.product-item {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
    grid-column: span 1;
}


.discover-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 35px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    font-family: 'Didot', 'Playfair Display', serif;
    font: italic;
    margin-bottom: 15px;
}

.product-item:hover .discover-button {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}

.discover-button:active {
    transform: scale(0.98);
}

.product-details {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 10px;
    min-height: 147px;
}

/* //////////////////////////////// */

.product-item .image-container {
    width: 100%;
    overflow: hidden; 
    position: relative;
}

.product-item .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.wide-item {
    grid-column: span 2;
}


.wide-item:hover .image-container img {
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}


.mega-item {
    grid-column: span 2;
    grid-row: span 2;
}


.mega-item:hover .image-container img {
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}


.image-container::before,
.image-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    filter: blur(30px); 
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease;
}

.image-container::before {
    background: conic-gradient(
        from 90deg at 50% 50%, 
        transparent 0deg, 
        rgba(255, 235, 183, 0.15) 60deg, 
        rgba(255, 255, 255, 0.628) 100deg, 
        rgba(255, 235, 183, 0.15) 90deg, 
        transparent 50deg
    );
    transform: rotate(-30deg); 
}

.image-container::after {
    background: conic-gradient(
        from 270deg at 50% 50%, 
        transparent 0deg, 
        rgba(255, 235, 183, 0.15) 60deg, 
        rgba(255, 255, 255, 0.628) 100deg, 
        rgba(255, 235, 183, 0.15) 90deg, 
        transparent 50deg
    );
    transform: rotate(-30deg);
}

.product-item:hover .image-container::before,
.product-item:hover .image-container::after {
    opacity: 1;
    transform: rotate(30deg); 
}

.product-item:hover .image-container img {
    filter: brightness(1) contrast(1); 
    transition: filter 0.8s ease;
}

.product-item.wide-item {
    grid-column: span 2;
}

.product-item.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.product-item.reveal-on-scroll.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.slide {
    position: sticky;
    top: 0;
    height: auto;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    z-index: 10;
}

video {
    object-fit: cover;
    height: 100%;
    position: absolute;
}

.center-stack {
    z-index: 1000;
    background-color: #f8fbff;
    position: relative;
}



.slide h2 {
    font-size: 65px;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 10px;
    top: 115px;
    position: relative;
    margin-left: 110px;
    max-width: 35ch;
}

.slide p {
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-style: italic;
    opacity: 0.9;
    top: 40px;
    position: relative;
    left: 5px;
}

@media (min-width: 777px) {
    .discover-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 35px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    font-family: 'Didot', 'Playfair Display', serif;
    font: italic;
    margin-bottom: 10px;
    width: 90%;
}

}
@media (max-width: 768px) {
    .section-title {
        margin-bottom: 30px; 
        font-size: 30px;
        margin-top: 70px;
    }

    .product-gallery {
        grid-template-columns: repeat(2, 1fr); 
        gap: 5px; 
        padding: 0 10px;
        margin: 0 3px;
        padding-bottom: 20px;
    }

    .product-item {
        padding: 4px; 
    }

    .product-details h3 {
        font-size: 20px; /* Smaller font for mobile */
        margin-bottom: 6px;
        letter-spacing: 1px;
    }

    .discover-link {
        font-size: 11px;
        padding-bottom: 2px;
    }


    .slide h2 {
        font-size: 42px;
        font-weight: 300;
        letter-spacing: 8px;
        text-transform: uppercase;
        margin-bottom: 10px;
        top: 110px;
        position: relative;
        margin-left: 10px !important;
        max-width: 35ch;
    }

    .slide p {
        font-size: 1.1rem;
        letter-spacing: 2px;
        font-style: italic;
        opacity: 0.9;
        top: 40px;
        position: relative;
        left: 5px;
    }
}

@media (min-width: 1200px){

.product-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0px 150px;
    padding-bottom: 40px;
}

}