/**
 * Shop Page Styles - Modern Filters
 *
 * BREAKPOINTS (consistent with style.css):
 * - Mobile:  0 - 767px       @media (max-width: 767px)
 * - Tablet:  768px - 1024px  @media (min-width: 768px) and (max-width: 1024px)
 * - Desktop: 1025px+         @media (min-width: 1025px)
 *
 * @package WinkelvanHugo
 */

/* ==========================================================================
   SHOP LAYOUT
   ========================================================================== */

.shop-page {
    background: #f8f8f8;
    min-height: 100vh;
}

.shop-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 30px 0 60px;
}

@media (max-width: 1024px) {
    .shop-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   SHOP HEADER
   ========================================================================== */

.shop-header {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.shop-header__breadcrumb {
    margin-bottom: 12px;
    min-height: 20px; /* Ruimte voor 3-niveau breadcrumbs */
}

/* Breadcrumb - WCAG AA compliant contrast */
.shop-header__breadcrumb .woocommerce-breadcrumb {
    font-size: 13px;
    color: #525252;
    margin: 0;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.shop-header__breadcrumb .woocommerce-breadcrumb a {
    color: #FF5A4D;
    text-decoration: none;
    transition: color 0.2s;
}

.shop-header__breadcrumb .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
    color: #E54A3F;
}

/* Breadcrumb separator styling voor 3 niveaus */
.shop-header__breadcrumb .woocommerce-breadcrumb .breadcrumb-separator {
    color: #999;
    margin: 0 6px;
    font-size: 12px;
}

.shop-header__title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    color: #111;
    margin: 0;
    letter-spacing: 1px;
}

/* Description - WCAG AA compliant contrast */
.shop-header__description {
    font-size: 15px;
    color: #525252;
    line-height: 1.7;
    max-width: 700px;
    margin-top: 12px;
}

/* ==========================================================================
   ACTIVE FILTERS
   ========================================================================== */

.active-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.active-filters__label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.active-filters__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #FF5A4D;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 50px;
}

.active-filter-tag__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    margin-left: 2px;
    transition: background 0.2s;
}

.active-filter-tag__remove:hover {
    background: rgba(255,255,255,0.4);
}

/* Active filters clear - WCAG AA compliant contrast */
.active-filters__clear {
    font-size: 12px;
    color: #525252;
    text-decoration: underline;
    transition: color 0.2s;
}

.active-filters__clear:hover {
    color: #c2410c;
}

/* Mobile: stack active filters */
@media (max-width: 767px) {
    .active-filters {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   MOBILE FILTER TOGGLE
   ========================================================================== */

.shop-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
    margin-bottom: 20px;
}

.shop-filter-toggle:hover {
    border-color: #FF5A4D;
    color: #FF5A4D;
}

.shop-filter-toggle__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #FF5A4D;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
}

@media (max-width: 1024px) {
    .shop-filter-toggle {
        display: flex;
    }
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.shop-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.shop-sidebar__header {
    display: none;
}

.shop-sidebar__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-sidebar__footer {
    display: none;
}

/* Mobile Sidebar */
@media (max-width: 1024px) {
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 360px;
        height: 100vh;
        border-radius: 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        padding: 0;
        transition: left 0.3s ease;
        overflow: hidden;
    }

    .shop-sidebar.is-open {
        left: 0;
    }

    .shop-sidebar__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        border-bottom: 1px solid #eee;
        flex-shrink: 0;
    }

    .shop-sidebar__title {
        font-family: 'Bebas Neue', Impact, sans-serif;
        font-size: 24px;
        color: #111;
        margin: 0;
        letter-spacing: 0.5px;
    }

    .shop-sidebar__close {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        color: #333;
        transition: all 0.2s;
    }

    .shop-sidebar__close:hover {
        background: #FF5A4D;
        color: #fff;
    }

    .shop-sidebar__content {
        flex: 1;
        overflow-y: auto;
        padding: 20px 24px;
        -webkit-overflow-scrolling: touch;
    }

    .shop-sidebar__footer {
        display: block;
        padding: 16px 24px;
        border-top: 1px solid #eee;
        background: #fff;
        flex-shrink: 0;
    }

    .shop-sidebar__apply {
        width: 100%;
        padding: 16px 24px;
        background: #FF5A4D;
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
    }

    .shop-sidebar__apply:hover {
        background: #E54A3F;
    }
}

