/* HB4/HCO Homepage — product highlights (editorial, matches shop) */
.hb4-home {
    --hb4-shop-accent: var(--hb4-shop-brand, #111111);
    --hb4-home-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, transparent 240px),
        radial-gradient(1100px 520px at 92% -8%, color-mix(in srgb, var(--hb4-shop-accent) 14%, transparent), transparent 58%),
        radial-gradient(820px 380px at 4% 12%, rgba(17, 17, 17, 0.045), transparent 52%),
        linear-gradient(180deg, #f7f7f4 0%, var(--hb4-shop-bg, #f4f4f2) 55%, #f1f1ee 100%);
    color: var(--hb4-shop-ink, #111111);
    font-family: var(--hb4-shop-font-ui, Verdana, Geneva, sans-serif);
    padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px);
    overflow-x: clip;
}

.hb4-home::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hb4-shop-line, #deded9) 18%, var(--hb4-shop-line, #deded9) 82%, transparent);
    opacity: 0.9;
}

.hb4-home *,
.hb4-home *::before,
.hb4-home *::after {
    box-sizing: border-box;
}

.hb4-home a {
    color: inherit;
    text-decoration: none;
}

.hb4-home__shell {
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: 0 var(--hb4-shop-pad, clamp(18px, 3.2vw, 48px));
}

.hb4-home__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px 40px;
    align-items: end;
    margin-bottom: clamp(28px, 4vw, 44px);
    opacity: 0;
    transform: translateY(16px);
    animation: hb4HomeReveal 0.7s var(--hb4-home-ease) 0.05s forwards;
}

.hb4-home__title-block {
    max-width: 36rem;
}

.hb4-home__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-family: var(--hb4-shop-font-display, "Apex Regular", sans-serif);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hb4-shop-accent);
}

.hb4-home__eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.85;
}

.hb4-home__title {
    margin: 0;
    font-family: var(--hb4-shop-font-display, "Apex Regular", sans-serif);
    font-weight: 400;
    font-size: clamp(2.35rem, 5.2vw, 3.75rem);
    letter-spacing: -0.03em;
    line-height: 0.96;
    color: var(--hb4-shop-ink, #111111);
}

.hb4-home__lede {
    margin: 14px 0 0;
    max-width: 28rem;
    font-size: clamp(0.92rem, 1.5vw, 1.02rem);
    line-height: 1.55;
    color: var(--hb4-shop-muted, #6a6a6a);
}

.hb4-home a.hb4-home__all-btn,
.hb4-home__all-btn {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--hb4-shop-brand, #111111);
    border-color: var(--hb4-shop-brand, #111111);
    color: #ffffff;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--hb4-shop-brand, #111111) 22%, transparent);
    transition: transform 0.25s var(--hb4-home-ease), box-shadow 0.25s ease, filter 0.2s ease;
}

.hb4-home__all-btn span.arrow_right {
    display: inline-block;
    color: #ffffff;
    transition: transform 0.25s var(--hb4-home-ease);
}

.hb4-home a.hb4-home__all-btn:hover,
.hb4-home__all-btn:hover {
    background: var(--hb4-shop-brand, #111111);
    border-color: var(--hb4-shop-brand, #111111);
    color: #ffffff;
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px color-mix(in srgb, var(--hb4-shop-brand, #111111) 28%, transparent);
}

.hb4-home__all-btn:hover span.arrow_right {
    transform: translateX(4px);
}

.hb4-home__carousel-wrap {
    position: relative;
    padding: 0 56px;
}

.hb4-home__nav {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: var(--hb4-shop-ink, #111111);
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s var(--hb4-home-ease), box-shadow 0.25s ease;
}

.hb4-home__nav:hover {
    background: #fff;
    border-color: var(--hb4-shop-brand, #111111);
    color: var(--hb4-shop-brand, #111111);
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 12px 26px rgba(17, 17, 17, 0.1);
}

.hb4-home__nav-prev {
    left: 0;
}

.hb4-home__nav-next {
    right: 0;
}

.hb4-home__nav span {
    font-size: 16px;
    line-height: 1;
}

.hb4-home .product-highlight-carousel {
    position: relative;
    width: 100%;
    display: block !important;
}

.hb4-home .product-highlight-carousel.owl-carousel {
    display: block !important;
}

.hb4-home .product-highlight-carousel .owl-stage-outer {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: -8px 0;
    padding: 8px 0;
}

.hb4-home .product-highlight-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.hb4-home .product-highlight-carousel .owl-item {
    display: flex;
    align-items: stretch;
}

.hb4-home .product-highlight-carousel .item {
    width: 100%;
    height: 100%;
    display: block;
    padding: 0 8px;
}

.hb4-home .hb4-shop__card {
    width: 100%;
    opacity: 0;
    transform: translateY(22px);
    animation: hb4HomeReveal 0.65s var(--hb4-home-ease) forwards;
    transition: transform 0.35s var(--hb4-home-ease);
}

.hb4-home .product-highlight-carousel .owl-item:nth-child(1) .hb4-shop__card { animation-delay: 0.08s; }
.hb4-home .product-highlight-carousel .owl-item:nth-child(2) .hb4-shop__card { animation-delay: 0.14s; }
.hb4-home .product-highlight-carousel .owl-item:nth-child(3) .hb4-shop__card { animation-delay: 0.2s; }
.hb4-home .product-highlight-carousel .owl-item:nth-child(4) .hb4-shop__card { animation-delay: 0.26s; }
.hb4-home .product-highlight-carousel .owl-item:nth-child(5) .hb4-shop__card { animation-delay: 0.32s; }
.hb4-home .product-highlight-carousel .owl-item:nth-child(n+6) .hb4-shop__card { animation-delay: 0.36s; }

.hb4-home .hb4-shop__card.is-visible {
    opacity: 1;
    transform: none;
}

.hb4-home .hb4-shop__media {
    box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.04);
    transition: box-shadow 0.35s ease, transform 0.35s var(--hb4-home-ease);
}

.hb4-home .hb4-shop__card:hover {
    transform: translateY(-6px);
}

.hb4-home .hb4-shop__card:hover .hb4-shop__media {
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--hb4-shop-brand, #111111) 18%, transparent),
        0 22px 40px rgba(17, 17, 17, 0.12);
}

.hb4-home .hb4-shop__wishlist {
    opacity: 0;
    transform: translateY(6px);
}

.hb4-home .hb4-shop__card:hover .hb4-shop__wishlist,
.hb4-home .hb4-shop__wishlist:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.hb4-home .hb4-shop__meta {
    padding-top: 18px;
}

.hb4-home .hb4-shop__name {
    font-size: 14px;
    letter-spacing: 0.01em;
}

.hb4-home .hb4-shop__price--sale {
    color: var(--hb4-shop-brand, #111111);
}

.hb4-home__block--for-you {
    margin-top: clamp(48px, 7vw, 88px);
}

.hb4-home .homepage-theme-tiles {
    margin-top: clamp(36px, 5vw, 56px);
}

@keyframes hb4HomeReveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hb4-home__header {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hb4-home__carousel-wrap {
        padding: 0 42px;
    }

    .hb4-home__nav {
        width: 40px;
        height: 40px;
        top: 36%;
    }

    .hb4-home__all-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hb4-home__header,
    .hb4-home .hb4-shop__card {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hb4-home .hb4-shop__card:hover {
        transform: none;
    }

    .hb4-home__all-btn:hover,
    .hb4-home__nav:hover {
        transform: none;
    }
}
