/* Brebox catalog body — scoped so shared header/footer and other card contexts are untouched. */
.brebox-products-listing-page {
    background: #f9fafb;
}

.brebox-products-page,
.brebox-products-page * {
    box-sizing: border-box;
}

.brebox-products-page {
    width: 100%;
    background: #f9fafb;
    color: #000;
    font-family: "Open Sans", sans-serif;
}

.brebox-products-page__container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 32px 48px;
}

.brebox-products-page__title {
    margin: 0 0 24px;
    color: #000;
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: -0.15px;
}

.brebox-products-layout {
    display: grid;
    grid-template-columns: 317px minmax(0, 1035px);
    align-items: start;
    gap: 24px;
    margin: 0;
}

.brebox-products-sidebar {
    width: 317px;
    min-width: 0;
}

.brebox-products-page .brebox-products-filter-panel {
    width: 317px;
    height: 1261px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.brebox-products-filter-scroll {
    width: 100%;
    height: 100%;
    max-height: none !important;
    padding: 24px;
    overflow: hidden auto;
    scrollbar-width: none;
}

.brebox-products-filter-scroll::-webkit-scrollbar,
.brebox-products-filter-list::-webkit-scrollbar {
    width: 0;
}

.brebox-products-filter-panel__mobile-head {
    display: none;
}

.brebox-products-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 22px;
}

.brebox-products-filter-heading h2,
.brebox-products-filter-section h3,
.brebox-products-filter-section--price > div > h6 {
    margin: 0;
    color: #000;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.18px;
    text-transform: capitalize;
}

.brebox-products-filter-heading h2 {
    font-weight: 700;
}

.brebox-products-filter-heading a {
    color: #00486c;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: -0.16px;
    text-decoration: none;
}

.brebox-products-filter-divider {
    width: 100%;
    height: 1px;
    margin: 12px 0 24px;
    background: #e5e7eb;
}

.brebox-products-filter-section {
    width: 100%;
}

.brebox-products-filter-section--price > div > h6 {
    display: none;
}

.brebox-products-filter-section--price > div > div {
    width: 100%;
}

.brebox-products-filter-section--price .d-flex.align-items-end {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end !important;
    gap: 12px !important;
    margin-top: 12px !important;
}

.brebox-products-filter-section--price .d-flex.align-items-end > .mb-2,
.brebox-products-filter-section--price .action-search-products-by-price {
    display: none !important;
}

.brebox-products-filter-section--price .form-group {
    width: 100%;
}

.brebox-products-filter-section--price .form-group label {
    display: block;
    margin: 0 0 4px !important;
    color: rgba(0, 0, 0, 0.8);
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 20px;
    letter-spacing: -0.16px;
}

.brebox-products-filter-section--price .form-control {
    width: 100%;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.09) !important;
    color: #000;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: none !important;
}

.brebox-products-filter-section--price .form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.brebox-products-filter-section--price #price_range_slider {
    width: calc(100% - 14px);
    height: 5px;
    margin: 18px 7px 0 !important;
    background: #b3c8d3;
    border-radius: 3px !important;
}

.brebox-products-filter-section--price #price_range_slider::after {
    display: none;
}

.brebox-products-filter-section--price #price_range_slider .slider-range {
    top: 0;
    height: 5px;
    background: #00486c;
}

.brebox-products-filter-section--price #price_range_slider .slider-thumb {
    top: -5px;
    width: 15px;
    height: 15px;
    background: #00486c;
}

.brebox-products-filter-section--price + .brebox-products-filter-divider {
    margin-top: 29px;
}

.brebox-products-stock-filter__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.brebox-products-stock-filter__list label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    margin: 0;
    cursor: pointer;
}

.brebox-products-stock-filter__list input {
    width: 20px;
    height: 20px;
    margin: 0;
    appearance: none;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.09);
    cursor: pointer;
}

.brebox-products-stock-filter__list input:checked {
    border-color: #00486c;
    background-color: #00486c;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
}

.brebox-products-stock-filter__list span {
    color: #000;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.16px;
}

.brebox-products-stock-filter + .brebox-products-filter-divider {
    margin-top: 24px;
}

.brebox-products-sidebar-search {
    display: flex;
    align-items: center;
    width: 100%;
    height: 42px;
    margin: 12px 0 0;
    padding: 0 16px;
    gap: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.brebox-products-sidebar-search svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #000;
}