/* Overlay */
.shop-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop-overlay.is-visible {
    display: block;
    opacity: 1;
}

body.filters-open {
    overflow: hidden;
}

/* ==========================================================================
   FILTER SECTIONS
   ========================================================================== */

.filter-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

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

.filter-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    transition: color 0.2s;
}

.filter-section__header:hover {
    color: #FF5A4D;
}

.filter-section__icon {
    transition: transform 0.3s ease;
}

.filter-section.is-expanded .filter-section__icon,
.filter-section__header[aria-expanded="true"] .filter-section__icon {
    transform: rotate(180deg);
}

.filter-section__active-dot {
    width: 8px;
    height: 8px;
    background: #FF5A4D;
    border-radius: 50%;
    margin-left: auto;
    margin-right: 10px;
}

.filter-section__body {
    padding-top: 8px;
}

/* ==========================================================================
   FILTER LIST (Categories, Attributes)
   ========================================================================== */

.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-list--scrollable {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
}

.filter-list--scrollable::-webkit-scrollbar {
    width: 4px;
}

.filter-list--scrollable::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.filter-list--scrollable::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.filter-list__item {
    margin-bottom: 4px;
}

.filter-list__link,
.filter-list__label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
}

.filter-list__link:hover,
.filter-list__label:hover {
    background: #f5f5f5;
}

.filter-list__item.is-active .filter-list__link,
.filter-list__item.is-active .filter-list__label {
    background: #FFF4EB;
    color: #FF5A4D;
    font-weight: 600;
}

.filter-list__checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.filter-list__checkbox.is-checked,
.filter-list__item.is-active .filter-list__checkbox {
    background: #FF5A4D;
    border-color: #FF5A4D;
}

.filter-list__checkbox.is-checked::after,
.filter-list__item.is-active .filter-list__checkbox::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.filter-list__name {
    flex: 1;
}

/* Filter count - WCAG AA compliant contrast */
.filter-list__count {
    font-size: 12px;
    color: #6b7280;
}

/* Hide actual checkbox */
.filter-list__label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   FILTER CHECKBOX
   ========================================================================== */

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 44px;
}

.filter-checkbox:hover {
    background: #f5f5f5;
}

.filter-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter-checkbox__box {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.filter-checkbox__box svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    color: #fff;
    transition: opacity 0.2s;
}

.filter-checkbox input:checked + .filter-checkbox__box {
    background: #FF5A4D;
    border-color: #FF5A4D;
}

.filter-checkbox input:checked + .filter-checkbox__box svg {
    opacity: 1;
}

.filter-checkbox__label {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-checkbox__badge {
    padding: 2px 8px;
    background: #EF4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
}

/* ==========================================================================
   FILTER RADIO (Rating)
   ========================================================================== */

.filter-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 44px;
}

.filter-radio:hover {
    background: #f5f5f5;
}

.filter-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter-radio__box {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.filter-radio input:checked + .filter-radio__box {
    border-color: #FF5A4D;
}

.filter-radio input:checked + .filter-radio__box::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #FF5A4D;
    border-radius: 50%;
}

.filter-radio__stars {
    display: flex;
    gap: 2px;
}

.filter-radio__stars .star {
    font-size: 14px;
}

.filter-radio__stars .star--filled {
    color: #F59E0B;
}

.filter-radio__stars .star--empty {
    color: #ddd;
}

/* Radio label - WCAG AA compliant contrast */
.filter-radio__label {
    font-size: 13px;
    color: #525252;
}

/* ==========================================================================
   COLOR SWATCHES
   ========================================================================== */

.filter-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0;
}

.filter-color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.filter-color-swatch:hover {
    transform: scale(1.1);
}

.filter-color-swatch.is-light {
    border-color: #eee;
}

.filter-color-swatch.is-selected {
    border-color: #FF5A4D;
    box-shadow: 0 0 0 2px #FF5A4D;
}

.filter-color-swatch.is-selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.filter-color-swatch.is-light.is-selected::after {
    color: #333;
    text-shadow: none;
}

/* ==========================================================================
   PRICE FILTER
   ========================================================================== */

.price-filter {
    padding: 8px 0;
}

.price-filter__range {
    margin-bottom: 16px;
}

