/* Hummingbird Editor — home page bundle. CSS vars (--hbe-*) come from front.css (always loaded). */

/* ── Brands logo strip ───────────────────────────────────────────────────── */
.hbe-brands {
  padding: 2.5rem 0;
}
.hbe-brands__title {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--fs-h4);
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--bs-body-color);
}
.hbe-brands__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
}
.hbe-brands__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.hbe-brands__item img {
  display: block;
  max-height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.hbe-brands__item:hover img,
.hbe-brands__item:focus img {
  filter: grayscale(0);
  opacity: 1;
}


/* ── Info bar (below slider) ───────────────────────────────────────────── */
.hbe-infobar {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: var(--fs-body-m);
    font-weight: 500;
    line-height: 1.4;
    box-sizing: border-box;
}

.hbe-infobar a {
    text-decoration: underline;
    transition: opacity 0.15s;
}

.hbe-infobar a:hover,
.hbe-infobar a:focus {
    opacity: 0.8;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .hbe-infobar {
        font-size: var(--fs-body-s);
        padding: 0.7rem 1rem;
    }
}


/* ── Image hero banner ───────────────────────────────────────────────────── */
.hbe-imghero {
    width: 100%;
    overflow: hidden;
}

.hbe-imghero__inner {
    position: relative;
    width: 100%;
    line-height: 0;
}

.hbe-imghero__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hbe-imghero__overlay {
    position: absolute;
    bottom: 4rem;
    left: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 50%;
}

.hbe-imghero__title {
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: normal;
    font-size: var(--fs-h2);
    line-height: 1;
    letter-spacing: 0;
    color: var(--hbe-white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hbe-imghero__desc {
    margin: 0;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.hbe-imghero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 46px;
    padding: 14px 20px;
    gap: 10px;
    background: var(--hbe-white);
    color: var(--hbe-black);
    font-family: var(--font-body);
    font-weight: 500;
    font-style: normal;
    font-size: var(--fs-body-s);
    line-height: 1;
    letter-spacing: 0;
    border-radius: 0px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    border: none;
}

.hbe-imghero__cta:hover,
.hbe-imghero__cta:focus {
    /* Unified hover with the slider / featured-collection CTAs: a slight
       transparency only (no colour swap), so the button reads the same on
       white and black variants. */
    opacity: 0.85;
    text-decoration: none;
}

@media (max-width: 575px) {
    .hbe-imghero__overlay {
        bottom: 1.5rem;
        left: 1rem;
        max-width: 90%;
        gap: 0.35rem;
    }
    .hbe-imghero__title {
        margin-bottom: 1rem;
    }
}

/* ── 3-column text links block ───────────────────────────────────────────── */
.hbe-cols3 {
    width: 100%;
    background: #fff;
    border-top: 0;
    border-bottom: 0;
    padding: 0;
}

.hbe-cols3__row {
    display: flex;
    align-items: stretch;
    gap: 64px;
        justify-content: space-between;
}

.hbe-cols3__col {
    flex: 0 0 328px;
    width: 328px;
    min-height: 64px;
    display: flex;
    align-items: center;
    position: relative;
}

.hbe-cols3__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 64px;
    padding: 12px 0;
    text-decoration: none;
    color: var(--c-black);
    gap: 20px;
    transition: opacity 0.15s;
}

.hbe-cols3__link:hover,
.hbe-cols3__link:focus {
    background: transparent;
    text-decoration: none;
    color: var(--c-black);
    opacity: 0.82;
}

/* When there's no link, still pad the col */
.hbe-cols3__col:not(:has(.hbe-cols3__link)) {
    min-height: 64px;
    padding: 12px 0;
    justify-content: space-between;
    gap: 20px;
}

.hbe-cols3__text {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: normal;
    font-size: var(--fs-h3);
    line-height: 1;
    letter-spacing: 0;
    color: var(--c-black);
    flex: 1;
}

.hbe-cols3__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--c-black);
    transition: transform 0.15s;
}

.hbe-cols3__link:hover .hbe-cols3__arrow {
    transform: translateX(2px);
}

.hbe-cols3__divider {
    display: none;
}

