/* ======================================================
HIEN BEAUTY - PRODUCT ARCHIVE
Minimal clean ecommerce layout
====================================================== */

/* Page background */
.woocommerce.archive .site-main,
.post-type-archive-product .site-main,
.tax-product_cat .site-main,
.tax-product_tag .site-main {
    background: #f7f3f5;
    padding-top: 0;
}

/* Remove Blocksy page hero / white header area */
.tax-product_cat .hero-section,
.tax-product_tag .hero-section,
.post-type-archive-product .hero-section,
.tax-product_cat .page-header,
.tax-product_tag .page-header,
.post-type-archive-product .page-header,
.tax-product_cat .ct-page-title,
.tax-product_tag .ct-page-title,
.post-type-archive-product .ct-page-title {
    display: none !important;
}

/* Main archive spacing */
.woocommerce.archive .content-area,
.post-type-archive-product .content-area,
.tax-product_cat .content-area,
.tax-product_tag .content-area {
    padding-top: 28px;
    padding-bottom: 56px;
}

/* Category title */
.woocommerce-products-header {
    padding: 0;
    margin: 0 0 24px;
    border: 0;
    text-align: left;
    background: transparent;
}

.woocommerce-products-header h1,
.woocommerce-products-header .page-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    color: #1f2a44;
    margin: 0 0 8px;
}

.woocommerce-products-header .term-description,
.woocommerce-products-header p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #667085;
}

.woocommerce-products-header .term-description:empty {
    display: none;
}

