/*==========================================
            SHOP BANNER
==========================================*/

.shop-banner {
    position: relative;
    background: url("../images/Shop/shop-banner.png") center center/cover no-repeat;
    min-height: 46vh;
    height: auto;
    padding: 55px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.banner-content .sub-title {
    display: inline-block;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 14px;
}

.banner-content h1 {
    font-size: 46px;
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 16.5px;
    color: #ffffff !important;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    justify-content: center;
    margin: 0;
}

.breadcrumb-item {
    font-size: 15px;
}

.breadcrumb-item a {
    color: #ffffff !important;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #FFD54F !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #ffffff;
}

/*======================================
        RESPONSIVE BANNER
======================================*/

@media(max-width:991px) {
    .shop-banner {
        min-height: auto;
        padding: 40px 20px;
    }

    .banner-content h1 {
        font-size: 36px;
    }

    .banner-content p {
        font-size: 15px;
    }
}

@media(max-width:767px) {
    .shop-banner {
        min-height: auto;
        padding: 24px 15px;
    }

    .banner-content h1 {
        font-size: 26px;
        margin-bottom: 6px;
    }

    .banner-content p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .banner-content .sub-title {
        font-size: 12px;
        padding: 5px 14px;
        margin-bottom: 10px;
    }

    .breadcrumb-item {
        font-size: 12.5px;
    }
}




/*==========================================
        SHOP PAGE LAYOUT SYSTEM
==========================================*/

.shop-container {
    max-width: 1560px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.shop-layout-wrapper {
    display: flex !important;
    gap: 16px !important;
    align-items: flex-start !important;
    width: 100% !important;
}

.shop-sidebar-wrapper {
    flex: 0 0 240px !important;
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
}

.shop-main-wrapper {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: calc(100% - 256px) !important;
}

/*==========================================
        SHOP SIDEBAR
==========================================*/

.shop-sidebar {
    position: sticky;
    top: 150px;
}

.sidebar-widget {
    background: #fff;
    padding: 16px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(46, 125, 50, 0.09);
    transition: all 0.25s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.12);
}

.sidebar-widget h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1B5E20;
    margin-bottom: 12px;
}

/* Search */

.search-box {

    display: flex;

    overflow: hidden;

    border-radius: 50px;

    border: 2px solid #2E7D32;

}

.search-box input {

    flex: 1;

    border: none;

    padding: 12px 18px;

    outline: none;

}

.search-box button {

    width: 55px;

    border: none;

    background: #2E7D32;

    color: #fff;

}

/* Categories List in Sidebar */

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-list li {
    margin: 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #374151;
    border-radius: 12px;
    background: #fbfdfb;
    border: 1px solid rgba(46, 125, 50, 0.10);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 13.5px;
    font-weight: 500;
}

.category-list a .cat-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.category-list a .cat-thumb {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ecf9ec;
    border: 1px solid rgba(46, 125, 50, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.category-list a .cat-thumb img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-list a .cat-thumb-all {
    color: #2e7d32;
    font-size: 13px;
    background: #e8f5e9;
}

.category-list a .cat-name {
    color: #2e3e2f;
    font-weight: 500;
    transition: color 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-list a .cat-count {
    background: #f1f8f2;
    color: #2e7d32;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    transition: all 0.25s ease;
    border: 1px solid rgba(46, 125, 50, 0.12);
    flex-shrink: 0;
    margin-left: 8px;
}

.category-list a:hover {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: rgba(46, 125, 50, 0.28);
    transform: translateX(4px);
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.10);
}

.category-list a:hover .cat-thumb {
    background: #ffffff;
    border-color: #2e7d32;
    transform: scale(1.06);
}

.category-list a:hover .cat-thumb img {
    transform: scale(1.15) rotate(4deg);
}

.category-list a:hover .cat-thumb-all {
    background: #2e7d32;
    color: #ffffff;
}

.category-list a:hover .cat-name {
    color: #1b5e20;
    font-weight: 600;
}

.category-list a:hover .cat-count {
    background: #2e7d32;
    color: #ffffff;
    border-color: #2e7d32;
}

.category-list a.active {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: #ffffff;
    border-color: #1b5e20;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.30);
}

.category-list a.active .cat-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}

.category-list a.active .cat-thumb img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.category-list a.active .cat-thumb-all {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.category-list a.active .cat-name {
    color: #ffffff;
    font-weight: 600;
}

.category-list a.active .cat-count {
    background: #ffffff;
    color: #1b5e20;
    border-color: #ffffff;
}

/* Price */

#priceRange {

    width: 100%;

    accent-color: #2E7D32;

}

.price-value {

    margin-top: 15px;

    font-weight: 600;

    color: #2E7D32;

    display: flex;

    justify-content: space-between;

}

/* Checkbox */

.sidebar-widget label {

    display: block;

    margin-bottom: 12px;

    cursor: pointer;

}

.sidebar-widget input[type="checkbox"] {

    margin-right: 8px;

}

/* Offer */

.offer-box {

    background: linear-gradient(135deg, #2E7D32, #66BB6A);

    color: #fff;

    text-align: center;

}

.offer-box h3 {

    color: #fff;

}

.offer-box p {

    margin: 20px 0;

    line-height: 28px;

}

.offer-btn {

    display: inline-block;

    background: #fff;

    color: #2E7D32;

    padding: 12px 25px;

    border-radius: 30px;

    text-decoration: none;

    font-weight: 600;

    transition: .3s;

}

.offer-btn:hover {

    background: #FFD54F;

    color: #1B5E20;

}

/* Responsive */

/*==========================================
    SOULFRESH COMPACT CATEGORY GRID (SINGLE UNIFIED SECTION)
==========================================*/

.shop-category-nav-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(46, 125, 50, 0.12);
    margin-bottom: 24px;
    position: sticky;
    top: 145px;
    z-index: 90;
    transition: all 0.3s ease;
    overflow: hidden;
}

.shop-cat-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    gap: 12px;
    align-items: stretch;
    padding: 4px 2px;
    width: 100%;
    box-sizing: border-box;
}

