/* Coverflow hero (_HeroSectionFlowPartial). Recolor via --flow-bg (set inline on #flowHero). */
.flow-hero { --flow-bg: #eef2f6; --flow-text: #1f2328; --flow-muted: #6b7078; --flow-primary: #b30101; --flow-border: rgba(0, 0, 0, .08);
    /* --flow-heading (optional, set inline per tab) colors the title; the subtitle is the same color, a bit softer */
    --flow-sub: color-mix(in srgb, var(--flow-heading) 78%, transparent);
    position: relative; overflow: hidden; margin: 0 0 1.5rem; border-radius: 18px; background-color: var(--flow-bg); color: var(--flow-text); border: 1px solid var(--flow-border); transition: background-color .4s ease; }
.flow-hero.is-dark { --flow-text: #fff; --flow-muted: #aab0bb; --flow-border: rgba(255, 255, 255, .14); }
.flow-hero.is-dark .flow-hero__chip { background: rgba(255, 255, 255, .08); color: #fff; }
.flow-hero.is-dark .flow-hero__chip:hover { color: #ff7a7a; border-color: #ff7a7a; }
.flow-hero.is-dark .flow-hero__chip.is-active { background: var(--flow-primary); border-color: var(--flow-primary); color: #fff; }
/* Uploaded background photo (wins over the color), shown as is. Use the Text color field in admin for readability. */
.flow-hero.has-photo { background-image: var(--flow-photo); background-size: cover; background-position: center; }
.flow-hero__body { position: relative; }
.flow-hero__scene { display: none; flex-direction: column; padding: 1.8rem 3rem 1rem; }
.flow-hero__scene.is-active { display: flex; }

.flow-hero__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.6rem; margin-bottom: 1rem; }
.flow-hero__title { font-size: clamp(2.4rem, 3vw, 3.4rem); font-weight: 700; line-height: 1.15; margin: .2rem 0 0; color: var(--flow-heading, var(--flow-text)); }
.flow-hero__subtitle { margin-top: .4rem; font-size: 1.5rem; line-height: 1.4; color: var(--flow-sub, var(--flow-muted)); }
.flow-hero__btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 1rem; padding: .7rem .8rem .7rem 2.2rem; border: 0; border-radius: 999px; color: #fff; font-size: 1.4rem; font-weight: 600; line-height: 1; white-space: nowrap;
    background: linear-gradient(135deg, #d40b0b 0%, #a30000 100%); box-shadow: 0 10px 20px -10px rgba(179, 1, 1, .75); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.flow-hero__btn i { flex: 0 0 3rem; display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 1.3rem; transition: transform .2s ease, background .2s ease; }
.flow-hero__btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 24px -10px rgba(179, 1, 1, .85); filter: brightness(1.05); }
.flow-hero__btn:hover i { background: rgba(255, 255, 255, .32); transform: translateX(3px); }
.flow-hero__btn:active { transform: translateY(0); }

.flow-hero__carousel { position: relative; display: flex; align-items: center; gap: 1rem; flex: 1 1 auto; min-height: 0; }
.flow-hero__stage { position: relative; top: -1.8rem; flex: 1 1 auto; height: 330px; }
.flow-hero__arrow { flex: 0 0 auto; z-index: 3; width: 40px; height: 40px; border: 1px solid var(--flow-border); border-radius: 50%; background: #fff; color: #1f2328; cursor: pointer; transition: background .2s, color .2s; }
.flow-hero__arrow:hover { background: var(--flow-primary); border-color: var(--flow-primary); color: #fff; }

.flow-hero__card { position: absolute; left: 50%; top: 50%; width: 270px; margin-left: -135px; display: flex; flex-direction: column; gap: .6rem; padding: 1rem; border: 1px solid var(--flow-border); border-radius: 14px; background: #fff; color: #1f2328;
    transform: translateY(-50%); transition: transform .5s ease, opacity .5s ease, border-color .3s; opacity: 0; pointer-events: none; z-index: 0; }
.flow-hero__card:hover { color: #1f2328; }
.flow-hero__card[data-pos="0"]  { transform: translateY(-50%) scale(1);          opacity: 1;   pointer-events: auto; z-index: 3;
    /* gradient ring: white fill clipped to the padding box, red gradient showing through the transparent border */
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #b30101 0%, #ff6a3d 100%) border-box;
    box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .3); }
.flow-hero__card[data-pos="-1"] { transform: translate(-262px, -50%) scale(.82);  opacity: .85; pointer-events: auto; z-index: 2; cursor: pointer; }
.flow-hero__card[data-pos="1"]  { transform: translate(262px, -50%) scale(.82);   opacity: .85; pointer-events: auto; z-index: 2; cursor: pointer; }
.flow-hero__card[data-pos="-2"] { transform: translate(-372px, -50%) scale(.6);  opacity: .55; pointer-events: auto; z-index: 1; cursor: pointer; }
.flow-hero__card[data-pos="2"]  { transform: translate(372px, -50%) scale(.6);   opacity: .55; pointer-events: auto; z-index: 1; cursor: pointer; }

.flow-hero__card-img { display: flex; align-items: center; justify-content: center; height: 200px; border-radius: 8px; background: #f4f4f4; }
.flow-hero__card-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.flow-hero__card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.6rem; font-size: 1.3rem; font-weight: 600; line-height: 1.35; }
.flow-hero__card-price { font-size: 1.9rem; font-weight: 700; color: var(--flow-primary); }
.flow-hero__card-price s { margin-left: .5rem; font-size: 1.2rem; font-weight: 400; color: #6b7078; }

.flow-hero__chips { display: flex; align-items: center; gap: .8rem; padding: 1.2rem 3rem; border-top: 1px solid var(--flow-border); }
.flow-hero__chip-arrow { flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid var(--flow-border); border-radius: 50%; background: #fff; color: #1f2328; cursor: pointer; transition: background .2s, color .2s; }
.flow-hero__chip-arrow:hover { background: var(--flow-primary); border-color: var(--flow-primary); color: #fff; }
.flow-hero__chips.no-overflow .flow-hero__chip-arrow { display: none; }
.flow-hero__chip-arrow.is-hidden { visibility: hidden; }
.flow-hero__scene[data-count="1"] .flow-hero__arrow { display: none; }
.flow-hero__track { flex: 1 1 auto; display: flex; gap: .8rem; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.flow-hero__track::-webkit-scrollbar { display: none; }
.flow-hero__chip { flex: 0 0 auto; padding: .6rem 1.6rem; border: 1px solid var(--flow-border); border-radius: 3px; background: rgba(255, 255, 255, .8); color: var(--flow-text); font-size: 1.3rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.flow-hero__chip:hover { border-color: var(--flow-primary); color: var(--flow-primary); }
.flow-hero__chip.is-active { background: var(--flow-primary); border-color: var(--flow-primary); color: #fff; }

/* Desktop: hero height follows the category side menu (var set in hero-flow.js) */
@media (min-width: 992px) {
    .flow-hero { display: flex; flex-direction: column; height: var(--flow-h, 520px); }
    .flow-hero__body { flex: 1 1 auto; min-height: 0; }
    .flow-hero__scene { height: 100%; }
    .flow-hero__stage { height: 100%; }
    .flow-hero__arrow { position: relative; top: -1.8rem; }
}

@media (max-width: 991px) {
    .flow-hero__scene { padding: 1.4rem 1rem .6rem; }
    .flow-hero__head { flex-direction: column; align-items: flex-start; }
    .flow-hero__stage { height: 330px; }
    .flow-hero__arrow { position: absolute; top: 40%; }
    .flow-hero__arrow--prev { left: 0; }
    .flow-hero__arrow--next { right: 0; }
    .flow-hero__card { width: 200px; margin-left: -100px; }
    .flow-hero__card[data-pos="-1"] { transform: translate(-150px, -50%) scale(.78); }
    .flow-hero__card[data-pos="1"]  { transform: translate(150px, -50%) scale(.78); }
    .flow-hero__card[data-pos="-2"], .flow-hero__card[data-pos="2"] { opacity: 0; pointer-events: none; }
    .flow-hero__chips { padding: 1rem 1rem; }
}

@media (prefers-reduced-motion: reduce) { .flow-hero__card { transition: none; } }
