/* ==========================================================================
   PRODUCTS CATEGORIES SECTION
   ========================================================================== */

.gnv-products-section {
    width: 100vw;
    background-color: #F8F5F2; /* Very soft beige from screenshot */
    padding: 100px 0;
    overflow: hidden;
}

.gnv-products-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Left Column */
.gnv-products-left {
    width: 30%;
    display: flex;
    flex-direction: column;
    /* Scroll Animation Initial State */
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.gnv-products-left .section-badge {
    color: #666;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.gnv-products-left h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
    color: var(--gnv-black);
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: -1px;
}

.gnv-products-left p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn-dark-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1A3326; /* Dark green from screenshot */
    color: var(--gnv-white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-dark-green:hover {
    background-color: var(--gnv-green);
    color: var(--gnv-white);
    transform: translateY(-2px);
}

.btn-dark-green .arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-dark-green:hover .arrow {
    transform: translateX(5px);
}

/* Right Column (Cards Grid) */
.gnv-products-right {
    width: 70%;
    display: flex;
    gap: 20px;
}

.gnv-category-card {
    flex: 1;
    background-color: var(--gnv-white);
    border-top-left-radius: 150px;
    border-top-right-radius: 150px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    text-decoration: none;
    cursor: pointer;
    
    /* Scroll Animation Initial State */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

.gnv-category-card:hover {
    transform: translateY(-10px) !important; /* Override scroll animation transform */
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* Scroll Animation Active States */
.gnv-products-section.is-animated .gnv-products-left {
    opacity: 1;
    transform: translateX(0);
}

.gnv-products-section.is-animated .gnv-category-card {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered card animations */
.gnv-products-section.is-animated .gnv-category-card:nth-child(1) { transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s, box-shadow 0.4s ease; }
.gnv-products-section.is-animated .gnv-category-card:nth-child(2) { transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s, box-shadow 0.4s ease; }
.gnv-products-section.is-animated .gnv-category-card:nth-child(3) { transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s, box-shadow 0.4s ease; }
.gnv-products-section.is-animated .gnv-category-card:nth-child(4) { transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s, box-shadow 0.4s ease; }


.cat-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-top-left-radius: 150px;
    border-top-right-radius: 150px;
}

.cat-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gnv-category-card:hover .cat-image-wrapper img {
    transform: scale(1.08);
}

.cat-content {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.cat-content h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--gnv-black);
    font-weight: 700;
    margin-bottom: 10px;
}

.cat-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    padding-right: 35px; /* Leave space for the arrow circle */
}

.cat-arrow {
    position: absolute;
    bottom: 25px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #1A3326; /* Dark green */
    color: var(--gnv-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.gnv-category-card:hover .cat-arrow {
    background-color: var(--gnv-green);
    transform: rotate(-45deg); /* Cool diagonal arrow effect on hover */
}

/* Responsive Layout */
@media (max-width: 1200px) {
    .gnv-products-container {
        flex-direction: column;
    }
    .gnv-products-left {
        width: 100%;
        max-width: 600px;
        text-align: center;
        align-items: center;
        margin-bottom: 50px;
    }
    .btn-dark-green {
        align-self: center;
    }
    .gnv-products-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
    .gnv-category-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .gnv-products-section {
        padding: 60px 0;
    }
    /* Horizontal scrolling for cards on mobile */
    .gnv-products-right {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding: 0 20px 20px;
        margin: 0 -20px; /* Bleed to edges */
    }
    .gnv-category-card {
        flex: 0 0 75%;
        scroll-snap-align: center;
        min-width: unset;
    }
}
