﻿/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== PRODUCT SECTION ===== */
.product-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8faf8 0%, #f0f7f0 100%);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: block;
    opacity: 1;
    visibility: visible;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

    .section-header h2 {
        font-size: 2.8rem;
        color: #14532d;
        margin-bottom: 15px;
        font-weight: 700;
        letter-spacing: -0.5px;
        line-height: 1.2;
    }

    .section-header .subtitle {
        font-size: 1.2rem;
        color: #2c5f2d;
        opacity: 0.9;
        max-width: 600px;
        margin: 0 auto;
        font-weight: 400;
    }

.header-decoration {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #4ade80);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    opacity: 1;
    visibility: visible;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(20, 83, 45, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    opacity: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(22, 163, 74, 0.1);
    visibility: visible;
}

    .product-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 30px 45px rgba(20, 83, 45, 0.15);
        border-color: rgba(22, 163, 74, 0.3);
    }

/* ===== PRODUCT IMAGE ===== */
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f0f7f0;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
        display: block;
    }

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(20, 83, 45, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.product-card:hover .image-overlay {
    opacity: 1;
}

.category-tag {
    background: #16a34a;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== PRODUCT INFO ===== */
.product-info {
    padding: 25px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .product-info h3 {
        color: #14532d;
        margin-bottom: 12px;
        font-size: 1.4rem;
        font-weight: 700;
        line-height: 1.3;
    }

.product-description {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

/* ===== PRODUCT FEATURES ===== */
.product-features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.feature {
    background: #f0fdf4;
    color: #166534;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ===== PRODUCT BUTTON ===== */
.product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: #ffffff;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

    .product-btn:hover {
        background: linear-gradient(135deg, #14532d 0%, #16a34a 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(20, 83, 45, 0.4);
        color: #ffffff;
    }

    .product-btn:active {
        transform: translateY(0);
    }

.btn-icon {
    transition: transform 0.3s ease;
}

.product-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Stagger animations for cards */
.product-card:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.product-card:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.product-card:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.3s both;
}

.product-card:nth-child(4) {
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .section-header h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 992px) {
    .product-section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .section-header {
        margin-bottom: 40px;
    }

        .section-header h2 {
            font-size: 2rem;
        }

        .section-header .subtitle {
            font-size: 1rem;
            padding: 0 15px;
        }

    .product-info {
        padding: 20px;
    }

        .product-info h3 {
            font-size: 1.3rem;
        }
}

@media (max-width: 480px) {
    .product-section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .product-features {
        gap: 10px;
    }

    .feature {
        font-size: 0.8rem;
        padding: 4px 10px;
    }

    .product-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* ===== PRINT STYLES ===== */
@media print {
    .product-section {
        background: white;
        padding: 20px 0;
    }

    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .product-btn {
        display: none;
    }
}