.brebox-products-sidebar-search input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #000;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
}

.brebox-products-sidebar-search input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.brebox-products-filter-list {
    width: 100%;
    max-height: 264px;
    margin-top: 12px;
    overflow: hidden auto;
    scrollbar-width: none;
}

.brebox-products-filter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    padding: 8px 0;
    gap: 12px;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.16px;
    text-decoration: none;
}

.brebox-products-filter-list [hidden] {
    display: none !important;
}

.brebox-products-filter-list a > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brebox-products-filter-list a:hover,
.brebox-products-filter-list a.is-active {
    color: #00486c;
}

.brebox-products-filter-count {
    display: inline-flex;
    flex: 0 0 25px;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 999px;
    background: #e6edf0;
    color: #000;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: -0.12px;
}

.brebox-products-attribute-filter + .brebox-products-filter-divider {
    margin-top: 12px;
}

.brebox-products-results {
    min-width: 0;
}

.brebox-products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 42px;
    gap: 10px;
}

.brebox-products-toolbar__left,
.brebox-products-toolbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brebox-products-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 300px;
    height: 42px;
    padding: 0 16px;
    gap: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.brebox-products-search svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #000;
}

.brebox-products-search input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 !important;
    border: 0 !important;
    outline: 0;
    background: transparent;
    color: #000;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: none !important;
}

.brebox-products-search input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.brebox-products-search .search-page-button {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

.brebox-products-count {
    color: #000;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: -0.12px;
    white-space: nowrap;
}

.brebox-products-sort {
    display: flex;
    align-items: center;
    width: 152px;
    height: 36px;
    padding: 0 16px;
    gap: 4px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: rgba(26, 26, 26, 0.48);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.16px;
}

.brebox-products-sort svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #000;
}

.brebox-products-sort > span {
    flex: 0 0 auto;
    white-space: nowrap;
}

.brebox-products-sort__select {
    min-width: 0;
    height: 34px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    outline: 0;
    appearance: none;
    background: transparent;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-overflow: ellipsis;
    box-shadow: none;
}

.brebox-products-mobile-filter {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #00486c;
    color: #fff;
}

.brebox-products-mobile-filter svg {
    width: 20px;
    height: 20px;
}

.brebox-products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin-top: 16px;
}

.brebox-products-grid__item {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0 !important;
}

.brebox-products-page .brebox-product-card {
    width: 100%;
    height: 235px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

.brebox-products-page .brebox-product-card > .overflow-hidden {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible !important;
}

.brebox-products-page .brebox-product-card .inline_product {
    flex: 0 0 125px;
    width: 100%;
    height: 125px;
    min-height: 125px;
    padding: 0;
    overflow: visible;
    border-radius: 12px;
    background: #f9fafb;
}

.brebox-products-page .brebox-product-card .inline_product > .d-flex.pb-0 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.brebox-products-page .brebox-product-card .inline_product > .d-flex.pb-0 > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.brebox-products-page .brebox-product-card img {
    width: 100%;
    height: 110px;
    max-height: 110px;
    padding: 0;
    border: 0 !important;
    object-fit: contain;
}

.brebox-products-page .brebox-product-card .single-product-details {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 0 !important;
}

.brebox-products-page .brebox-product-card h3 {
    min-height: 16px;
    margin: 12px 0 4px;
    text-align: left;
}

.brebox-products-page .brebox-product-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: #000;
    font-size: 12px;
    font-weight: 400 !important;
    line-height: 16px;
    letter-spacing: -0.12px;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.brebox-products-page .brebox-product-card .rating-show,
.brebox-products-page .brebox-product-card .brebox-card-static-rating {
    display: none !important;
}

.brebox-products-page .brebox-product-card .flash-product-review {
    display: flex;
    align-items: center;
    min-height: 16px;
    margin: 4px 0 6px !important;
    text-align: left;
}

.brebox-products-page .brebox-product-card .flash-product-review .tio-star,
.brebox-products-page .brebox-product-card .flash-product-review .tio-star-half,
.brebox-products-page .brebox-product-card .flash-product-review .tio-star-outlined {
    display: inline-block;
    color: #16a34a !important;
    font-size: 12px;
}

.brebox-products-page .brebox-product-card .badge-style2 {
    margin: 0 0 0 4px;
    color: #000 !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: -0.12px;
}

.brebox-products-page .brebox-product-card .single-product-details > .mb-0:last-child {
    margin-top: auto !important;
    padding-bottom: 2px;
}

.brebox-products-page .brebox-product-card .product-price {
    display: flex;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    gap: 8px !important;
    text-align: left;
}

.brebox-products-page .brebox-product-card .text-accent {
    color: #000 !important;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: -0.16px;
    white-space: nowrap;
}

.brebox-products-page .brebox-product-card .category-single-product-price {
    color: #6b7280 !important;
    font-size: 13px !important;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.16px;
    white-space: nowrap;
}

.brebox-products-load-more-wrap {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
}

.brebox-products-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 103px;
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 48px;
    background: #00486c;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: -0.16px;
    cursor: pointer;
}

