/* ==========================================================================
   Topbar
   ========================================================================== */

.hs-topbar {
    background: var(--wp--preset--color--secondary);
    padding: 10px 20px;
}

.hs-topbar__inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 30px;
}

.hs-topbar__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.hs-topbar__icon {
    flex-shrink: 0;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .hs-topbar {
        padding: 6px 12px;
    }

    .hs-topbar__inner {
        gap: 2px 14px;
    }

    .hs-topbar__item {
        font-size: 10px;
    }
}

/* ==========================================================================
   Desktop Header
   ========================================================================== */

@media (min-width: 993px) {
    header.wp-block-template-part:has(.hs-header-wrap) {
        position: sticky;
        top: 0;
        z-index: 500;
    }
}

@media (max-width: 992px) {
    header.wp-block-template-part:has(.hs-header-wrap),
    .hs-header-wrap {
        display: contents;
    }

    .hs-header-wrap .hs-header {
        display: none;
    }
}

@media (min-width: 993px) {
    .hs-header-wrap .hs-topbar {
        overflow: hidden;
        max-height: 42px;
        transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
        opacity: 1;
    }

    .hs-header-wrap.is-scrolled .hs-topbar {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
    }
}

.hs-header {
    background: var(--wp--preset--color--base-warm);
    transition: box-shadow 0.2s;
}

.hs-header-wrap.is-scrolled .hs-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hs-header__main {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: calc(var(--wp--style--global--content-size, 1100px) + 80px);
    margin: 0 auto;
    padding: 10px 40px;
}

.hs-header__logo {
    flex-shrink: 0;
    line-height: 0;
    animation: gelatine 0.5s;
}

.hs-header__logo img {
    width: 140px;
    height: auto;
    transform: rotate(-5deg);
}

.hs-header__search {
    flex: 1;
    position: relative;
    margin: 0 24px;
}

