﻿/* ============================================================
   PREMIUM PRODUCT CARDS
   FINAL RESPONSIVE VERSION

   IMPORTANT:
   Product images use object-fit: contain
   Therefore COMPLETE image remains visible.
   No image cropping.
   ============================================================ */


/* ============================================================
   GLOBAL
   ============================================================ */

.product-cards-section {
    width: 100%;
    max-width: 100%;
    padding: 75px 20px;
    overflow: hidden;
    background: radial-gradient( circle at 10% 0%, rgba(25, 135, 84, 0.08), transparent 35% ), linear-gradient( 180deg, #f8fbf8 0%, #ffffff 100% );
}


.product-cards-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


/* ============================================================
   HEADER
   ============================================================ */

.product-cards-header {
    width: 100%;
    margin-bottom: 45px;
    text-align: center;
}


.header-content {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}


.section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid #d7ebdc;
    border-radius: 50px;
    background: #eef8f0;
    color: #198754;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}


    .section-badge i {
        font-size: 10px;
    }


.section-title {
    margin: 18px 0 10px;
    line-height: 1.2;
}


.title-main {
    display: block;
    color: #182b1d;
    font-size: clamp( 32px, 4vw, 52px );
    font-weight: 900;
}


.highlight {
    color: #198754;
}


.title-sub {
    display: block;
    margin-top: 7px;
    color: #65746a;
    font-size: clamp( 17px, 2vw, 23px );
    font-weight: 700;
}


.section-description {
    margin: 15px auto 0;
    color: #68766d;
    font-size: 15px;
    line-height: 1.7;
}


.hindi-text {
    font-weight: 600;
}


/* ============================================================
   GRID
   ============================================================ */

.product-cards-grid {
    display: grid;
    grid-template-columns: repeat( 4, minmax(0, 1fr) );
    gap: 25px;
    width: 100%;
}


/* ============================================================
   PRODUCT CARD
   ============================================================ */

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e5ebe6;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba( 24, 62, 37, .09 );
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}


    .product-card:hover {
        transform: translateY(-8px);
        border-color: rgba( 25, 135, 84, .28 );
        box-shadow: 0 25px 55px rgba( 24, 62, 37, .16 );
    }


/* ============================================================
   PRODUCT IMAGE CONTAINER

   IMPORTANT:
   Height creates consistent card design.
   ============================================================ */

.product-card-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f4f7f4;
}


    /* ============================================================
   IMAGE

   IMPORTANT:
   CONTAIN = COMPLETE IMAGE
   NO CROPPING
   ============================================================ */

    .product-card-image img {
        display: block;
        width: 100%;
        height: 100%;
        /*
       VERY IMPORTANT

       contain keeps the entire image visible.

       cover would crop the image.
    */

        object-fit: contain;
        object-position: center center;
        /*
       Prevent browser stretching.
    */

        max-width: 100%;
        max-height: 100%;
        transition: transform .5s ease;
    }


/* ============================================================
   SUBTLE HOVER

   Keep scale extremely small so image remains visible.
   ============================================================ */

.product-card:hover
.product-card-image img {
    transform: scale(1.02);
}


/* ============================================================
   IMAGE OVERLAY

   Very subtle overlay only.
   ============================================================ */

.image-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    pointer-events: none;
    background: linear-gradient( to top, rgba( 0, 0, 0, .15 ), transparent );
}


/* ============================================================
   PRODUCT BADGE
   ============================================================ */

.product-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 30px;
    background: rgba( 20, 99, 59, .94 );
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba( 0, 0, 0, .16 );
    backdrop-filter: blur(7px);
}


    .product-badge i {
        font-size: 11px;
    }


/* ============================================================
   BEST SELLER
   ============================================================ */

.product-badge-top {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 30px;
    background: rgba( 33, 37, 41, .88 );
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba( 0, 0, 0, .15 );
    backdrop-filter: blur(7px);
}


    .product-badge-top i {
        color: #ffd43b;
    }


/* ============================================================
   CONTENT
   ============================================================ */

.product-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    padding: 23px;
}


