.product-text.block-c {
    background-color: #F3E8D2;
}

.product-text h2.h-c {
    color: #4B2E13;
}

.product-text p.p {
    color: #524A43;
}

.products-hero-c {
    background: linear-gradient(135deg, #9E8566, #B6936A, #8A6B47);
}

#h1-container {
    width: 100vw;
    height: 62px;
    padding: 50px 0;
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.5);
}

#h1-container h1 {
    margin: 0;
    font-family: "Metrophobic", sans-serif;
    font-weight: 700;
    font-size: 50px;
    font-style: normal;
    text-align: center;
    color: #f5f5f5;
}

#products-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 30px;
    background-image: url('../img/bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

#products-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

#products-wrapper > * {
    z-index: 1;
}

.product {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
    margin-bottom: 35px;
    gap: 20px;
    scroll-margin-top: 100px;
}

.product:last-child {
    margin-bottom: 0px;
}

.product img {
    width: 80%;
    max-width: 400px;
    border-radius: 5%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.product-gallery {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: calc(100vw - 40px);
    overflow: hidden;
    border-radius: 5%;
    transition: opacity .25s ease-out;
}

.product-gallery img {
    position: absolute;
    left: 0;
    width: 100%;
    opacity: 0;
    border-radius: 5%;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.product-gallery img.active {
    pointer-events: auto;
    position: relative;
    z-index: 2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.active.opacity1 {
    opacity: 1;
}

.product-gallery button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(85, 60, 35, 0.45);
    color: #f4ede3;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 50%;
    backdrop-filter: blur(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    font-size: 18px;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.product-gallery button i {
    pointer-events: none;
}

.product-gallery button:hover {
    background: rgba(150, 115, 75, 0.85);
    color: #fffaf3;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.product-gallery button.prev { left: 12px; }
.product-gallery button.next { right: 12px; }

.product-text {
    width: 100%;
    max-width: calc(100vw - 80px);
    margin-bottom: 10px;
    transition: opacity .25s ease-out;
    padding: 0 30px 15px;
    border-radius: 35px;
}

.product-text h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 30px;
}

.product-text p {
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 500;
    font-size: 18px;
}

#image-modal {
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    inset: 0;
    z-index: 19;
    background-color: rgba(0,0,0,0.85);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
    touch-action: none;
}

#image-modal.show {
    opacity: 1;
    pointer-events: auto;
}

#image-modal .image-container {
    position: relative;
    overflow: hidden;
    min-width: 35%;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

#image-modal img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    cursor: zoom-in;
}

#image-modal.show img {
    opacity: 1;
}

#image-modal img.zoomed {
    width: 200%;
    height: auto;
    cursor: grab;
}

#close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 20;
    -webkit-tap-highlight-color: transparent;
}

#close-modal:hover {
    color: #c5915d;
    transform: scale(1.07);
}

@media only screen and (min-width: 1000px) {
    #main-container h1 {
        font-size: 60px;
    }
    
    #h1-container {
        height: 75px;
    }

    #products-wrapper {
        padding: 0 12%;
    }

    .product {
        flex-direction: row;
        align-items: center;
        gap: 30px;
        margin-bottom: 15px;
        padding: 10px 35px;
    }

    .product:nth-child(even) {
        flex-direction: row-reverse;
    }
    
    .product-gallery {
        width: 80%;
        max-width: 400px;
    }

    .product-gallery img {
        top: 0;
        transform: translateY(0);
    }

    .product-text {
        margin-bottom: 0;
        padding: 0 30px 5px;
        border-radius: 25px;
    }

    .product-text h2 {
        font-size: 38px;
        margin: 23px 0 0;
    }

    .product-text p {
        font-size: 22px;
        margin: 15px 0 25px;
    }

    .products-hero-c {
        background: linear-gradient(135deg, #9E8566, #B6936A, #8A6B47);
    }
}