﻿/* ================= ProductSection.css (Image Top, Content Below) ================= */

.featured-products {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fdf8 0%, #ffffff 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a3a1a;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

    .section-title .highlight {
        color: #2e7d32;
        position: relative;
        display: inline-block;
    }

        .section-title .highlight::after {
            content: '';
            position: absolute;
            bottom: 8px;
            left: 0;
            width: 100%;
            height: 12px;
            background: rgba(46, 125, 50, 0.2);
            z-index: -1;
        }

.section-subtitle {
    font-size: 18px;
    color: #5a6b5a;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Product Grid - 4 columns */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

/* Product Card - Image Top, Content Below */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
    }

/* Image Wrapper - Top Section */
.card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f0f4f0;
}

.product-image {
    width: 110%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.3, 0.9, 0.4, 1.2);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Image Tag/Badge */
.image-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2e7d32;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Card Body - Content Below Image */
.card-body {
    padding: 20px 18px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-description {
    font-size: 13px;
    color: #6b7a6b;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* View More Button - Below Content */
.btn-view-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2e7d32;
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 8px;
}

    .btn-view-more:hover {
        background: #1b5e20;
        gap: 12px;
        transform: translateY(-2px);
    }

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-view-more:hover .btn-arrow {
    transform: translateX(4px);
}

/* View All Button */
.view-all-wrapper {
    text-align: center;
    margin-top: 20px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #2e7d32;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

    .btn-view-all:hover {
        background: #1b5e20;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(46, 125, 50, 0.4);
        gap: 16px;
    }

/* ================= RESPONSIVE DESIGN ================= */

/* Desktop Large */
@media (max-width: 1300px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .section-title {
        font-size: 38px;
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .featured-products {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .card-image-wrapper {
        height: 220px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .container {
        padding: 0 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .card-image-wrapper {
        height: 200px;
    }

    .product-title {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    .featured-products {
        padding: 48px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .section-badge {
        font-size: 12px;
    }

    .card-image-wrapper {
        height: 220px;
    }

    .card-body {
        padding: 18px 16px 20px;
    }

    .product-icon {
        font-size: 28px;
    }

    .product-title {
        font-size: 18px;
    }

    .btn-view-more {
        padding: 8px 18px;
        font-size: 13px;
    }

    .btn-view-all {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .card-image-wrapper {
        height: 200px;
    }

    .product-description {
        font-size: 12px;
    }
}