@media (max-width: 767px) {
    .hbe-cols3__row {
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--c-grey-2);
    }

    .hbe-cols3__col {
        flex: 0 0 100%;
        width: 100%;
        border-top: 1px solid var(--c-grey-2);
    }

    .hbe-cols3__link,
    .hbe-cols3__col:not(:has(.hbe-cols3__link)) {
        min-height: 56px;
        padding: 10px 0;
    }

    .hbe-cols3__text {
        font-size: var(--fs-h4);
    }

    .hbe-cols3__divider {
        display: none;
    }
}

/* ── Tagline text block ──────────────────────────────────────────────────── */
.hbe-tagline {
    width: 100%;
    padding: 3rem 0;
    background: transparent;
    text-align: left;
}

.hbe-tagline__text {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: normal;
    font-size: var(--fs-h2);
    line-height: 1;
    letter-spacing: 0;
    margin: 0 0 1.25rem;
    color: var(--hbe-black);
    max-width: 70%;
    text-align: left;
}

.hbe-tagline__link {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 400;
    font-style: normal;
    font-size: var(--fs-body-s);
    line-height: 1;
    letter-spacing: 0;
    text-decoration: underline;
    text-decoration-style: solid;
    text-underline-offset: 0;
    text-decoration-thickness: from-font;
    text-decoration-skip-ink: auto;
    color: var(--hbe-black);
    transition: opacity 0.15s;
}

.hbe-tagline__link:hover,
.hbe-tagline__link:focus {
    opacity: 0.65;
    text-decoration: underline;
    color: var(--hbe-black);
}

@media (max-width: 767px) {
    .hbe-tagline {
        padding: 2.5rem 0;
    }
    .hbe-tagline__text {
        max-width: 100%;
    }
}

