/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Colors */
:root {
    --pink-light: #fff0f5;
    --pink-medium: #ffb6c1;
    --pink-dark: #ff69b4;
    --pink-accent: #ff1493;
    --white: #ffffff;
    --black: #212121;
    --gray: #666;
    --gray-light: #f5f5f5;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink-dark), var(--pink-accent));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
}

.btn-product {
    background: var(--pink-light);
    color: var(--pink-accent);
    padding: 10px 24px;
    font-size: 14px;
    width: 100%;
}

.btn-product:hover {
    background: var(--pink-dark);
    color: white;
}

.btn-promo {
    background: white;
    color: var(--pink-accent);
    border: 2px solid var(--pink-accent);
    padding: 12px 28px;
}

.btn-promo:hover {
    background: var(--pink-accent);
    color: white;
}

.btn-submit {
    background: linear-gradient(135deg, var(--pink-dark), var(--pink-accent));
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
}

/* Header */
.header {
    background: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink-medium), var(--pink-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.logo-tag {
    font-size: 10px;
    color: var(--pink-dark);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--pink-accent);
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--pink-light);
    background-image: url("/images/hero-background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

/* Voile entre l'image et le texte : blanc à 65%. Un blanc contraste mieux
   qu'un rosé pâle à opacité égale, et l'image restant rose, le hero garde
   son ton. Pour renforcer, monter cette valeur (0.65 -> 0.8). */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    pointer-events: none;
}

/* Le contenu repasse au-dessus du voile. */
.hero .container {
    position: relative;
    z-index: 1;
}

/* 600px (et non 700) : au-delà, aux largeurs intermédiaires (~600-1200px),
   les extrémités du sous-titre débordaient sur les produits de l'image et
   son contraste tombait à 2,3:1. À 600px il remonte à 5,2:1 partout. */
.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--pink-accent);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .highlight {
    color: var(--pink-accent);
}

.hero p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
}

/* Reassurance Band */
.reassurance-band {
    background: var(--white);
    border-top: 1px solid var(--pink-light);
    border-bottom: 1px solid var(--pink-light);
    padding: 22px 0;
}

.reassurance-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 56px;
    flex-wrap: wrap;
    list-style: none;
}

.reassurance-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    font-size: 14px;
    letter-spacing: 0.2px;
}

.reassurance-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--pink-accent);
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray);
    font-size: 18px;
}

.category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--pink-light);
    display: inline-block;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Liste explicite plutôt que "all" : évite au navigateur d'évaluer
       toutes les propriétés animables à chaque changement d'état. */
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--pink-accent);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gray-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
    height: 40px;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-old {
    color: var(--gray);
    text-decoration: line-through;
    font-size: 14px;
}

.price-new {
    color: var(--pink-accent);
    font-size: 20px;
    font-weight: 700;
}

/* Promos Section */
.promos-section {
    background: var(--pink-light);
    padding: 80px 0;
}

.promo-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.promo-card {
    background: white;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Liste explicite plutôt que "all" : évite au navigateur d'évaluer
       toutes les propriétés animables à chaque changement d'état. */
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.promo-card:hover {
    transform: translateY(-5px);
}

.promo-card--popular {
    border: 1.5px solid var(--pink-medium);
    box-shadow: 0 8px 28px rgba(255, 105, 180, 0.14);
}

.promo-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gray-light);
    border-radius: 20px 20px 0 0;
    position: relative;
}

.promo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-card-discount {
    position: absolute;
    top: 14px;
    right: 14px;
    background: white;
    color: var(--pink-accent);
    border: 1px solid var(--pink-medium);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

.promo-card-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--pink-accent);
    border: 1px solid var(--pink-accent);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 16px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 1;
}

.promo-card-body {
    padding: 28px 30px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.promo-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.promo-card-tagline {
    font-style: italic;
    color: var(--black);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.promo-card-subtitle {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 20px;
}

.promo-card-price {
    margin-bottom: 15px;
}

.promo-card-price .old {
    color: var(--gray);
    text-decoration: line-through;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.promo-card-price .new {
    color: var(--pink-accent);
    font-size: 32px;
    font-weight: 700;
}

.promo-card-savings {
    background: var(--pink-light);
    padding: 8px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--gray);
}

.promo-card-savings strong {
    color: var(--pink-accent);
    font-weight: 600;
}

.promo-card-review {
    margin: 0 0 14px;
    padding-top: 18px;
    border-top: 1px solid var(--gray-light);
}

.promo-card-stars {
    color: var(--pink-medium);
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.promo-card-review p {
    font-style: italic;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.promo-card-review cite {
    font-style: normal;
    font-size: 12px;
    color: var(--black);
    font-weight: 600;
}

.promo-card-count {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 22px;
    letter-spacing: 0.2px;
}

.promo-card .btn-promo {
    margin-top: auto;
    align-self: center;
}

.promo-reassurance {
    text-align: center;
    color: var(--gray);
    font-size: 13px;
    margin-top: 40px;
    letter-spacing: 0.2px;
}

/* Signup Section */
.signup-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--pink-dark), var(--pink-accent));
}

.signup-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.signup-content {
    color: white;
}

.signup-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.signup-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

.signup-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.signup-benefits {
    list-style: none;
}

.signup-benefits li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
}