.hs-header__search .dgwt-wcas-search-wrapp {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hs-header__search .dgwt-wcas-sf-wrapp {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.hs-header input[type="search"],
.hs-header .dgwt-wcas-search-input {
    width: 100%;
    border: 1.5px solid var(--wp--preset--color--secondary) !important;
    border-radius: 999px !important;
    background: transparent !important;
    height: 42px !important;
    padding: 0 44px 0 18px !important;
    font-family: var(--wp--preset--font-family--body) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s !important;
}

.hs-header input[type="search"]:focus,
.hs-header .dgwt-wcas-search-input:focus,
.hs-header input[type="search"]:hover,
.hs-header .dgwt-wcas-search-input:hover {
    border-color: var(--wp--preset--color--primary) !important;
}

.hs-header__search .dgwt-wcas-search-submit,
.hs-header__search .dgwt-wcas-ico-magnifier,
.hs-header__search .dgwt-wcas-ico-magnifier-handler,
.hs-header__search .dgwt-wcas-search-icon-handler {
    display: none !important;
}

.hs-header__search .search-submit {
    display: none;
}

.hs-header__search .dgwt-wcas-close {
    right: 36px !important;
}

.hs-header__search::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    z-index: 5;
    transition: background-image 0.2s;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC6F0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / contain;
}

.hs-header__search:hover::after,
.hs-header__search:focus-within::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FA69A8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

/* Hide add-to-cart in the FiboSearch product-detail suggestion panel (plugin inline-style override). */
.dgwt-wcas-pd-addtc {
    display: none !important;
}

.hs-header__cart {
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    padding: 4px;
    color: var(--wp--preset--color--contrast-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.hs-header__cart:hover {
    animation: gelatine 0.5s;
    color: var(--wp--preset--color--primary);
}

.hs-header__cart-icon {
    width: 28px;
    height: 28px;
}

.hs-header__cart-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
    font-size: 14px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
}

/* The badge is always in the DOM (so the wc-cart-fragments swap target exists);
   hide it when the cart is empty (no number) — desktop + mobile. */
.hs-header__cart-count:empty,
.hs-header-mobile__cart-count:empty {
    display: none;
}

.hs-header__nav {
    background: var(--wp--preset--color--base-warm);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 2px -2px rgba(0, 0, 0, 0.1);
}

.hs-header__nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: calc(var(--wp--style--global--content-size, 1100px) + 80px);
    margin: 0 auto;
    padding: 0 40px;
}

.hs-header__nav-item {
    position: relative;
}

.hs-header__nav-link {
    display: block;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 16px;
    color: var(--wp--preset--color--contrast-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.hs-header__nav-link:hover,
.hs-header__nav-link--active {
    color: var(--wp--preset--color--primary);
}

.hs-header__mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    /* Visibility flips after the fade-out; on open it flips instantly (below)
       so a keyboard-opened panel is synchronously focusable. Renders the same
       — opacity does all the visible fading. */
    transition: opacity 0.2s, visibility 0s 0.2s;
    z-index: 1000;
    padding-top: 0;
}

.hs-header__nav-item:hover .hs-header__mega,
.hs-header__nav-item .hs-header__mega.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s, visibility 0s;
}

.hs-header__mega-columns {
    background: var(--wp--preset--color--base-warm);
    border-top: 2.5px solid var(--wp--preset--color--primary);
    border-radius: 0 0 var(--wp--custom--border-radius) var(--wp--custom--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    padding: 24px 28px 20px;
    display: grid;
    gap: 20px;
}

.hs-header__mega-columns[data-cols="2"] { grid-template-columns: 1fr 1fr; min-width: 420px; }
.hs-header__mega-columns[data-cols="3"] { grid-template-columns: 1fr 1fr 1fr; min-width: 560px; }
.hs-header__mega-columns[data-cols="4"] { grid-template-columns: 1fr 1fr 1fr 1fr; min-width: 680px; }

.hs-header__mega-column + .hs-header__mega-column {
    border-left: 1px solid var(--wp--preset--color--base-cream);
    padding-left: 20px;
}

.hs-header__mega-heading {
    display: block;
    font-size: 17px;
    font-weight: 700;
    font-family: var(--wp--preset--font-family--body);
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--wp--preset--color--base-cream);
    transition: color 0.15s;
}

.hs-header__mega-heading:hover {
    color: var(--wp--preset--color--secondary);
}

.hs-header__mega-desc {
    font-size: 13px;
    color: var(--wp--preset--color--contrast-light);
    margin: 0 0 8px;
    line-height: 1.5;
}

.hs-header__mega-children {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hs-header__mega-link {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    color: var(--wp--preset--color--contrast-muted);
    text-decoration: none;
    transition: color 0.15s, padding-left 0.15s;
}

.hs-header__mega-link:hover {
    color: var(--wp--preset--color--primary);
    padding-left: 4px;
}

.hs-header__mega-link--viewall {
    margin-top: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--wp--preset--color--secondary);
}

.hs-header__mega-link--viewall:hover {
    color: var(--wp--preset--color--primary);
    padding-left: 0;
}

.hs-header__links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.hs-header__links a {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.hs-header__links a:hover {
    color: var(--wp--preset--color--secondary);
}

/* ==========================================================================
   Mobile Header
   ========================================================================== */

.hs-header-mobile {
    display: none;
    background: var(--wp--preset--color--base-warm);
}

@media (max-width: 992px) {
    .hs-header-mobile {
        display: block;
        position: sticky;
        top: 0;
        z-index: 500;
    }
}

.hs-header-mobile__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
}

.hs-header-mobile__logo {
    flex-shrink: 0;
    line-height: 0;
}

.hs-header-mobile__logo img {
    height: 40px;
    width: auto;
}

.hs-header-mobile__cart {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--wp--preset--color--contrast-muted);
    text-decoration: none;
    flex-shrink: 0;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
}

.hs-header-mobile__cart:active {
    color: var(--wp--preset--color--primary);
}

.hs-header-mobile__cart-icon {
    width: 24px;
    height: 24px;
}

