/* =====================================================================
 * KASTRO IO Shopconfiguratie - Visuele Categorie Cards Styling
 * ===================================================================== */
.hb-category-navigation-wrapper {
    width: 100%;
    margin-bottom: 35px;
    overflow: visible !important;
}

.hb-category-cards-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 22px 0;
    z-index: 10;
    overflow: visible !important; /* Voorkomt afsnijden van hovers */
}

.hb-category-cards-container {
    max-width: 1100px; /* Iets smaller om de pijlen er exact naast te plaatsen */
    margin: 0 auto;
    padding: 8px 10px; /* Voldoende padding aan de bovenkant tegen afsnijden */
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-y: visible !important; /* Laat hovers uitsteken */
}

.hb-category-cards-container::-webkit-scrollbar {
    display: none;
}

.hb-category-cards-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Navigatiepijlen styling - NAAST de container geplaatst */
.hb-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: #4a4a4a;
    padding: 0;
}

.hb-slider-arrow span.dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hb-slider-arrow:hover {
    background: #eec34b;
    color: #ffffff;
    border-color: #eec34b;
    transform: translateY(-50%) scale(1.08);
}

/* Pijlen exact naast de 1100px brede container */
.hb-prev-arrow {
    left: calc(50% - 590px);
}

.hb-next-arrow {
    right: calc(50% - 590px);
}

@media (max-width: 1240px) {
    /* Op smallere schermen schuiven de pijlen naar de schermranden en voegen we padding toe aan de container */
    .hb-prev-arrow {
        left: 8px;
    }
    .hb-next-arrow {
        right: 8px;
    }
    .hb-category-cards-container {
        padding: 8px 50px; /* Zorgt dat de kaarten niet statisch onder de pijlen schuiven */
    }
}

.hb-slider-arrow.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hb-slider-arrow {
        display: none !important;
    }
    .hb-category-cards-container {
        padding: 8px 20px;
    }
    .hb-category-cards-wrapper {
        padding: 12px 0;
    }
}

/* Category card styling */
.hb-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    min-width: 90px;
    max-width: 120px;
    flex-shrink: 0;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible !important;
}

.hb-category-card:hover {
    transform: translateY(-6px); /* Iets meer lift voor extra diepte */
}

.hb-category-card-image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f6f7f7;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    margin-bottom: 10px;
    transition: all 0.22s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hb-category-card.is-active .hb-category-card-image-wrapper,
.hb-category-card:hover .hb-category-card-image-wrapper {
    border-color: #eec34b;
    box-shadow: 0 10px 15px -3px rgba(238, 195, 75, 0.25), 0 4px 6px -2px rgba(238, 195, 75, 0.15);
}

.hb-category-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.hb-category-card:hover .hb-category-card-image {
    transform: scale(1.08);
}

.hb-category-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
    line-height: 1.3;
    display: block;
    word-break: break-word;
    transition: color 0.2s ease;
}

.hb-category-card.is-active .hb-category-card-title,
.hb-category-card:hover .hb-category-card-title {
    color: #7a2c1b;
}

/* =====================================================================
 * BAR 2: SUBCATEGORIEËN SPECIFIEKE STYLING (Iets kleiner)
 * ===================================================================== */
.hb-sub-categories {
    margin-top: -35px; /* Schuif de sub-balk direct onder de hoofdbalk */
    border-top: 1px dashed #edf2f7;
    background-color: #fafbfc; /* Lichte contrasterende achtergrond voor hierarchie */
    padding: 14px 0;
    margin-bottom: 35px;
    overflow: visible !important;
}

