
/* =========================================================
   SRI MADHURI GHEE - PRODUCTS PAGE
========================================================= */

.sm-products-section,
.sm-products-section * {
    box-sizing: border-box;
}

.sm-products-section {
    --sm-green: #810f0f;
    --sm-green-dark: #810f0f;
    --sm-gold: #c49a45;
    --sm-cream: #fffaf0;
    --sm-text: #292d27;
    --sm-muted: #73776f;
    --sm-border: #eae6dc;

    padding: 75px 20px;
    background: #fffdf8;
    color: var(--sm-text);
    font-family: inherit;
}

.sm-products-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

/* Section Heading */

.sm-section-heading {
    max-width: 740px;
    margin: 0 auto 38px;
    text-align: center;
}

.sm-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--sm-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.6;
    text-transform: uppercase;
}

.sm-section-heading h2,
.sm-details-heading h2 {
    margin: 0 0 16px;
    color: var(--sm-green-dark);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
}

.sm-section-heading p,
.sm-details-heading > p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--sm-muted);
    font-size: 16px;
    line-height: 1.8;
}

/* Search */

.sm-product-toolbar {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.sm-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 600px;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid #deded2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(40, 55, 35, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sm-search-box:focus-within {
    border-color: var(--sm-green);
    box-shadow: 0 0 0 3px rgba(39, 103, 73, 0.10);
}

.sm-search-box > svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: var(--sm-green);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.sm-search-box input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 10px 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--sm-text);
    font: inherit;
    font-size: 14px;
    box-shadow: none;
}

.sm-search-box input::placeholder {
    color: #999b92;
}

.sm-search-box input:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

.sm-clear-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: none;
    border-radius: 50%;
    background: #f1f1eb;
    color: #454940;
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
}

.sm-clear-search[hidden] {
    display: none !important;
}

/* Category Tabs */

.sm-product-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 0 30px;
}

.sm-filter-tab {
    min-height: 44px;
    padding: 11px 25px;
    border: 1px solid #deded2;
    border-radius: 50px;
    background: #fff;
    color: #50564d;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.sm-filter-tab:hover {
    border-color: var(--sm-green);
    color: var(--sm-green);
}

.sm-filter-tab.is-active {
    border-color: var(--sm-green);
    background: var(--sm-green);
    color: #fff;
    box-shadow: 0 4px 12px rgba(39, 103, 73, 0.15);
}

.sm-filter-tab:focus-visible,
.sm-clear-search:focus-visible,
.sm-no-results button:focus-visible {
    outline: 3px solid var(--sm-gold);
    outline-offset: 3px;
}

/* Results Bar */

.sm-results-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
    color: var(--sm-muted);
    font-size: 13px;
    font-weight: 600;
}

.sm-results-line {
    height: 1px;
    flex: 1;
    background: var(--sm-border);
}

/* Product Grid */

.sm-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

.sm-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #eee9dd;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(45, 50, 35, 0.045);
    transition: transform 0.3s ease, box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.sm-product-card:hover {
    transform: translateY(-5px);
    border-color: #d8dcca;
    box-shadow: 0 14px 32px rgba(45, 50, 35, 0.10);
}

.sm-product-card[hidden] {
    display: none !important;
}

/* Product Image */

.sm-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 15px;
    background: var(--sm-cream);
}

.sm-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
}

.sm-product-card:hover .sm-product-image img {
    transform: scale(1.045);
}

.sm-product-badge {
    position: absolute;
    z-index: 1;
    top: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
    padding: 7px 12px;
    border-radius: 50px;
    background: #e5f0df;
    color: #285d34;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.sm-buffalo-badge {
    background: #f5e9cf;
    color: #805a20;
}

/* Product Content */

.sm-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 23px 17px 20px;
    text-align: center;
}

