﻿/* Featured Products Styles - Front Page Only (No Price/Quantity) */

:root {
    --bg-white: #ffffff;
    --bg-light: #f9faf9;
    --text-dark: #2d3e2b;
    --text-gray: #6c757d;
    --green-primary: #2e7d32;
    --green-dark: #1b5e20;
    --gold: #ffc107;
    --orange: #ff9800;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

/* Section Styling */
.featured-products {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
}

.featured-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background: rgba(46, 125, 50, 0.1);
    color: var(--green-primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.highlight {
    background: linear-gradient(135deg, var(--green-primary), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    max-width: 550px;
    margin: 0 auto;
}

/* Products Grid - 3 Columns */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Product Card */
.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover);
    }

/* Product Image - FULL COVERAGE */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: #f0f0f0;
    flex-shrink: 0;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ensure images cover full wrapper on hover */
.product-card:hover .product-img {
    transform: scale(1.08);
}

/* Fallback for images that might not load properly */
.product-img[src=""],
.product-img:error {
    object-fit: contain;
    background: #f5f5f5;
}

.product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: white;
    padding: 5px 14px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    backdrop-filter: blur(2px);
}

/* Product Info */
.product-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46, 125, 50, 0.08);
    padding: 5px 14px;
    border-radius: 25px;
    margin-bottom: 15px;
    width: fit-content;
}

.category-icon {
    font-size: 0.9rem;
}

.category-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Features - No Price/Quantity Section */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

    .product-features span {
        font-size: 0.8rem;
        color: var(--text-gray);
        background: #f5f5f5;
        padding: 5px 12px;
        border-radius: 20px;
        transition: var(--transition);
    }

        .product-features span:hover {
            background: rgba(46, 125, 50, 0.1);
            color: var(--green-primary);
            transform: translateY(-2px);
        }

/* Button */
.product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin-top: auto;
}

    .product-btn:hover {
        transform: translateX(5px);
        background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
        box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
    }

.btn-icon {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.product-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Responsive Design - Ensure images always cover full width */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .featured-products {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 15px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .product-image-wrapper {
        height: 240px;
    }

    .product-info {
        padding: 20px;
    }

    .product-name {
        font-size: 1.2rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .product-features span {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .product-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .featured-products {
        padding: 40px 15px;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 5px 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-image-wrapper {
        height: 260px;
    }

    .product-info {
        padding: 20px;
    }

    .product-name {
        font-size: 1.3rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .product-features {
        gap: 8px;
        margin-bottom: 20px;
    }

        .product-features span {
            font-size: 0.75rem;
            padding: 5px 12px;
        }

    .product-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Small Mobile (375px and below) */
@media (max-width: 375px) {
    .product-image-wrapper {
        height: 240px;
    }

    .product-name {
        font-size: 1.2rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .product-features span {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}

/* Landscape Mode - Ensure images still cover properly */
@media (max-width: 768px) and (orientation: landscape) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .product-image-wrapper {
        height: 180px;
    }

    .product-img {
        object-fit: cover;
    }

    .product-info {
        padding: 15px;
    }

    .product-category {
        margin-bottom: 8px;
        padding: 3px 10px;
    }

    .product-name {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .product-description {
        font-size: 0.75rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .product-features {
        margin-bottom: 15px;
        gap: 6px;
    }

        .product-features span {
            font-size: 0.65rem;
            padding: 3px 8px;
        }

    .product-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* High DPI Screens - Ensure crisp images */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-img {
        object-fit: cover;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

    .product-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .product-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .product-card:nth-child(3) {
        animation-delay: 0.3s;
    }