.signup-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: white;
    font-weight: 700;
}

.signup-form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.signup-form h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--pink-medium);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--pink-accent);
}

.checkbox-group label {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 0;
}

.form-note {
    text-align: center;
    font-size: 12px;
    color: var(--gray);
    margin-top: 15px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--pink-dark), var(--pink-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
}

.success-message h3 {
    font-size: 24px;
    color: var(--black);
    margin-bottom: 15px;
}

.success-message p {
    color: var(--gray);
}

/* Trust Section */
.trust-section {
    padding: 60px 0;
    background: var(--gray-light);
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.trust-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 5px;
}

.trust-item p {
    font-size: 14px;
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--black);
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo .logo-text {
    font-size: 32px;
    background: linear-gradient(135deg, var(--pink-medium), var(--pink-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--pink-medium);
}

.footer-since {
    color: var(--pink-medium);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Legal Pages */
.legal-section {
    padding: 60px 0 80px;
    min-height: calc(100vh - 300px);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--pink-medium), var(--pink-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-content .last-update {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--pink-light);
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
    margin-top: 35px;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid var(--pink-dark);
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-content ul {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}

.legal-content ul li {
    color: var(--gray);
    line-height: 1.8;
    padding: 8px 0 8px 25px;
    position: relative;
}

.legal-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--pink-dark);
    border-radius: 50%;
}

.legal-content a {
    color: var(--pink-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.legal-content a:hover {
    color: var(--pink-accent);
    text-decoration: underline;
}

.legal-content strong {
    color: var(--black);
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .reassurance-items {
        gap: 28px;
    }

    .signup-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .signup-content {
        text-align: center;
    }

    .signup-content h2 {
        font-size: 28px;
    }

    .trust-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (min-width: 900px) {
    .promo-card--popular {
        transform: translateY(-10px);
    }

    .promo-card--popular:hover {
        transform: translateY(-15px);
    }
}

@media (max-width: 899px) {
    .promo-cards {
        grid-template-columns: 1fr;
    }

    .promo-card--popular {
        order: -1;
    }
}

@media (max-width: 599px) {
    .reassurance-items {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .trust-items {
        grid-template-columns: 1fr;
    }

    .signup-form-container {
        padding: 25px;
    }
}

/* ===== PANIER ===== */

.cart-scroll-lock {
    overflow: hidden;
}

/* Icône panier (header) */
.cart-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    color: var(--black);
    cursor: pointer;
    transition: color 0.3s;
    flex-shrink: 0;
}

.cart-toggle:hover {
    color: var(--pink-accent);
}

.cart-toggle svg {
    width: 24px;
    height: 24px;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--pink-accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.cart-count--hidden {
    display: none;
}

/* Overlay */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(33, 33, 33, 0.5);
    opacity: 0;
    z-index: 1900;
    transition: opacity 0.35s ease;
}

.cart-overlay.is-open {
    opacity: 1;
}

/* Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.cart-drawer.is-open {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-light);
    flex-shrink: 0;
}

.cart-drawer-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
}

.cart-drawer-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-light);
    border-radius: 50%;
    color: var(--black);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.cart-drawer-close:hover {
    background: var(--pink-accent);
    color: var(--white);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px 25px;
}

/* Liste d'articles */
.cart-items {
    list-style: none;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
}

.cart-item:first-child {
    padding-top: 0;
}

.cart-item-image {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--gray-light);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
}

.cart-item-unit-price {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.cart-qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--pink-medium);
    background: var(--pink-light);
    color: var(--pink-accent);
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.cart-qty-btn:hover {
    background: var(--pink-dark);
    color: var(--white);
}

.cart-qty-value {
    min-width: 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.cart-item-line-total {
    font-size: 15px;
    font-weight: 700;
    color: var(--pink-accent);
}

.cart-item-remove {
    border: none;
    background: none;
    color: var(--gray);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    transition: color 0.3s;
}

.cart-item-remove:hover {
    color: var(--pink-accent);
}

/* État vide */
.cart-empty {
    text-align: center;
    padding: 60px 10px;
}

.cart-empty p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Pied du drawer */
.cart-drawer-footer {
    flex-shrink: 0;
    padding: 20px 25px 25px;
    border-top: 1px solid var(--gray-light);
}

.cart-shipping {
    margin-bottom: 18px;
}

.cart-shipping-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-light);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.cart-shipping-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, var(--pink-dark), var(--pink-accent));
    border-radius: 999px;
    transition: width 0.35s ease;
}

.cart-shipping-text {
    font-size: 13px;
    color: var(--gray);
    text-align: center;
}

.cart-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    color: var(--black);
    margin-bottom: 15px;
}

.cart-subtotal strong {
    font-size: 20px;
    color: var(--pink-accent);
}