.brebox-products-load-more:hover,
.brebox-products-load-more:focus {
    background: #003a57;
    color: #fff;
}

.brebox-products-load-more.is-loading {
    opacity: 0.7;
    cursor: wait;
}

.brebox-products-empty {
    grid-column: 1 / -1;
}

[dir="rtl"] .brebox-products-page .brebox-product-card h3,
[dir="rtl"] .brebox-products-page .brebox-product-card .flash-product-review,
[dir="rtl"] .brebox-products-page .brebox-product-card .product-price {
    text-align: right;
}

[dir="rtl"] .brebox-products-page .brebox-product-card .for-discount-value {
    right: 4px;
    left: auto;
}

[dir="rtl"] .brebox-products-page .brebox-product-card .brebox-pdp-icon-btn {
    right: auto;
    left: 4px;
}

@media (max-width: 1279px) {
    .brebox-products-page__container {
        padding-inline: 24px;
    }

    .brebox-products-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .brebox-products-sidebar,
    .brebox-products-page .brebox-products-filter-panel {
        width: 280px;
    }

    .brebox-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) and (max-width: 1100px) {
    .brebox-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .brebox-products-page__container {
        padding: 24px 20px 40px;
    }

    .brebox-products-layout {
        display: block;
    }

    .brebox-products-sidebar {
        width: 0;
    }

    .brebox-products-page .brebox-products-filter-panel {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        width: 320px;
        max-width: calc(100vw - 28px);
        height: 100dvh;
        border-radius: 12px 0 0 12px;
        transform: translateX(100%);
        transition: transform 200ms ease;
    }

    .brebox-products-page .brebox-products-filter-panel.show,
    .brebox-products-page .brebox-products-filter-panel.active {
        transform: translateX(0);
    }

    .brebox-products-filter-panel__mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 58px;
        padding: 12px 20px;
        border-bottom: 1px solid #e5e7eb;
    }

    .brebox-products-filter-panel__mobile-head button {
        width: 32px;
        height: 32px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #000;
        font-size: 28px;
        line-height: 30px;
    }

    .brebox-products-filter-scroll {
        height: auto;
        max-height: calc(100dvh - 58px) !important;
        overflow-y: auto;
    }

    .brebox-products-mobile-filter {
        display: inline-flex;
    }
}

@media (max-width: 767px) {
    .brebox-products-page__container {
        padding-inline: 16px;
    }

    .brebox-products-page__title {
        margin-bottom: 18px;
        font-size: 22px;
        line-height: 28px;
    }

    .brebox-products-toolbar {
        height: auto;
        flex-wrap: wrap;
    }

    .brebox-products-toolbar__left {
        width: 100%;
    }

    .brebox-products-search {
        flex: 1 1 auto;
        width: auto;
    }

    .brebox-products-toolbar__right {
        margin-left: auto;
    }

    .brebox-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .brebox-products-page .brebox-product-card {
        height: 225px;
    }

    .brebox-products-page .brebox-product-card .inline_product {
        height: 115px;
        min-height: 115px;
        flex-basis: 115px;
    }

    .brebox-products-page .brebox-product-card img {
        height: 100px;
        max-height: 100px;
    }
}

@media (max-width: 575px) {
    .brebox-products-toolbar__left {
        flex-wrap: wrap;
    }

    .brebox-products-search {
        flex-basis: 100%;
    }

    .brebox-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (prefers-reduced-motion: reduce) {
    .brebox-products-filter-panel {
        transition: none;
    }
}
