/* HERO BOUTIQUE */

.shop-hero {
    position: relative;
    padding-block: 4.8rem 4rem;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(16, 185, 129, 0.18), transparent 60%);
}

.shop-orbit {
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.7;
    z-index: -1;
}

.shop-orbit--one {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.45), transparent 70%);
    top: -80px;
    left: -150px;
}

.shop-orbit--two {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 65%);
    bottom: -220px;
    right: -160px;
}

.shop-hero-inner {
    display: flex;
    justify-content: center;
    text-align: center;
}

.shop-hero-text h1 {
    font-size: clamp(2.3rem, 3.4vw, 2.9rem);
    line-height: 1.1;
}

.shop-hero-text p {
    margin-top: 1rem;
    max-width: 38rem;
    margin-inline: auto;
    color: var(--clr-text-muted);
}

.shop-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    border: 1px solid rgba(74, 222, 128, 0.6);
}

.shop-hero-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
}

/* SECTIONS BOUTIQUE */

.shop-section .section-header p {
    max-width: 40rem;
    margin-inline: auto;
}

/* CATÉGORIES */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.categorie-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.categorie img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* PRODUITS VEDETTE */

.shop-anchors {
    position: relative;
    height: 0;
}

.shop-anchors span {
    position: relative;
    top: -96px; /* pour que le scroll place bien la section */
    display: block;
}

.produits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.produit img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 0.8rem;
}

.produit h3 {
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
}

.produit p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* état visuel quand produit ajouté */

.btn.btn-primary.btn-added {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.55);
}

/* POURQUOI NOUS */

.pourquoi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.pourquoi-item .icon {
    font-size: 2.3rem;
    margin-bottom: 0.6rem;
}

/* PROMOTIONS */

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.promo-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 0.8rem;
}

.promo-item .price {
    font-weight: 600;
    color: var(--clr-accent);
    font-size: 1rem;
}

.promo-item .old-price {
    text-decoration: line-through;
    color: #9ca3af;
    margin-left: 0.4rem;
}

/* AVIS CLIENTS */

.avis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.avis-item img {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    object-fit: cover;
    margin-bottom: 0.7rem;
}

.avis-item blockquote {
    font-style: italic;
    color: var(--clr-text-muted);
}

/* CTA FINAL + NEWSLETTER */

#shop-cta-final .cta-content {
    text-align: center;
    margin-bottom: 2rem;
}

#shop-cta-final .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.newsletter {
    max-width: 560px;
    margin-inline: auto;
    text-align: center;
}

.newsletter-form {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    min-width: 220px;
    max-width: 320px;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--clr-border-subtle);
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
}

/* TOAST (notification panier / newsletter) */

.toast-container {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1200;
}

.toast {
    min-width: 230px;
    max-width: 320px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.92), rgba(21, 128, 61, 0.95));
    color: #ecfdf5;
    font-size: 0.9rem;
    box-shadow: 0 18px 40px rgba(22, 163, 74, 0.55);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

body[data-theme="light"] .newsletter-form input[type="email"] {
    background: #ffffff;
    color: #111827;
}

/* RESPONSIVE */

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

    .produits-grid,
    .pourquoi-grid,
    .promo-grid,
    .avis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .categories-grid,
    .produits-grid,
    .pourquoi-grid,
    .promo-grid,
    .avis-grid {
        grid-template-columns: 1fr;
    }

    .shop-hero {
        padding-block: 4rem 3.2rem;
    }

    .toast-container {
        right: 0.9rem;
        left: 0.9rem;
        bottom: 1rem;
    }

    .toast {
        margin-inline: auto;
        max-width: 100%;
    }
}