.price-filter__range input[type="range"] {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.price-filter__range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #FF5A4D;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255,121,0,0.3);
}

.price-filter__inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.price-filter__field {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px 14px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.price-filter__field:focus-within {
    border-color: #FF5A4D;
    background: #fff;
}

/* Price currency - WCAG AA compliant contrast */
.price-filter__currency {
    font-size: 14px;
    font-weight: 600;
    color: #525252;
    margin-right: 4px;
}

.price-filter__field input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    outline: none;
}

/* Price separator - WCAG AA compliant contrast */
.price-filter__separator {
    font-size: 13px;
    color: #525252;
    flex-shrink: 0;
}

.price-filter__apply {
    width: 100%;
    padding: 12px 16px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.price-filter__apply:hover {
    background: #FF5A4D;
}

/* ==========================================================================
   FILTER ACTIONS
   ========================================================================== */

.filter-actions {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid #eee;
}

/* Filter actions clear - WCAG AA compliant contrast */
.filter-actions__clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #525252;
    transition: color 0.2s;
}

.filter-actions__clear:hover {
    color: #dc2626;
}

/* ==========================================================================
   SHOP TOOLBAR
   ========================================================================== */

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Toolbar count - WCAG AA compliant contrast */
.shop-toolbar__count {
    font-size: 14px;
    color: #525252;
}

.shop-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-toolbar__sort select,
.shop-toolbar__sort .orderby {
    padding: 10px 36px 10px 14px;
    background: #f5f5f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* Mobile: stack toolbar */
@media (max-width: 767px) {
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}

/* ==========================================================================
   PRODUCTS GRID
   ========================================================================== */

.shop-products,
ul.products,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Tablet: 3 columns */
@media (min-width: 768px) and (max-width: 1024px) {
    .shop-products,
    ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

/* Mobile: 2 columns with tighter spacing */
@media (max-width: 767px) {
    .shop-products,
    ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* Product card mobile optimizations */
@media (max-width: 767px) {
    .shop-products li.product,
    ul.products li.product,
    .woocommerce ul.products li.product {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }
    
    ul.products li.product .price,
    .woocommerce ul.products li.product .price {
        font-size: 14px !important;
    }
    
    ul.products li.product .price del,
    .woocommerce ul.products li.product .price del {
        font-size: 11px !important;
    }
}

/* ==========================================================================
   WOOCOMMERCE PRODUCT CARDS (Standard Classes)
   ========================================================================== */

ul.products li.product,
.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}

ul.products li.product:hover,
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

ul.products li.product a img,
.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1;
    object-fit: cover;
    margin: 0 !important;
}

ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    padding: 12px 14px 8px;
    margin: 0;
    line-height: 1.4;
    color: #111;
}

ul.products li.product .price,
.woocommerce ul.products li.product .price {
    padding: 0 14px 14px;
    font-weight: 700;
    color: #FF5A4D;
    font-size: 16px;
    margin: 0;
}

/* Strikethrough price - WCAG AA compliant contrast */
ul.products li.product .price del,
.woocommerce ul.products li.product .price del {
    color: #6b7280;
    font-weight: 400;
    font-size: 13px;
    margin-right: 6px;
}

ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}

ul.products li.product .onsale,
.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FF5A4D;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    margin: 0 !important;
}

ul.products li.product .button,
.woocommerce ul.products li.product .button {
    display: none; /* Hide add to cart button in grid for cleaner look */
}

/* ==========================================================================
   SHOP PAGINATION
   ========================================================================== */

.shop-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.shop-pagination .woocommerce-pagination {
    margin: 0;
}

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

.shop-pagination li {
    margin: 0;
}

.shop-pagination a,
.shop-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s;
}

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

.shop-pagination span.current {
    background: #FF5A4D;
    border-color: #FF5A4D;
    color: #fff;
}

/* ==========================================================================
   SHOP EMPTY STATE
   ========================================================================== */

.shop-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
}

.shop-empty__icon {
    color: #ddd;
    margin-bottom: 24px;
}

.shop-empty__title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 28px;
    color: #111;
    margin: 0 0 12px;
}

/* Empty state text - WCAG AA compliant contrast */
.shop-empty__text {
    font-size: 15px;
    color: #525252;
    margin: 0 0 24px;
}

/* ==========================================================================
   SR ONLY (Screen Reader)
   ========================================================================== */

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