/* ── Kategorie two-column section ─────────────────────────────────────────── */
.hbe-katcols {
    padding: 40px 0;
}
.hbe-katcols__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}
.hbe-katcols__title {
    font-size: var(--fs-h3);
    font-weight: 400;
    margin: 0;
}
.hbe-katcols__header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-body-s);
    color: #555;
}
.hbe-katcols__hdr-link {
    font-weight: 600;
    text-decoration: underline;
    color: inherit;
    white-space: nowrap;
}
.hbe-katcols__cols {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.hbe-katcols__col--left {
    flex: 0 0 65%;
    max-width: 65%;
}
.hbe-katcols__col--right {
    flex: 0 0 35%;
    max-width: 35%;
}
.hbe-katcols__img-link {
    display: block;
    position: relative;
    /* Figma: category tiles are sharp — no rounding (was 4px, inconsistent
       with the splitblock/imghero tiles which are square). */
    border-radius: 0;
    text-decoration: none;
    color: inherit;
}
/* Only the image is clipped + zoomed on hover. The caption lives OUTSIDE this
   box so the hover zoom can never eat into the image↔caption gap — the spacing
   stays equal at rest and "po wywołaniu ruchu" (after the motion). */
.hbe-katcols__media {
    display: block;
    overflow: hidden;
    line-height: 0;
}
.hbe-katcols__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.hbe-katcols__img-link:hover .hbe-katcols__img {
    transform: scale(1.03);
}
.hbe-katcols__caption {
        display: block;
    margin-top: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: normal;
    font-size: var(--fs-h4);
    letter-spacing: 0;
    color: var(--c-black);
    text-align: left;
}
.hbe-katcols__col--right .hbe-katcols__caption {
    font-size: var(--fs-h4);
}
@media (max-width: 767px) {
    .hbe-katcols__cols {
        flex-direction: column;
    }
    .hbe-katcols__col--left,
    .hbe-katcols__col--right {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .hbe-katcols__header {
        flex-direction: column;
    }
}

/* ── Split-block (3 columns) ─────────────────────────────────────────────── */
.hbe-splitblock {
    padding: 40px 0;
}
.hbe-splitblock__inner {
    display: flex;
    gap: 0;
    align-items: stretch;
}
.hbe-splitblock__left-half {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    gap: 0;
}
.hbe-splitblock__col--text {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 2px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}
.hbe-splitblock__col--mid {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0px 16px;
}
.hbe-splitblock__mid-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.hbe-splitblock__right-half {
    flex: 0 0 50%;
    max-width: 50%;
    overflow: hidden;
}
.hbe-splitblock__right-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hbe-splitblock__title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: normal;
    font-size: var(--fs-h2);
    line-height: 100%;
    letter-spacing: 0;
    color: var(--c-black);
    margin: 0;
}
.hbe-splitblock__desc {
    font-size: var(--fs-body-m);
    line-height: 1.6;
    color: #444;
    margin: 0;
    flex-grow: 1;
}
.hbe-splitblock__cta {
    display: inline-block;
    padding: 10px 24px;
    background: var(--hbe-white);
    color: var(--hbe-black);
    border: 1px solid var(--hbe-black);
    border-radius: 0;
    font-size: var(--fs-body-s);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    align-self: flex-start;
    transition: background 0.2s, color 0.2s;
}
.hbe-splitblock__cta:hover {
    background: var(--hbe-black);
    color: var(--hbe-white);
}
@media (max-width: 991px) {
    .hbe-splitblock__inner {
        flex-direction: column;
    }
    .hbe-splitblock__left-half,
    .hbe-splitblock__right-half {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .hbe-splitblock__left-half {
        flex-direction: column;
    }
    .hbe-splitblock__col--text,
    .hbe-splitblock__col--mid {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .hbe-splitblock__mid-img {
        width: 100%;
    }
    .hbe-splitblock__right-half {
        min-height: 260px;
    }
}

/* Mobile (Figma "Zainspiruj się"): title, desc, both images, then CTA last.
   Flatten the wrappers with display:contents and reorder the flattened children. */
@media (max-width: 767px) {
    .hbe-splitblock__inner {
        flex-direction: column;
        gap: 16px;
    }
    .hbe-splitblock__left-half,
    .hbe-splitblock__col--text {
        display: contents;
    }
    .hbe-splitblock__title { order: 1; }
    .hbe-splitblock__desc { order: 2; }
    .hbe-splitblock__col--mid { order: 3; padding: 0; }
    .hbe-splitblock__right-half { order: 4; min-height: 0; }
    .hbe-splitblock__cta { order: 5; }
    .hbe-splitblock__right-img { height: auto; }
}

/* ── 3-column block with title + desc + link ─────────────────────────────── */
.hbe-cols3desc {
    width: 100%;
    padding: 0;
}

.hbe-cols3desc__row {
    display: flex;
    align-items: stretch;
    /* Figma (Links): no divider on desktop; mobile adds light grey dividers */
}

.hbe-cols3desc__col {
    flex: 1 1 0;
    display: flex;
    align-items: stretch;
    position: relative;
}

.hbe-cols3desc__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.4rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.hbe-cols3desc__link:hover,
.hbe-cols3desc__link:focus {

    text-decoration: none;
    color: inherit;
}

/* Salon photo above the link text. Square by default (square or portrait per
   Figma); 3-in-row on desktop (the row is already flex), stacked on mobile. */
.hbe-cols3desc__media {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
}
.hbe-cols3desc__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--c-grey-1);
}

/* Text body: title + desc on the left, arrow on the right (was on the link). */
.hbe-cols3desc__body {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.4rem;
    width: 100%;
}

.hbe-cols3desc__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: 400;
    line-height: 1.3;
    display: block;
    grid-column: 1;
    grid-row: 1;
}

.hbe-cols3desc__desc {
    font-size: var(--fs-body-s);
    color: #555;
    line-height: 1.5;
    margin: 0;
    grid-column: 1;
    grid-row: 2;
}

.hbe-cols3desc__arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0;
    flex-shrink: 0;
    color: #555;
    grid-column: 2;
    grid-row: 1 / span 2;
    transition: color 0.15s, transform 0.15s;
}

