.waterstop-product-archive {
    --ws-archive-gap: 10px;
    --ws-archive-toolbar-gap: 18px;
    --ws-archive-toggle-bg: #ffffff;
    --ws-archive-toggle-border: #d8dce7;
    --ws-archive-toggle-active: #2f5bff;
    --ws-archive-sidebar-width: 280px;
    --ws-archive-offcanvas-width: 320px;
    --ws-archive-sticky-top: 20px;
}

.waterstop-product-archive__layout {
    display: grid;
    grid-template-columns: minmax(0, var(--ws-archive-sidebar-width)) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.waterstop-product-archive__layout--right {
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--ws-archive-sidebar-width));
}

.waterstop-product-archive__layout--right .waterstop-product-archive__sidebar {
    order: 2;
}

.waterstop-product-archive__layout--right .waterstop-product-archive__main {
    order: 1;
}

.waterstop-product-archive__layout--no-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.waterstop-product-archive__sidebar,
.waterstop-product-archive__main {
    min-width: 0;
}

.waterstop-product-archive__sidebar.is-sticky {
    position: sticky;
    top: var(--ws-archive-sticky-top);
    align-self: start;
}

.waterstop-product-archive__sidebar.is-sticky .waterstop-product-archive__filters.wswf-sidebar {
    position: relative;
    top: auto;
}

.waterstop-product-archive__filter-toggle {
    display: none;
}

.waterstop-product-archive__button-selected:empty,
.waterstop-product-archive__selected:empty {
    display: none;
}

.waterstop-product-archive__button-selected {
    margin-bottom: 14px;
}

.waterstop-product-archive__selected {
    margin: 0 0 16px;
}

.waterstop-product-archive__filters.wswf-sidebar {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    max-height: none;
    overflow: visible;
}

.waterstop-product-archive__filters.wswf-sidebar .wswf-header {
    position: static;
    padding: 0 0 14px;
    margin-bottom: 18px;
    border-bottom: 0;
}

.waterstop-product-archive__filters.wswf-sidebar .widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #131313;
}

.waterstop-product-archive__filters.wswf-sidebar .wswf-selected-wrap {
    display: none;
}

.waterstop-product-archive__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ws-archive-toolbar-gap);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.waterstop-product-archive__toolbar-left,
.waterstop-product-archive__toolbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.waterstop-archive-count {
    color: #253858;
    font-size: 14px;
    line-height: 1.4;
}

.waterstop-archive-ordering {
    display: inline-flex;
    align-items: center;
}

.waterstop-archive-orderby {
    min-width: 210px;
    border: 1px solid #d9dce8;
    border-radius: 10px;
    min-height: 42px;
    padding: 0 14px;
    background: #fff;
    appearance: auto;
}

.waterstop-archive-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.waterstop-archive-switcher__btn {
    border: 1px solid #e4e8f0;
    background: #fff;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    color: #b7bcc8;
    transition: all .2s ease;
}

.waterstop-archive-switcher__btn.is-active {
    border-color: var(--ws-archive-toggle-active);
    color: var(--ws-archive-toggle-active);
    box-shadow: 0 0 0 1px rgba(47, 91, 255, 0.08);
}

.waterstop-archive-switcher__icon {
    display: grid;
    gap: 2px;
    width: 14px;
    height: 14px;
}

.waterstop-archive-switcher__icon span {
    display: block;
    border-radius: 2px;
    background: currentColor;
    height: 100%;
}

.waterstop-archive-switcher__icon--2 {
    grid-template-columns: repeat(2, 1fr);
}

.waterstop-archive-switcher__icon--3 {
    grid-template-columns: repeat(3, 1fr);
}

.waterstop-archive-switcher__icon--4,
.waterstop-archive-switcher__icon--5 {
    grid-template-columns: repeat(4, 1fr);
}

.waterstop-archive-results.products {
    display: grid !important;
    grid-template-columns: repeat(var(--ws-archive-cols-desktop, 3), minmax(0, 1fr));
    gap: var(--ws-archive-gap);
    margin: 0 !important;
}

