/* =====================================================
           SHOP PAGE
        ===================================================== */

.shop-breadcrumb {
    background: #f8f9fb;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.shop-breadcrumb a {
    color: #6b7280;
    font-size: 13px;
}

.shop-breadcrumb span {
    color: #111827;
    font-weight: 600;
    font-size: 13px;
}

.shop-header {
    padding: 45px 0 25px;
}

.shop-header h1 {
    color: #111827;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 7px;
}

.shop-header p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* FILTER */

.filter-sidebar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 95px;
}

.filter-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header h5 {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.clear-filter {
    font-size: 11px;
    color: #ff6b35;
    font-weight: 700;
    cursor: pointer;
}

.filter-section {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;

    color: #111827;

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 15px;
}

.filter-section-title i {
    color: #6b7280;
}

/* =========================================================
   CATEGORY DROPDOWN FILTER
========================================================= */

.category-filter-section {
    overflow: hidden;
}


.category-dropdown-list {
    margin-top: 12px;
}


/* Parent Category */

.category-parent {
    border-bottom: 1px solid #f0f0f0;
}


.category-parent:last-child {
    border-bottom: none;
}


/* Parent Button */

.category-parent-btn {
    width: 100%;
    border: 0;
    background: transparent;

    padding: 11px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #111827;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    text-align: left;
}


.category-parent-btn:hover {
    color: #ff6b35;
}


.category-parent-name {
    display: flex;
    align-items: center;
    gap: 7px;
}


.category-arrow {
    font-size: 11px;

    transition: transform .25s ease;
}


/* Open Parent */

.category-parent.open
.category-arrow {
    transform: rotate(180deg);
}


/* Children */

.category-children {
    display: none;

    padding: 0 0 9px 12px;
}


.category-parent.open
.category-children {
    display: block;
}


/* Child Link */

.category-child-link {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 8px 8px;

    color: #6b7280;

    text-decoration: none;

    font-size: 12px;

    border-radius: 5px;

    transition: .2s;
}


.category-child-link:hover {
    background: #fff4ef;
    color: #ff6b35;
}


.category-child-link.active {
    background: #fff1eb;
    color: #ff6b35;
    font-weight: 700;
}


.category-child-link i {
    font-size: 9px;
}


/* All Category Link */

.parent-all-link {
    color: #111827;
    font-weight: 600;
}


.parent-all-link i {
    font-size: 11px;
}


/* Category Without Children */

.category-parent-simple {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 11px 0;

    color: #374151;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    border-bottom: 1px solid #f0f0f0;
}


.category-parent-simple:hover {
    color: #ff6b35;
}


.category-parent-simple.active {
    color: #ff6b35;
}


.category-parent-simple i {
    font-size: 10px;
}


/* Count */

.filter-count {
    color: #9ca3af;

    font-size: 10px;

    font-weight: 500;
}
/* PRICE */

.price-inputs {
    display: flex;
    gap: 8px;
}

.price-inputs input {
    width: 100%;
    height: 38px;

    border: 1px solid #e5e7eb;
    border-radius: 6px;

    padding: 0 10px;

    outline: none;

    font-size: 12px;
}

.price-inputs input:focus {
    border-color: #ff6b35;
}

.price-range {
    width: 100%;
    accent-color: #ff6b35;
    margin-top: 15px;
}

.price-values {
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    font-size: 11px;
    margin-top: 5px;
}

/* RATING */

.rating-filter label {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 10px;

    font-size: 13px;

    cursor: pointer;
}

.rating-filter input {
    accent-color: #ff6b35;
}

.rating-stars {
    color: #f59e0b;
    letter-spacing: 1px;
}

/* SHOP TOOLBAR */

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 13px 15px;

    margin-bottom: 20px;

    background: #fff;

    border: 1px solid #e5e7eb;

    border-radius: 10px;
}

.result-count {
    color: #6b7280;
    font-size: 12px;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-wrapper label {
    color: #6b7280;
    font-size: 12px;
}

.sort-select {
    min-width: 180px;

    height: 38px;

    border: 1px solid #e5e7eb;
    border-radius: 6px;

    padding: 0 12px;

    color: #111827;

    font-size: 12px;

    outline: none;

    background: #fff;
}

.sort-select:focus {
    border-color: #ff6b35;
}

.mobile-filter-btn {
    display: none;
}

/* SHOP PRODUCT */

.shop-product-card {
    height: 100%;
}

.shop-product-card .product-image {
    height: 270px;
}

.product-view-btn {
    position: absolute;

    left: 50%;
    bottom: 15px;

    transform: translateX(-50%);

    background: #fff;

    border: none;

    padding: 9px 17px;

    border-radius: 6px;

    color: #111827;

    font-size: 11px;
    font-weight: 700;

    opacity: 0;

    transition: 0.3s;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.product-card:hover .product-view-btn {
    opacity: 1;
}

/* PAGINATION */

.shop-pagination {
    margin-top: 45px;
}

.shop-pagination .page-link {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 3px;

    border-radius: 6px !important;

    color: #111827;

    border: 1px solid #e5e7eb;

    font-size: 12px;
}

.shop-pagination .page-link:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.shop-pagination .active .page-link {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

/* EMPTY */

.empty-products {
    display: none;
    text-align: center;
    padding: 70px 20px;
}

.empty-products i {
    font-size: 55px;
    color: #d1d5db;
}

.empty-products h4 {
    color: #111827;
    font-weight: 700;
    margin-top: 20px;
}

.empty-products p {
    color: #6b7280;
    font-size: 13px;
}

/* MOBILE */

@media (max-width: 991px) {
    .filter-sidebar {
        position: fixed;

        top: 0;
        left: -100%;

        width: 320px;
        max-width: 90%;

        height: 100vh;

        z-index: 2000;

        border-radius: 0;

        overflow-y: auto;

        transition: 0.3s;
    }

    .filter-sidebar.active {
        left: 0;
    }

    .filter-overlay {
        position: fixed;

        inset: 0;

        background: rgba(0, 0, 0, 0.5);

        z-index: 1999;

        display: none;
    }

    .filter-overlay.active {
        display: block;
    }

    .mobile-filter-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;

        background: #111827;
        color: #fff;

        border: none;

        padding: 9px 15px;

        border-radius: 6px;

        font-size: 12px;
        font-weight: 700;
    }

    .filter-close {
        display: block !important;
    }
}

.filter-close {
    display: none;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #111827;
}

@media (max-width: 767px) {
    .shop-header {
        padding: 30px 0 20px;
    }

    .shop-header h1 {
        font-size: 27px;
    }

    .shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .sort-wrapper {
        width: 100%;
    }

    .sort-select {
        flex: 1;
    }

    .shop-product-card .product-image {
        height: 220px;
    }
}


/* ------- pagination --------- */
.pagination {
    justify-content: center;
    gap: 6px;
}

.pagination .page-item .page-link {
    border: 1px solid #e5e7eb;
    border-radius: 8px !important;
    color: #333;
    padding: 8px 14px;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s ease;
}

.pagination .page-item .page-link:hover {
    background: #f1f5f9;
    color: #000;
    border-color: #d1d5db;
}

.pagination .page-item.active .page-link {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #aaa;
    background: #f8f9fa;
}