.shop-cat-grid::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Category item */
.shop-cat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    text-decoration: none !important;
    padding: 4px 2px !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    flex: 0 0 92px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    box-sizing: border-box !important;
}

.shop-cat-item:hover {
    transform: translateY(-2px);
}

/* Category image box */
.shop-cat-img-box {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 14px;
    background: #f0f7f2;
    border: 1.5px solid rgba(46, 125, 50, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.shop-cat-img-box img {
    width: 100%;
    height: 100%;
    max-width: 84%;
    max-height: 84%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shop-cat-item:hover .shop-cat-img-box {
    background: #e2f5e5;
    border-color: #2e7d32;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.18);
}

.shop-cat-item:hover .shop-cat-img-box img {
    transform: scale(1.10);
}

/* All products icon box */
.shop-cat-all-box {
    color: #2e7d32;
    font-size: 24px;
    background: #e6f6e8;
}

/* Category Label */
.shop-cat-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.25;
    text-align: center;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    transition: color 0.2s ease;
}

.shop-cat-item:hover .shop-cat-label {
    color: #1b5e20;
}

/* ACTIVE STATE */
.shop-cat-item.active .shop-cat-img-box {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    border-color: #1b5e20;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.32);
}

.shop-cat-item.active .shop-cat-img-box img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.20)) brightness(1.05);
}

.shop-cat-item.active .shop-cat-all-box {
    color: #ffffff;
}

.shop-cat-item.active .shop-cat-label {
    color: #1b5e20;
    font-weight: 700;
}

.shop-cat-active-dot {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFD54F;
    box-shadow: 0 0 0 2px #1b5e20;
}

/*==========================================
        SHOP TOP BAR & FILTERS
==========================================*/

.shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(46, 125, 50, 0.09);
}

.result-count {
    font-size: 13.5px;
    color: #4b5563;
}

.sort-box select {
    padding: 8px 14px;
    border: 1.5px solid rgba(46, 125, 50, 0.18);
    border-radius: 10px;
    outline: none;
    font-size: 13px;
    font-weight: 500;
    color: #2d3748;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.sort-box select:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

/* Pagination */
.pagination-area {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination-area a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #2E7D32;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(46, 125, 50, 0.12);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
}

.pagination-area a:hover,
.pagination-area a.active {
    background: #2E7D32;
    color: #fff;
    border-color: #2E7D32;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.28);
    transform: translateY(-2px);
}

/* ==========================================
   MOBILE OFFCANVAS FILTER DRAWER & BACKDROP
========================================== */

.shop-filter-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1055;
    transition: opacity 0.3s ease;
}

.shop-filter-backdrop.active {
    display: block;
}

.btn-mobile-filter {
    background: #2E7D32;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: 0.25s ease;
}

.btn-mobile-filter:hover {
    background: #1B5E20;
}

.btn-close-filter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f8e9;
    color: #2E7D32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-close-filter:hover {
    background: #e8f5e9;
    color: #1b5e20;
}