.cart-checkout {
    width: 100%;
}

.cart-checkout:disabled {
    background: var(--gray-light);
    color: var(--gray);
    cursor: not-allowed;
    box-shadow: none;
}

.cart-checkout-error {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--pink-light);
    color: var(--pink-accent);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100vw;
    }
}

/* ===== MERCI ===== */

.merci-section {
    padding: 80px 0;
    min-height: calc(100vh - 380px);
    background: linear-gradient(
        135deg,
        var(--pink-light) 0%,
        #fff 60%,
        var(--pink-light) 100%
    );
    display: flex;
    align-items: center;
}

.merci-box {
    max-width: 620px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.merci-box h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.merci-order-id {
    display: inline-block;
    background: var(--pink-light);
    color: var(--pink-accent);
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    margin: 5px 0 20px;
}

/* L'attribut hidden doit primer sur le display ci-dessus (cas sans commande). */
.merci-order-id[hidden] {
    display: none;
}

.merci-items {
    list-style: none;
    text-align: left;
    margin: 25px 0;
    border-top: 1px solid var(--gray-light);
}

.merci-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
    color: var(--black);
    font-size: 15px;
}

.merci-item-qty {
    color: var(--gray);
    flex-shrink: 0;
}

.merci-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin: 20px 0 10px;
}

.merci-total strong {
    color: var(--pink-accent);
}

.merci-shipping {
    color: var(--gray);
    margin: 20px 0;
}

.merci-note {
    color: var(--gray);
    font-size: 14px;
    margin: 20px 0 30px;
}

/* ===== MODALE PRODUIT ===== */

/* Verrou de scroll propre à la modale (indépendant du drawer panier). */
.product-modal-scroll-lock {
    overflow: hidden;
}

/* Indique que l'image et le nom des cartes sont cliquables. */
.product-image {
    cursor: pointer;
}

.product-info h4 {
    cursor: pointer;
    transition: color 0.3s;
}

.product-card:hover .product-info h4 {
    color: var(--pink-accent);
}

/* Overlay (sous le drawer panier : z-index 1900, ici 1500). */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(33, 33, 33, 0.5);
    opacity: 0;
    z-index: 1500;
    transition: opacity 0.3s ease;
}

.product-modal-overlay.is-open {
    opacity: 1;
}

/* Modale centrée */
.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    width: 560px;
    max-width: calc(100vw - 40px);
    max-height: 90vh;
    max-height: 90dvh;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 1600;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-modal.is-open {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Neutralisation réelle une fois fermées.
   Indispensable : `.product-modal` déclare `display: flex`, ce qui écrase la
   règle `[hidden] { display: none }` du navigateur — sans ce bloc, l'attribut
   `hidden` posé par closeModal() n'a AUCUN effet et la modale continue
   d'occuper 560 x 810 px au centre de l'écran en interceptant les clics.
   `.product-modal[hidden]` (0,2,0) l'emporte sur `.product-modal` (0,1,0). */
.product-modal[hidden],
.product-modal-overlay[hidden] {
    display: none;
}

/* Pendant les 350 ms de la transition de fermeture, `hidden` n'est pas encore
   reposé : on coupe déjà toute interception de clic. */
.product-modal:not(.is-open),
.product-modal-overlay:not(.is-open) {
    pointer-events: none;
}

.product-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--black);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s, color 0.3s;
}

.product-modal-close:hover {
    background: var(--pink-accent);
    color: var(--white);
}

.product-modal-body {
    flex: 1;
    overflow-y: auto;
}

.product-modal-image {
    width: 100%;
    height: 340px;
    background: var(--gray-light);
    overflow: hidden;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-modal-content {
    padding: 25px 30px;
}

.product-modal-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.product-modal-accroche {
    font-size: 16px;
    font-weight: 600;
    color: var(--pink-accent);
    margin-bottom: 18px;
}

.product-modal-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.product-modal-price .price-new {
    font-size: 26px;
}

.product-modal-badge {
    background: var(--pink-accent);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.product-modal-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 22px;
}

.product-modal-benefices {
    list-style: none;
    margin-bottom: 22px;
}

.product-modal-benefices li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--black);
    line-height: 1.5;
}

.product-modal-benefices li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--pink-accent);
    font-weight: 700;
}

.product-modal-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pink-light);
}

.product-modal-mode-emploi {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 22px;
}

.product-modal-details {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 6px;
}

.product-modal-footer {
    flex-shrink: 0;
    padding: 18px 30px;
    border-top: 1px solid var(--gray-light);
    background: var(--white);
}

.product-modal-add {
    width: 100%;
}

/* Mobile : plein écran, bouton d'ajout sticky en bas. */
@media (max-width: 480px) {
    .product-modal {
        top: 0;
        left: 0;
        transform: none;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .product-modal.is-open {
        transform: none;
    }

    .product-modal-image {
        height: 280px;
    }

    .product-modal-footer {
        position: sticky;
        bottom: 0;
    }
}