/* Animaties voor de losse kaarten in de sub-balk (Staggered fade-in & slide-down) */
.hb-sub-categories .hb-category-card {
    opacity: 0;
    transform: translateY(-15px);
    animation: hb-card-reveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered delay per kaart voor een premium 'wave' effect */
.hb-sub-categories .hb-category-card:nth-child(1) { animation-delay: 0.04s; }
.hb-sub-categories .hb-category-card:nth-child(2) { animation-delay: 0.08s; }
.hb-sub-categories .hb-category-card:nth-child(3) { animation-delay: 0.12s; }
.hb-sub-categories .hb-category-card:nth-child(4) { animation-delay: 0.16s; }
.hb-sub-categories .hb-category-card:nth-child(5) { animation-delay: 0.20s; }
.hb-sub-categories .hb-category-card:nth-child(6) { animation-delay: 0.24s; }
.hb-sub-categories .hb-category-card:nth-child(7) { animation-delay: 0.28s; }
.hb-sub-categories .hb-category-card:nth-child(8) { animation-delay: 0.32s; }
.hb-sub-categories .hb-category-card:nth-child(9) { animation-delay: 0.36s; }
.hb-sub-categories .hb-category-card:nth-child(10) { animation-delay: 0.40s; }

@keyframes hb-card-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hb-sub-categories .hb-category-card-image-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
    border-width: 1.5px;
}

.hb-sub-categories .hb-category-card {
    min-width: 75px;
    max-width: 105px;
}

.hb-sub-categories .hb-category-card-title {
    font-size: 11px;
}

.hb-sub-categories .hb-prev-arrow {
    left: calc(50% - 580px);
}

.hb-sub-categories .hb-next-arrow {
    right: calc(50% - 580px);
}

@media (max-width: 1240px) {
    .hb-sub-categories .hb-prev-arrow {
        left: 8px;
    }
    .hb-sub-categories .hb-next-arrow {
        right: 8px;
    }
    .hb-sub-categories .hb-category-cards-container {
        padding: 8px 45px;
    }
}

/* Terug-knop / Alles reset knop styling */
.hb-category-back-image-wrapper {
    background-color: #f6ebd2 !important;
    border-color: #7a2c1b !important;
}

.hb-category-back-card:hover .hb-category-back-image-wrapper {
    background-color: #7a2c1b !important;
    border-color: #7a2c1b !important;
}

.hb-category-back-card:hover span.dashicons {
    color: #ffffff !important;
    transition: color 0.2s ease;
}


/* =====================================================================
 * KASTRO IO - Categoriepagina Hero Banner Styling
 * ===================================================================== */
.hb-category-hero-container {
    width: 100%;
    margin: 0 0 35px 0;
    padding: 0;
}

.hb-category-hero-card {
    background: #FAF8F5;
    border: 1px solid #EAE3DC;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 4px 16px rgba(59, 35, 20, 0.04);
}

.hb-category-hero-text {
    flex: 1 1 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hb-category-hero-breadcrumb {
    font-size: 12px;
    font-weight: 700;
    color: #8C7A6B;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.hb-category-hero-breadcrumb a {
    color: #8C7A6B;
    text-decoration: none;
    transition: color 0.15s ease;
}

.hb-category-hero-breadcrumb a:hover {
    color: #F5A623;
}

.hb-breadcrumb-sep {
    opacity: 0.5;
}

.hb-breadcrumb-current {
    color: #3B2314;
}

.hb-category-hero-heading {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #7a2c1b !important;
    line-height: 1.15 !important;
    margin: 0 0 14px 0 !important;
    letter-spacing: -0.02em;
}

.hb-category-hero-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #5C4A3E;
    margin-bottom: 18px;
    max-width: 780px;
}

.hb-category-hero-desc p {
    margin: 0 0 10px 0;
}
.hb-category-hero-desc p:last-child {
    margin-bottom: 0;
}

.hb-category-hero-subnav {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #EAE3DC;
}

.hb-subnav-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8C7A6B;
    margin-bottom: 8px;
}

.hb-subnav-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hb-subnav-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #FFFFFF;
    border: 1px solid #EAE3DC;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    color: #3B2314;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.hb-subnav-chip:hover {
    background: #3B2314;
    color: #FFFFFF;
    border-color: #3B2314;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(59, 35, 20, 0.15);
}

.hb-subnav-count {
    background: #F3ECE5;
    color: #78350F;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
}

.hb-subnav-chip:hover .hb-subnav-count {
    background: #F5A623;
    color: #3B2314;
}