/* Layout: sidebar + products */
.woocommerce .site-main>.woocommerce {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

/* Sidebar widgets */
.ct-sidebar .widget {
    background: #fff;
    border: 1px solid #eee5ea;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.ct-sidebar h2,
.ct-sidebar h3,
.ct-sidebar h4,
.ct-sidebar .widget-title {
    font-size: 15px;
    font-weight: 600;
    color: #24324a;
    margin: 0 0 12px;
}

.ct-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ct-sidebar li {
    margin-bottom: 10px;
}

/* Sidebar search */
.ct-sidebar label,
.ct-sidebar .wp-block-search__label,
.ct-sidebar .wc-block-product-search__label,
.ct-sidebar .woocommerce-product-search label {
    display: none !important;
}

.ct-sidebar input[type="search"] {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e6dfe4;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}

.ct-sidebar input[type="submit"],
.ct-sidebar button {
    height: 42px;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    background: #e78ac0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ct-sidebar input[type="submit"]:hover,
.ct-sidebar button:hover {
    background: #d873b1;
}

/* Price filter */
.price_slider_wrapper .ui-slider {
    height: 4px;
    background: #ddd3d8;
    border-radius: 999px;
}

.price_slider_wrapper .ui-slider-range {
    background: #e78ac0;
}

.price_slider_wrapper .ui-slider-handle {
    width: 14px;
    height: 14px;
    top: -5px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e78ac0;
}

/* Top controls */
.woocommerce .woocommerce-result-count {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #4b5563;
    margin: 0 0 16px;
}

.woocommerce .woocommerce-ordering {
    margin: 0 0 16px;
}

.woocommerce .woocommerce-ordering select {
    min-height: 44px;
    padding: 0 40px 0 14px;
    border: 1px solid #e6dfe4;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: #24324a;
}

/* Product grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    float: none;
    width: auto;
    margin: 0;
    background: #fff;
    border: 1px solid #eee5ea;
    border-radius: 14px;
    padding: 16px;
    transition: all .2s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
}

.woocommerce ul.products li.product img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 12px;
}

.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #24324a;
    margin-bottom: 6px;
}

.woocommerce ul.products li.product .price {
    font-size: 15px;
    font-weight: 700;
    color: #24324a;
    margin-bottom: 10px;
}

.woocommerce ul.products li.product .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    background: #e78ac0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
}

.woocommerce ul.products li.product .button:hover {
    background: #d873b1;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e6dfe4;
    background: #fff;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #e78ac0;
    border-color: #e78ac0;
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .woocommerce .site-main>.woocommerce {
        grid-template-columns: 1fr;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

/* ======================================================
MOBILE SIDEBAR FORCE VISIBILITY
====================================================== */

@media (max-width: 640px) {
    .woocommerce .site-main>.woocommerce {
        display: flex !important;
        flex-direction: column !important;
    }

    .ct-sidebar {
        display: block !important;
        position: static !important;
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 20px !important;
        padding: 0 !important;
        float: none !important;
        clear: both !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        height: auto !important;
        overflow: visible !important;
        z-index: 2 !important;
    }

    .ct-sidebar .widget {
        display: block !important;
        width: 100% !important;
    }

    .woocommerce-page .content-area,
    .woocommerce .content-area,
    .site-main {
        overflow: visible !important;
    }

    .woocommerce ul.products {
        order: 3 !important;
        width: 100% !important;
    }

    .woocommerce .woocommerce-ordering {
        order: 2 !important;
        width: 100% !important;
        margin: 0 0 16px !important;
    }

    .woocommerce .woocommerce-ordering select {
        width: 100% !important;
    }

    .woocommerce .woocommerce-result-count {
        order: 2 !important;
        margin: 0 0 12px !important;
    }
}

/* Force sidebar before products only on WooCommerce product archives */
@media (max-width: 640px) {

    .post-type-archive-product [data-sidebar],
    .tax-product_cat [data-sidebar],
    .tax-product_tag [data-sidebar] {
        display: flex !important;
        flex-direction: column !important;
    }

    .post-type-archive-product [data-sidebar]>aside.ct-sidebar,
    .post-type-archive-product [data-sidebar]>aside,
    .tax-product_cat [data-sidebar]>aside.ct-sidebar,
    .tax-product_cat [data-sidebar]>aside,
    .tax-product_tag [data-sidebar]>aside.ct-sidebar,
    .tax-product_tag [data-sidebar]>aside {
        order: -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        position: static !important;
    }

    .post-type-archive-product [data-sidebar]>main,
    .tax-product_cat [data-sidebar]>main,
    .tax-product_tag [data-sidebar]>main {
        order: 2 !important;
        width: 100% !important;
    }
}

/* ======================================================
MOBILE FILTERS DRAWER TUNING
Only for WooCommerce product archives
====================================================== */

@media (max-width: 640px) {

    .post-type-archive-product .ct-sidebar,
    .tax-product_cat .ct-sidebar,
    .tax-product_tag .ct-sidebar {
        max-height: 100dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .post-type-archive-product .ct-sidebar .widget,
    .tax-product_cat .ct-sidebar .widget,
    .tax-product_tag .ct-sidebar .widget {
        padding: 16px !important;
        margin-bottom: 14px !important;
        border-radius: 12px !important;
    }

    .post-type-archive-product .ct-sidebar h2,
    .post-type-archive-product .ct-sidebar h3,
    .post-type-archive-product .ct-sidebar h4,
    .tax-product_cat .ct-sidebar h2,
    .tax-product_cat .ct-sidebar h3,
    .tax-product_cat .ct-sidebar h4,
    .tax-product_tag .ct-sidebar h2,
    .tax-product_tag .ct-sidebar h3,
    .tax-product_tag .ct-sidebar h4 {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }

    .post-type-archive-product .ct-sidebar .price_slider_wrapper,
    .tax-product_cat .ct-sidebar .price_slider_wrapper,
    .tax-product_tag .ct-sidebar .price_slider_wrapper {
        margin-bottom: 8px;
    }

    .post-type-archive-product .ct-sidebar .price_slider_amount,
    .tax-product_cat .ct-sidebar .price_slider_amount,
    .tax-product_tag .ct-sidebar .price_slider_amount {
        gap: 8px;
    }

    .post-type-archive-product .ct-sidebar .button,
    .post-type-archive-product .ct-sidebar button,
    .post-type-archive-product .ct-sidebar input[type="submit"],
    .tax-product_cat .ct-sidebar .button,
    .tax-product_cat .ct-sidebar button,
    .tax-product_cat .ct-sidebar input[type="submit"],
    .tax-product_tag .ct-sidebar .button,
    .tax-product_tag .ct-sidebar button,
    .tax-product_tag .ct-sidebar input[type="submit"] {
        min-height: 42px !important;
        font-size: 14px !important;
    }

    .post-type-archive-product .ct-sidebar .wc-block-components-filter-reset-button,
    .tax-product_cat .ct-sidebar .wc-block-components-filter-reset-button,
    .tax-product_tag .ct-sidebar .wc-block-components-filter-reset-button {
        min-height: 42px;
        padding: 0 14px;
        border-radius: 10px;
    }

    .post-type-archive-product .ct-sidebar .wc-block-product-categories-list,
    .tax-product_cat .ct-sidebar .wc-block-product-categories-list,
    .tax-product_tag .ct-sidebar .wc-block-product-categories-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .post-type-archive-product .ct-sidebar .wc-block-product-categories-list li,
    .tax-product_cat .ct-sidebar .wc-block-product-categories-list li,
    .tax-product_tag .ct-sidebar .wc-block-product-categories-list li {
        margin: 0 !important;
    }

    .post-type-archive-product .ct-sidebar .wc-block-product-categories-list a,
    .tax-product_cat .ct-sidebar .wc-block-product-categories-list a,
    .tax-product_tag .ct-sidebar .wc-block-product-categories-list a {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 0 12px;
        border-radius: 10px;
        background: #e78ac0;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

    .post-type-archive-product .ct-sidebar .wc-block-product-categories-list .count,
    .tax-product_cat .ct-sidebar .wc-block-product-categories-list .count,
    .tax-product_tag .ct-sidebar .wc-block-product-categories-list .count {
        display: none;
    }

    .post-type-archive-product .ct-sidebar .wc-block-components-checkbox,
    .tax-product_cat .ct-sidebar .wc-block-components-checkbox,
    .tax-product_tag .ct-sidebar .wc-block-components-checkbox {
        margin-bottom: 8px;
    }

    .post-type-archive-product .ct-sidebar .widget:last-child,
    .tax-product_cat .ct-sidebar .widget:last-child,
    .tax-product_tag .ct-sidebar .widget:last-child {
        margin-bottom: 90px !important;
    }
}

/* ======================================================
MOBILE FILTER DRAWER REFINEMENT
Only for WooCommerce product archives
====================================================== */

@media (max-width: 640px) {

    .post-type-archive-product .ct-sidebar,
    .tax-product_cat .ct-sidebar,
    .tax-product_tag .ct-sidebar {
        max-height: 100dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 18px 16px 90px !important;
        background: #f7f3f5 !important;
    }

    .post-type-archive-product .ct-sidebar .widget,
    .tax-product_cat .ct-sidebar .widget,
    .tax-product_tag .ct-sidebar .widget {
        padding: 16px !important;
        margin-bottom: 14px !important;
        border-radius: 12px !important;
        box-shadow: none !important;
    }

    .post-type-archive-product .ct-sidebar h2,
    .post-type-archive-product .ct-sidebar h3,
    .post-type-archive-product .ct-sidebar h4,
    .post-type-archive-product .ct-sidebar .widget-title,
    .tax-product_cat .ct-sidebar h2,
    .tax-product_cat .ct-sidebar h3,
    .tax-product_cat .ct-sidebar h4,
    .tax-product_cat .ct-sidebar .widget-title,
    .tax-product_tag .ct-sidebar h2,
    .tax-product_tag .ct-sidebar h3,
    .tax-product_tag .ct-sidebar h4,
    .tax-product_tag .ct-sidebar .widget-title {
        font-size: 15px !important;
        margin: 0 0 10px !important;
    }

    .post-type-archive-product .ct-sidebar .price_slider_wrapper,
    .tax-product_cat .ct-sidebar .price_slider_wrapper,
    .tax-product_tag .ct-sidebar .price_slider_wrapper {
        margin-bottom: 8px !important;
    }

    .post-type-archive-product .ct-sidebar .price_slider_amount,
    .tax-product_cat .ct-sidebar .price_slider_amount,
    .tax-product_tag .ct-sidebar .price_slider_amount {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .post-type-archive-product .ct-sidebar .price_slider_amount .button,
    .tax-product_cat .ct-sidebar .price_slider_amount .button,
    .tax-product_tag .ct-sidebar .price_slider_amount .button {
        min-height: 42px !important;
        padding: 0 14px !important;
        border-radius: 10px !important;
    }

    .post-type-archive-product .ct-sidebar .wc-block-product-categories-list,
    .tax-product_cat .ct-sidebar .wc-block-product-categories-list,
    .tax-product_tag .ct-sidebar .wc-block-product-categories-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .post-type-archive-product .ct-sidebar .wc-block-product-categories-list li,
    .tax-product_cat .ct-sidebar .wc-block-product-categories-list li,
    .tax-product_tag .ct-sidebar .wc-block-product-categories-list li {
        margin: 0 !important;
    }

    .post-type-archive-product .ct-sidebar .wc-block-product-categories-list a,
    .tax-product_cat .ct-sidebar .wc-block-product-categories-list a,
    .tax-product_tag .ct-sidebar .wc-block-product-categories-list a {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 0 12px;
        border-radius: 10px;
        background: #e78ac0;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

    .post-type-archive-product .ct-sidebar .wc-block-product-categories-list .count,
    .tax-product_cat .ct-sidebar .wc-block-product-categories-list .count,
    .tax-product_tag .ct-sidebar .wc-block-product-categories-list .count {
        display: none;
    }

    .post-type-archive-product .ct-sidebar .wc-block-components-filter-reset-button,
    .tax-product_cat .ct-sidebar .wc-block-components-filter-reset-button,
    .tax-product_tag .ct-sidebar .wc-block-components-filter-reset-button {
        min-height: 42px;
        border-radius: 10px;
        padding: 0 14px;
    }

    .post-type-archive-product .ct-sidebar .widget:last-child,
    .tax-product_cat .ct-sidebar .widget:last-child,
    .tax-product_tag .ct-sidebar .widget:last-child {
        margin-bottom: 70px !important;
    }
}

/* ======================================================
SHOP (page) HERO 
Custom top banner for WooCommerce Shop page
====================================================== */

.post-type-archive-product .hb-shop-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(84, 62, 70, .28), rgba(84, 62, 70, .28)),
        url('/wp-content/uploads/2026/02/Hien-Beauty-salon-groothandel-b2b-b2c-shop-e1771403265981.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 36px;
}

.post-type-archive-product .hb-shop-hero__inner {
    padding: 40px 20px;
    max-width: 900px;
}

.post-type-archive-product .hb-shop-hero__title {
    margin: 0 0 14px;
    font-size: 64px;
    line-height: 1.05;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: #fff;
    text-transform: uppercase;
}

.post-type-archive-product .hb-shop-hero__subtitle {
    margin: 0;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 400;
    color: #fff;
}

@media (max-width:1024px) {
    .post-type-archive-product .hb-shop-hero {
        min-height: 360px;
    }

    .post-type-archive-product .hb-shop-hero__title {
        font-size: 48px;
    }

    .post-type-archive-product .hb-shop-hero__subtitle {
        font-size: 22px;
    }
}

@media (max-width:640px) {
    .post-type-archive-product .hb-shop-hero {
        min-height: 280px;
        margin-bottom: 24px;
    }

    .post-type-archive-product .hb-shop-hero__title {
        font-size: 34px;
    }

    .post-type-archive-product .hb-shop-hero__subtitle {
        font-size: 18px;
    }
}

/* ======================================================
Hide "Academy" category from shop sidebar category list
Only affects the custom category block used in shop
====================================================== */

.hb-shop-cat-list a[href*="academy"] {
display:none;
}

/* remove the empty list item container */

.hb-shop-cat-list li:has(a[href*="academy"]) {
display:none;
}

/* Hide Supplies - parent category not needed */
.hb-shop-cat-list > li:first-child {
    display: none;
}

/* Imprive category chips */
.hb-shop-cat-list a {
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 14px;
    margin-top: 14px;
}