* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.inner-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
}

.breadcrumb {
    padding: 0 !important;
    margin: 1rem 0 !important;
}



.breadcrumb a {
    text-decoration: none;
    color: black;
    font-weight: 500;
}

.breadcrumb span {
    margin: 0 5px;
}

.cover {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.cover img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.cover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}


.shop-section {
    display: flex;
    gap: 20px;
}

/* Sidebar */

.filter-sidebar {
    gap: 10px;
    min-width: 280px;
}

.filter-sidebar h3 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.price-range {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.price-range-title {
    background: #F2F2F2;
    border: 1px solid #E0E0E0;
    padding: 18px;
    border-radius: 10px 10px 0 0;
    margin-top: 10px;
}

.range-container {
    position: relative;
    height: 30px;
    margin-top: 30px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    position: absolute;
    pointer-events: none;
    top: 0;
    background: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid #16a34a;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.slider::-webkit-slider-runnable-track {
    height: 4px;
    background: #7DC58F;
}

.progress-bar {
    position: absolute;
    height: 4px;
    background: #16a34a;
    border-radius: 4px;
    z-index: 1;
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
}

#minValue,
#maxValue {
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 4px;
}

.rating-list {
    list-style: none;
    padding: 0;
    margin: 0;
}


.rating-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    border: 1px solid #E0E0E0;
    cursor: pointer;
    transition: background 0.2s;
}

.rating-list li:nth-child(-n+1) {
    margin-top: 10px;
    border-radius: 10px 10px 0 0;
}

.rating-list li:last-child {
    border-radius: 0 0 10px 10px;
}

.rating-list li:hover {
    background: #f6f6f6;
}

.rating-list li.selected {
    background: #e9f8ee;
}

.rating-stars {
    font-size: 16px;
    color: #0185227D;
}

.selected .rating-stars {
    color: #018522;
}

.filter-group {
    border: 1px solid #E0E0E0;
    padding: 10px;
}

.filter-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    cursor: pointer;
    font-size: 14px;
}

.filter-group span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group input[type=checkbox] {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    accent-color: #16a34a;
    cursor: pointer;
}

.count {
    color: #777;
    font-size: 13px;
}

.show-all {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 13px;
    text-decoration: none;
    color: #0a6cff;
}

.show-all span {
    color: #0a6cff;
}

.show-all:hover {
    text-decoration: underline;
}

/* Product Grid */
.product-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 20px;
}

.top-banner-wrapper {
    position: relative;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: min-content;
}

.product-card-container {
    padding: 0 10px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 10px;
}

.product-card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}


.review-star::before {
    content: '★';
    color: orange;
    font-size: 14px;
}

.discount {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ff3b3b;
    padding: 5px 10px;
    background-color: #FFC2C2;
    border: 1px solid #ff3b3b;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.product-card h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 5px 0;
}

.seller {
    font-size: 12px;
    color: #555;
}

.reviews {
    font-size: 12px;
    color: #333;
    margin: 5px 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
}

.reviews span {
    color: green;
}

.price {
    font-size: 14px;
    font-weight: 600;
}

.old-price {
    text-decoration: line-through;
    margin-right: 6px;
    color: #999;
}

.buy-btn {
    background: #389721;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: auto;
}

.buy-btn:hover {
    background: darkgreen;
}

.breadcrumb-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 !important;
}

.toggle-mobile-filter {
    background: #389721;
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


.mobile-filter-sidebar-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    height: 100%;
    width: 300px;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: left 0.3s ease;
}

/* MEDIA QUERIES  */

@media (max-width: 1024px) {
    .filter-sidebar.desktop {
        display: none;
    }

    .mobile-filter-sidebar-drawer.open {
        left: 0;
    }

    .filter-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 900;
    }

    .filter-overlay.active {
        display: block;
    }
}

@media (min-width: 1024px) {
    .toggle-mobile-filter {
        display: none;
    }
}

@media (max-width: 600px) {
    .breadcrumb {
        font-size: 12px;
    }

    .shop-section {
        margin-top: 0;
    }
}

.show-all img.arrow-icon {
    transition: transform 0.3s ease;
}

.filters-header .clear-all {
    background: none;
    border: none;
    color: #ff4d4f;
    font-weight: 500;
    cursor: pointer;
    font-size: 13px;
    transition: color 0.2s;
}

.filters-header .clear-all:hover {
    color: #d9363e;
    text-decoration: underline;
}

.filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background-color: #16a34a17;
    border: 1px solid #16A34A;
    border-radius: 5px;
    padding: 3px 6px;
    font-size: small;
    color: #16A34A;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s, border-color 0.2s;
}

.filter-tag:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.filter-tag .remove {
    color: #888;
    cursor: pointer;
    font-size: 12px;
    transition: color 0.2s, transform 0.2s;
}

.filter-tag .remove:hover {
    color: #ff4d4f;
    transform: scale(1.2);
}

.clear-all {
    color: #16A34A;
    border:none;
    background-color: transparent;
    font-size: small;
}