.hs-header-mobile__cart-count {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.hs-header-mobile__search {
    flex: 1;
    min-width: 0;
    position: relative;
}

.hs-header-mobile__search .dgwt-wcas-search-wrapp {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hs-header-mobile__search .dgwt-wcas-sf-wrapp {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.hs-header-mobile__search .dgwt-wcas-search-input {
    height: 34px !important;
    border: 1px solid var(--wp--preset--color--secondary-light) !important;
    border-radius: 999px !important;
    background: var(--wp--preset--color--base-cream) !important;
    font-size: 13px !important;
    padding: 0 34px 0 12px !important;
    font-family: var(--wp--preset--font-family--body) !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    outline: none !important;
}

.hs-header-mobile__search .dgwt-wcas-search-input:focus {
    border-color: var(--wp--preset--color--primary-light) !important;
    background: #fff !important;
}

.hs-header-mobile__search .dgwt-wcas-search-submit,
.hs-header-mobile__search .dgwt-wcas-ico-magnifier,
.hs-header-mobile__search .dgwt-wcas-ico-magnifier-handler,
.hs-header-mobile__search .dgwt-wcas-search-icon-handler {
    display: none !important;
}

.hs-header-mobile__search::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 5;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FC6F0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / contain;
}

.hs-header-mobile__search:focus-within::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FA69A8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Mobile Category Pills
   ========================================================================== */

.hs-category-pills {
    display: none;
}

@media (max-width: 992px) {
    .hs-category-pills {
        display: block;
        background: var(--wp--preset--color--base-warm);
        padding: 6px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
}

.hs-pills-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 14px;
    scrollbar-width: none;
}

.hs-pills-scroll::-webkit-scrollbar {
    display: none;
}

.hs-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f0ebf0;
    color: var(--wp--preset--color--contrast-muted);
    font-family: var(--wp--preset--font-family--body);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.hs-pill.is-active,
.hs-pill:active {
    background: var(--wp--preset--color--primary);
    color: #fff;
}

/* ==========================================================================
   Mobile Slide Panel
   ========================================================================== */

.hs-panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hs-panel-overlay.active {
    display: block;
    opacity: 1;
}

.hs-slide-panel {
    display: none;
}

@media (max-width: 992px) {
    .hs-slide-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 85vw;
        max-width: 340px;
        height: 100dvh;
        background: var(--wp--preset--color--base-warm);
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    }

    .hs-slide-panel.open {
        transform: translateX(0);
    }
}

.hs-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hs-panel-title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 20px;
    color: var(--wp--preset--color--primary);
}

.hs-panel-close {
    background: none;
    border: none;
    padding: 4px;
    color: #888;
    cursor: pointer;
}

.hs-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.hs-panel-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
}

.hs-panel-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fef0f5;
    border-radius: 10px;
    font-family: var(--wp--preset--font-family--body);
    font-size: 15px;
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}

.hs-panel-card:active {
    background: var(--wp--preset--color--primary);
    color: #fff;
}

.hs-panel-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(250, 105, 168, 0.12);
    border-radius: 10px;
    flex-shrink: 0;
}

.hs-panel-card-icon svg {
    width: 22px;
    height: 22px;
}

.hs-panel-section {
    padding: 4px 16px 12px;
}

.hs-panel-section-label {
    font-family: var(--wp--preset--font-family--body);
    font-size: 16px;
    font-weight: 700;
    color: var(--wp--preset--color--primary);
    padding: 6px 0 10px;
}

.hs-panel-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.hs-panel-child-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: var(--wp--preset--color--base-cream);
    border-radius: 8px;
    font-family: var(--wp--preset--font-family--body);
    font-size: 13px;
    font-weight: 500;
    color: var(--wp--preset--color--contrast-muted);
    text-decoration: none;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}

.hs-panel-child-card:active {
    background: var(--wp--preset--color--primary);
    color: #fff;
}

.hs-panel-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px) + 60px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--wp--preset--color--base-cream);
}

