.bookstore-hero {
    align-items: start;
    padding-top: 92px;
}

.featured-carousel {
    display: grid;
    min-height: 0;
    position: relative;
}

.hero-product {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    position: relative;
    transform: translateX(18px) scale(0.98);
    width: 100%;
}

.hero-product.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.hero-product:not(.active) {
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

.hero-product img {
    max-height: 430px;
    object-fit: contain;
}

.hero-product h2 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.12;
}

.stats-panel {
    position: relative;
    z-index: 1;
}

.site-header {
    transition: top 0.22s ease, box-shadow 0.22s ease, border-radius 0.22s ease, transform 0.22s ease;
}

body.has-scrolled .site-header {
    border-radius: 999px;
    box-shadow: 0 18px 44px rgba(8, 42, 64, 0.16);
    top: 18px;
}

body.has-scrolled .site-header .brand-logo-only {
    margin-bottom: -42px;
    margin-top: -42px;
}

body.has-scrolled .site-header .brand-logo-only img {
    box-shadow: 0 18px 38px rgba(8, 42, 64, 0.22);
    transform: scale(1.04);
}

@media (max-width: 980px) {
    .bookstore-hero {
        padding-top: 46px;
    }

    .featured-carousel {
        min-height: 0;
    }

    body.has-scrolled .site-header {
        border-radius: 0 0 22px 22px;
        top: 0;
    }

    body.has-scrolled .site-header .brand-logo-only {
        margin-bottom: 0;
        margin-top: 0;
    }
}