.hbe-cols3desc__link:hover .hbe-cols3desc__arrow {
    color: var(--bs-primary, #333);
    transform: translateX(2px);
}



@media (max-width: 767px) {
    .hbe-cols3desc__row {
        flex-direction: column;
        border-bottom: 1px solid var(--c-grey-2);
    }

    .hbe-cols3desc__col {
        border-top: 1px solid var(--c-grey-2);
    }

    .hbe-cols3desc__link {
        padding: 1.1rem 0;
    }

    .hbe-cols3desc__divider {
        display: none;
    }
}


/* ── Icons 4 columns ─────────────────────────────────────────────────────── */
.hbe-icons4 {
    width: 100%;
    padding: 32px 0;
    background: #fff;
}
.hbe-icons4__row {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}
.hbe-icons4__col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 16px 0;
    gap: 10px;
}
.hbe-icons4__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 4px;
    background: var(--c-grey-1);
    border-radius: 50%;
}
.hbe-icons4__icon img {
    max-width: 28px;
    max-height: 28px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}
.hbe-icons4__title {
    font-size: var(--fs-body-m);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.hbe-icons4__desc {
    font-size: var(--fs-body-s);
    color: #555;
    line-height: 1.55;
    margin: 0;
}
.hbe-icons4__divider {
    /* Figma desktop has no vertical dividers between the feature columns */
    display: none;
}
@media (max-width: 767px) {
    .hbe-icons4__row {
        flex-direction: column;
    }
    .hbe-icons4__col {
        flex: 0 0 100%;
        max-width: 100%;
        align-items: flex-start;
        text-align: left;
        padding: 16px 0;
        gap: 8px;
    }
    .hbe-icons4__divider {
        display: none;
    }
}


/* ── Slider (ported from bemo_slider; BEM .hbe-slider__*) ───────────────── */
.hbe-slider {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    min-height: 0;
    height: auto;
}

.hbe-slider__viewport {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    min-height: 0;
    height: auto;
}

.hbe-slider__track {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    min-height: 0;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), height 0.5s ease-in-out;
    will-change: transform;
    cursor: grab;
}

.hbe-slider__track:active {
    cursor: grabbing;
}

.hbe-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    display: block;
    overflow: hidden;
    min-height: 0;
    height: auto;
    position: relative;
}

.hbe-slider__slide.is-active {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 0;
    height: auto;
}

.hbe-slider__link {
    display: block;
    width: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.hbe-slider__media {
    position: relative;
    width: 100%;
    line-height: 0;
    font-size: 0;
    display: block;
}

.hbe-slider__media picture {
    display: block;
    width: 100%;
    line-height: 0;
}

.hbe-slider__media img {
    width: 100%;
    height: auto;
    display: block;
}

/* Decorative left-to-right darkening gradient over every slide image.
   Sits above the image, below the caption (caption is z-index: 3). */
.hbe-slider__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 61.74%);
}

/* Caption Overlay */
.hbe-slider__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: #fff;
    z-index: 3;
    pointer-events: none;
}

.hbe-slider__caption * {
    pointer-events: auto;
}

.hbe-slider__caption-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hbe-slider__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hbe-slider__desc {
    font-family: var(--font-heading);
    font-size: var(--fs-body-l);
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Navigation Arrows — classic style (default): dark squares centered on the edges */
.hbe-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.hbe-slider__arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.hbe-slider__arrow--prev {
    left: 1rem;
}

.hbe-slider__arrow--next {
    right: 1rem;
}

.hbe-slider__arrow svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* Navigation Arrows — "corner" variant: white circular pair in the bottom-right.
   Enabled per-store via the slider setting "Styl strzałek → Narożne". */
.hbe-slider--arrows-corner .hbe-slider__arrow {
    top: auto;
    bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--hbe-white);
    color: var(--hbe-black);
    border-radius: 50%;
    opacity: 0.3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: none;
    transition: opacity 0.2s ease;
}

/* dimmed at rest; solid white background only on hover / focus / click */
.hbe-slider--arrows-corner .hbe-slider__arrow:hover,
.hbe-slider--arrows-corner .hbe-slider__arrow:focus-visible,
.hbe-slider--arrows-corner .hbe-slider__arrow:active {
    background: var(--hbe-white);
    opacity: 1;
    transform: none;
}

/* next flush to the right edge, prev tucked just to its left */
.hbe-slider--arrows-corner .hbe-slider__arrow--prev {
    left: auto;
    right: calc(1.5rem + 40px + 0.5rem);
}

