.site-header {
    border-bottom: 1px solid #e8e8e8;
    background: #ffffff;
}

.site-header__inner {
    display: flex;
    width: min(100% - 40px, 1200px);
    min-height: 82px;
    margin-inline: auto;
    align-items: center;
    gap: 36px;
}

.site-header__logo {
    display: block;
    width: 180px;
    flex: 0 0 auto;
}

.site-header__logo img {
    display: block;
    width: 100%;
}

.primary-navigation {
    flex: 1;
}

.primary-navigation__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation a,
.site-header__actions a {
    color: #2b1847;
    font-weight: 600;
    text-decoration: none;
}

.site-header__actions {
    display: flex;
    gap: 18px;
    white-space: nowrap;
}

.site-main {
    min-height: 60vh;
}

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

.hero-carousel {
    position: relative;
    min-height: calc(100vh - 82px);
    overflow: hidden;
    background: #f7f7f7;
}

.hero-carousel__slides {
    position: relative;
    min-height: inherit;
}

.hero-carousel__slide {
    position: absolute;
    inset: 0;
    display: flex;
    min-height: inherit;
    align-items: center;
    padding: 80px max(20px, calc((100% - 1200px) / 2));

    background-image:
        linear-gradient(
            90deg,
            rgb(255 255 255 / 94%) 0%,
            rgb(255 255 255 / 80%) 34%,
            rgb(255 255 255 / 30%) 62%,
            rgb(255 255 255 / 6%) 100%
        ),
        var(--hero-image);

    background-position:
        center,
        center;

    background-size:
        cover,
        cover;

    background-repeat:
        no-repeat,
        no-repeat;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.025);

    transition:
        opacity 700ms ease,
        visibility 700ms ease,
        transform 6s ease;
}

.hero-carousel__slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.hero-carousel__content {
    position: relative;
    z-index: 2;
    width: min(100%, 620px);
}

.hero__eyebrow {
    margin: 0 0 12px;
    color: #00aebd;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-carousel h1 {
    max-width: 760px;
    margin: 0 0 24px;
    color: #2b1847;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.02;
}

.hero-carousel__content > p:not(.hero__eyebrow) {
    max-width: 600px;
    margin: 0;
    color: #2b1847;
    font-size: 1.15rem;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: 2px solid #2b1847;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;

    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #ffffff;
    background: #2b1847;
}

.button--primary:hover {
    color: #ffffff;
    background: #45266f;
}

.button--secondary {
    color: #2b1847;
    background: rgb(255 255 255 / 58%);
    backdrop-filter: blur(5px);
}

.button--secondary:hover {
    color: #ffffff;
    background: #2b1847;
}

.hero-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgb(43 24 71 / 72%);
    box-shadow: 0 6px 20px rgb(0 0 0 / 16%);
    font-family: inherit;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);

    transition:
        transform 160ms ease,
        background-color 160ms ease;
}

.hero-carousel__arrow:hover {
    background: #2b1847;
    transform: translateY(-50%) scale(1.06);
}

.hero-carousel__arrow--previous {
    left: 20px;
}

.hero-carousel__arrow--next {
    right: 20px;
}

.hero-carousel__dots {
    position: absolute;
    right: 0;
    bottom: 24px;
    left: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-carousel__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: rgb(43 24 71 / 28%);
    box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
    cursor: pointer;

    transition:
        transform 160ms ease,
        background-color 160ms ease;
}

.hero-carousel__dot:hover {
    transform: scale(1.14);
}

.hero-carousel__dot.is-active {
    background: #ffffff;
}

/* =========================================================
   Featured products
   ========================================================= */

.featured-products {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
    padding-block: 72px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.section-heading__eyebrow {
    margin: 0 0 6px;
    color: #00b4c4;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.section-heading h2 {
    margin: 0;
    color: #2b1847;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.section-heading__link {
    color: #2b1847;
    font-weight: 700;
    text-decoration: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #ffffff;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgb(43 24 71 / 10%);
}

.product-card__image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f8fa;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 200ms ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.03);
}

.product-card__content {
    padding: 20px;
}

.product-card__title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.product-card__title a {
    color: #2b1847;
    text-decoration: none;
}

.product-card__price {
    margin-bottom: 18px;
    color: #2b1847;
    font-size: 1.1rem;
    font-weight: 700;
}

.product-card__button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 6px;
    color: #ffffff;
    background: #2b1847;
    font-weight: 700;
    text-decoration: none;
}

.site-footer {
    padding: 36px 20px;
    color: #ffffff;
    background: #2b1847;
    text-align: center;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 950px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .site-header__inner {
        flex-wrap: wrap;
        padding-block: 16px;
    }

    .primary-navigation {
        order: 3;
        width: 100%;
    }

    .primary-navigation__menu {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .hero-carousel {
        min-height: 620px;
    }

    .hero-carousel__slide {
        align-items: flex-start;
        padding: 64px 20px;

        background-image:
            linear-gradient(
                90deg,
                rgb(255 255 255 / 95%) 0%,
                rgb(255 255 255 / 84%) 62%,
                rgb(255 255 255 / 30%) 100%
            ),
            var(--hero-image);

        background-position:
            center,
            62% center;
    }

    .hero-carousel h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-carousel__arrow {
        display: none;
    }
}

@media (max-width: 560px) {
    .site-header__inner {
        width: min(100% - 28px, 1200px);
        gap: 20px;
    }

    .site-header__logo {
        width: 150px;
    }

    .site-header__actions {
        gap: 12px;
    }

    .hero-carousel {
        min-height: 560px;
    }

    .hero-carousel__slide {
        padding: 48px 14px;

        background-image:
            linear-gradient(
                90deg,
                rgb(255 255 255 / 96%) 0%,
                rgb(255 255 255 / 88%) 72%,
                rgb(255 255 255 / 42%) 100%
            ),
            var(--hero-image);

        background-position:
            center,
            66% center;
    }

    .hero-carousel__content {
        width: 100%;
    }

    .hero-carousel h1 {
        font-size: clamp(2.35rem, 13vw, 3.4rem);
    }

    .hero-carousel__content > p:not(.hero__eyebrow) {
        font-size: 1rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .button {
        width: 100%;
    }

    .hero-carousel__dots {
        bottom: 16px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel__slide,
    .hero-carousel__arrow,
    .hero-carousel__dot,
    .button,
    .product-card,
    .product-card__image img {
        transition: none;
    }
}
