/**
 * Shop archive styles for Beterlopenwinkel Product Pages plugin.
 *
 * @package Beterlopenwinkel_Product_Pages
 */

.blw-shop-archive {
    width: 100%;
    max-width: none;
    margin: -50px 0 60px;
    padding: 0;
}

.blw-shop-archive__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.blw-shop-archive__notices {
    margin-bottom: 24px;
}

.blw-category-archive .blw-shop-archive__notices {
    margin-bottom: 50px;
}

.blw-shop-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    width: 100vw;
    margin: 0 calc(50% - 50vw) 40px;
    margin-bottom: 40px;
    overflow: hidden;
    background: #a0102b;
}

.blw-shop-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    min-height: 360px;
    padding: 40px 48px;
    color: #fff;
}

.blw-shop-hero__title {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.blw-shop-hero__line {
    width: 50px;
    height: 3px;
    margin: 10px 0 14px;
    background: #fff;
}

.blw-shop-hero__text {
    max-width: 95%;
    font-size: 16px;
    line-height: 1.5;
}

.blw-shop-hero__text p {
    margin: 0 0 14px;
}

.blw-shop-hero__media {
    position: relative;
    min-width: 0;
    min-height: 360px;
    background: linear-gradient(180deg, #59c9e8 0%, #36add0 100%);
}

.blw-shop-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blw-category-hero .blw-shop-hero__media img {
    height: auto;
}

.blw-shop-layout {
    display: grid;
    grid-template-columns: minmax(240px, 3fr) minmax(0, 7fr);
    gap: 32px;
    align-items: start;
}

.blw-shop-sidebar {
    min-width: 0;
}

.blw-shop-sidebar__box {
    position: sticky;
    top: 24px;
    padding: 24px;
    background: #fff;
    border: 0px;
}

.blw-shop-sidebar__title {
    margin: 0;
    color: #1b2355;
    font-size: 26px;
    line-height: 1.1;
}

.blw-shop-sidebar__group+.blw-shop-sidebar__group {
    margin-top: 20px;
}

.blw-shop-sidebar__group>summary {
    list-style: none;
}

.blw-shop-sidebar__group>summary::-webkit-details-marker {
    display: none;
}

.blw-shop-sidebar__group-summary {
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 600;
    font-size: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blw-shop-sidebar__group-summary::after {
    content: "▾";
    font-size: 13px;
    color: #1b2355;
    transition: transform 0.2s ease;
}

.blw-shop-sidebar__group[open] .blw-shop-sidebar__group-summary {
    border-color: #bbb;
    box-shadow: 0px;
}

.blw-shop-sidebar__group[open] .blw-shop-sidebar__group-summary::after {
    transform: rotate(180deg);
}

.blw-shop-sidebar__group-title {
    margin: 0;
    color: #1b2355;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.blw-shop-sidebar__list {
    margin: 6px 0 0 0;
    padding: 10px 18px 14px;
    list-style: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.blw-shop-sidebar__list::-webkit-scrollbar {
    width: 6px;
}

.blw-shop-sidebar__list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.blw-shop-sidebar__item+.blw-shop-sidebar__item {
    margin-top: 8px;
}

.blw-shop-sidebar__link {
    color: #222;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
    display: block;
    padding: 2px 0;
    transition: color 0.15s ease;
}

.blw-shop-sidebar__link:hover {
    color: #931926;
}

.blw-shop-results {
    min-width: 0;
}

.blw-shop-results__header {
    margin-bottom: 24px;
}

.blw-shop-results__title {
    margin: 0;
    color: #1b2355;
    font-size: 30px;
    line-height: 1.05;
    text-transform: uppercase;
}

.blw-category-split-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 28px;
}

.blw-category-split-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    color: #1b2355;
    text-decoration: none;
    border: 1px solid #d8d8d8;
    background: #fff;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.blw-category-split-nav__link:hover {
    color: #931926;
    border-color: #931926;
}

.blw-category-split-nav__link.is-active {
    color: #fff;
    border-color: #931926;
    background: #931926;
}

.blw-shop-filters {
    margin: 0 0 28px;
}

.blw-shop-filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.blw-shop-filters .filter-group {
    position: relative;
    flex: 0 0 220px;
    max-width: 100%;
    z-index: 5;
}

.blw-shop-results__grid .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blw-shop-empty {
    padding: 32px 24px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.blw-shop-empty p {
    margin: 0;
}

.blw-shop-pagination {
    margin-top: 36px;
}

.blw-shop-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blw-shop-pagination a,
.blw-shop-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 10px 14px;
    color: #1b2355;
    text-decoration: none;
    border: 1px solid #d8d8d8;
    background: #fff;
}

.blw-shop-pagination a:hover {
    color: #931926;
    border-color: #931926;
}

.blw-shop-pagination .current {
    color: #fff;
    border-color: #931926;
    background: #931926;
}

@media (max-width: 1199px) {
    .blw-shop-results__grid .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .blw-shop-archive {
        margin: -23px 0 40px;
    }

    .blw-shop-hero {
        grid-template-columns: 1fr;
    }

    .blw-shop-hero__content,
    .blw-shop-hero__media {
        min-height: 280px;
    }

    .blw-shop-hero__content {
        padding: 32px 24px;
    }

    .blw-shop-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blw-shop-sidebar__box {
        position: static;
        padding: 0;
        background: transparent;
        border: none;
    }

    .blw-shop-sidebar__group+.blw-shop-sidebar__group {
        margin-top: 10px;
    }

    .blw-shop-sidebar__group-summary {
        padding: 12px 14px;
        min-height: auto;
    }

    .blw-shop-sidebar__list {
        padding: 12px 14px 14px;
        max-height: 320px;
        overflow-y: auto;
    }

    .blw-shop-filters .filter-group {
        flex: 1 1 calc(50% - 8px);
    }
}

@media (max-width: 768px) {
    .blw-shop-archive__inner {
        padding: 0 16px;
    }

    .blw-shop-hero__title,
    .blw-shop-results__title {
        font-size: 24px;
    }

    .blw-shop-filters .filter-group {
        flex-basis: 100%;
    }
}

@media (max-width: 480px) {
    .blw-shop-results__grid .brand-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}