.hbe-slider--arrows-corner .hbe-slider__arrow--next {
    left: auto;
    right: 1.5rem;
}

.hbe-slider--arrows-corner .hbe-slider__arrow svg {
    width: 20px;
    height: 20px;
}

.hbe-slider--arrows-corner .hbe-slider__arrow svg path {
    stroke-width: 1.25;
}

/* Navigation Dots */
.hbe-slider__dots {
    position: relative;
    padding: 1rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
}

.hbe-slider__dot {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    max-width: 12px;
    line-height: 12px;
    border-radius: 50%;
    background: #d6b391;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
}

.hbe-slider__dot:hover {
    background: #52c277;
    transform: scale(1.2);
}

.hbe-slider__dot.is-active {
    background: #52c277;
    transform: scale(1.3);
}

/* Caption positions */
.hbe-slider__caption--center {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 80%;
    text-align: center;
    border-radius: 4px;
}

.hbe-slider__caption--left {
    top: 50%;
    left: 10%;
    right: auto;
    bottom: auto;
    transform: translateY(-50%);
    width: auto;
    max-width: 50%;
    text-align: left;
    border-radius: 4px;
}

.hbe-slider__caption--bottom-left {
    top: auto;
    left: 10%;
    right: auto;
    bottom: 8%;
    transform: none;
    width: auto;
    max-width: 50%;
    text-align: left;
    border-radius: 4px;
}

/* Call to Action button */
.hbe-slider__cta {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    font-weight: 600;
    /* Sharp corners + opacity hover, identical to the imghero CTA. */
    border-radius: 0;
    transition: opacity 0.2s ease;
    line-height: 1;
    cursor: pointer;
}

.hbe-slider__cta:hover,
.hbe-slider__cta:focus {
    /* Same hover as the imghero / featured-collection CTAs. */
    opacity: 0.85;
    text-decoration: none;
}

.hbe-slider__cta--sm {
    padding: 0.45rem 1rem;
    font-size: var(--fs-body-xs);
}

.hbe-slider__cta--md {
    padding: 0.65rem 1.5rem;
    font-size: var(--fs-body-m);
}

.hbe-slider__cta--lg {
    padding: 0.9rem 2rem;
    font-size: var(--fs-h4);
}

@media (max-width: 992px) {
    .hbe-slider__desc { font-size: var(--fs-body-m); }
    .hbe-slider__caption { padding: 1.5rem; }
}

