﻿/* ============================================
   PRODUCT CARDS SECTION
   ============================================ */
.product-cards-section {
    padding: 80px 0;
    background: #f8faf8;
}

.product-cards-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.product-cards-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    padding: 8px 24px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 12px;
}

.title-main {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #1a2a1a;
}

    .title-main .highlight {
        color: #2e7d32;
    }

.title-sub {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #4a6a4a;
    margin-top: 4px;
}

.section-description {
    font-size: 16px;
    color: #546e7a;
    line-height: 1.8;
}

    .section-description .hindi-text {
        display: block;
        font-size: 15px;
        color: #78909c;
        margin-top: 4px;
    }

/* ============================================
   PRODUCT CARDS GRID
   ============================================ */
.product-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(46, 125, 50, 0.12);
    }

/* Card Border */
.card-border-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #4caf50;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .card-border-animation {
    opacity: 1;
}

/* ============================================
   CARD IMAGE - FULL HD FIX
   ============================================ */
.product-card-image {
    position: relative;
    width: 100%;
    padding-top: 80%; /* Slightly taller for better image display */
    overflow: hidden;
    background: #f0f4f0;
}

    .product-card-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important; /* Changed from cover to contain for full image */
        object-position: center;
        transition: transform 0.5s ease;
        background: #f0f4f0;
        padding: 10px; /* Add some padding to show full image */
    }

/* Hover zoom effect - subtle */
.product-card:hover .product-card-image img {
    transform: scale(1.03);
}

/* Color Overlay */
.card-color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
}

.product-card:hover .card-color-overlay {
    opacity: 0.08;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #1a2a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

    .product-badge i {
        font-size: 14px;
        color: #4caf50;
    }

/* ============================================
   CARD CONTENT
   ============================================ */
.product-card-content {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Name */
.product-name-wrapper {
    margin-bottom: 10px;
}

.product-name {
    font-size: 20px;
    font-weight: 800;
    color: #1a2a1a;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
}

.product-hindi-name {
    font-size: 15px;
    font-weight: 600;
    color: #4caf50;
}

/* Product Description */
.product-description {
    margin-bottom: 14px;
    flex: 1;
}

    .product-description p {
        font-size: 14px;
        line-height: 1.6;
        color: #546e7a;
        margin: 0;
    }

    .product-description .desc-hindi {
        font-size: 13px;
        color: #78909c;
        margin-top: 4px;
    }

/* Product Features */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #f0f4f0;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: #2e7d32;
}

    .feature-tag i {
        font-size: 10px;
        color: #4caf50;
    }

/* ============================================
   CARD ACTIONS
   ============================================ */
.product-card-actions {
    margin-top: auto;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #2e7d32;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
}

    .btn-details:hover {
        background: #1b5e20;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
        color: #ffffff;
    }

    .btn-details .btn-icon {
        transition: transform 0.3s ease;
    }

    .btn-details:hover .btn-icon {
        transform: translateX(4px);
    }

    .btn-details .btn-hindi {
        display: none;
    }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
    .product-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .product-cards-section {
        padding: 60px 0;
    }

    .product-cards-container {
        padding: 0 20px;
    }

    .product-card-image {
        padding-top: 70%;
    }

        .product-card-image img {
            padding: 8px;
        }
}

/* Mobile */
@media (max-width: 768px) {
    .product-cards-section {
        padding: 40px 0;
    }

    .product-cards-container {
        padding: 0 16px;
    }

    .product-cards-header {
        margin-bottom: 30px;
    }

    .title-main {
        font-size: 28px;
    }

    .title-sub {
        font-size: 17px;
    }

    .section-description {
        font-size: 14px;
    }

    .product-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .product-card-image {
        padding-top: 75%;
    }

        .product-card-image img {
            padding: 6px;
        }

    .product-card-content {
        padding: 16px;
    }

    .product-name {
        font-size: 17px;
    }

    .product-hindi-name {
        font-size: 13px;
    }

    .product-description p {
        font-size: 13px;
    }

    .product-description .desc-hindi {
        font-size: 12px;
    }

    .btn-details {
        padding: 10px 16px;
        font-size: 13px;
    }

        .btn-details .btn-text {
            display: none;
        }

        .btn-details .btn-hindi {
            display: inline;
        }

    .product-badge {
        font-size: 11px;
        padding: 4px 12px;
        top: 12px;
        right: 12px;
    }

    .feature-tag {
        font-size: 10px;
        padding: 3px 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .product-cards-section {
        padding: 30px 0;
    }

    .product-cards-container {
        padding: 0 12px;
    }

    .product-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .title-main {
        font-size: 24px;
    }

    .title-sub {
        font-size: 15px;
    }

    .product-card-image {
        padding-top: 70%;
    }

        .product-card-image img {
            padding: 5px;
        }

    .product-name {
        font-size: 19px;
    }

    .product-hindi-name {
        font-size: 14px;
    }

    .product-description p {
        font-size: 14px;
    }

    .product-description .desc-hindi {
        font-size: 13px;
    }

    .btn-details {
        padding: 12px 20px;
        font-size: 14px;
    }

        .btn-details .btn-text {
            display: inline;
        }

        .btn-details .btn-hindi {
            display: none;
        }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .product-cards-section {
        padding: 40px 0;
    }

    .product-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-card-image {
        padding-top: 60%;
    }

        .product-card-image img {
            padding: 5px;
        }
}

/* Extra Large Screens */
@media (min-width: 1400px) {
    .product-cards-container {
        max-width: 1400px;
    }

    .product-cards-grid {
        gap: 35px;
    }

    .title-main {
        font-size: 42px;
    }

    .product-card-image {
        padding-top: 75%;
    }

        .product-card-image img {
            padding: 12px;
        }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-card-image img,
    .btn-details {
        transition: none !important;
        animation: none !important;
    }

        .product-card:hover {
            transform: none !important;
        }

            .product-card:hover .product-card-image img {
                transform: none !important;
            }
}
/* Image Loading Animation */
.product-card-image img {
    opacity: 0;
    animation: imageFadeIn 0.6s ease forwards;
}

@keyframes imageFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Skip animation if image is already loaded */
.product-card-image img[loading="lazy"] {
    animation: none;
}

.product-card-image img:not([loading="lazy"]) {
    animation: imageFadeIn 0.6s ease forwards;
}