.pl-page {
    min-height: 70vh;
    background: #fbfaf5;
    color: #173f35;
    font-family: Inter, Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

/* Scroll reveal (progressive enhancement). JS adds .sr-item/.sr-in when supported. */
.pl-page .sr-item {
    opacity: 0;
    transform: translate3d(0, var(--sr-y, 18px), 0);
    will-change: opacity, transform;
}

.pl-page .sr-item.sr-in {
    opacity: 1;
    transform: none;
    animation: srFadeUp 640ms cubic-bezier(0.22, 1, 0.36, 1) var(--sr-delay, 0ms) both;
}

@keyframes srFadeUp {
    from {
        opacity: 0;
        transform: translate3d(0, var(--sr-y, 18px), 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pl-page .sr-item,
    .pl-page .sr-item.sr-in {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

.pl-shell {
    width: min(1560px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 70px;
}

.pl-breadcrumb,
.pl-mobile-filter {
    margin-bottom: 22px;
}

.pl-page .breadcrumb {
    gap: 4px;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.pl-page .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #667166;
}

.pl-page .breadcrumb a {
    color: #2f5b45;
    text-decoration: none;
    font-weight: 600;
}

.pl-page .breadcrumb a:hover {
    color: #183d33;
}

.pl-layout {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.pl-sidebar-card {
    position: sticky;
    top: 96px;
    /*max-height: calc(100vh - 120px);*/
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(103, 141, 57, 0.45) transparent;
    padding: 22px;
    border: 1px solid rgba(24, 61, 51, 0.1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(24, 61, 51, 0.08);
}

.pl-sidebar-card::-webkit-scrollbar {
    width: 1px;
}

.pl-sidebar-card::-webkit-scrollbar-track {
    background: transparent;
}

.pl-sidebar-card::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(103, 141, 57, 0.45);
}

.pl-sidebar-card::-webkit-scrollbar-thumb:hover {
    background: rgba(24, 61, 51, 0.55);
}

.pl-sidebar-title {
    margin-bottom: 16px;
    color: #183d33;
    font-size: 18px;
    font-weight: 800;
}

.pl-page .category-list,
.pl-page .sub-category,
.pl-filter-offcanvas .sub-category {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.pl-page .category-list li {
    margin: 0;
}

.pl-page .parent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(24, 61, 51, 0.09);
}

.pl-page .category-list a,
.pl-filter-offcanvas .pl-mobile-category a {
    display: block;
    min-width: 0;
    padding: 10px 0;
    color: #243f36;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.pl-page .category-list a:hover,
.pl-page .category-list .active > .parent-row > a,
.pl-page .sub-category .active > a,
.pl-filter-offcanvas .pl-mobile-category a:hover {
    color: #678d39;
}

.pl-page .sub-category,
.pl-filter-offcanvas .sub-category {
    padding: 4px 0 8px 14px;
}

.pl-page .sub-category a,
.pl-filter-offcanvas .sub-category a {
    padding: 7px 0;
    color: #4f5d52;
    font-size: 13px;
    font-weight: 700;
}

.pl-page .dropdown-toggle,
.pl-filter-offcanvas .toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #678d39;
    cursor: pointer;
    flex: 0 0 auto;
}

.pl-page .dropdown-toggle::after {
    margin: 0;
}

.pl-content {
    min-width: 0;
}

.pl-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
    padding: 26px;
    border: 1px solid rgba(24, 61, 51, 0.14);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(24, 61, 51, 0.07);
}

.pl-eyebrow {
    color: #678d39;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.pl-toolbar h1 {
    margin: 6px 0;
    color: #183d33;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
}

.results-info {
    margin: 0;
    color: #4f5d52;
    font-size: 14px;
    font-weight: 500;
}

.results-info strong {
    color: #183d33;
}

.pl-sort {
    display: grid;
    gap: 7px;
    min-width: 230px;
}

.pl-sort label {
    color: #4f5d52;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.pl-page .form-select {
    min-height: 46px;
    padding: 10px 46px 10px 16px;
    border: 1px solid rgba(103, 141, 57, 0.32);
    border-radius: 999px;
    color: #183d33;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183d33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.pl-page .form-select:focus {
    border-color: #678d39;
    box-shadow: 0 0 0 4px rgba(103, 141, 57, 0.14);
}

.pl-page .product-grid,
.pl-page .pl-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.pl-page .product-card,
.pl-page .pl-product-card {
    position: relative;
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(24, 61, 51, 0.16);
    border-radius: 22px;
    color: inherit;
    background: #fff;
    text-decoration: none !important;
    box-shadow: 0 8px 22px rgba(24, 61, 51, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pl-product-card:hover {
    color: inherit;
    border-color: rgba(103, 141, 57, 0.22);
    box-shadow: 0 18px 38px rgba(24, 61, 51, 0.14);
    transform: translateY(-6px);
}

.pl-product-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f5f1e7;
}

.pl-product-media img {
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
    object-position: center center;
    opacity: 1;
    filter: none;
    transition: transform 0.35s ease;
}

.pl-product-card:hover .pl-product-media img {
    transform: scale(1.035);
}

.pl-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.pl-badge-sale {
    top: 12px;
    left: 12px;
    background: #c84646;
    box-shadow: 0 10px 22px rgba(184, 63, 63, 0.22);
}

.pl-empty-state {
    grid-column: 1 / -1;
    padding: 48px 20px;
    border: 1px dashed rgba(24, 61, 51, 0.22);
    border-radius: 10px;
    text-align: center;
    background: #fff;
}

.pl-empty-state h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #183d33;
}

.pl-empty-state p {
    margin: 0;
    color: #6d746f;
}

.pl-badge-stock {
    right: 12px;
    bottom: 12px;
    background: #183d33;
}

.pl-product-body {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.pl-product-body h2 {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    color: #183d33;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pl-product-body .product-color-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 18px;
    margin: 8px 0 10px;
}

.pl-product-body .product-color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 50%;
}

.pl-product-body .product-color-text,
.pl-product-body .product-color-more {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    color: #183d33;
    background: #fff;
    font-size: 12px;
    line-height: 1;
}

.pl-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.pl-price strong {
    color: #5f8537;
    font-size: 17px;
    font-weight: 900;
}

.pl-price del {
    color: #737c74;
    font-size: 13px;
    font-weight: 600;
}

.pl-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 2px;
    border-radius: 999px;
    color: #fff;
    background: #183d33;
    font-size: 13px;
    font-weight: 800;
    transition: background-color 0.25s ease;
}

.pl-product-card:hover .pl-card-action {
    background: #678d39;
}

.pl-product-card.is-out {
    opacity: 1;
}

@media (hover: none) {
    .pl-product-card:hover {
        border-color: rgba(24, 61, 51, 0.16);
        box-shadow: 0 8px 22px rgba(24, 61, 51, 0.1);
        transform: none;
    }

    .pl-product-card:hover .pl-product-media img {
        transform: none;
    }
}

.pl-pagination {
    margin-top: 34px;
}

.pl-page .pagination {
    gap: 7px;
    flex-wrap: wrap;
}

.pl-page .pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid rgba(24, 61, 51, 0.16);
    border-radius: 999px !important;
    color: #183d33;
    background: #fff;
    font-weight: 800;
}

.pl-page .pagination .page-item.active .page-link,
.pl-page .pagination .page-link:hover {
    border-color: #183d33;
    color: #fff;
    background: #183d33;
}

.pl-page .pagination .page-item.disabled .page-link {
    color: #737c74;
    background: #f5f2ea;
}

.pl-mobile-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 18;
    padding: 10px 0;
    background: #faf8f1;
}

.pl-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #183d33;
    border-radius: 999px;
    color: #fff;
    background: #183d33;
    font-weight: 800;
    white-space: nowrap;
}

.pl-mobile-breadcrumb {
    min-width: 0;
    overflow: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.pl-mobile-breadcrumb::-webkit-scrollbar {
    display: none;
}

.pl-filter-offcanvas {
    width: min(86vw, 340px);
    color: #173f35;
    background: #fff;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.pl-filter-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(24, 61, 51, 0.1);
}

.pl-filter-offcanvas .offcanvas-title {
    color: #183d33;
    font-weight: 800;
}

.pl-filter-offcanvas .pl-mobile-category li {
    border-bottom: 1px solid rgba(24, 61, 51, 0.08);
}

.pl-filter-offcanvas .pl-mobile-category .submenu-link {
    padding: 12px 0;
}

@media (min-width: 1280px) {
    .pl-page .product-grid,
    .pl-page .pl-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1500px) {
    .pl-page .product-grid,
    .pl-page .pl-product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .pl-shell {
        width: calc(100% - 32px);
        padding-top: 26px;
    }

    .pl-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 20px;
    }

    .pl-sidebar-card,
    .pl-toolbar {
        padding: 18px;
        border-radius: 20px;
    }

    .pl-page .product-grid,
    .pl-page .pl-product-grid {
        gap: 16px;
    }

    .pl-product-body {
        padding: 14px;
    }

    .pl-product-body h2 {
        font-size: 15px;
    }
}

@media (max-width: 991.98px) {
    .pl-shell {
        width: min(100% - 22px, 760px);
        padding: 0 0 52px;
    }

    .pl-layout {
        display: block;
    }

    .pl-toolbar {
        align-items: stretch;
        margin-bottom: 18px;
        padding: 18px;
    }

    .pl-page .product-grid,
    .pl-page .pl-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .pl-toolbar {
        display: grid;
        gap: 16px;
    }

    .pl-sort {
        min-width: 0;
    }

    .pl-toolbar h1 {
        font-size: 26px;
    }

    .pl-product-body {
        padding: 12px;
    }

    .pl-product-body h2 {
        min-height: 38px;
        font-size: 13px;
    }

    .pl-price strong {
        font-size: 14px;
    }

    .pl-card-action {
        min-height: 36px;
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .pl-shell {
        width: min(100% - 16px, 370px);
    }

    .pl-page .product-grid,
    .pl-page .pl-product-grid {
        grid-template-columns: 1fr;
    }

    .pl-product-media {
        aspect-ratio: 4 / 4.5;
    }
}

@media (max-height: 760px) and (min-width: 992px) {
    .pl-shell {
        padding-top: 20px;
        padding-bottom: 44px;
    }

    .pl-toolbar {
        padding: 18px;
        margin-bottom: 18px;
    }

    .pl-product-body {
        gap: 7px;
        padding: 12px;
    }

    .pl-card-action {
        min-height: 36px;
    }
}