.hb-category-hero-visual {
    flex: 0 0 320px;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hb-hero-img-box {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #EAE3DC;
    box-shadow: 0 8px 24px rgba(59, 35, 20, 0.08);
}

.hb-hero-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hb-hero-img-box:hover img {
    transform: scale(1.04);
}

.hb-hero-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(38, 28, 20, 0.7) 0%, transparent 100%);
    display: flex;
    align-items: center;
}

.hb-hero-badge {
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* =====================================================================
 * KASTRO IO - Categorieën Overzichtspagina Grid Styling (/categorieen/)
 * ===================================================================== */
.hb-overview-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 15px 70px 15px;
}

.hb-overview-hero {
    text-align: center;
    max-width: 840px;
    margin: 0 auto 40px auto;
}

.hb-overview-hero-badge {
    display: inline-block;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 14px;
}

.hb-overview-title {
    font-size: 2.6rem !important;
    font-weight: 800 !important;
    color: #3B2314 !important;
    line-height: 1.15 !important;
    margin: 0 0 16px 0 !important;
}

.hb-overview-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #6B5A4E;
    margin-bottom: 24px;
}

.hb-overview-filter-tabs {
    display: inline-flex;
    background: #FAF8F5;
    border: 1px solid #EAE3DC;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}

.hb-tab-btn {
    border: none;
    background: transparent;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #6B5A4E;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hb-tab-btn:hover {
    color: #3B2314;
}

.hb-tab-btn.is-active {
    background: #3B2314;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(59, 35, 20, 0.15);
}

.hb-overview-section {
    margin-bottom: 30px;
}

.hb-section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.hb-section-heading h2 {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #3B2314 !important;
    margin: 0 !important;
    white-space: nowrap;
}

.hb-heading-line {
    flex: 1;
    height: 1px;
    background: #EAE3DC;
}

.hb-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hb-category-overview-card {
    background: #FFFFFF;
    border: 1px solid #EAE3DC;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.hb-category-overview-card:hover {
    transform: translateY(-4px);
    border-color: #F5A623;
    box-shadow: 0 12px 28px rgba(59, 35, 20, 0.09);
}

.hb-card-img-box {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #F3ECE5;
}

.hb-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hb-category-overview-card:hover .hb-card-img-box img {
    transform: scale(1.06);
}

.hb-card-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(38, 28, 20, 0.85);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.hb-card-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hb-card-title {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin: 0 0 8px 0 !important;
}

.hb-card-title a {
    color: #3B2314;
    text-decoration: none;
    transition: color 0.15s ease;
}

.hb-card-title a:hover {
    color: #7a2c1b;
}

.hb-card-description {
    font-size: 13px;
    line-height: 1.5;
    color: #6B5A4E;
    margin: 0 0 14px 0;
    flex: 1;
}

.hb-card-subtags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 16px;
}

.hb-card-subtag {
    background: #FAF8F5;
    border: 1px solid #EAE3DC;
    color: #6B5A4E;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
}

.hb-subtag-more {
    color: #92400E;
    background: #FEF3C7;
    border-color: #FDE68A;
    font-weight: 700;
}

.hb-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #F5EFEA;
}

.hb-card-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #FAF8F5;
    border: 1px solid #EAE3DC;
    color: #3B2314;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hb-card-btn:hover {
    background: #3B2314;
    color: #FFFFFF;
    border-color: #3B2314;
}

.hb-card-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.hb-card-btn:hover .dashicons {
    transform: translateX(3px);
}

/* Responsiveness */
@media (max-width: 991px) {
    .hb-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hb-category-hero-card {
        flex-direction: column;
    }
    .hb-category-hero-visual {
        max-width: 100%;
        flex: 1 1 auto;
    }
    .hb-hero-img-box {
        height: 240px;
    }
}

@media (max-width: 640px) {
    .hb-categories-grid {
        grid-template-columns: 1fr;
    }
    .hb-category-hero-heading {
        font-size: 1.8rem !important;
    }
    .hb-overview-title {
        font-size: 2rem !important;
    }
    .hb-overview-filter-tabs {
        flex-direction: column;
        width: 100%;
    }
    .hb-tab-btn {
        width: 100%;
        text-align: center;
    }
}
