﻿/* ================= COMPACT PROFESSIONAL PRODUCT CARDS ================= */
/* Image full, no zoom, clean layout - Mobile First Approach */

.featured-products {
    padding: 48px 0;
    background: #fafbfa;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header - Compact */
.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-badge {
    display: inline-block;
    background: #eef2ee;
    color: #2c5e2c;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a2e1a;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

    .section-title .highlight {
        color: #2c5e2c;
    }

.section-subtitle {
    font-size: 14px;
    color: #5a6b5a;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Product Grid - Responsive Columns */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* Product Card - Compact & Professional */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #edf2ed;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        border-color: #e0e8e0;
    }

/* Image Wrapper - Full image, no crop, auto height */
.card-image-wrapper {
    position: relative;
    background: #f7f9f7;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f4f0;
}

.product-image {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    display: block;
    transition: none;
}

/* No hover zoom */
.product-card:hover .product-image {
    transform: none;
}

/* Badge - Small & Subtle */
.image-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2c5e2c;
    color: white;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* Card Body - Compact Content */
.card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a3a1a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-description {
    font-size: 12px;
    color: #6b7a6b;
    line-height: 1.4;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button - Smaller & Professional */
.btn-view-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #2c5e2c;
    color: white;
    font-weight: 500;
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: fit-content;
    margin-top: 4px;
}

    .btn-view-more:hover {
        background: #1e401e;
        gap: 8px;
        transform: translateY(-1px);
    }

.btn-arrow {
    transition: transform 0.2s ease;
    font-size: 12px;
}

.btn-view-more:hover .btn-arrow {
    transform: translateX(3px);
}

/* View All Button - Compact */
.view-all-wrapper {
    text-align: center;
    margin-top: 16px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2c5e2c;
    color: white;
    font-weight: 500;
    font-size: 13px;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(44, 94, 44, 0.2);
}

    .btn-view-all:hover {
        background: #1e401e;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(44, 94, 44, 0.25);
        gap: 10px;
    }

/* ================= RESPONSIVE (Mobile First) ================= */

/* Small phones (up to 480px) */
@media (max-width: 480px) {
    .featured-products {
        padding: 32px 0;
    }

    .container {
        padding: 0 16px;
    }

    .section-header {
        margin-bottom: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .product-grid {
        gap: 16px;
    }

    .card-image-wrapper {
        padding: 16px;
    }

    .product-image {
        max-height: 140px;
    }

    .card-body {
        padding: 12px 14px 14px;
    }

    .product-title {
        font-size: 15px;
    }

    .product-description {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .btn-view-more {
        font-size: 11px;
        padding: 6px 14px;
    }

    .btn-view-all {
        font-size: 12px;
        padding: 8px 20px;
    }
}

/* Medium phones (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-image {
        max-height: 130px;
    }
}

/* Tablets (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-image {
        max-height: 150px;
    }
}

/* Small desktops / Large tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .product-image {
        max-height: 160px;
    }
}

/* Desktops (1025px and above) */
@media (min-width: 1025px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .featured-products {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .product-image {
        max-height: 170px;
    }
}

/* Large screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1360px;
    }

    .product-grid {
        gap: 28px;
    }

    .product-image {
        max-height: 180px;
    }
}