.waterstop-product-archive[data-active-grid="2"] .waterstop-archive-results.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.waterstop-product-archive[data-active-grid="3"] .waterstop-archive-results.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.waterstop-product-archive[data-active-grid="4"] .waterstop-archive-results.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.waterstop-product-archive[data-active-grid="5"] .waterstop-archive-results.products {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.waterstop-archive-results.products > .list-col-item {
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.waterstop-archive-results.products .item-product {
    height: 100%;
}

.waterstop-archive-results.products .product-thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 1;
    object-fit: fill;
}

.waterstop-archive-pagination-wrap {
    margin-top: 28px;
}

.waterstop-archive-pagination .page-numbers {
    list-style: none;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.waterstop-archive-pagination a,
.waterstop-archive-pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #d9dce8;
    background: #fff;
    color: #253858;
    padding: 0 14px;
}

.waterstop-archive-pagination .current {
    border-color: #2f5bff;
    background: #2f5bff;
    color: #fff;
}

.waterstop-archive-loadmore,
.wswf-loadmore-button.waterstop-archive-loadmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    border: 0;
    padding: 0 28px;
    border-radius: 999px;
    background: #161616;
    color: #fff;
    font-weight: 600;
}

.waterstop-archive-empty {
    grid-column: 1 / -1;
}

.waterstop-archive-results .ex-tax {
    color: #fff;
}

