
/* ====================================
   CATEGORY PRODUCTS PAGE
==================================== */

.category-products-page {
    padding: 45px 0 75px;
    background: #f7f8fb;
    min-height: 75vh;
    font-family: inherit;
}

.category-products-page *,
.category-products-page *::before,
.category-products-page *::after {
    box-sizing: border-box;
}

.category-products-page a {
    text-decoration: none !important;
}

/* CATEGORY HEADER */

.category-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
    background: #ffffff;
    border: 1px solid #edf0f4;
    border-radius: 16px;
    margin-bottom: 35px;
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.category-page-image {
    width: 115px;
    height: 115px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #f4f5f7;
    overflow: hidden;
}

.category-page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: #e67e22;
}

.category-header-info h1 {
    font-size: 29px;
    font-weight: 750;
    color: #172033;
    margin: 6px 0 8px;
    line-height: 1.25;
}

.category-header-info p {
    font-size: 14px;
    color: #788293;
    margin-bottom: 10px;
}

.category-product-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #576275;
}

.category-product-count i {
    color: #e67e22;
}

.category-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 17px;
    border-radius: 9px;
    border: 1px solid #e1e5eb;
    color: #28354a;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: .25s;
}

.category-back-btn:hover {
    background: #172d50;
    color: white;
    border-color: #172d50;
}

/* LISTING HEADING */

.category-listing-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 23px;
}

.category-listing-heading h2 {
    font-size: 24px;
    font-weight: 750;
    color: #172033;
    margin: 0 0 5px;
}

.category-listing-heading p {
    color: #788293;
    font-size: 13px;
    margin: 0;
}

.category-total {
    background: #ffffff;
    border: 1px solid #e8ebef;
    border-radius: 20px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 600;
    color: #576275;
    white-space: nowrap;
}

/* PRODUCT CARD */

.category-products-page .category-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.category-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(20, 35, 55, .09);
}

/* PRODUCT IMAGE */

.category-products-page .category-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 235px;
    overflow: hidden;
    background: #f8f8f8;
}

.category-products-page .category-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px;
    transition: transform .35s ease;
}

.category-product-card:hover .category-product-image img {
    transform: scale(1.04);
}

.category-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #b3bac5;
    font-size: 42px;
}

.category-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e84a40;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 5px;
}

/* PRODUCT BODY */

.category-products-page .category-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 17px;
}

.category-product-type {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #e67e22;
    margin-bottom: 9px;
}

.category-product-name {
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
    margin: 0 0 12px;
    min-height: 45px;
}

.category-product-name a {
    color: #202b3b;
    display: -webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-product-name a:hover {
    color: #e67e22;
}

/* PRICE */

.category-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.category-price strong {
    font-size: 19px;
    font-weight: 750;
    color: #15233a;
}

.category-price del {
    font-size: 12px;
    color: #939ba8;
}

/* STOCK */

.category-stock {
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 600;
}

.in-stock {
    color: #168451;
}

.out-stock {
    color: #df4545;
}

.category-stock i {
    margin-right: 4px;
}

/* VIEW BUTTON */

.category-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding: 12px 10px;
    background: #172d50;
    color: #fff !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: .25s;
}

.category-view-btn:hover {
    background: #e67e22;
    color: #ffffff !important;
}

/* EMPTY STATE */

.category-empty {
    text-align: center;
    background: #ffffff;
    padding: 65px 20px;
    border-radius: 14px;
}

.category-empty > i {
    font-size: 48px;
    color: #b7bfcb;
}

.category-empty h3 {
    font-size: 21px;
    font-weight: 700;
    margin-top: 15px;
}

.category-empty p {
    font-size: 14px;
    color: #7a8494;
}

.category-empty a {
    display: inline-block;
    background: #172d50;
    color: #fff;
    padding: 11px 20px;
    border-radius: 8px;
    margin-top: 10px;
}

/* PAGINATION */

.category-pagination {
    margin-top: 35px;
    display: flex;
    justify-content: center;
}

.category-pagination nav {
    max-width: 100%;
}

/* TABLET */

@media (max-width: 991px) {
    .category-products-page {
        padding: 30px 0 55px;
    }

    .category-page-header {
        padding: 22px;
    }

    .category-products-page .category-product-image {
        height: 210px;
    }
}

/* MOBILE */

@media (max-width: 575px) {

    .category-products-page {
        padding: 20px 0 45px;
    }

    .category-products-page .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .category-page-header {
        padding: 16px;
        border-radius: 12px;
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }

    .category-header-left {
        gap: 12px;
    }

    .category-page-image {
        width: 72px;
        height: 72px;
        border-radius: 9px;
    }

    .category-header-info h1 {
        font-size: 21px;
    }

    .category-header-info p {
        font-size: 12px;
    }

    .category-label {
        font-size: 9px;
    }

    .category-back-btn {
        font-size: 12px;
        padding: 9px 12px;
    }

    .category-listing-heading h2 {
        font-size: 19px;
    }

    .category-listing-heading p {
        font-size: 11px;
    }

    .category-products-page .row {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    .category-products-page .category-product-image {
        height: 165px;
    }

    .category-products-page .category-product-image img {
        padding: 5px;
    }

    .category-products-page .category-product-body {
        padding: 11px;
    }

    .category-product-name {
        font-size: 13px;
        min-height: 40px;
        margin-bottom: 9px;
    }

    .category-product-type {
        font-size: 10px;
    }

    .category-price strong {
        font-size: 16px;
    }

    .category-price del {
        font-size: 11px;
    }

    .category-view-btn {
        padding: 10px 5px;
        font-size: 11px;
    }

    .category-discount {
        top: 7px;
        left: 7px;
        padding: 4px 7px;
        font-size: 9px;
    }
}
