/* =========================================================
   SAIRAM HERBALS
   PREMIUM PRODUCT CARD
========================================================= */

.sr-product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    height: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e7eee9;
    border-radius: 22px;

    box-shadow:
        0 8px 30px rgba(27, 72, 45, 0.055);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


.sr-product-card:hover {
    transform: translateY(-6px);

    border-color: #d6e5da;

    box-shadow:
        0 18px 45px rgba(27, 72, 45, 0.12);
}


/* =========================================================
   IMAGE AREA
========================================================= */

.sr-product-media {
    position: relative;

    height: 250px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #f8fbf8 0%,
            #f1f8f3 100%
        );
}


/* subtle decorative circle */

.sr-product-media::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    right: -70px;
    bottom: -80px;

    border-radius: 50%;

    background: rgba(48, 126, 76, 0.055);

    transition:
        transform 0.5s ease;
}


.sr-product-card:hover
.sr-product-media::before {
    transform: scale(1.25);
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.sr-product-image-link {
    position: relative;

    z-index: 2;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 22px;

    text-decoration: none;
}


.sr-product-image {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        transform 0.5s
        cubic-bezier(.2, .8, .2, 1);
}


.sr-product-card:hover
.sr-product-image {
    transform: scale(1.06);
}


/* =========================================================
   IMAGE GLOW
========================================================= */

.sr-product-media-glow {
    position: absolute;

    left: 50%;
    bottom: -45px;

    width: 150px;
    height: 75px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: rgba(47, 126, 76, 0.09);

    filter: blur(20px);

    pointer-events: none;
}


/* =========================================================
   DISCOUNT
========================================================= */

.sr-product-discount {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 5;

    min-width: 55px;
    height: 29px;

    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            #26784a,
            #185c36
        );

    color: #ffffff;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.4px;

    box-shadow:
        0 6px 15px rgba(
            24,
            92,
            54,
            0.20
        );
}


.sr-product-discount[hidden] {
    display: none;
}


/* =========================================================
   WISHLIST
========================================================= */

.sr-product-wishlist-form {
    position: absolute;

    top: 13px;
    right: 13px;

    z-index: 6;

    margin: 0;
}


.sr-product-wishlist {
    width: 40px;
    height: 40px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(
        255,
        255,
        255,
        0.85
    );

    border-radius: 50%;

    background: rgba(
        255,
        255,
        255,
        0.90
    );

    backdrop-filter: blur(12px);

    color: #285c3e;

    font-size: 19px;

    cursor: pointer;

    box-shadow:
        0 7px 20px rgba(
            0,
            0,
            0,
            0.08
        );

    transition:
        transform 0.25s ease,
        color 0.25s ease,
        background 0.25s ease;
}


.sr-product-wishlist:hover {
    transform: scale(1.08);

    background: #ffffff;

    color: #c64151;
}


/* =========================================================
   CONTENT
========================================================= */

.sr-product-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    min-width: 0;

    padding: 17px 18px 18px;
}


/* =========================================================
   CATEGORY
========================================================= */

.sr-product-category {
    width: fit-content;

    margin-bottom: 8px;

    padding: 5px 9px;

    border-radius: 7px;

    background: #eef7f0;

    color: #31734a;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.6px;

    text-transform: uppercase;
}


/* =========================================================
   PRODUCT NAME
========================================================= */

.sr-product-name {
    margin: 0;

    min-height: 43px;

    font-size: 17px;
    line-height: 1.35;

    font-weight: 750;

    letter-spacing: -0.15px;

    color: #17271e;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


.sr-product-name a {
    color: inherit;

    text-decoration: none;
}


.sr-product-name a:hover {
    color: #23683e;
}


/* =========================================================
   BRAND
========================================================= */

.sr-product-brand {
    margin: 5px 0 12px;

    color: #89948d;

    font-size: 11px;
    line-height: 1.4;

    font-weight: 500;
}


/* =========================================================
   QUANTITY SELECTOR
========================================================= */

.sr-product-variant {
    position: relative;

    margin-top: 3px;
    margin-bottom: 12px;
}


.sr-product-variant-label {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 6px;

    color: #6d7a72;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.55px;

    text-transform: uppercase;
}


.sr-product-variant-label i {
    font-size: 15px;

    color: #7c8981;
}


.sr-product-quantity {
    width: 100%;
    height: 40px;

    padding: 0 35px 0 12px;

    appearance: none;

    border: 1px solid #dce8df;
    border-radius: 11px;

    outline: none;

    background:
        #fbfdfb;

    color: #245c3b;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.sr-product-quantity:hover {
    background: #ffffff;

    border-color: #b9d3c0;
}


.sr-product-quantity:focus {
    border-color: #4c9364;

    box-shadow:
        0 0 0 3px rgba(
            76,
            147,
            100,
            0.10
        );
}


/* =========================================================
   PRICE
========================================================= */

.sr-product-price-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-top: auto;

    padding-top: 3px;
}