@media (max-width: 1024px) {
    .waterstop-product-archive__layout,
    .waterstop-product-archive__layout--right {
        grid-template-columns: 1fr;
    }

    .waterstop-product-archive__sidebar {
        order: 1 !important;
        position: static !important;
        top: auto !important;
    }

    .waterstop-product-archive__main {
        order: 2 !important;
    }

    .waterstop-product-archive__filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        border: 1px solid #d8dce7;
        background: #111;
        color: #fff;
        border-radius: 10px;
        padding: 10px 16px;
    }

    .waterstop-product-archive__button-selected {
        margin-bottom: 12px;
    }

    .waterstop-product-archive__filters.wswf-sidebar {
        position: fixed;
        top: 0;
        left: calc(var(--ws-archive-offcanvas-width) * -1 - 30px);
        width: min(88vw, var(--ws-archive-offcanvas-width));
        height: 100dvh;
        max-height: 100dvh;
        z-index: 99999;
        border-radius: 0 18px 18px 0;
        transition: left .3s ease;
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
        background: #fff;
        padding: 20px;
        overflow-y: auto;
    }

    .waterstop-product-archive__filters.wswf-sidebar .wswf-header {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 20;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .waterstop-product-archive__filters.wswf-sidebar.open {
        left: 0;
    }

    .waterstop-archive-results.products,
    .waterstop-product-archive[data-active-grid="2"] .waterstop-archive-results.products,
    .waterstop-product-archive[data-active-grid="3"] .waterstop-archive-results.products,
    .waterstop-product-archive[data-active-grid="4"] .waterstop-archive-results.products,
    .waterstop-product-archive[data-active-grid="5"] .waterstop-archive-results.products {
        grid-template-columns: repeat(var(--ws-archive-cols-tablet, 2), minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .waterstop-product-archive__toolbar {
        align-items: stretch;
    }

    .waterstop-product-archive__toolbar-left,
    .waterstop-product-archive__toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .waterstop-archive-ordering {
        width: 100%;
    }

    .waterstop-archive-orderby {
        width: 100%;
        min-width: 0;
    }

    .waterstop-archive-results.products,
    .waterstop-product-archive[data-active-grid="2"] .waterstop-archive-results.products,
    .waterstop-product-archive[data-active-grid="3"] .waterstop-archive-results.products,
    .waterstop-product-archive[data-active-grid="4"] .waterstop-archive-results.products,
    .waterstop-product-archive[data-active-grid="5"] .waterstop-archive-results.products {
        grid-template-columns: repeat(var(--ws-archive-cols-mobile, 1), minmax(0, 1fr));
    }
}



@media (max-width: 1024px) {
    .waterstop-product-archive__filters.wswf-sidebar:not(.wswf-ready) {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .waterstop-product-archive__filters.wswf-sidebar {
        left: 0 !important;
        right: auto !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
        padding: 20px 18px 24px !important;
        transition: transform .3s ease !important;
        transform: translateX(-100%) !important;
    }

    .waterstop-product-archive__layout--right .waterstop-product-archive__filters.wswf-sidebar {
        left: auto !important;
        right: 0 !important;
        transform: translateX(100%) !important;
    }

    .waterstop-product-archive__filters.wswf-sidebar.open {
        transform: translateX(0) !important;
    }
}

@media (max-width: 1024px) {
    .waterstop-archive-switcher {
        display: none !important;
    }

    .waterstop-product-archive__selected,
    .wswf-top-selected {
        display: none !important;
    }

    .waterstop-product-archive__button-selected,
    .wswf-button-selected {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 14px;
    }

    .wswf-mobile-host {
        position: fixed;
        inset: 0;
        z-index: 999998;
        pointer-events: none;
        opacity: 0;
        transition: opacity .25s ease;
    }

    .wswf-mobile-host.open {
        pointer-events: auto;
        opacity: 1;
    }

    .wswf-mobile-overlay {
        position: absolute;
        inset: 0;
        border: 0;
        padding: 0;
        background: rgba(15, 23, 42, 0.35);
        opacity: 0;
        transition: opacity .25s ease;
        cursor: pointer;
    }

    .wswf-mobile-host.open .wswf-mobile-overlay {
        opacity: 1;
    }

    .wswf-mobile-host .waterstop-product-archive__filters.wswf-sidebar {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        width: min(82vw, 420px) !important;
        min-width: min(82vw, 420px) !important;
        max-width: min(82vw, 420px) !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 22px 22px 0 !important;
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22) !important;
        padding: 20px 18px 24px !important;
        overflow-y: auto !important;
        background: #fff !important;
        transform: translate3d(-100%, 0, 0) !important;
        transition: transform .3s ease !important;
    }

    .wswf-mobile-host.is-right .waterstop-product-archive__filters.wswf-sidebar {
        left: auto !important;
        right: 0 !important;
        border-radius: 22px 0 0 22px !important;
        transform: translate3d(100%, 0, 0) !important;
    }

    .wswf-mobile-host.open .waterstop-product-archive__filters.wswf-sidebar,
    .wswf-mobile-host.open.is-right .waterstop-product-archive__filters.wswf-sidebar {
        transform: translate3d(0, 0, 0) !important;
    }
}


.waterstop-product-archive {
    --ws-archive-button-bg-start: #8b6f7d;
    --ws-archive-button-bg-end: #7d8399;
    --ws-archive-button-bg-color: transparent;
    --ws-archive-button-border: transparent;
    --ws-archive-button-hover-start: #8b6f7d;
    --ws-archive-button-hover-end: #7d8399;
    --ws-archive-button-hover-bg: transparent;
    --ws-archive-button-hover-border: transparent;
}

.waterstop-product-archive .waterstop-archive-results .action-buttons a,
.waterstop-product-archive .waterstop-archive-results .action-buttons button,
.waterstop-product-archive .waterstop-archive-loadmore {
    background: linear-gradient(90deg, var(--ws-archive-button-bg-start) 0%, var(--ws-archive-button-bg-end) 100%);
    background-color: var(--ws-archive-button-bg-color);
    border: 1px solid var(--ws-archive-button-border);
}

.waterstop-product-archive .waterstop-archive-results .action-buttons a:hover,
.waterstop-product-archive .waterstop-archive-results .action-buttons button:hover,
.waterstop-product-archive .waterstop-archive-loadmore:hover {
    background: linear-gradient(90deg, var(--ws-archive-button-hover-start) 0%, var(--ws-archive-button-hover-end) 100%);
    background-color: var(--ws-archive-button-hover-bg);
    border-color: var(--ws-archive-button-hover-border);
}

.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style4 .product-thumb .product-extra-link,
.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style5 .product-thumb .product-extra-link {
    right: 12px;
}

.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style4 .action-buttons,
.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style5 .action-buttons {
    position: static;
    bottom: auto;
    margin-top: 14px;
    opacity: 1;
    visibility: visible;
}

.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style4 .addcart-link-style5,
.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style5 .addcart-link-style5 {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style4 .product-info,
.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style5 .product-info {
    display: flex;
    flex-direction: column;
}

.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style4 .product-info .action-buttons,
.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style5 .product-info .action-buttons {
    margin-top: auto;
    padding-top: 14px;
    width: 100%;
}

.waterstop-product-archive .product-thumb .product-extra-link {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.waterstop-product-archive .item-product:hover .product-thumb .product-extra-link,
.waterstop-product-archive .item-product:focus-within .product-thumb .product-extra-link {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.waterstop-product-archive .product-thumb .product-extra-link .quickview-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 999px;
    background-color: #ffffff;
    color: #111827;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.waterstop-product-archive .product-thumb .product-extra-link .quickview-link:hover {
    background-color: #111827;
    color: #ffffff;
}

.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style4 .product-info .action-buttons,
.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style5 .product-info .action-buttons {
    margin-top: auto;
    padding-top: 14px;
    width: var(--ws-archive-button-width);
    align-self: stretch;
}

.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style4 .addcart-link-style5,
.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style5 .addcart-link-style5 {
    width: var(--ws-archive-button-width);
}

.waterstop-product-archive[style*="--ws-archive-button-width: auto"] .item-grid-product-style4 .product-info .action-buttons,
.waterstop-product-archive[style*="--ws-archive-button-width: auto"] .item-grid-product-style5 .product-info .action-buttons {
    align-self: flex-start;
}

/* Final archive button and card alignment overrides */
.waterstop-product-archive{--ws-archive-button-width:100%;}
.waterstop-product-archive .waterstop-archive-results .list-col-item{display:flex;}
.waterstop-product-archive .waterstop-archive-results .list-col-item > .item-grid-product-style4,
.waterstop-product-archive .waterstop-archive-results .list-col-item > .item-grid-product-style5{width:100%;}
.waterstop-product-archive .waterstop-archive-results .item-grid-product-style4 .item-product,
.waterstop-product-archive .waterstop-archive-results .item-grid-product-style5 .item-product{display:flex;flex-direction:column;width:100%;height:100%;}
.waterstop-product-archive .waterstop-archive-results .item-grid-product-style4 .product-info,
.waterstop-product-archive .waterstop-archive-results .item-grid-product-style5 .product-info{display:flex;flex-direction:column;flex:1 1 auto;}
.waterstop-product-archive .waterstop-archive-results .item-grid-product-style4 .product-title,
.waterstop-product-archive .waterstop-archive-results .item-grid-product-style5 .product-title{min-height:2.8em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style4 .product-info .action-buttons,
.waterstop-product-archive[data-action-display="normal"] .item-grid-product-style5 .product-info .action-buttons{margin-top:auto;padding-top:14px;width:var(--ws-archive-button-width);align-self:stretch;}
.waterstop-product-archive .waterstop-archive-results .item-grid-product-style4 .addcart-link-style5,
.waterstop-product-archive .waterstop-archive-results .item-grid-product-style5 .addcart-link-style5{display:inline-flex;align-items:center;justify-content:center;text-align:center;width:var(--ws-archive-button-width) !important;max-width:100%;background-size:100% 100%;transition:all .25s ease;}
.waterstop-product-archive .waterstop-archive-loadmore{display:inline-flex;align-items:center;justify-content:center;text-align:center;width:auto !important;max-width:none !important;background-size:100% 100%;transition:all .25s ease;}
.waterstop-product-archive[style*="--ws-archive-button-width: auto"] .item-grid-product-style4 .product-info .action-buttons,
.waterstop-product-archive[style*="--ws-archive-button-width: auto"] .item-grid-product-style5 .product-info .action-buttons{width:auto;align-self:flex-start;}
.waterstop-product-archive[style*="--ws-archive-button-width: auto"] .item-grid-product-style4 .addcart-link-style5,
.waterstop-product-archive[style*="--ws-archive-button-width: auto"] .item-grid-product-style5 .addcart-link-style5{width:auto !important;}
.waterstop-product-archive .item-grid-product-style4 .product-thumb .product-extra-link,
.waterstop-product-archive .item-grid-product-style5 .product-thumb .product-extra-link{opacity:0;visibility:hidden;pointer-events:none;}
.waterstop-product-archive .item-grid-product-style4 .item-product:hover .product-thumb .product-extra-link,
.waterstop-product-archive .item-grid-product-style4 .item-product:focus-within .product-thumb .product-extra-link,
.waterstop-product-archive .item-grid-product-style5 .item-product:hover .product-thumb .product-extra-link,
.waterstop-product-archive .item-grid-product-style5 .item-product:focus-within .product-thumb .product-extra-link{opacity:1;visibility:visible;pointer-events:auto;}


