/* /var/www/web.nikkidepot.com/public/favorite/assets/css/favorite-home-frame-v2.css
 * NIKKI_FAVORITE_FRAME_V2
 * Harmonise uniquement le cadre de la page Favoris avec l'accueil V4.
 * Les cartes produits, leur grille et la position des cœurs restent strictement inchangées.
 */

:root {
    --nikki-favorite-shell: 1280px;
    --nikki-favorite-gutter: clamp(16px, 2.2vw, 28px);
}

/* Header et footer : même axe de lecture que l'accueil. */
.nikki-site-header-shell {
    max-width: var(--nikki-favorite-shell) !important;
    padding-inline: var(--nikki-favorite-gutter) !important;
}

.nikki-site-footer {
    margin-top: 0 !important;
}

.nikki-site-footer-shell {
    max-width: var(--nikki-favorite-shell) !important;
    padding: 42px var(--nikki-favorite-gutter) 26px !important;
}

.nikki-site-footer-grid {
    gap: clamp(24px, 2.5vw, 32px) !important;
}

.nikki-site-footer-brand img {
    height: 22px;
}

.nikki-site-footer-description {
    margin-top: 16px !important;
    max-width: 34ch !important;
    line-height: 1.65 !important;
}

.nikki-site-footer-social {
    margin-top: 18px !important;
}

.nikki-site-footer-newsletter {
    border-radius: 18px !important;
    padding: 18px !important;
    box-shadow: 0 12px 30px rgba(75, 56, 39, 0.05) !important;
}

.nikki-site-footer-newsletter-form {
    margin-top: 16px !important;
}

.nikki-site-footer-newsletter-form input,
.nikki-site-footer-newsletter-form button {
    height: 42px !important;
    border-radius: 11px !important;
}

.nikki-site-footer-legal {
    margin-top: 34px !important;
    padding-top: 20px !important;
}

/* Cadre de page uniquement. Aucune règle ne cible data-favorite-grid,
 * data-favorite-card ou favorite-remove-btn. */
.favorite-page {
    min-height: calc(100svh - 154px);
    padding-bottom: clamp(42px, 5vw, 68px) !important;
}

.favorite-page > section {
    width: 100%;
    max-width: var(--nikki-favorite-shell) !important;
    padding: clamp(26px, 2.6vw, 34px) var(--nikki-favorite-gutter) 0 !important;
}

/* En-tête de page plus fin, cohérent avec l'accueil V4. */
.favorite-page > section > header {
    margin-bottom: clamp(24px, 2.5vw, 32px) !important;
    padding-bottom: 18px !important;
    gap: 16px !important;
}

.favorite-page > section > header > div:first-child > p {
    font-size: 8px !important;
    font-weight: 650 !important;
    letter-spacing: 0.185em !important;
    line-height: 1.2 !important;
}

.favorite-page > section > header h1 {
    margin-top: 0.38rem !important;
    font-family: inherit !important;
    font-size: clamp(1.55rem, 1.85vw, 1.9rem) !important;
    font-weight: 600 !important;
    letter-spacing: -0.028em !important;
    line-height: 1.1 !important;
    color: #201c18 !important;
    text-wrap: balance;
}

.favorite-page > section > header > div:last-child {
    gap: 7px !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 9px rgba(65, 47, 33, 0.035) !important;
}

.favorite-page > section > header > div:last-child > span {
    width: 5px !important;
    height: 5px !important;
}

@media (min-width: 1024px) {
    .nikki-site-footer-grid {
        grid-template-columns: minmax(230px, 1.08fr) minmax(130px, 0.64fr) minmax(130px, 0.64fr) minmax(300px, 350px) !important;
        align-items: start;
    }
}

@media (min-width: 1280px) {
    .nikki-site-footer-shell {
        padding-top: 46px !important;
        padding-bottom: 28px !important;
    }
}

@media (max-width: 639px) {
    .favorite-page {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .favorite-page > section {
        padding-top: 22px !important;
    }

    .favorite-page > section > header h1 {
        font-size: 24px !important;
    }
}

/* NIKKI_FAVORITE_GRID_V24_START */
/* Reprend exactement la grille de l'accueil :
 * 2 colonnes, puis 3, 4 et enfin 6 à partir de 1180 px.
 * Aucun style interne des cartes ou des cœurs n'est modifié.
 */
[data-favorite-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 12px !important;
    row-gap: 24px !important;
    justify-content: start !important;
}

@media (min-width: 640px) {
    [data-favorite-grid] {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        column-gap: 16px !important;
        row-gap: 27px !important;
    }
}

@media (min-width: 900px) {
    [data-favorite-grid] {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        column-gap: 17px !important;
    }
}

@media (min-width: 1180px) {
    [data-favorite-grid] {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        column-gap: 18px !important;
    }
}
/* NIKKI_FAVORITE_GRID_V24_END */
