/* /var/www/web.nikkidepot.com/public/assets/css/homepage-density-v2.css
 * NIKKI_HOME_DENSITY_V2
 * Cadre central, densité maîtrisée et cartes plus compactes.
 */

.nikki-home-page {
    --nikki-home-shell: 1280px;
    --nikki-home-gutter: clamp(16px, 2.2vw, 28px);
    --nikki-home-section-space: clamp(28px, 3vw, 36px);
}

.nikki-home-page .nikki-home-shell {
    width: 100%;
    max-width: var(--nikki-home-shell);
    margin-inline: auto;
    padding-inline: var(--nikki-home-gutter);
}

.nikki-home-page .nikki-home-section {
    padding-top: var(--nikki-home-section-space);
    padding-bottom: var(--nikki-home-section-space);
}

.nikki-home-page .nikki-home-section--sell {
    padding-top: 0;
    padding-bottom: clamp(26px, 2.8vw, 34px);
}

.nikki-home-page .nikki-home-eyebrow {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.17em;
    line-height: 1.2;
}

.nikki-home-page .nikki-home-section-title {
    margin-top: 0.42rem;
    font-family: inherit;
    font-size: clamp(1.55rem, 1.75vw, 1.875rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

.nikki-home-page .nikki-home-section-title--sell {
    max-width: 24ch;
}

.nikki-home-page .nikki-home-section-link {
    margin-bottom: 0.1rem;
    font-size: 12px;
    white-space: nowrap;
}

/* HERO — l'image reste immersive, le message cesse de devenir un pavé. */
.nikki-home-page .nikki-home-hero,
.nikki-home-page .nikki-home-hero__inner {
    min-height: 280px;
}

.nikki-home-page .nikki-home-hero__panel {
    max-width: 420px;
    border-radius: 15px;
    padding: 20px 22px 19px;
    box-shadow: 0 14px 32px rgba(52, 38, 27, 0.12);
}

.nikki-home-page .nikki-home-hero__title {
    margin-top: 0.55rem;
    font-size: clamp(2.05rem, 3.2vw, 2.68rem);
    letter-spacing: -0.038em;
    line-height: 0.98;
}

.nikki-home-page .nikki-home-hero__description {
    margin-top: 0.65rem;
    font-size: 13px;
    line-height: 1.45;
}

.nikki-home-page .nikki-home-primary-cta {
    min-height: 40px;
    padding: 0.55rem 1.05rem;
    font-size: 13px;
    font-weight: 650;
}

/* CARTES — six colonnes au maximum, ratio moins vertical. */
.nikki-home-page .nikki-home-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 24px;
}

.nikki-home-page .nikki-home-product-card {
    min-width: 0;
}

.nikki-home-page .nikki-home-product-media {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
}

.nikki-home-page .nikki-home-product-media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nikki-home-page .nikki-home-product-copy {
    margin-top: 0.52rem;
}

.nikki-home-page .nikki-home-product-title {
    min-height: 2.18rem;
    font-size: 12.5px;
    line-height: 1.28;
}

.nikki-home-page .nikki-home-product-price {
    font-size: 13.5px;
}

.nikki-home-page .nikki-home-product-shipping {
    margin-top: 0.18rem;
    font-size: 10.5px;
}

.nikki-home-page .nikki-home-favorite-button {
    right: 7px;
    bottom: 7px;
    width: 30px;
    height: 30px;
}

/* BLOC VENDRE — même rythme que le reste de l'accueil. */
.nikki-home-page .nikki-home-sell {
    border-radius: 15px;
    box-shadow: 0 10px 26px rgba(68, 50, 34, 0.045);
}

.nikki-home-page .nikki-home-sell__copy {
    min-height: 190px;
    padding: 26px 30px;
}

.nikki-home-page .nikki-home-sell__media {
    min-height: 165px;
}

.nikki-home-page .nikki-home-sell__cta {
    max-width: 210px;
    margin-top: 1rem;
}

/* BOUTIQUE / INSPIRATIONS DYNAMIQUES. */
.nikki-home-page .nikki-home-seller-showcase {
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(60, 39, 27, 0.065);
}

.nikki-home-page .nikki-home-seller-showcase__header {
    padding: 19px 22px;
}

.nikki-home-page .nikki-home-showcase-title {
    font-size: clamp(1.45rem, 1.8vw, 1.8rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.nikki-home-page .nikki-home-product-grid--showcase {
    padding: 20px 22px 22px;
}

.nikki-home-page .nikki-home-random-stack {
    gap: 2.5rem;
}

.nikki-home-page .nikki-home-trust-grid {
    padding-top: 22px;
    padding-bottom: 22px;
}

@media (min-width: 640px) {
    .nikki-home-page .nikki-home-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 16px;
        row-gap: 27px;
    }

    .nikki-home-page .nikki-home-hero,
    .nikki-home-page .nikki-home-hero__inner {
        min-height: 304px;
    }

    .nikki-home-page .nikki-home-hero__panel {
        max-width: 430px;
        padding: 21px 24px 20px;
    }
}

@media (min-width: 900px) {
    .nikki-home-page .nikki-home-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 17px;
    }
}

@media (min-width: 1024px) {
    .nikki-home-page .nikki-home-hero,
    .nikki-home-page .nikki-home-hero__inner {
        min-height: 326px;
    }

    .nikki-home-page .nikki-home-hero__panel {
        max-width: 452px;
        padding: 22px 25px 21px;
    }

    .nikki-home-page .nikki-home-sell__copy {
        min-height: 208px;
        padding: 28px 34px;
    }
}

@media (min-width: 1180px) {
    .nikki-home-page .nikki-home-product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        column-gap: 18px;
    }
}

@media (min-width: 1280px) {
    .nikki-home-page .nikki-home-hero,
    .nikki-home-page .nikki-home-hero__inner {
        min-height: 338px;
    }

    .nikki-home-page .nikki-home-hero__panel {
        max-width: 460px;
        padding: 23px 26px 22px;
    }
}

@media (max-width: 639px) {
    .nikki-home-page .nikki-home-section-title {
        font-size: 24px;
    }

    .nikki-home-page .nikki-home-section-link {
        font-size: 11px;
    }

    .nikki-home-page .nikki-home-sell__copy {
        padding: 24px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nikki-home-page .nikki-home-product-media > img,
    .nikki-home-page .nikki-home-primary-cta {
        transition: none;
    }
}
