/* =========================================================
   PRODUCTS PAGE
   Salam Foods theme extension
   ========================================================= */

.products-page {
    padding: 52px 0 70px;
    background: #faf9f7;
}


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

.products-page__mobile-toolbar {
    margin-bottom: 20px;
}

.products-page__category-button {
    width: 100%;
    min-height: 48px;

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

    gap: 9px;

    padding: 0 18px;

    border: 1px solid #dfd7c9;
    border-radius: 12px;

    background: #ffffff;

    color: #151515;

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

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.04);

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

.products-page__category-button i {
    color: #ad8436;
    font-size: 17px;
}

.products-page__category-button:hover {
    background: #f8f5ef;
    border-color: #caae73;
}


/* =========================================================
   PRODUCTS SIDEBAR
   ========================================================= */

.products-sidebar {
    position: sticky;
    top: 24px;

    background: #ffffff;

    border: 1px solid #e8e4dc;
    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.045);
}


/* =========================================================
   SIDEBAR HEADER
   ========================================================= */

.products-sidebar__header {
    padding: 24px 22px 20px;

    background:
        linear-gradient(
            135deg,
            #171717 0%,
            #090909 100%
        );
}

.products-sidebar__header span {
    display: block;

    margin-bottom: 6px;

    color: #d4b778;

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

    letter-spacing: 0.14em;

    text-transform: uppercase;
}

.products-sidebar__header h2 {
    margin: 0;

    color: #ffffff;

    font-family: "Nunito", sans-serif;

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

    line-height: 1.15;
}


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

.products-category-list {
    margin: 0;
    padding: 10px;
}

.products-category-list li {
    margin: 0;
}

.products-category-list li + li {
    margin-top: 3px;
}

.products-category-list a {
    position: relative;

    min-height: 45px;

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

    gap: 10px;

    padding: 10px 12px;

    border-radius: 9px;

    color: #4c4a46;

    font-size: 12.5px;
    font-weight: 600;

    line-height: 1.35;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        padding-left 0.18s ease;
}

.products-category-list a span {
    min-width: 0;
}

.products-category-list a i {
    flex: 0 0 auto;

    color: #b9b2a7;

    font-size: 12px;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.products-category-list a:hover {
    padding-left: 15px;

    background: #f8f5ef;

    color: #8d6826;
}

.products-category-list a:hover i {
    color: #ad8436;
    transform: translateX(3px);
}


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

.products-category-list a.active {
    background:
        linear-gradient(
            135deg,
            #bd974c 0%,
            #ad8436 55%,
            #8e6826 100%
        );

    color: #ffffff;

    box-shadow:
        0 7px 16px rgba(173, 132, 54, 0.19);
}

.products-category-list a.active i {
    color: #ffffff;
}


/* =========================================================
   PRODUCTS PAGE HEADING
   ========================================================= */

.products-page__heading {
    min-height: 78px;

    margin-bottom: 24px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    padding-bottom: 18px;

    border-bottom: 1px solid #e6e1d8;
}

.products-page__heading h1 {
    margin: 0;

    color: #090909;

    font-family: "Nunito", sans-serif;

    font-size: clamp(29px, 3vw, 40px);
    font-weight: 700;

    line-height: 1.08;

    letter-spacing: -0.025em;
}


/* =========================================================
   PRODUCT COUNT
   ========================================================= */

.products-page__count {
    flex: 0 0 auto;

    min-height: 36px;

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

    padding: 0 14px;

    border: 1px solid #e2d8c5;
    border-radius: 50px;

    background: #ffffff;

    color: #766c5e;

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

    letter-spacing: 0.025em;

    white-space: nowrap;
}


/* =========================================================
   PRODUCT GRID PAGE ADJUSTMENTS
   ========================================================= */

.products-page #product-grid {
    align-items: stretch;
}

.products-page .home-product-card {
    background: #ffffff;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.products-empty-state {
    max-width: 650px;

    margin: 30px auto;

    padding: 58px 34px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e8e4dc;
    border-radius: 20px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.045);
}