.hs-panel-footer a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 10px;
    background: var(--wp--preset--color--base-warm);
    border-radius: 999px;
    font-family: var(--wp--preset--font-family--body);
    font-size: 12px;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    -webkit-tap-highlight-color: transparent;
}

.hs-panel-footer a:active {
    background: var(--wp--preset--color--primary);
    color: #fff;
}

/* ==========================================================================
   Product Card
   ========================================================================== */

.hs-card {
    list-style: none;
    position: relative;
}

.hs-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--wp--preset--color--base);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.hs-card__link:hover,
.hs-card__link:focus-visible {
    border-color: rgba(247, 193, 217, 0.6);
    box-shadow: 0 0 0 1px rgba(247, 193, 217, 0.3);
}

.hs-card__image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--wp--preset--color--base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hs-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.hs-card__link:hover .hs-card__image-wrap img {
    transform: scale(1.05);
}

.hs-card__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px 14px;
    min-height: 105px;
    flex: 1;
}

.hs-card__badge {
    position: absolute;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    z-index: 2;
    line-height: 1.4;
}

.hs-card__badge--sale {
    top: 8px;
    right: 8px;
    background: #FBEAF0;
    color: #993556;
}

.hs-card__badge--oos {
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: var(--wp--preset--color--base);
}

.hs-card__badge--bestseller {
    top: 8px;
    left: 8px;
    background: var(--wp--preset--color--primary);
    color: #fff;
}

.hs-card--oos .hs-card__image-wrap img {
    opacity: 0.5;
}

.hs-card--oos .hs-card__price {
    opacity: 0.4;
}

.hs-card__title {
    font-family: var(--wp--preset--font-family--body);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8em;
    color: var(--wp--preset--color--contrast-muted);
    transition: color 0.15s;
}

.hs-card__link:hover .hs-card__title {
    color: var(--wp--preset--color--primary);
}

.hs-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    font-size: 14px;
}

.hs-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.hs-stars svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.hs-card__rating-count {
    font-size: 12px;
    color: var(--wp--preset--color--contrast-light);
}

.hs-card__price {
    margin-top: auto;
    padding-top: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--wp--preset--color--secondary);
    line-height: 1.3;
    transition: color 0.15s;
}

.hs-card__price del {
    font-size: 13px;
    font-weight: 500;
    color: #aaa;
    margin-right: 5px;
}

.hs-card__price ins {
    text-decoration: none;
    color: var(--wp--preset--color--secondary);
}

.hs-card__link:hover .hs-card__price,
.hs-card__link:hover .hs-card__price ins {
    color: var(--wp--preset--color--primary);
}

@media (max-width: 768px) {
    .hs-card__title {
        font-size: 13px;
        -webkit-line-clamp: 3;
        min-height: 4.2em;
    }

    .hs-card__price {
        font-size: 15px;
    }

    .hs-card__content {
        padding: 8px 10px 12px;
    }
}

/* ==========================================================================
   Bestsellers Grid (5-column on desktop, 4 tablet, 2 mobile)
   ========================================================================== */

.hs-bestsellers__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.hs-bestsellers__view-all {
    text-decoration: none;
    transition: opacity 0.2s;
}

.hs-bestsellers__view-all:hover {
    opacity: 0.7;
}

