﻿.home-hero {
    width: min(1320px,92vw);
    min-height: 390px;
    margin: 26px auto 20px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    overflow: hidden;
    border: 1px solid var(--cs-line);
    border-radius: 25px;
    background: linear-gradient(130deg,#f8efec,#f5eeee)
}

.home-hero-copy {
    padding: 55px 7%;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.home-eyebrow {
    color: #987066;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .17em
}

.home-hero h1 {
    max-width: 620px;
    margin: 13px 0 14px;
    font: 700 clamp(38px,5vw,66px)/1.02 'Manrope',sans-serif;
    letter-spacing: -.055em
}

.home-hero p {
    max-width: 560px;
    margin: 0 0 25px;
    color: var(--cs-muted);
    font-size: 17px
}

.home-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.home-hero-visual {
    position: relative;
    min-width: 0;
    min-height: 390px;
    overflow: hidden;
    background-color: #eee3df;
}

.home-hero-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.home-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transform: scale(1.015);
    animation: homeHeroSlide 18s infinite;
    will-change: opacity, transform;
}

.slide-landing-1 {
    background-image: url("/img/landing1.jpg");
    background-position: 50% center;
    animation-delay: 0s;
}

.slide-landing-2 {
    background-image: url("/img/landing2.jpg");
    background-position: 50% center;
    animation-delay: 6s;
}

.slide-landing-3 {
    background-image: url("/img/landing3.jpg");
    background-position: 50% center;
    animation-delay: 12s;
}

.home-hero-indicators {
    position: absolute;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .home-hero-indicators span {
        width: 8px;
        height: 8px;
        display: block;
        border-radius: 999px;
        background-color: rgba(255, 255, 255, 0.72);
        box-shadow: 0 2px 7px rgba(57, 52, 54, 0.22);
        animation: homeHeroIndicator 18s infinite;
    }

        .home-hero-indicators span:nth-child(1) {
            animation-delay: 0s;
        }

        .home-hero-indicators span:nth-child(2) {
            animation-delay: 6s;
        }

        .home-hero-indicators span:nth-child(3) {
            animation-delay: 12s;
        }

@keyframes homeHeroSlide {
    0% {
        opacity: 0;
        transform: scale(1.015);
    }

    4% {
        opacity: 1;
    }

    30% {
        opacity: 1;
        transform: scale(1);
    }

    34% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        opacity: 0;
    }
}

@keyframes homeHeroIndicator {
    0% {
        width: 8px;
        background-color: rgba(255, 255, 255, 0.72);
    }

    4% {
        width: 24px;
        background-color: #ffffff;
    }

    30% {
        width: 24px;
        background-color: #ffffff;
    }

    34% {
        width: 8px;
        background-color: rgba(255, 255, 255, 0.72);
    }

    100% {
        width: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-slide,
    .home-hero-indicators span {
        animation: none;
    }

    .slide-landing-1 {
        opacity: 1;
        transform: none;
    }

    .slide-landing-2,
    .slide-landing-3 {
        display: none;
    }
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 12px;
    background: var(--cs-blush);
    color: #4d3c39;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700
}

    .home-button.primary {
        background: var(--cs-ink);
        color: #fff
    }

    .home-button.secondary {
        background: #fff;
        color: #775e58;
        border: 1px solid #cdb9b2
    }


.home-hero-product {
    position: absolute;
    border-radius: 30% 44% 35% 48%;
    box-shadow: 0 18px 35px rgba(74,55,52,.09)
}

.home-hero-product-a {
    width: 48%;
    height: 48%;
    left: 26%;
    top: 22%;
    background: var(--cs-sand);
    transform: rotate(-10deg)
}

.home-hero-product-b {
    width: 38%;
    height: 38%;
    right: -2%;
    top: 35%;
    background: rgba(234,201,193,.82);
    transform: rotate(13deg)
}

.home-hero-product-c {
    width: 35%;
    height: 35%;
    left: -5%;
    top: 13%;
    background: rgba(184,201,191,.62);
    transform: rotate(8deg)
}

.home-benefits {
    width: min(1320px,92vw);
    margin: 0 auto 34px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px
}

    .home-benefits article {
        display: flex;
        gap: 12px;
        padding: 15px 17px;
        background: #fff;
        border: 1px solid var(--cs-line);
        border-radius: 15px
    }

    .home-benefits i {
        width: 34px;
        height: 34px;
        flex: none;
        border-radius: 11px;
        background: #f5e9e5
    }

    .home-benefits strong {
        display: block;
        font: 700 13px 'Manrope',sans-serif
    }

    .home-benefits span {
        color: var(--cs-muted);
        font-size: 12px
    }

.home-section {
    width: min(1320px,92vw);
    margin: 52px auto
}

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

    .home-section-heading h2 {
        margin: 0;
        font: 700 29px 'Manrope',sans-serif;
        letter-spacing: -.04em
    }

    .home-section-heading p {
        margin: 5px 0 0;
        color: var(--cs-muted)
    }

    .home-section-heading a {
        color: #8d645a;
        text-decoration: none;
        font-weight: 700
    }

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px
}

.home-category-card {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--cs-line);
    border-radius: 18px;
    color: var(--cs-ink);
    text-decoration: none;
    transition: .2s
}

    .home-category-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 38px rgba(73,54,51,.08)
    }

    .home-category-card:after {
        content: '';
        position: absolute;
        width: 110px;
        height: 110px;
        right: -20px;
        bottom: -25px;
        border-radius: 42%;
        background: rgba(255,255,255,.45)
    }

    .home-category-card.category-0 {
        background: #f1e2dd
    }

    .home-category-card.category-1 {
        background: #eee7e8
    }

    .home-category-card.category-2 {
        background: #edf3ef
    }

    .home-category-card.category-3 {
        background: #f4ecd1
    }

    .home-category-card small {
        color: #85675f;
        font-size: 9px;
        letter-spacing: .13em
    }

    .home-category-card h3 {
        max-width: 180px;
        margin: 8px 0 7px;
        font: 700 20px/1.15 'Manrope',sans-serif
    }

    .home-category-card p {
        max-width: 230px;
        display: -webkit-box;
        overflow: hidden;
        color: var(--cs-muted);
        font-size: 12px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2
    }

    .home-category-card > span {
        position: absolute;
        left: 20px;
        bottom: 17px;
        color: #7c5c54;
        font-size: 12px;
        font-weight: 700
    }

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px
}

