﻿/* ============================================
   PROFESSIONAL SEED COMPANY PRODUCT SECTION
   FULL IMAGE VISIBILITY · ZOOM-OUT STYLE · NO CROP
   ============================================ */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5faf2;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Roboto', sans-serif;
}

/* ----- MAIN SECTION (SEPARATE VIEW CONTAINER) ----- */
.featured-products {
    background: linear-gradient(135deg, #fafef7 0%, #eff7e9 100%);
    padding: 100px 28px;
    width: 100%;
    overflow-x: hidden;
}

.featured-container {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

/* ----- SECTION HEADER (PROFESSIONAL TYPOGRAPHY) ----- */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-badge {
    background: #e3f0dd;
    color: #1b5e2a;
    padding: 6px 22px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.6px;
    display: inline-block;
    backdrop-filter: blur(2px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.section-title {
    font-size: 3rem;
    margin: 20px 0 14px 0;
    font-weight: 800;
    color: #1a2f17;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.highlight {
    color: #2c7632;
    background: linear-gradient(120deg, #dcf0d3 0%, #cbe8c0 80%);
    background-size: 100% 35%;
    background-repeat: no-repeat;
    background-position: bottom;
    display: inline-block;
    padding: 0 6px;
}

.section-subtitle {
    color: #4a6740;
    font-size: 1.12rem;
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 450;
}

/* ----- PRODUCT GRID (RESPONSIVE) ----- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* ----- PRODUCT CARD (ELEGANT, PROFESSIONAL) ----- */
.product-card {
    background: #ffffff;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 18px 38px -14px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid #e3edd9;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 28px 44px -16px rgba(35, 85, 20, 0.18);
        border-color: #cde0c0;
    }

/* ===== IMAGE WRAPPER: ZOOM-OUT + FULL IMAGE (NO CROP EVER) ===== */
.product-image-wrapper {
    background: #ffffff;
    padding: 36px 28px 28px 28px;
    position: relative;
    border-bottom: 2px solid #f0f6ea;
}

/* Image frame: acts as sophisticated container, NEVER crops the image */
.image-frame {
    width: 100%;
    min-height: 280px;
    background: #fbfef8;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: inset 0 0 0 1px #e9f0e2, 0 10px 20px -8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s;
}

/* CRITICAL RULE: FULL IMAGE VISIBILITY, NO CROP, ZOOM-OUT EFFECT (scale < 1) */
.product-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* ZOOM-OUT: image appears comfortably inside frame, fully visible */
    transform: scale(0.84);
    transition: transform 0.35s ease-out;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.02));
}

/* On hover: subtle scaling but still NO ZOOM-IN aggressively, remains fully visible */
.product-card:hover .product-img {
    transform: scale(0.92);
}

/* Professional Tag / Badge */
.product-tag {
    position: absolute;
    top: 24px;
    left: 28px;
    background: #1f6b2c;
    color: white;
    padding: 6px 18px;
    border-radius: 60px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 4;
    backdrop-filter: blur(2px);
    text-transform: uppercase;
}

    .product-tag.organic {
        background: linear-gradient(115deg, #368a44, #1f6a30);
    }

    .product-tag.premium {
        background: linear-gradient(115deg, #f7b05e, #e67e22);
        color: #2d281c;
    }

/* ----- PRODUCT INFO (TEXT STYLES) ----- */
.product-info {
    padding: 28px 28px 32px 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecf4e6;
    padding: 5px 18px;
    border-radius: 60px;
    width: fit-content;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #266a2f;
}

.product-name {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 8px 0 12px 0;
    color: #1a3217;
    line-height: 1.3;
}

.product-description {
    color: #506a46;
    font-size: 0.94rem;
    line-height: 1.5;
    margin-bottom: 22px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

    .product-features span {
        background: #f3f9ef;
        padding: 6px 16px;
        border-radius: 60px;
        font-size: 0.75rem;
        font-weight: 600;
        color: #2a5a2f;
        letter-spacing: 0.2px;
        border: 0.5px solid #ddebd2;
    }

.product-btn {
    margin-top: auto;
    text-align: center;
    background: #22662c;
    color: white;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 700;
    padding: 14px 12px;
    transition: all 0.25s;
    font-size: 0.92rem;
    width: 100%;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .product-btn:hover {
        background: #134e1c;
        transform: scale(0.98);
        box-shadow: 0 8px 18px rgba(25, 80, 10, 0.15);
    }

/* ===== RESPONSIVE DESIGN: FULL IMAGE VISIBILITY ON ALL DEVICES ===== */
/* Tablet (max-width: 1100px) */
@media (max-width: 1100px) {
    .featured-products {
        padding: 80px 24px;
    }

    .products-grid {
        gap: 30px;
    }

    .image-frame {
        min-height: 250px;
    }

    .product-img {
        transform: scale(0.82);
    }

    .product-card:hover .product-img {
        transform: scale(0.9);
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Tablet to small desktop (max-width: 900px) */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .image-frame {
        min-height: 230px;
        padding: 16px;
    }

    .product-img {
        transform: scale(0.83);
        max-height: 190px;
    }
}

/* Mobile landscape & large phones (max-width: 680px) */
@media (max-width: 680px) {
    .featured-products {
        padding: 60px 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .image-frame {
        min-height: 240px;
    }

    .product-img {
        transform: scale(0.86);
        max-height: 210px;
    }

    .product-card:hover .product-img {
        transform: scale(0.94);
    }

    .section-title {
        font-size: 2rem;
    }

    .product-name {
        font-size: 1.45rem;
    }

    .product-tag {
        top: 18px;
        left: 20px;
        font-size: 0.7rem;
        padding: 5px 14px;
    }

    .product-image-wrapper {
        padding: 28px 22px 22px 22px;
    }
}

/* Extra small devices (max-width: 480px) */
@media (max-width: 480px) {
    .image-frame {
        min-height: 210px;
        padding: 14px;
    }

    .product-img {
        transform: scale(0.84);
        max-height: 170px;
    }

    .product-info {
        padding: 22px;
    }

    .section-badge {
        font-size: 0.7rem;
    }
}

/* Large screens: maintain consistent "zoom-out" without any cropping */
@media (min-width: 1600px) {
    .featured-container {
        max-width: 1480px;
    }

    .image-frame {
        min-height: 310px;
    }

    .product-img {
        transform: scale(0.85);
        max-height: 260px;
    }
}

/* Guarantee: no hidden overflow, no image cropping */
.image-frame,
.product-image-wrapper,
.product-img {
    overflow: visible;
}

/* extra polish for professional seed brand */
.product-img {
    image-rendering: crisp-edges;
    transition: transform 0.3s ease;
}