/*==========================================
        RESPONSIVE BREAKPOINTS
==========================================*/

/* Tablet (768px - 991.98px) */
@media(max-width:991.98px) {
    .shop-page {
        padding: 24px 0 45px;
    }

    .shop-category-nav-section {
        padding: 14px 16px;
        border-radius: 14px;
        top: 115px;
        margin-bottom: 20px;
    }

    .shop-cat-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px 8px;
    }

    .shop-cat-img-box {
        width: 62px;
        height: 62px;
        border-radius: 12px;
        margin-bottom: 5px;
    }

    .shop-cat-all-box {
        font-size: 20px;
    }

    .shop-cat-label {
        font-size: 12px;
    }

    .shop-layout-wrapper {
        display: block !important;
        width: 100% !important;
    }

    .shop-sidebar-wrapper {
        position: static !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        flex: none !important;
    }

    .shop-main-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Convert left sidebar into offcanvas drawer on tablet & mobile */
    .shop-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important;
        width: 300px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        overflow-y: auto !important;
        background: #ffffff !important;
        z-index: 1060 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.25) !important;
        padding: 20px 16px 40px !important;
        margin-bottom: 0 !important;
    }

    .shop-sidebar.show-mobile-filter {
        left: 0 !important;
    }

    .sidebar-widget {
        box-shadow: none;
        border: 1px solid #edf2ed;
        padding: 18px 14px;
        margin-bottom: 16px;
    }
}

/* Mobile (< 768px): EXACT 4 COLUMNS FOR CATEGORIES & 2 COLUMNS FOR PRODUCTS */
@media(max-width:767.98px) {
    .shop-page {
        padding: 14px 0 35px;
    }

    .shop-category-nav-section {
        padding: 12px 10px;
        border-radius: 12px;
        margin-bottom: 16px;
        position: sticky;
        top: 100px;
        z-index: 90;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    }

    .shop-cat-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        gap: 8px !important;
        padding: 2px 1px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .shop-cat-item {
        flex: 0 0 78px !important;
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
        padding: 2px 1px !important;
    }

    .shop-cat-img-box {
        width: 54px !important;
        height: 54px !important;
        border-radius: 12px !important;
        margin-bottom: 4px !important;
    }

    .shop-cat-all-box {
        font-size: 20px;
    }

    .shop-cat-label {
        font-size: 11.5px;
        line-height: 1.2;
    }

    .shop-top-bar {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .result-count {
        font-size: 12px;
    }

    .sort-box select {
        padding: 6px 10px;
        font-size: 11.5px;
        border-radius: 8px;
    }

    .shop-page .row.g-4 {
        --bs-gutter-x: 10px;
        --bs-gutter-y: 12px;
    }

    .shop-page .row.g-4 > [class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }

    .pagination-area {
        margin-top: 25px;
        gap: 6px;
    }

    .pagination-area a {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

/* Small Mobile screens (<= 390px) */
@media(max-width: 390px) {
    .shop-page {
        padding: 10px 0 25px;
    }

    .shop-category-nav-section {
        padding: 8px 6px;
    }

    .shop-cat-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 7px !important;
    }

    .shop-cat-item {
        flex: 0 0 72px !important;
        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
    }

    .shop-cat-img-box {
        width: 48px !important;
        height: 48px !important;
        border-radius: 10px !important;
    }

    .shop-cat-label {
        font-size: 11px;
    }

    .shop-page .row.g-4 {
        --bs-gutter-x: 8px;
        --bs-gutter-y: 10px;
    }

    .pagination-area a {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
}

/* Extra Small Mobile screens (<= 340px, e.g. 320px) */
@media(max-width: 340px) {
    .shop-category-nav-section {
        padding: 6px 4px;
    }

    .shop-cat-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 6px !important;
    }

    .shop-cat-item {
        flex: 0 0 66px !important;
        width: 66px !important;
        min-width: 66px !important;
        max-width: 66px !important;
    }

    .shop-cat-img-box {
        width: 44px !important;
        height: 44px !important;
        border-radius: 8px !important;
    }

    .shop-cat-all-box {
        font-size: 17px;
    }

    .shop-cat-label {
        font-size: 10px;
    }

    .shop-page .row.g-4 {
        --bs-gutter-x: 6px;
        --bs-gutter-y: 8px;
    }
}

/*==========================================
        SHOP PAGE CONTAINER
==========================================*/

.shop-page {
    background: #f8fff7;
    padding: 40px 0 60px;
}