#plp-ajax-root.is-loading .plp-product-grid {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.plp-page,
.plp-page .container,
.plp-product-grid {
    min-width: 0;
    max-width: 100%;
}

.plp-title {
    margin: 0 0 1.1rem;
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 700;
    color: var(--brand-navy, #193049);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.plp-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.35rem;
    flex-wrap: wrap;
}

.plp-toolbar-side {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-inline-start: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.plp-count {
    margin: 0;
    color: var(--brand-muted, #5c6b7c);
    font-size: 0.88rem;
}

.plp-toolbar-sep {
    color: var(--brand-border, #e4d5c3);
}

.plp-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.plp-sort-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 1;
    min-width: 0;
    margin: 0;
    white-space: nowrap;
}

.plp-sort-label {
    white-space: nowrap;
    color: var(--brand-muted, #5c6b7c);
    font-size: 0.88rem;
    margin: 0;
}

.plp-sort-form .dropdown {
    min-width: 0;
}

.plp-sort-toggle {
    display: inline-flex;
    align-items: center;
    max-width: min(16rem, 68vw);
    border: 1px solid var(--brand-border, #e4d5c3);
    background: var(--brand-surface, #fffbf6);
    color: var(--brand-navy, #193049);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.plp-sort-toggle.dropdown-toggle::after {
    margin-inline-start: 0.55rem;
    vertical-align: 0.12em;
}

.plp-sort-current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plp-sort-menu {
    min-width: 13.5rem;
    padding: 6px;
    background: #fcf4e9;
    border: 1px solid #e4d5c3;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(25, 48, 73, 0.08);
}

.plp-sort-option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #193049;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: start;
}

.plp-sort-option:hover,
.plp-sort-option:focus-visible,
.plp-sort-option.is-selected {
    background: #193049;
    color: #fcf4e9;
}

.plp-filter-bar {
    align-items: center;
    flex: 1 1 12rem;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.plp-filter-btn,
.plp-filter-check {
    border: 1px solid var(--brand-border, #e4d5c3);
    background: transparent;
    color: var(--brand-navy, #193049);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.plp-filter-btn.is-active,
.plp-filter-check.is-active {
    background: #193049;
    color: #fcf4e9;
    border-color: #193049;
}

.plp-filter-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.plp-filter-check input {
    accent-color: #193049;
}

.plp-filter-check.is-active input {
    accent-color: #fcf4e9;
}

.plp-filter-bar .dropdown-menu {
    z-index: 20 !important;
}

.plp-filter-menu {
    min-width: 230px;
    max-height: 280px;
    overflow: auto;
    padding: 8px 0;
    border: 1px solid var(--brand-border, #e4d5c3);
    border-radius: 14px;
    box-shadow: var(--shadow-soft, 0 12px 40px rgba(25, 48, 73, 0.08));
}

.plp-filter-menu .form-check {
    padding-top: 6px;
    padding-bottom: 6px;
}

.plp-filter-option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 14px;
    color: var(--brand-navy, #193049);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border-radius: 0;
}

.plp-filter-option-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.plp-filter-btn-label,
.filter-chosen-label {
    display: inline-block;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.plp-filter-option:hover {
    background: #193049;
    color: #fcf4e9;
}

.plp-filter-option:has(.plp-filter-option-input:focus-visible) {
    outline: 2px solid #193049;
    outline-offset: -2px;
}

.plp-filter-actions {
    display: flex;
    gap: 8px;
    margin-inline-start: auto;
}

.plp-filter-actions .btn-filter {
    flex: none;
    min-width: 92px;
    border-radius: 999px;
}

.card-aside {
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.filter-sidebar-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 15px;
}

.filter-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.filter-form {
    padding: 35px;
}

.filter-section {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-section-title,
.filter-section-toggle {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.filter-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    background: none;
    border: 0;
    padding: 4px 0;
    text-align: inherit;
    cursor: pointer;
}

.filter-section-toggle .bi {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.filter-section-toggle[aria-expanded="true"] .bi {
    transform: rotate(180deg);
}

.filter-section-toggle:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.filter-section .collapse {
    padding-top: 4px;
}

.filter-section input[type="number"],
.filter-section .form-check-input {
    border: 1px solid #dee2e6;
    cursor: pointer;
}

.filter-section input[type="number"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

.filter-section input[type="number"]:focus {
    border-color: #80bdff;
    box-shadow: none;
}

.filter-section .form-check {
    padding: 6px 0;
}

.filter-section .form-check-label {
    color: #555;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    padding-inline-start: 6px;
    font-size: 0.9rem;
}

.price-inputs {
    display: flex;
    gap: 6px;
    align-items: center;
}

.price-inputs input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.85rem;
}

.plp-filter-menu .price-inputs {
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
    min-width: 240px;
    box-sizing: border-box;
}

.plp-filter-menu .price-inputs input {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.plp-filter-menu .price-inputs input::-webkit-outer-spin-button,
.plp-filter-menu .price-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-separator {
    color: #999;
    font-weight: 600;
    flex-shrink: 0;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
}

.btn-filter {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-filter.apply {
    background: #193049;
    color: #FCF4E9;
}

.btn-filter.apply:hover {
    background: #6F262B;
}

.btn-filter.clear {
    background: #e9ecef;
    color: #333;
    border: 1px solid #dee2e6;
}

.btn-filter.clear:hover {
    background: #dee2e6;
}

.nav-pills .nav-link {
    color: #555;
    border-radius: 4px;
    margin-bottom: 5px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    background-color: #193049 !important;
    color: #fff !important;
}

.product-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f4f4;
}

.list-product-img {
    width: 100%;
    object-fit: cover;
}

.btn-cart-list {
    position: absolute;
    bottom: 15px;
    inset-inline-end: 15px;
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s ease;
}

.product-card:hover .btn-cart-list {
    opacity: 1;
    transform: translateY(0);
}

.btn-cart-list:hover {
    background: #6F262B;
    color: #fff;
}

.plp-page .pagination svg {
    width: 20px !important;
    height: 20px !important;
    display: inline-block !important;
}

@media (max-width: 429.98px) {
    .plp-title {
        font-size: 1.45rem;
    }

    .plp-toolbar {
        gap: 0.75rem;
    }

    .plp-toolbar-side {
        flex-wrap: wrap;
        white-space: normal;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .plp-page > .container {
        padding-inline: 1rem;
    }

    .plp-toolbar-side {
        flex-wrap: wrap;
        white-space: normal;
        max-width: 100%;
        row-gap: 0.55rem;
    }

    .plp-sort-form {
        white-space: normal;
        max-width: 100%;
    }

    .plp-product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem 0.75rem;
        margin: 0;
        width: 100%;
    }

    .plp-product-grid > [class*="col-"] {
        width: auto;
        max-width: none;
        padding: 0;
        margin-bottom: 0;
    }

    .plp-product-grid > .col-12 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .plp-page .pagination {
        gap: 0.35rem;
        justify-content: center;
    }

    .plp-page .pagination .page-link {
        min-width: 44px;
        min-height: 44px;
        padding: 0.45rem 0.7rem;
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .plp-page .pagination svg {
        width: 1.15rem !important;
        height: 1.15rem !important;
    }
}

.plp-mobile-filter.offcanvas {
    width: 100% !important;
}

@media (max-width: 991px) {
    .filter-form {
        padding: 32px;
    }

    .filter-section {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
}

[data-bs-theme="dark"] .filter-sidebar-header {
    background: #21262d;
}

[data-bs-theme="dark"] .filter-title,
[data-bs-theme="dark"] .filter-section-title,
[data-bs-theme="dark"] .filter-section-toggle,
[data-bs-theme="dark"] .filter-section .form-check-label,
[data-bs-theme="dark"] .plp-filter-option {
    color: #e6edf3;
}

[data-bs-theme="dark"] .plp-filter-option:hover {
    background: #fcf4e9;
    color: #193049;
}

[data-bs-theme="dark"] .nav-pills .nav-link {
    color: #8b949e;
}

[data-bs-theme="dark"] .product-wrapper {
    background: #21262d;
}