@media (max-width: 768px) {
    .hbe-slider__desc { font-size: var(--fs-body-m); }
    .hbe-slider__caption { padding: 1rem; }
    .hbe-slider__arrow { padding: 0.75rem; }
    .hbe-slider__arrow svg { width: 20px; height: 20px; }
    .hbe-slider__arrow--prev { left: 0.5rem; }
    .hbe-slider__arrow--next { right: 0.5rem; }
    .hbe-slider--arrows-corner .hbe-slider__arrow { bottom: 1rem; width: 36px; height: 36px; padding: 0; }
    .hbe-slider--arrows-corner .hbe-slider__arrow svg { width: 18px; height: 18px; }
    .hbe-slider--arrows-corner .hbe-slider__arrow--prev { left: auto; right: calc(1rem + 36px + 0.5rem); }
    .hbe-slider--arrows-corner .hbe-slider__arrow--next { right: 1rem; }
    .hbe-slider__slide--no-mobile { display: none !important; }
    .hbe-slider__caption--center,
    .hbe-slider__caption--left,
    .hbe-slider__caption--bottom-left {
        width: 90%;
        max-width: 90%;
        left: 5%;
        right: 5%;
        transform: translateY(-50%);
        top: 50%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hbe-slider__desc {
        font-size: var(--fs-body-s);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hbe-slider__caption { padding: 0.75rem; }
    .hbe-slider__dot {
        width: 8px;
        height: 8px;
        min-width: 8px;
        min-height: 8px;
    }
}

/* ── Mobile hero (Figma): caption BELOW the image on white, black serif text,
   black square CTA, light circular nav arrows over the image.
   home.css is the home-only bundle, so targeting .hbe-slider here is safe. ──── */
@media (max-width: 767px) {
    /* caption flows below the image (sibling of media, static) */
    .hbe-slider__caption,
    .hbe-slider__caption--center,
    .hbe-slider__caption--left,
    .hbe-slider__caption--bottom-left {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 1.25rem 1rem 0.25rem;
        background: transparent !important;
        color: var(--c-black);
        text-align: left;
    }

    .hbe-slider__caption-inner {
        max-width: 100%;
        margin: 0;
    }

    /* no dark gradient over the hero image on mobile */
    .hbe-slider__media::after {
        display: none;
    }

    /* slider.js sets track height = image height and the slide has overflow:hidden,
       which would clip the caption now placed below — let it grow to fit. */
    .hbe-slider__track {
        height: auto !important;
    }
    .hbe-slider__slide {
        overflow: visible;
    }

    .hbe-slider__title {
        font-family: var(--font-heading);
        font-size: var(--fs-h2);
        line-height: 1.1;
        text-transform: none;
        color: var(--c-black);
        text-shadow: none;
        margin: 0;
    }

    .hbe-slider__desc {
        font-family: var(--font-heading);
        font-size: var(--fs-h2);
        line-height: 1.1;
        text-transform: none;
        color: var(--c-black);
        text-shadow: none;
        margin: 0;
        display: block;
        -webkit-line-clamp: none;
        overflow: visible;
    }

    /* CTA: the slide is configured white-bg/dark-text (for the desktop overlay on a
       dark image) — invisible on the white caption below, so force a black button. */
    .hbe-slider__cta {
        margin-top: 1rem;
        padding: 0.85rem 1.5rem;
        font-size: var(--fs-body-s);
        font-weight: 500;
        color: var(--c-white) !important;
        background: var(--c-black) !important;
        border-radius: 0 !important;
    }

    /* nav arrows → light circles over the image (approx vertical-centre on image) */
    .hbe-slider__arrow {
        top: 38%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.85);
        color: var(--c-black);
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    .hbe-slider__arrow:hover {
        background: #fff;
        transform: translateY(-50%);
    }
    .hbe-slider__arrow svg { width: 18px; height: 18px; }
    .hbe-slider__arrow--prev { left: 0.75rem; }
    .hbe-slider__arrow--next { right: 0.75rem; }
}


/* ── Anti-flicker: reserve image space (aspect-ratio) + grey placeholder ─────
   Images had no intrinsic dimensions, so they collapsed to 0 height and the page
   jumped when each one finished loading. Each section now reserves its box from
   the real image ratio and shows a light-grey "skeleton" until the image paints.
   Ratios come from the actual uploaded files. */
.hbe-slider__media img,
.hbe-imghero__img,
.hbe-katcols__img,
.hbe-splitblock__mid-img,
.hbe-splitblock__right-img {
    background-color: var(--c-grey-1);
    object-fit: cover;
}

/* <picture> wrappers must be block so the reserved box isn't broken by inline gaps */
.hbe-slider__media picture,
.hbe-imghero__inner picture,
.hbe-katcols__img-link picture,
.hbe-splitblock__col--mid picture,
.hbe-splitblock__right-half picture {
    display: block;
}

/* Per-section aspect ratios (from real image dimensions) */
.hbe-imghero:not(.hbe-imghero--second) .hbe-imghero__img { aspect-ratio: 3 / 2; }
.hbe-imghero--second .hbe-imghero__img { aspect-ratio: 4 / 3; }
.hbe-katcols__col--left .hbe-katcols__img { aspect-ratio: 3 / 4; }
.hbe-katcols__col--right .hbe-katcols__img { aspect-ratio: 2 / 3; }
.hbe-splitblock__mid-img { aspect-ratio: 1 / 1; object-fit: contain; }
.hbe-splitblock__right-img { aspect-ratio: 3 / 4; }

/* Slider hero is art-directed: wide on desktop, ~square on mobile */
.hbe-slider__media img { aspect-ratio: 3869 / 1558; }

@media (max-width: 767px) {
    .hbe-slider__media img { aspect-ratio: 1 / 1; }
}


