
/* =====================================================
   JAGADHATRI MEDICARE
   CATEGORY PAGE - MATCH PRODUCT LIST V3
===================================================== */

:root {
    --cat-primary: #123b62;
    --cat-dark: #092b4b;
    --cat-secondary: #08a89d;
    --cat-light: #f3f8fb;
    --cat-text: #20364b;
    --cat-muted: #7a8998;
    --cat-border: #e5edf2;
}

/* MAIN LAYOUT */

.shop-layout {
    width: 92%;
    max-width: 1440px;
    margin: 35px auto 70px;
    display: grid;
    grid-template-columns: 265px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    color: var(--cat-text);
}

.shop-layout *,
.shop-layout *::before,
.shop-layout *::after {
    box-sizing: border-box;
}

.shop-layout a {
    text-decoration: none;
}

/* SIDEBAR */

.sidebar {
    min-width: 0;
}

.sidebar-box {
    background: #fff;
    border: 1px solid var(--cat-border);
    border-radius: 14px;
    padding: 21px 19px;
    margin-bottom: 19px;
    box-shadow: 0 5px 20px rgba(20,53,78,.035);
}

.sidebar-box h3 {
    color: var(--cat-primary);
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf1f4;
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-box ul li {
    margin: 3px 0;
}

.sidebar-box ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    border-radius: 7px;
    color: #506477;
    font-size: 12px;
    font-weight: 600;
    transition: .25s;
}

.sidebar-box ul li a:hover,
.sidebar-box ul li a.active {
    background: #edf8f7;
    color: var(--cat-secondary);
    padding-left: 15px;
}

.content-area {
    min-width: 0;
}

/* CATEGORY HERO */

.banner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    min-height: 330px;
    background: linear-gradient(120deg,#092b4b,#164e78);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    margin-bottom: 28px;
    box-shadow: 0 15px 40px rgba(14,49,77,.13);
}

.banner-left {
    padding: 45px 25px 45px 40px;
    position: relative;
    z-index: 2;
}

.banner-left > span {
    display: inline-block;
    color: #71e4d8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 17px;
}

.banner-left h2 {
    color: #fff;
    font-size: clamp(27px,3vw,40px);
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 15px;
}

.banner-left p {
    color: rgba(255,255,255,.76);
    font-size: 13px;
    line-height: 1.9;
    max-width: 480px;
    margin-bottom: 22px;
}

.banner-left > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 7px;
    background: var(--cat-secondary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    transition: .3s;
}

.banner-left > a:hover {
    background: #fff;
    color: var(--cat-primary);
}

.banner-right {
    height: 330px;
    padding: 20px 30px 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* TOOLBAR */

.toolbar {
    min-height: 63px;
    padding: 11px 16px;
    background: #fff;
    border: 1px solid var(--cat-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #708292;
}

.toolbar strong {
    color: var(--cat-primary);
}

.toolbar form {
    margin: 0;
}

.toolbar select {
    height: 37px;
    padding: 0 30px 0 11px;
    border: 1px solid #e1e9ee;
    background: #fff;
    color: #40576a;
    border-radius: 6px;
    outline: 0;
    font-size: 11px;
}

/* PRODUCT GRID */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
}

/* PRODUCT CARD */

.product-card {
    background: #fff;
    border: 1px solid var(--cat-border);
    border-radius: 13px;
    overflow: hidden;
    min-width: 0;
    transition: transform .3s,box-shadow .3s,border-color .3s;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #c9e6e3;
    box-shadow: 0 14px 32px rgba(18,59,98,.10);
}

/* PRODUCT IMAGE */

.product-image {
    height: 225px;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 17px;
    overflow: hidden;
    border-bottom: 1px solid #edf1f4;
}

.product-image::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: #f3f8fa;
    border-radius: 50%;
    z-index: 0;
}

.product-image > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform .4s;
}

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

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: var(--cat-secondary);
    color: #fff;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 800;
}

/* HOVER ACTIONS */

.product-hover {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
    opacity: 0;
    transform: translateX(8px);
    transition: .3s;
}

.product-card:hover .product-hover {
    opacity: 1;
    transform: translateX(0);
}

.product-hover a {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--cat-primary);
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 3px 12px rgba(0,0,0,.09);
    transition: .25s;
}

.product-hover a:hover {
    background: var(--cat-secondary);
    color: #fff;
}

/* PRODUCT BODY */

.product-body {
    padding: 18px 16px 16px;
}

