/* ============================================================
   WooCommerce Category Archive - Hybrid Layout
   ============================================================ */
    
    body.archive.tax-product_cat .rhima-page-hero,
    body.archive.tax-product_cat .woocommerce-products-header,
    body.archive.tax-product_cat .woocommerce-breadcrumb,
    .dmn-term-description-top,
    .dmn-term-description-bottom {
        display: none !important;
    }

    /* Hero Section (Re-used mechanics from single-product.css) */
    .rhima-archive-hero {
        position: relative;
        background: linear-gradient(130deg, var(--dmn-secondary, #FFD500) 0%, var(--dmn-secondary, #FFD500) 50%, transparent 100%);
        padding-top: 150px;
        padding-bottom: 20px;
    }

    .rhima-archive-hero-inner {
        max-width: var(--dmn-site-width, 1400px);
        margin: 0 auto;
        padding: 0 30px 60px 30px;
        position: relative;
        z-index: 5;
    }
    
    .rhima-pdp-breadcrumbs {
        margin-bottom: 20px;
    }

    .rhima-pdp-breadcrumbs a,
    .rhima-pdp-breadcrumbs span {
        color: #fff !important;
        font-size: 14px;
        text-decoration: none;
    }

    .rhima-pdp-breadcrumbs .last {
        color: var(--dmn-primary, #004AAD) !important;
    }

    .rhima-archive-title {
        font-size: var(--dmn-h1-size, 56px);
        font-weight: var(--dmn-h1-weight, 900);
        line-height: 1.1;
        margin-bottom: 20px;
        color: #fff;
    }

    .rhima-archive-desc {
        color: #fff;
        font-size: 18px;
        max-width: 800px;
        margin-bottom: 40px;
        line-height: 1.6;
    }

    /* Universal Search Bar */
    .rhima-archive-searchbar {
        max-width: 600px;
        margin-top: 20px;
    }

    .rhima-search-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        background: #fff;
        border-radius: 50px;
        padding: 5px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .rhima-search-icon {
        margin-left: 15px;
        margin-right: 10px;
        color: #718096;
    }

    .rhima-search-field {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 16px;
        color: #1a202c;
        padding: 12px 10px;
        outline: none;
        appearance: none;
    }
    
    .rhima-search-field::placeholder {
        color: #a0aec0;
    }

    /* Body Container */
    .rhima-archive-body {
        width: 100%;
        margin: -40px 0px 100px;
        position: relative;
        z-index: 10;
        background: #fff;
    }

    .rhima-archive-inner {
        max-width: var(--dmn-site-width, 1400px);
        margin: 0 auto;
        padding: 0 30px;
    }

    /* ==========================================
       Mode A: Hybrid Section Group
       ========================================== */
    .rhima-archive-sections-container {
        display: flex;
        flex-direction: column;
        gap: 80px;
    }

    .rhima-archive-group-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 30px;
        padding-bottom: 10px;
        gap: 20px;
    }

    .rhima-group-header-text {
        flex: 1;
    }

    .rhima-archive-group-header h2 {
        font-size: 32px;
        font-weight: 800;
        color: var(--dmn-secondary, #004AAD);
        margin: 0 0 5px 0;
    }

    .rhima-group-desc {
        color: var(--dmn-text, #4A5568);
        font-size: var(--dmn-font-size, 16px);
        margin: 0;
        line-height: 1.5;
        max-width: 800px;
    }

    /* ==========================================
       Mode A: Alternating (Odd) Group Full-Width
       ========================================== */
    .rhima-archive-group {
        padding: 60px 0;
    }

    .rhima-archive-group-featured {
        background: linear-gradient(to top,
            #ccc 0%,
            rgba(204, 204, 204, 0.6) 50%,
            rgba(204, 204, 204, 0.2) 80%,
            transparent 100%);
        padding: 80px 0;
        margin: 0;
    }

    .rhima-archive-group-featured .rhima-archive-group-header h2 {
        color: var(--dmn-secondary, #004AAD);
    }

    .rhima-archive-group-featured .rhima-group-desc {
        color: var(--dmn-text, #4A5568);
    }
    
    .rhima-archive-group-featured .rhima-view-all-btn {
        color: var(--dmn-primary, #004AAD);
    }

    .rhima-archive-group-featured .rhima-product-card {
        background:#fff;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .rhima-archive-group-featured .rhima-product-card:hover {
        background: #fff;
        transform: translateY(-5px);
        box-shadow: var(--dmn-shadow-hover, 0 10px 30px rgba(0, 0, 0, 0.2));
    }

    .rhima-archive-group-featured .rhima-card-image {
        background: #ffffff; /* Let the machine pop on white */
    }

    .rhima-archive-group-featured .rhima-card-title a {
        color: var(--dmn-secondary, #004AAD);
    }

    .rhima-archive-group-featured .rhima-card-sku {
        color: rgba(255, 255, 255, 0.6);
    }

    .rhima-archive-group-featured .rhima-card-price {
        color: var(--dmn-secondary, #FFD500); /* Use accent color for price on dark background */
        font-weight: 800;
    }

    .rhima-archive-group-featured .rhima-card-arrow {
        border-color: var(--dmn-secondary, #004AAD);
        color: var(--dmn-secondary, #004AAD);
    }

    .rhima-archive-group-featured .rhima-card-arrow:hover {
        background: var(--dmn-secondary, #004AAD);
        color: var(--dmn-primary, #004AAD);
    }

    .rhima-view-all-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--dmn-primary, #FFD500);
        font-weight: 700;
        text-decoration: none;
        font-size: 16px;
        transition: transform 0.3s;
    }

    .rhima-view-all-btn:hover {
        transform: translateX(5px);
    }

    /* ==========================================
       Mode B: Leaf Node (Grid UI)
       ========================================== */
    .rhima-leaf-container-full {
        width: 100%;
        margin-top: 40px;
    }

    /* JavaScript Filter UI - Single Bar with Dropdowns */
    .rhima-dom-filters-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 50px;
        position: relative;
        z-index: 50;
    }

    .rhima-dom-filters-bar {
        display: inline-flex;
        align-items: center;
        background: #ffffff;
        border-radius: var(--dmn-button-radius, 8px);
        padding: 0px;
        box-shadow: var(--dmn-box-shadow, 0 10px 30px rgba(0,0,0,0.05));
        gap: 30px;
        flex-wrap: wrap;
        justify-content: center;
        border: 1px solid #f1f5f9;
    }

    .rhima-filter-dropdown-group {
        position: relative;
    }

    /* Native Ordering CSS fix inside the filter bar */
    .rhima-native-ordering-group .woocommerce-ordering {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
    }

    .rhima-native-ordering-group select.orderby {
        background: transparent;
        border: none;
        padding: 15px !important;
        font-size: 15px;
        color: var(--dmn-text, #4A5568);
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        appearance: none;
        outline: none;
        /* Using a built-in cross-browser dropdown arrow */
        background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%234A5568%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C%2Fsvg%3E");
        background-repeat: no-repeat;
        background-position: right center;
        transition: color 0.3s ease;
    }

    .rhima-native-ordering-group select.orderby:hover {
        color: #14243B;
    }

    .rhima-filter-dropdown-toggle {
        background: transparent;
        border: none;
        padding: 15px;
        font-size: 15px;
        color: var(--dmn-text, #4A5568);
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: color 0.3s ease;
    }

    .rhima-filter-dropdown-toggle:hover {
        color: #fff;
    }

    /* Dropdown UI */
    .rhima-filter-dropdown-menu {
        position: absolute;
        top: 125%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: #fff;
        border-radius: 25px;
        padding: 0px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        min-width: 220px;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
    }

    /* Target both hover AND focus-within for better accessibility */
    .rhima-filter-dropdown-group:hover .rhima-filter-dropdown-menu,
    .rhima-filter-dropdown-group:focus-within .rhima-filter-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .rhima-filter-pill {
        background: transparent;
        border: none;
        padding: 10px 20px;
        font-size: 14px;
        color: var(--dmn-text, #4A5568);
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease;
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        text-align: left;
    }

    .rhima-filter-dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background-color: #EDF2F7;
        display: inline-block;
        transition: background-color 0.3s ease;
        flex-shrink: 0;
    }

    .rhima-filter-pill:hover {
        color: var(--dmn-secondary, #FFD500);
        background-color: #F8FAFC;
    }

    .rhima-filter-pill:hover .rhima-filter-dot {
        background-color: #E2E8F0;
    }

    .rhima-filter-pill.is-active {
        color: var(--dmn-secondary, #004AAD);
        font-weight: 700;
    }

    .rhima-filter-pill.is-active .rhima-filter-dot {
        background-color: #84A9FF;
        box-shadow: 0 0 0 3px rgba(132, 169, 255, 0.2);
    }

    /* ============================================================
        Quickmenu Styles (Anchor Links)
       ============================================================ */
    .rhima-archive-quickmenu-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 20px 60px 20px;
        position: relative;
        z-index: 50;
        margin-top: 0px; /* Pull it slightly into the above margin */
    }

    .rhima-archive-quickmenu {
        display: inline-flex;
        align-items: center;
        background: #ffffff;
        border-radius: var(--dmn-button-radius, 8px);
        padding: 15px 40px;
        box-shadow: var(--dmn-box-shadow, 0 10px 30px rgba(0,0,0,0.05));
        gap: 40px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .rhima-quickmenu-link {
        text-decoration: none !important;
        color: var(--dmn-text, #4A5568) !important;
        font-size: 15px;
        font-weight: 500;
        transition: color 0.3s ease, transform 0.2s ease;
        position: relative;
    }

    .rhima-quickmenu-link:hover,
    .rhima-quickmenu-link.is-active {
        color: #14243B !important;
        transform: translateY(-1px);
    }

    @media (max-width: 768px) {
        .rhima-archive-quickmenu {
            border-radius: 12px;
            gap: 20px;
            padding: 20px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        }

        .rhima-quickmenu-link {
            font-size: 14px;
            width: calc(50% - 10px);
            text-align: center;
        }
    }

    /* ==========================================
       Product Card Grid
       ========================================== */
    .rhima-products-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    @media (max-width: 1200px) {
        .rhima-products-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    @media (max-width: 768px) {
        .rhima-products-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 480px) {
        .rhima-products-grid {
            grid-template-columns: 1fr;
        }
    }

    .rhima-product-card {
        background: #fff;
        border-radius: 12px;
        padding: 20px;
        box-shadow: var(--dmn-box-shadow, 0 10px 30px rgba(0,0,0,0.05));
        transition: all 0.3s ease;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .rhima-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        border-color: #E2E8F0;
    }

    .rhima-card-image {
        width: 100%;
        aspect-ratio: 1/1;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #F8F9FA;
        border-radius: 8px;
        margin-bottom: 20px;
        overflow: hidden;
    }

    .rhima-card-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.4s ease;
    }

    .rhima-product-card:hover .rhima-card-image img {
        transform: scale(1.05);
    }

    .rhima-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .rhima-card-meta {
        font-size: 13px;
        color: #718096;
        margin-bottom: 8px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .rhima-card-title {
        font-size: var(--dmn-h4-size, 24px)!important;
        font-weight: var(--dmn-h4-weight, 700)!important;
        margin: 0 0 15px 0;
        line-height: 1.3;
    }

    .rhima-card-title a {
        color: var(--dmn-secondary, #FFD500);
        text-decoration: none;
    }
    
    .rhima-card-title a:hover {
        color: var(--dmn-primary, #004AAD);
    }

    .rhima-card-price {
        font-size: 20px;
        font-weight: 800;
        color: var(--dmn-secondary, #004AAD);
    }

    /* View Arrow Absolute */
    .rhima-card-arrow {
        position: absolute;
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: #F1F5F9;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #4A5568;
        transition: all 0.3s ease;
        line-height: 0;
        padding: 0;
    }

    .rhima-card-arrow svg {
        display: block;
        margin:7px;
    }

    .rhima-product-card:hover .rhima-card-arrow {
        background: var(--dmn-primary, #FFD500);
        color: var(--dmn-secondary, #004AAD);
        transform: translateX(3px);
    }

    /* Wave Overrides for taxonomy */
    .rhima-hero-wave {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        overflow: hidden;
        line-height: 0;
        z-index: 1;
    }
    
    .rhima-hero-wave svg {
        position: relative;
        display: block;
        width: calc(100% + 1.3px);
        height: 120px;
    }

    /* SEO Body Text Styling */
    .rhima-cat-body-top {
        margin-bottom: 50px;
        color: var(--dmn-text, #4A5568);
        font-size: 16px;
        line-height: 1.8;
    }

    .rhima-cat-body-bottom {
        margin-top: 60px;
        padding-top: 40px;
        color: var(--dmn-text, #4A5568);
        font-size: 16px;
        line-height: 1.8;
    }

    .rhima-cat-body-top h2, .rhima-cat-body-top h3,
    .rhima-cat-body-bottom h2, .rhima-cat-body-bottom h3 {
        color: var(--dmn-secondary, #004AAD);
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-weight: 800;
    }

    /* ============================================================
       Archive Inline Content Blocks (between product rows)
       ============================================================ */
    .rhima-archive-inline-block {
        width: var(--dmn-container-width, 1200px);
        padding: 20px 0;
        margin:0 auto;
        clear: both;
    }

    .rhima-archive-inline-block > *:first-child {
        margin-top: 0;
    }

    .rhima-archive-inline-block > *:last-child {
        margin-bottom: 0;
    }

    .rhima-archive-inline-block .impressions-title {
        color: #ffffff;
    }

/* Artikelnummer op de productkaart. Op een modelpagina staan tot 32 uitvoeringen met bijna
   dezelfde titel; wie belt of bestelt doet dat op nummer. Bewust rustig: het is een
   hulpmiddel om de juiste kaart te vinden, geen kop. */
.rhima-card-sku {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    letter-spacing: .02em;
    color: #7B8794;
    margin: 2px 0 6px;
}