.sr-product-pricing {
    display: flex;

    align-items: baseline;

    flex-wrap: wrap;

    gap: 7px;

    min-width: 0;
}


.sr-product-final-price {
    color: #17562f;

    font-size: 21px;

    font-weight: 850;

    letter-spacing: -0.6px;
}


.sr-product-original-price {
    color: #a2aaa5;

    font-size: 11px;

    font-weight: 500;
}


.sr-product-original-price[hidden],
.sr-product-off[hidden] {
    display: none;
}


.sr-product-off {
    flex-shrink: 0;

    padding: 4px 7px;

    border-radius: 6px;

    background: #fff4e9;

    color: #bd6c2e;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.15px;
}


/* =========================================================
   STOCK
========================================================= */

.sr-product-stock {
    min-height: 24px;

    margin-top: 7px;
}


.sr-stock {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    font-size: 10px;

    font-weight: 700;
}


.sr-stock i {
    font-size: 14px;
}


.sr-stock-good {
    color: #368052;
}


.sr-stock-low {
    color: #c37a2d;
}


.sr-stock-out {
    color: #c34b4b;
}


/* =========================================================
   ACTIONS
========================================================= */

.sr-product-actions {
    display: grid;

    grid-template-columns:
        0.78fr 1.22fr;

    gap: 9px;

    margin-top: 11px;
}


.sr-product-cart-form {
    margin: 0;
    min-width: 0;
}


/* =========================================================
   VIEW BUTTON
========================================================= */

.sr-product-view {
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border: 1px solid #d8e5db;
    border-radius: 11px;

    background: #ffffff;

    color: #2b6240;

    font-size: 11px;
    font-weight: 750;

    text-decoration: none;

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease;
}


.sr-product-view i {
    font-size: 16px;
}


.sr-product-view:hover {
    transform: translateY(-2px);

    background: #f5faf6;

    border-color: #b9d2bf;
}


/* =========================================================
   ADD BUTTON
========================================================= */

.sr-product-add {
    width: 100%;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border: 0;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #2b7a4d,
            #185d37
        );

    color: #ffffff;

    font-size: 11px;
    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 7px 17px rgba(
            24,
            93,
            55,
            0.16
        );

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}


.sr-product-add i {
    font-size: 17px;
}


.sr-product-add:hover {
    transform: translateY(-2px);

    filter: brightness(1.03);

    box-shadow:
        0 10px 23px rgba(
            24,
            93,
            55,
            0.23
        );
}


.sr-product-add:active {
    transform: translateY(0);
}


.sr-product-add-disabled {
    opacity: 0.55;

    cursor: not-allowed;

    box-shadow: none;
}


.sr-product-add-disabled:hover {
    transform: none;

    filter: none;

    box-shadow: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .sr-product-card {
        border-radius: 18px;
    }


    .sr-product-media {
        height: 205px;
    }


    .sr-product-content {
        padding: 14px;
    }


    .sr-product-name {
        font-size: 15px;

        min-height: 40px;
    }


    .sr-product-final-price {
        font-size: 18px;
    }


    .sr-product-wishlist {
        width: 36px;
        height: 36px;

        font-size: 17px;
    }


    .sr-product-discount {
        top: 11px;
        left: 11px;

        height: 26px;

        font-size: 9px;
    }


    .sr-product-view,
    .sr-product-add {
        height: 39px;

        border-radius: 10px;

        font-size: 10px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .sr-product-media {
        height: 175px;
    }


    .sr-product-content {
        padding: 12px;
    }


    .sr-product-actions {
        gap: 6px;
    }


    .sr-product-view,
    .sr-product-add {
        height: 37px;

        border-radius: 9px;
    }

}

/* ==========================================
   PRODUCT AJAX TOAST
========================================== */

.sr-product-toast {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 99999;

    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 260px;

    padding: 13px 17px;

    border-radius: 13px;

    background: #ffffff;

    border: 1px solid #e2ebe5;

    box-shadow:
        0 15px 40px rgba(
            20,
            60,
            38,
            0.15
        );

    color: #234a31;

    font-size: 13px;
    font-weight: 650;

    opacity: 0;

    transform:
        translateY(15px)
        scale(0.97);

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.sr-product-toast i {
    font-size: 20px;
}


.sr-toast-show {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


.sr-toast-error {
    color: #b84040;
}


.sr-product-added {
    background:
        linear-gradient(
            135deg,
            #347f51,
            #1b6039
        ) !important;

    color: #ffffff !important;
}


@media (max-width: 600px) {

    .sr-product-toast {
        left: 16px;
        right: 16px;

        bottom: 16px;

        min-width: 0;

        justify-content: center;
    }

}