.products-empty-state__icon {
    width: 68px;
    height: 68px;

    margin: 0 auto 20px;

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

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #f7f1e7,
            #ece1cb
        );

    color: #ad8436;

    font-size: 27px;
}

.products-empty-state h2 {
    margin: 0 0 11px;

    color: #101010;

    font-family: "Nunito", sans-serif;

    font-size: 25px;
    font-weight: 700;
}

.products-empty-state p {
    max-width: 470px;

    margin: 0 auto 23px;

    color: #777169;

    font-size: 13px;

    line-height: 1.7;
}

.products-empty-state__button {
    min-height: 46px;

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

    padding: 0 20px;

    border-radius: 50px;

    background: #ad8436;

    color: #ffffff;

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

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

.products-empty-state__button:hover {
    background: #090909;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.12);
}


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

.category-offcanvas {
    width: min(88vw, 380px);

    border-right: 0 !important;

    background: #fbfaf8;
}

.category-offcanvas .offcanvas-header {
    min-height: 100px;

    align-items: center;

    padding: 22px 22px 19px;

    background:
        linear-gradient(
            135deg,
            #171717 0%,
            #080808 100%
        );

    border-bottom: 0;
}

.category-offcanvas__eyebrow {
    display: block;

    margin-bottom: 5px;

    color: #d4b778;

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

    letter-spacing: 0.15em;

    text-transform: uppercase;
}

.category-offcanvas .offcanvas-title {
    margin: 0;

    color: #ffffff;

    font-family: "Nunito", sans-serif;

    font-size: 25px;
    font-weight: 700;
}

.category-offcanvas .btn-close {
    opacity: 1;

    filter: invert(1);

    box-shadow: none;
}

.category-offcanvas .offcanvas-body {
    padding: 12px;
}


/* =========================================================
   OFFCANVAS CATEGORY LIST
   ========================================================= */

.category-offcanvas .products-category-list {
    padding: 0;
}

.category-offcanvas .products-category-list li + li {
    margin-top: 4px;
}

.category-offcanvas .products-category-list a {
    min-height: 50px;

    padding: 12px 14px;

    background: #ffffff;

    border: 1px solid #ece8e1;
    border-radius: 10px;

    font-size: 13px;
}

.category-offcanvas .products-category-list a:hover {
    padding-left: 17px;

    background: #f7f3eb;

    border-color: #ddd1bd;
}

.category-offcanvas .products-category-list a.active {
    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            #bd974c 0%,
            #ad8436 55%,
            #8e6826 100%
        );

    color: #ffffff;
}


/* =========================================================
   SCROLLBAR - OFFCANVAS
   ========================================================= */

.category-offcanvas .offcanvas-body {
    scrollbar-width: thin;
    scrollbar-color: #c6aa74 #f3efe8;
}

.category-offcanvas .offcanvas-body::-webkit-scrollbar {
    width: 7px;
}

.category-offcanvas .offcanvas-body::-webkit-scrollbar-track {
    background: #f3efe8;
}

.category-offcanvas .offcanvas-body::-webkit-scrollbar-thumb {
    background: #c6aa74;
    border-radius: 10px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .products-page {
        padding-top: 38px;
    }

    .products-sidebar__header {
        padding: 20px 17px 17px;
    }

    .products-sidebar__header h2 {
        font-size: 19px;
    }

    .products-category-list {
        padding: 8px;
    }

    .products-category-list a {
        padding: 9px 10px;

        font-size: 11.5px;
    }

    .products-category-list a:hover {
        padding-left: 12px;
    }

    .products-page__heading {
        margin-bottom: 20px;
    }
}


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

@media (max-width: 767.98px) {

    .products-page {
        padding: 24px 0 50px;
    }

    .products-page__heading {
        min-height: auto;

        margin-bottom: 18px;

        padding-bottom: 15px;

        align-items: center;
    }

    .products-page__heading h1 {
        font-size: 27px;
    }

    .products-page__count {
        min-height: 31px;

        padding: 0 10px;

        font-size: 10px;
    }

    .products-empty-state {
        margin: 15px 0;

        padding: 42px 22px;

        border-radius: 16px;
    }

    .products-empty-state__icon {
        width: 58px;
        height: 58px;

        font-size: 23px;
    }

    .products-empty-state h2 {
        font-size: 22px;
    }
}


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