/* ============================================================
   PRODUCT NAME
   ============================================================ */

.product-name {
    margin: 0;
    color: #182b1d;
    font-size: 22px;
    font-weight: 850;
    line-height: 1.25;
}


.product-hindi-name {
    display: block;
    margin-top: 5px;
    color: #6b796f;
    font-size: 15px;
    font-weight: 600;
}


/* ============================================================
   RATING
   ============================================================ */

.product-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 13px 0;
    font-size: 12px;
}


.stars {
    color: #f5b301;
    letter-spacing: 1px;
}


.rating-count {
    color: #2c382f;
    font-weight: 800;
}


.reviews-count {
    color: #7a857d;
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.product-description {
    margin: 0 0 18px;
    min-height: 68px;
    color: #68756c;
    font-size: 14px;
    line-height: 1.7;
}


/* ============================================================
   FEATURES
   ============================================================ */

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 22px;
}


.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid #e1eee4;
    border-radius: 8px;
    background: #f3f8f4;
    color: #376047;
    font-size: 10px;
    font-weight: 700;
}


    .feature-tag i {
        color: #198754;
    }


/* ============================================================
   DETAILS BUTTON
   ============================================================ */

.btn-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 51px;
    margin-top: auto;
    padding: 10px 15px;
    border-radius: 13px;
    background: linear-gradient( 135deg, #198754, #126b43 );
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba( 25, 135, 84, .20 );
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}


    .btn-details:hover {
        transform: translateY(-2px);
        background: linear-gradient( 135deg, #157347, #0f5a38 );
        box-shadow: 0 12px 25px rgba( 25, 135, 84, .30 );
    }


    .btn-details:active {
        transform: translateY(0);
    }


.btn-text {
    white-space: nowrap;
}


.btn-hindi {
    opacity: .85;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}


.btn-icon {
    margin-left: auto;
    transition: transform .25s ease;
}


.btn-details:hover
.btn-icon {
    transform: translateX(5px);
}


/* ============================================================
   LOADING STATE
   ============================================================ */

.btn-details.is-loading {
    pointer-events: none;
    opacity: .85;
}


/* ============================================================
   LARGE TABLET
   ============================================================ */

@media (max-width: 1200px) {

    .product-cards-grid {
        grid-template-columns: repeat( 3, minmax(0, 1fr) );
    }
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    .product-cards-section {
        padding: 60px 18px;
    }


    .product-cards-grid {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
        gap: 20px;
    }


    .product-card-image {
        height: 280px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .product-cards-section {
        padding: 45px 12px;
    }


    .product-cards-header {
        margin-bottom: 30px;
    }


    .section-badge {
        padding: 7px 13px;
        font-size: 10px;
    }


    .title-main {
        font-size: 30px;
    }


    .title-sub {
        font-size: 17px;
    }


    .section-description {
        font-size: 13px;
    }


    .product-cards-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .product-card {
        border-radius: 19px;
    }


    /*
       Full image remains visible.
    */

    .product-card-image {
        height: 280px;
    }


        .product-card-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
        }


    .product-card-content {
        padding: 19px;
    }


    .product-name {
        font-size: 21px;
    }


    .product-description {
        min-height: auto;
        font-size: 13px;
    }


    .feature-tag {
        font-size: 10px;
    }


    .btn-details {
        min-height: 52px;
        font-size: 13px;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .product-cards-section {
        padding-left: 10px;
        padding-right: 10px;
    }


    .product-card-image {
        height: 250px;
    }


    .product-card-content {
        padding: 16px;
    }


    .product-name {
        font-size: 20px;
    }


    .product-rating {
        gap: 5px;
    }


    .btn-details {
        gap: 6px;
    }


    .btn-hindi {
        font-size: 9px;
    }
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .product-card,
    .product-card-image img,
    .btn-details,
    .btn-icon {
        transition: none !important;
    }
}


/* ============================================================
   SAFETY - NO HORIZONTAL SCROLL
   ============================================================ */

.product-cards-section,
.product-cards-container,
.product-cards-grid,
.product-card,
.product-card-image,
.product-card-content {
    max-width: 100%;
}