@media (max-width: 1199px) {
    .hs-bestsellers__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hs-bestsellers__grid .hs-card:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 767px) {
    .hs-bestsellers__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hs-bestsellers__grid .hs-card:nth-child(n+5) {
        display: none;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.hs-footer {
    background: var(--wp--preset--color--base-warm);
    color: var(--wp--preset--color--contrast-muted);
    position: relative;
    margin-top: 30px;
    box-shadow: 0 -4px 2px -2px rgba(0, 0, 0, 0.1);
}

.hs-footer a {
    color: var(--wp--preset--color--contrast-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.hs-footer a:hover {
    color: var(--wp--preset--color--secondary);
}

.hs-footer__inner {
    max-width: calc(var(--wp--style--global--content-size, 1100px) + 100px);
    margin: 0 auto;
    padding: 30px 50px;
    position: relative;
    z-index: 1;
}

.hs-footer__columns {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.hs-footer__column {
    width: 25%;
    box-sizing: border-box;
    padding: 0 5px;
}

.hs-footer__heading {
    font-family: var(--wp--preset--font-family--heading);
    color: var(--wp--preset--color--primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
}

.hs-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hs-footer__links li {
    margin: 0;
}

.hs-footer__links a {
    display: inline-flex;
    align-items: center;
    padding: 0;
    text-decoration: none;
}

.hs-footer__links--icons a {
    gap: 0.5em;
    padding-bottom: 4px;
}

/* Cookiebot consent trigger: a <button> styled to match the footer links. */
.hs-footer__cookie-link {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: var(--wp--preset--color--contrast-muted);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
}

.hs-footer__cookie-link:hover {
    color: var(--wp--preset--color--secondary);
}

.hs-footer__social-icon {
    flex-shrink: 0;
    fill: currentColor;
}

.hs-footer__contact-text {
    font-size: 15px;
    margin: 0 0 10px;
    line-height: 1.6;
}

.hs-footer__keurmerk {
    display: block;
    margin-top: 14px;
}

.hs-footer__copyright {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
    color: var(--wp--preset--color--contrast-muted);
}

.hs-footer__shape {
    position: absolute;
    overflow: hidden;
    pointer-events: none;
    line-height: 0;
    left: 0;
    right: 0;
    bottom: -1px;
    color: var(--wp--preset--color--base-cream);
}

.hs-footer__shape svg {
    height: 200px;
    width: calc(100% + 1.3px);
    fill: currentColor;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    min-width: 100%;
}

@media (max-width: 1024px) {
    .hs-footer__column {
        width: 50%;
    }

    .hs-footer__columns {
        row-gap: 40px;
    }
}

@media (max-width: 767px) {
    .hs-footer__inner {
        padding-bottom: 40px;
    }

    .hs-footer__column {
        width: 100%;
    }

    .hs-footer__columns {
        row-gap: 20px;
    }
}

/* ==========================================================================
   Trust Signals
   ========================================================================== */

.hs-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    padding: 20px 16px;
}

@media (max-width: 992px) {
    .hs-trust {
        gap: 16px;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hs-hero {
    position: relative;
    height: 340px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--wp--custom--border-radius);
    margin: 0 auto;
}

.hs-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 80%;
}

.hs-hero__overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 750px;
    padding: 0 20px;
}

.hs-hero__heading {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 42px;
    color: var(--wp--preset--color--base);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.3);
    margin: 0 0 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.hs-hero__subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 22px;
    white-space: nowrap;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 0, 0, 0.2);
}

.hs-hero__cta {
    display: inline-block;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
    padding: 15px 40px;
    border-radius: var(--wp--custom--border-radius);
    font-family: var(--wp--preset--font-family--body);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.hs-hero__cta:hover {
    animation: gelatine 0.5s;
    background: var(--wp--preset--color--primary-light);
    color: var(--wp--preset--color--base);
}

@media (max-width: 1199px) {
    .hs-hero {
        height: 350px;
    }

    .hs-hero__heading {
        font-size: 32px;
    }
}

@media (max-width: 992px) {
    .hs-hero {
        height: 300px;
    }

    .hs-hero__heading {
        font-size: 24px;
        white-space: normal;
    }

    .hs-hero__subtitle {
        font-size: 14px;
        white-space: normal;
    }

    .hs-hero__cta {
        padding: 12px 28px;
        font-size: 13px;
    }
}

/* ==========================================================================
   How It Works
   ========================================================================== */

.hs-hiw-wrapper {
    margin: 0;
}

.hs-hiw-title {
    margin: 0 0 16px;
}

.hs-hiw-subtitle {
    font-size: 22px;
    color: var(--wp--preset--color--primary);
    font-weight: 600;
    margin: 0 0 12px;
    text-align: center;
}

.hs-hiw {
    background: var(--wp--preset--color--base);
    border-radius: var(--wp--custom--border-radius);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    padding: 28px 32px 32px;
}

.hs-hiw-steps {
    display: flex;
    gap: 16px;
}

.hs-hiw-step {
    flex: 1;
    text-align: center;
    position: relative;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: var(--step-delay);
}

/* Hidden pre-reveal state is armed by JS (.hs-hiw-js) so the section stays
   visible when JS is blocked or unavailable. */
.hs-hiw-js .hs-hiw-step {
    opacity: 0;
    transform: translateY(20px);
}

.hs-hiw-visible .hs-hiw-step {
    opacity: 1;
    transform: translateY(0);
}

.hs-hiw-bubble {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fdf0f4, #f0f7fb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    position: relative;
    z-index: 1;
}

.hs-hiw-step:nth-child(1) .hs-hiw-bubble { animation: hs-float 3s ease-in-out infinite; }
.hs-hiw-step:nth-child(2) .hs-hiw-bubble { animation: hs-float 3s ease-in-out 0.4s infinite; }
.hs-hiw-step:nth-child(3) .hs-hiw-bubble { animation: hs-float 3s ease-in-out 0.8s infinite; }
.hs-hiw-step:nth-child(4) .hs-hiw-bubble { animation: hs-float 3s ease-in-out 1.2s infinite; }

@keyframes hs-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hs-hiw-emoji {
    font-size: 24px;
    line-height: 1;
}

.hs-hiw-line {
    position: absolute;
    top: 18px;
    left: calc(50% + 34px);
    width: calc(100% - 68px);
    height: 30px;
    z-index: 0;
    pointer-events: none;
}

.hs-hiw-line svg {
    width: 100%;
    height: 100%;
}

.hs-hiw-step-title {
    font-family: var(--wp--preset--font-family--body);
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px;
}

.hs-hiw-step-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1199px) {
    .hs-hiw {
        padding: 24px 20px;
    }
}

@media (max-width: 992px) {
    .hs-hiw-subtitle {
        font-size: 18px;
    }

    .hs-hiw-steps {
        flex-direction: column;
        gap: 0;
    }

    .hs-hiw-line {
        display: none;
    }

    .hs-hiw-step {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 14px 0;
        position: relative;
    }

    .hs-hiw-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 28px;
        top: 70px;
        bottom: -14px;
        width: 2px;
        background-image: linear-gradient(to bottom, var(--wp--preset--color--primary-pale) 6px, transparent 6px);
        background-size: 2px 12px;
        background-repeat: repeat-y;
        animation: hs-dash-march 0.8s linear infinite;
    }

    .hs-hiw-bubble {
        margin: 0;
        flex-shrink: 0;
    }

    .hs-hiw-step-desc {
        font-size: 13px;
    }
}

@keyframes hs-dash-march {
    to { background-position: 0 12px; }
}

/* ==========================================================================
   Checkout Stepper
   ========================================================================== */

.hs-stepper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	/* Match the page's top padding (~32px) above the stepper so it sits centred
	   between the header and the cart/checkout content (same on mobile). */
	margin-bottom: 32px;
}