.home-product-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 18px;
    box-shadow: 0 9px 26px rgba(65,45,43,.04)
}

.home-product-image {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1.05;
    overflow: hidden;
    background: #f5efed;
    color: #a68177;
    text-decoration: none;
    font: 700 17px 'Manrope',sans-serif
}

    .home-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

    .home-product-image b {
        position: absolute;
        left: 11px;
        top: 11px;
        padding: 6px 9px;
        border-radius: 999px;
        background: #bd776d;
        color: #fff;
        font-size: 10px
    }

.home-product-body {
    padding: 15px
}

.home-product-category {
    color: #987066;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none
}

.home-product-body h3 {
    min-height: 42px;
    margin: 7px 0;
    font: 700 15px/1.3 'Manrope',sans-serif
}

.home-product-meta {
    display: flex;
    align-items: baseline;
    gap: 7px
}

    .home-product-meta strong {
        font: 700 18px 'Manrope',sans-serif
    }

    .home-product-meta del {
        color: #9e9795;
        font-size: 11px
    }

    .home-product-meta span {
        margin-left: auto;
        font-size: 11px;
        font-weight: 700
    }

    .home-product-meta .available {
        color: var(--cs-sage-dark)
    }

    .home-product-meta .low {
        color: #9a6b2f
    }

    .home-product-meta .out {
        color: #ae4c4c
    }

.home-promo {
    width: min(1320px,92vw);
    margin: 52px auto;
    display: grid;
    grid-template-columns: 1fr .9fr;
    overflow: hidden;
    border-radius: 22px;
    background: #403a3c;
    color: #fff
}

    .home-promo > div {
        padding: 45px 7%
    }

    .home-promo h2 {
        margin: 8px 0 12px;
        font: 700 34px/1.05 'Manrope',sans-serif
    }

    .home-promo p {
        color: #ddd2d0
    }

    .home-promo aside {
        display: grid;
        place-items: center;
        background: linear-gradient(145deg,var(--cs-terracotta),var(--cs-sand));
        color: #6e554e;
        font: 700 23px 'Manrope',sans-serif
    }

@media(max-width:1000px) {
    .home-category-grid, .home-product-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .home-hero-visual {
        width: 100%;
        min-height: 280px;
        aspect-ratio: 16 / 9;
    }

    .slide-landing-1 {
        background-position: 52% center;
    }

    .slide-landing-2 {
        background-position: 52% center;
    }

    .slide-landing-3 {
        background-position: 50% center;
    }

    .home-benefits {
        grid-template-columns: 1fr;
    }

    .home-promo {
        grid-template-columns: 1fr;
    }

        .home-promo aside {
            min-height: 180px;
        }
}

@media (max-width: 540px) {
    .home-hero {
        width: calc(100% - 24px);
        margin-top: 24px;
    }

    .home-hero-copy {
        padding: 38px 24px;
    }

    .home-hero h1 {
        font-size: 39px;
    }

    .home-hero-visual {
        min-height: 245px;
        aspect-ratio: 16 / 9;
    }

    .slide-landing-1 {
        background-position: 54% center;
    }

    .slide-landing-2 {
        background-position: 56% center;
    }

    .slide-landing-3 {
        background-position: 52% center;
    }

    .home-hero-indicators {
        right: 13px;
        bottom: 12px;
    }

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

    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .home-promo > div {
        padding: 36px 24px;
    }
}