.sm-product-type {
    margin-bottom: 7px;
    color: var(--sm-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.sm-product-content h3 {
    margin: 0 0 8px;
    color: var(--sm-green-dark);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
}

.sm-pack-size {
    margin: 0 0 20px;
    color: var(--sm-muted);
    font-size: 15px;
    font-weight: 600;
}

/* WhatsApp Button */

.sm-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    padding: 12px 10px;
    border: 1px solid #218c4b;
    border-radius: 8px;
    background: #218c4b;
    color: #fff !important;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.25s ease, transform 0.25s ease;
}

.sm-whatsapp-btn svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sm-whatsapp-btn:hover {
    border-color: #176c39;
    background: #176c39;
    color: #fff !important;
    transform: translateY(-1px);
}

.sm-whatsapp-btn:focus-visible {
    outline: 3px solid #9bc9a9;
    outline-offset: 3px;
}

/* No Results */

.sm-no-results {
    padding: 55px 20px;
    border: 1px dashed #d9ddce;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.sm-no-results[hidden] {
    display: none !important;
}

.sm-no-results-icon {
    margin-bottom: 12px;
    color: var(--sm-green);
    font-size: 45px;
}

.sm-no-results h3 {
    margin: 0 0 10px;
    color: var(--sm-green-dark);
    font-size: 24px;
}

.sm-no-results p {
    margin: 0 0 20px;
    color: var(--sm-muted);
    line-height: 1.7;
}

.sm-no-results button {
    padding: 12px 22px;
    border: none;
    border-radius: 7px;
    background: var(--sm-green);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

/* Product Details */

.sm-composition {
    margin-top: 85px;
    padding: 45px;
    border: 1px solid #eee8d9;
    border-radius: 20px;
    background: #faf8ef;
}

.sm-details-heading {
    margin-bottom: 32px;
    text-align: center;
}

.sm-details-heading h2 {
    margin-bottom: 12px;
    font-size: clamp(27px, 3vw, 34px);
}

.sm-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.sm-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 23px;
    border: 1px solid #eae6d8;
    border-radius: 12px;
    background: #fff;
}

.sm-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border-radius: 50%;
    background: #edf2e6;
    color: var(--sm-green);
    font-size: 12px;
    font-weight: 800;
}

.sm-detail-item h3 {
    margin: 2px 0 7px;
    color: var(--sm-green-dark);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
}

.sm-detail-item p {
    margin: 0;
    color: var(--sm-muted);
    font-size: 14px;
    line-height: 1.75;
}

/* Tablet */

@media (max-width: 1024px) {
    .sm-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .sm-composition {
        padding: 32px;
    }
}

/* Small Tablet */

@media (max-width: 767px) {
    .sm-products-section {
        padding: 50px 16px;
    }

    .sm-section-heading {
        margin-bottom: 28px;
    }

    .sm-section-heading h2 {
        font-size: 30px;
    }

    .sm-section-heading p {
        font-size: 14px;
    }

    .sm-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .sm-product-content {
        padding: 17px 11px 14px;
    }

    .sm-product-content h3 {
        font-size: 17px;
    }

    .sm-product-type {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .sm-pack-size {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .sm-product-badge {
        top: 9px;
        left: 9px;
        padding: 6px 9px;
        font-size: 10px;
    }

    .sm-whatsapp-btn {
        gap: 6px;
        min-height: 43px;
        padding: 10px 5px;
        font-size: 11px;
    }

    .sm-whatsapp-btn svg {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }

    .sm-product-tabs {
        gap: 8px;
    }

    .sm-filter-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .sm-composition {
        margin-top: 55px;
        padding: 25px 16px;
        border-radius: 14px;
    }

    .sm-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sm-detail-item {
        padding: 18px 14px;
    }
}

/* Small Mobile */

@media (max-width: 380px) {
    .sm-products-section {
        padding-right: 12px;
        padding-left: 12px;
    }

    .sm-products-grid {
        gap: 10px;
    }

    .sm-product-content {
        padding-right: 8px;
        padding-left: 8px;
    }

    .sm-product-content h3 {
        font-size: 15px;
    }

    .sm-whatsapp-btn {
        font-size: 10px;
    }

    .sm-filter-tab {
        padding: 9px 12px;
        font-size: 12px;
    }
}