a.hs-stepper__step {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

a.hs-stepper__step:hover .hs-stepper__label {
	color: var(--wp--preset--color--primary);
}

.hs-stepper__step {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.hs-stepper__step--active .hs-stepper__label {
	font-family: var(--wp--preset--font-family--body);
	font-size: 20px;
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

.hs-stepper__dot {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	flex-shrink: 0;
}

.hs-stepper__step--active .hs-stepper__dot {
	width: 36px;
	height: 36px;
	font-size: 16px;
}

.hs-stepper__dot--done {
	background: #FBEAF0;
	color: var(--wp--preset--color--primary);
}

.hs-stepper__dot--active {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.hs-stepper__dot--upcoming {
	background: #F0E4EB;
	color: #999;
}

.hs-stepper__label {
	font-size: 20px;
	color: #999;
}

.hs-stepper__line {
	width: 80px;
	height: 2px;
	margin: 0 14px;
	flex-shrink: 0;
}

.hs-stepper__line--done {
	background: var(--wp--preset--color--primary);
}

.hs-stepper__line--upcoming {
	background: #E0D4DA;
}

@media (max-width: 768px) {
	.hs-stepper__step:not(.hs-stepper__step--active) .hs-stepper__label {
		display: none;
	}

	.hs-stepper__step--active .hs-stepper__label {
		font-size: 20px;
	}

	.hs-stepper__step--active .hs-stepper__dot {
		width: 30px;
		height: 30px;
		font-size: 13px;
	}

	.hs-stepper__dot {
		width: 26px;
		height: 26px;
		font-size: 12px;
	}

	.hs-stepper__line {
		flex: 1;
		min-width: 16px;
		margin: 0 6px;
	}
}

/* ==========================================================================
   Content Images
   Float + size come from the core Image block's native Align + width controls.
   `.shadowborder` is the legacy child-theme frame (dropped with GenerateBlocks);
   the class is still present on image blocks across pages and posts, so this one
   rule restores every framed content image. Core has no responsive alignment, so
   floated content images stack full-width on mobile.
   ========================================================================== */

img.shadowborder,
.shadowborder img {
    border-radius: var(--wp--custom--border-radius);
    box-shadow: 0 0 8px var(--wp--custom--gray);
}

@media (max-width: 800px) {
    .entry-content .wp-block-image.alignright,
    .entry-content .wp-block-image.alignleft {
        float: none;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ==========================================================================
   Mobile Spacing Overrides
   ========================================================================== */

@media (max-width: 992px) {
    .hs-hero-wrapper,
    .hs-bestsellers,
    .hs-hiw-section,
    .hs-reveals,
    .hs-reviews {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body:not(.home) main.wp-block-group {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .hs-hero-wrapper {
        margin-top: 20px !important;
    }

    .hs-bestsellers {
        padding-top: 16px !important;
        padding-bottom: 24px !important;
    }

    .hs-bestsellers__header,
    .hs-reveals__header {
        margin-bottom: 12px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
    }
}

/* ==========================================================================
   Blog index (native Query Loop on the Blog page)
   ========================================================================== */

.hs-blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--wp--preset--color--base);
    border-radius: var(--wp--custom--border-radius, 10px);
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Whole card is clickable (the title link is stretched over it) with a clear
   hover lift. Interactive sub-elements (the category link) sit above it. */
.hs-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.hs-blog-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.hs-blog-card:hover .hs-blog-card__title a {
    color: var(--wp--preset--color--primary);
}

.hs-blog-card__media {
    position: relative;
    line-height: 0;
}

.hs-blog-card__media .wp-block-post-featured-image {
    margin: 0;
}

.hs-blog-card__media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.hs-blog-card__date {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--base);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    padding: 4px 10px;
    border-top-left-radius: var(--wp--custom--border-radius, 10px);
}

.hs-blog-card__cat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
}

.hs-blog-card__cat::before {
    content: "";
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FA69A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E") no-repeat center / contain;
}

.hs-blog-card__cat a {
    position: relative;
    z-index: 1;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Push the body to fill the card so every card is the same height regardless of
   title length: the image is fixed-height and titles are clamped to two lines. */
.hs-blog-card__body {
    flex: 1;
}

.hs-blog-card__title {
    margin: 0;
    font-family: var(--wp--preset--font-family--body);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em; /* reserve two lines so all cards match height */
}

.hs-blog-card__title a {
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
    transition: color 0.15s;
}

.hs-blog-card__title a:hover {
    color: var(--wp--preset--color--primary);
}

.hs-blog-pagination a,
.hs-blog-pagination .wp-block-query-pagination-previous,
.hs-blog-pagination .wp-block-query-pagination-next {
    background: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--base);
    padding: 12px 22px;
    border-radius: var(--wp--custom--border-radius, 10px);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.hs-blog-pagination a:hover {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
}