@media (max-width: 575.98px) {

    .products-page__heading {
        align-items: flex-start;
    }

    .products-page__count {
        margin-top: 5px;
    }

    .category-offcanvas {
        width: 90vw;
    }
}

/* =========================================================
   PRODUCT ITEM CARD
   ========================================================= */

.product-item {
    position: relative;

    width: 100%;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #e8e4dc;
    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.035);

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

.product-item:hover {
    transform: translateY(-5px);

    border-color:
        rgba(173, 132, 54, 0.38);

    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   PRODUCT TOP
   ========================================================= */

.product-item__top {
    position: absolute;

    z-index: 4;

    top: 12px;
    left: 12px;
    right: 12px;

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

    pointer-events: none;
}


/* =========================================================
   PRODUCT CODE
   ========================================================= */

.product-item__code {
    display: inline-flex;
    align-items: center;

    min-height: 25px;

    padding: 0 9px;

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

    border:
        1px solid #e8e2d8;

    border-radius: 50px;

    color: #847866;

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

    letter-spacing: 0.055em;

    text-transform: uppercase;

    box-shadow:
        0 3px 9px rgba(0, 0, 0, 0.05);

    backdrop-filter: blur(5px);
}


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

.product-item__image {
    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    margin: 0;

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

    padding: 22px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfaf8 100%
        );

    overflow: hidden;
}

.product-item__image::after {
    content: "";

    position: absolute;

    left: 18%;
    right: 18%;
    bottom: 11%;

    height: 14px;

    background:
        radial-gradient(
            ellipse at center,
            rgba(0, 0, 0, 0.11) 0%,
            rgba(0, 0, 0, 0.03) 50%,
            transparent 75%
        );

    filter: blur(4px);

    opacity: 0.6;

    pointer-events: none;
}

.product-item__image img {
    position: relative;

    z-index: 2;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        transform 0.32s ease;
}

.product-item:hover
.product-item__image img {
    transform: scale(1.045);
}


/* =========================================================
   PRODUCT BODY
   ========================================================= */

.product-item__body {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 17px 18px 18px;

    border-top:
        1px solid #f0ede7;
}


/* =========================================================
   PRODUCT TITLE
   ========================================================= */

.product-item__title {
    margin:
        0
        0 15px;

    color: #151515;

    font-family:
        "Nunito",
        sans-serif;

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

    line-height: 1.4;

    letter-spacing: -0.01em;

    min-height: 40px;
}


/* =========================================================
   PACK / SIZE
   ========================================================= */

.product-item__pack {
    margin-top: auto;

    min-height: 34px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding:
        7px 10px;

    background: #f8f5ef;

    border-radius: 8px;

    color: #746a5d;

    font-size: 11px;
    font-weight: 700;
}

.product-item__pack i {
    color: #ad8436;

    font-size: 13px;
}


/* =========================================================
   HOVER DETAIL
   ========================================================= */

.product-item:hover
.product-item__title {
    color: #8d6826;
}

.product-item:hover
.product-item__pack {
    background: #f3ecdf;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .product-item__image {
        padding: 18px;
    }

    .product-item__body {
        padding:
            15px 15px 16px;
    }

    .product-item__title {
        font-size: 13px;
    }
}


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

@media (max-width: 767.98px) {

    .product-item {
        border-radius: 13px;
    }

    .product-item:hover {
        transform: none;
    }

    .product-item__image {
        padding: 12px;
    }

    .product-item__top {
        top: 8px;
        left: 8px;
        right: 8px;
    }

    .product-item__code {
        min-height: 22px;

        padding: 0 7px;

        font-size: 8px;
    }

    .product-item__body {
        padding:
            12px
            12px
            13px;
    }

    .product-item__title {
        min-height: 36px;

        margin-bottom: 10px;

        font-size: 12px;

        line-height: 1.35;
    }

    .product-item__pack {
        min-height: 30px;

        padding:
            6px 8px;

        font-size: 10px;
    }

    .product-item__pack i {
        font-size: 12px;
    }
}