.brand-name {
    display: inline-block;
    color: var(--cat-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-body h3 {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
    color: var(--cat-primary);
    margin: 0 0 12px;
    min-height: 43px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-body > p {
    color: #8293a1;
    font-size: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f4;
    margin-bottom: 12px;
}

.product-rating {
    color: #f4b740;
    font-size: 10px;
    margin-bottom: 12px;
}

.product-footer {
    display: flex;
    align-items: center;
}

.btn-details {
    width: 100%;
    min-height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--cat-primary);
    color: #fff !important;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    transition: .3s;
}

.btn-details:hover {
    background: var(--cat-secondary);
}

/* EMPTY PRODUCTS */

.no-products {
    text-align: center;
    background: #fff;
    border: 1px solid var(--cat-border);
    border-radius: 14px;
    padding: 60px 20px;
    margin-top: 10px;
}

.no-products > i {
    color: var(--cat-secondary);
    font-size: 35px;
    margin-bottom: 18px;
}

.no-products h3 {
    color: var(--cat-primary);
    font-size: 20px;
    font-weight: 800;
}

.no-products p {
    color: var(--cat-muted);
    font-size: 13px;
    margin: 10px 0 20px;
}

/* PAGINATION */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: 32px 0;
}

.pagination a {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--cat-border);
    border-radius: 7px;
    color: #62788a;
    font-size: 12px;
    font-weight: 700;
    transition: .25s;
}

.pagination a.active,
.pagination a:hover {
    background: var(--cat-primary);
    border-color: var(--cat-primary);
    color: #fff;
}

/* TABLET */

@media(max-width:1100px) {
    .shop-layout {
        grid-template-columns: 235px minmax(0,1fr);
        gap: 18px;
    }

    .product-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 15px;
    }
}

/* MOBILE */

@media(max-width:767px) {
    .shop-layout {
        width: 94%;
        margin: 20px auto 45px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .sidebar,
    .content-area {
        width: 100%;
        min-width: 0;
    }

    .sidebar-box {
        padding: 17px;
    }

    .banner {
        grid-template-columns: 1fr;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .banner-left {
        padding: 28px 20px 8px;
    }

    .banner-left > span {
        font-size: 9px;
        margin-bottom: 12px;
    }

    .banner-left h2 {
        font-size: 29px;
    }

    .banner-left p {
        font-size: 12px;
        line-height: 1.7;
    }

    .banner-right {
        height: 210px;
        padding: 5px 15px 20px;
    }

    .toolbar {
        min-height: 55px;
        padding: 10px;
        margin-bottom: 14px;
    }

    .toolbar select {
        max-width: 125px;
        height: 34px;
        padding-left: 7px;
        font-size: 9px;
    }

    .product-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 11px;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-image {
        height: 155px;
        padding: 10px;
    }

    .product-image::after {
        width: 115px;
        height: 115px;
    }

    .product-hover {
        opacity: 1;
        transform: none;
        right: 7px;
        top: 7px;
        gap: 5px;
    }

    .product-hover a {
        width: 27px;
        height: 27px;
        font-size: 10px;
        border-radius: 6px;
    }

    .product-tag {
        top: 7px;
        left: 7px;
        font-size: 8px;
        padding: 4px 6px;
    }

    .product-body {
        padding: 12px 10px 10px;
    }

    .brand-name {
        font-size: 8px;
        margin-bottom: 5px;
    }

    .product-body h3 {
        font-size: 11px;
        line-height: 1.5;
        min-height: 33px;
        margin-bottom: 8px;
    }

    .product-body > p {
        font-size: 8px;
        padding-bottom: 9px;
        margin-bottom: 9px;
    }

    .product-rating {
        font-size: 8px;
        margin-bottom: 9px;
    }

    .btn-details {
        min-height: 32px;
        font-size: 9px;
    }

    .pagination {
        margin: 23px 0;
    }

    .no-products {
        padding: 40px 15px;
    }
}

/* SMALL MOBILE */

@media(max-width:380px) {
    .product-grid {
        gap: 8px;
    }

    .product-image {
        height: 135px;
    }

    .product-body {
        padding: 10px 8px;
    }

    .product-body h3 {
        font-size: 10px;
    }

    .btn-details {
        font-size: 8px;
    }
}



/* PRODUCT DETAILS + WHATSAPP BUTTON */

.product-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-footer .btn-details {
    flex: 1;
    text-align: center;
}

.product-footer .btn-whatsapp {
    width: 39px;
    height: 38px;
    min-width: 39px;
    display: grid;
    place-items: center;
    background: #e9f8ef;
    color: #20a45b !important;
    border-radius: 6px;
    font-size: 17px;
    transition: .3s;
}

.product-footer .btn-whatsapp:hover {
    background: #20a45b;
    color: #fff !important;
}





