/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Gentle Growth Kids — Warm Family Palette */
    --clr-bg: #FDFAF5;
    --clr-text-main: #352B25;
    --clr-text-secondary: #7A6E68;
    --clr-primary: #7A9E82;
    --clr-cta: #E8845A;
    --clr-cta-hover: #D4714A;
    --clr-accent: #F2DDD7;
    --clr-wood: #F5EFE6;
    --clr-white: #FFFDF9;
    --clr-border: #E8DDD3;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
}

body,
html {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
}

body.drawer-open { overflow: hidden; }

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography styles */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    color: var(--clr-text-main);
}

/* --- Top Announcement Bar --- */
.top-bar {
    background-color: var(--clr-primary);
    color: #fff;
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1001;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--clr-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--clr-accent);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-text-main);
    /* Match logo text color */
    letter-spacing: 0.5px;
}

.logo-img {
    height: 50px;
    /* Adjust size relative to navbar */
    width: auto;
    border-radius: 50%;
    /* Circle framing */
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 0;
    align-items: center;
    list-style: none;
    flex: 0 1 auto;
    min-width: 0;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    display: block;
    padding: 0.5rem 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    color: var(--clr-text-main);
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--clr-primary);
}

/* ── Dropdown arrow ── */
.nav-item-arrow {
    display: none;
    font-size: 0.65rem;
    margin-left: 3px;
    vertical-align: middle;
    transition: transform 0.2s;
    cursor: pointer;
    color: var(--clr-primary);
}

/* ── Mega-menu dropdown ── */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--clr-accent);
    border-top: 2px solid var(--clr-primary);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.09);
    min-width: 210px;
    padding: 0.4rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
    transform: translateX(-50%) translateY(-6px);
    z-index: 500;
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 0.55rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--clr-text-main);
    border-left: 2px solid transparent;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    color: var(--clr-primary);
    border-left-color: var(--clr-primary);
    background: var(--clr-wood);
}

/* ── Mega-menu ── */
.nav-dropdown.mega-menu {
    left: 0;
    transform: translateX(0) translateY(-6px);
    display: flex;
    flex-direction: row;
    min-width: 520px;
    padding: 1rem 0;
    gap: 0;
}

.has-dropdown:hover .nav-dropdown.mega-menu {
    transform: translateX(0) translateY(0);
}

.mega-col {
    flex: 1;
    padding: 0 1.2rem;
    border-right: 1px solid #f0ebe3;
}
.mega-col:last-child { border-right: none; }

.mega-col-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9b8b7a;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f0ebe3;
    white-space: nowrap;
}

.mega-menu .nav-dropdown a,
.mega-menu a {
    white-space: normal;
    padding: 0.4rem 0;
    border-left: none;
    font-size: 0.82rem;
}

.mega-menu a:hover {
    background: none;
    border-left: none;
    color: var(--clr-primary);
    padding-left: 4px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

#language-switcher {
    padding: 0.3rem;
    border: 1px solid var(--clr-wood);
    border-radius: 4px;
    background: transparent;
    font-family: var(--font-body);
    color: var(--clr-text-main);
    cursor: pointer;
    outline: none;
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    line-height: 1;
}

/* --- Hero Section & Video Carousel --- */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Aligned left as requested */
    text-align: left;
    overflow: hidden;
    /* Hide overflow from videos */
}

/* Video Carousel Base */
.video-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-video.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 60%, rgba(255, 255, 255, 0.0) 100%);
    /* Fade from pure white */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 2rem 5%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--clr-text-main);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--clr-text-main);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    background-color: var(--clr-cta);
    color: #fff;
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--clr-cta);
    box-shadow: 0 4px 14px rgba(232, 132, 90, 0.3);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--clr-cta-hover);
    border-color: var(--clr-cta-hover);
    box-shadow: 0 6px 20px rgba(232, 132, 90, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background-color: var(--clr-primary);
    color: #fff;
    transform: translateY(-1px);
}

/* --- Collections Section --- */
.section-collections {
    padding: 5rem 5%;
    text-align: center;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--clr-text-main);
    font-style: italic;
    line-height: 1.2;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Larger min-width based on feedback */
    gap: 2rem;
    /* Smaller gap */
}

.collection-card {
    background-color: var(--clr-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 12px rgba(53, 43, 37, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.collection-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(53, 43, 37, 0.12);
}

.card-img {
    height: 270px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 2rem 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--clr-text-main);
    font-style: italic;
}

.card-content p {
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    color: var(--clr-text-secondary);
    min-height: 45px;
}

/* --- Reviews Section --- */
/* ── Section Personnalisation ── */
.section-perso {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #faf5ee 0%, #f3ede3 100%);
}

.section-perso-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.perso-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-primary);
    margin-bottom: 0.8rem;
}

.section-perso h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--clr-text-main);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-perso p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.perso-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.perso-tag {
    background: #fff;
    border: 1px solid var(--clr-accent);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    color: var(--clr-text-main);
    font-weight: 500;
}

.perso-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.perso-name-examples {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.perso-name-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem 1.8rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 3px solid var(--clr-primary);
}

.perso-name-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.perso-name-display {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--clr-primary);
    font-style: italic;
}

/* ── Sélections thématiques ── */
.section-themes {
    padding: 5rem 5%;
    background: #fff;
    text-align: center;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.theme-card {
    position: relative;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.25s, box-shadow 0.25s;
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.theme-poetique { background: linear-gradient(135deg, #2d2b55 0%, #5b4a8a 100%); }
.theme-naturel  { background: linear-gradient(135deg, #4a7c59 0%, #2d5a3d 100%); }
.theme-colore   { background: linear-gradient(135deg, #f7c5d0 0%, #c8b4e8 50%, #a8d8ea 100%); }
.theme-neutre   { background: linear-gradient(135deg, #e8ddd0 0%, #c9bfb4 100%); }

.theme-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(0,0,0,0.15);
    transition: background 0.25s;
}

.theme-card:hover .theme-card-overlay { background: rgba(0,0,0,0.25); }

.theme-emoji { font-size: 2.5rem; }

.theme-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.theme-cta {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.6);
    padding-bottom: 1px;
}

/* ── Bandeau final CTA ── */
.section-final-cta {
    padding: 5rem 5%;
    background: var(--clr-primary);
    text-align: center;
}

.final-cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.section-final-cta h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.section-final-cta p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}

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

.section-final-cta .btn-primary {
    background: #fff;
    color: var(--clr-primary);
    border-color: #fff;
}

.section-final-cta .btn-primary:hover {
    background: rgba(255,255,255,0.9);
}

.section-final-cta .btn-secondary {
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

.section-final-cta .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

.section-reviews {
    padding: 6rem 5%;
    background-color: var(--clr-wood);
    text-align: center;
}

.section-reviews .section-title {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-main);
    margin-bottom: 3rem;
    font-style: italic;
    font-family: var(--font-heading);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-aggregate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}
.reviews-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-primary);
    font-family: var(--font-heading);
}
.reviews-count {
    color: var(--clr-text-light);
    font-size: 0.9rem;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-align: left;
}
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--clr-primary);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.review-verified {
    font-size: 0.72rem;
    color: #4caf50;
    display: block;
    margin-top: 2px;
}
.review-card {
    background-color: var(--clr-white);
    padding: 2rem 1.8rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 12px rgba(53, 43, 37, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(53, 43, 37, 0.1);
}

.stars {
    color: #F8C35A;
    /* Warm gold/yellow for stars */
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.review-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--clr-primary);
}

/* --- Footer --- */
footer {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: 4rem 5% 1rem 5%;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    color: var(--clr-white);
    margin-bottom: 1rem;
}

.footer-links h3,
.footer-social h3,
.footer-support h3 {
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-links ul li,
.footer-support ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a:hover,
.footer-support ul li a:hover {
    color: var(--clr-wood);
}

.footer-support ul {
    list-style: none;
    padding: 0;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--clr-accent);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    font-size: 0.9rem;
}


/* --- Product Listing Page (PLP) --- */
.page-header {
    text-align: center;
    padding: 3rem 5% 2rem;
    background: linear-gradient(180deg, var(--clr-wood) 0%, var(--clr-bg) 100%);
    border-bottom: 1px solid var(--clr-border);
}

.page-header h1 {
    font-size: 2.6rem;
    color: var(--clr-text-main);
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.page-header p {
    color: var(--clr-text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: var(--clr-white);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    padding: 0.875rem 5%;
}

.filter-categories {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.filter-categories a {
    color: var(--clr-text-main);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.filter-categories a:hover,
.filter-categories a.active {
    opacity: 1;
}

.filter-categories a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--clr-primary);
}

.sort-dropdown select {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(158, 181, 168, 0.5);
    border-radius: 4px;
    background-color: transparent;
    color: var(--clr-text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.products-container {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--clr-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2.5rem 1.5rem;
}

#featured-products .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2.5rem 1.5rem;
}

.product-card {
    text-decoration: none;
    color: var(--clr-text-main);
    display: flex;
    flex-direction: column;
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: var(--clr-bg);
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

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

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

.product-hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    /* Above image, below add to cart btn */
    pointer-events: none;
    /* Let clicks pass through */
}

/* Favorite button overlay on product cards */
.product-card-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

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

.product-card-favorite.active {
    color: red;
}

.product-card:hover .product-hover-video {
    opacity: 1;
}

.hover-add-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(252, 251, 245, 0.95);
    /* Soft cream */
    color: var(--clr-text-main);
    text-align: center;
    padding: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .hover-add-cart {
    transform: translateY(0);
}

.product-info {
    text-align: left;
    padding: 0 0.2rem;
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-text-main);
    margin: 0 0 0.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.etsy-grid-price-main {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--clr-text-main);
    line-height: 1.2;
}

.etsy-grid-price-original {
    font-size: 0.75rem;
    color: #595959;
    margin-top: 0.2rem;
}

.etsy-grid-price-original del {
    text-decoration: line-through;
}

.etsy-grid-img-container {
    border-radius: var(--radius-md);
    aspect-ratio: 1 / 1;
    margin-bottom: 0.5rem;
    box-shadow: none;
    overflow: hidden;
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 5rem;
}

.page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid transparent;
    color: var(--clr-text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--clr-bg);
}

.page-link.active {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}


/* --- Product Details Page (PDP) --- */
.product-details-container {
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.pdp-breadcrumbs {
    font-size: 0.85rem;
    color: var(--clr-primary);
    margin-bottom: 3rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li + li::before {
    content: '>';
    margin: 0 0.5rem;
    color: var(--clr-text-main);
    opacity: 0.5;
}

.breadcrumb a {
    color: var(--clr-text-main);
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.pdp-wrapper {
    display: grid;
    /* Increased left column ratio to make images larger (was 4fr 6fr) */
    grid-template-columns: 5.5fr 4.5fr;
    gap: 4rem;
}

@media (max-width: 900px) {
    .pdp-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Left Column Layout */
.pdp-left-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 850px;
    min-width: 0;
    /* Increased from 650px */
}

/* Gallery - Etsy Style (Thumbnails Left, Main Right) */
.pdp-gallery {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    min-width: 0;
}

/* Main image/video container */
.pdp-main-media {
    flex-grow: 1;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f7f7f7;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 4 / 5;
    min-width: 0;
    /* Forces a tall portrait ratio */
}

/* Live Embroidery Preview Overlay */
.embroidery-preview {
    position: absolute;
    top: 35%;
    /* Adjust based on where it looks best on the onesie image */
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    /* Slight rotation for realism */
    font-size: 2.5rem;
    color: transparent;
    /* Default hidden */
    pointer-events: none;
    /* Let clicks pass through to image/video */
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1), -0.5px -0.5px 0 rgba(255, 255, 255, 0.3);
    /* Embroidery 3D effect */
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease, font-family 0.3s ease;
}

.embroidery-preview.visible {
    opacity: 0.9;
}

/* --- Single Embroidery Preview (Chest/Corner placement) --- */
.single-embroidery-preview {
    position: absolute;
    top: 55%;
    left: 45%;
    transform: rotate(-5deg) translate(-50%, -50%);
    /* Slight angle */
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease, font-family 0.3s ease;
    mix-blend-mode: multiply;
    font-size: 32px;
    font-weight: 600;
}

.single-embroidery-preview.visible {
    opacity: 0.85;
}

.pdp-main-media img,
.pdp-main-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hidden-media {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.pdp-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 65px;
    /* Match thumbnail width */
    flex-shrink: 0;
    /* allow scrolling if many thumbnails */
    max-height: 550px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.pdp-thumbnails::-webkit-scrollbar {
    width: 4px;
}

.pdp-thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--clr-accent);
    border-radius: 4px;
}

.thumbnail {
    width: 65px;
    height: 85px;
    border: 1px solid var(--clr-accent);
    cursor: pointer;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--clr-text-main);
}

.thumbnail.video-thumb {
    background-color: var(--clr-accent);
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Info Column */
.pdp-info {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

.pdp-artist {
    color: var(--clr-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.pdp-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pdp-price {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* --- Etsy Style Pricing Block --- */
.etsy-pricing-block {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.etsy-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.etsy-price-main {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-text-main);
}

.etsy-price-original {
    font-size: 1.1rem;
    color: #666;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.etsy-discount-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.etsy-discount-badge {
    color: #0F8A5F;
    /* Green Etsy style */
}

.etsy-vat-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.2rem;
}

.etsy-vat-text a {
    text-decoration: underline;
}

/* Characteristics Section (Etsy Style) */
.pdp-characteristics {
    color: var(--clr-text-main);
    border-top: 1px solid var(--clr-accent);
    padding-top: 2rem;
}

.char-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.char-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.char-highlights {
    list-style: none;
    margin-bottom: 2.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.char-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
}

.char-highlights i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--clr-text-main);
}

.char-text p {
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--clr-text-main);
}

.pdp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid var(--clr-accent);
    padding-top: 2rem;
}

/* Etsy-Inspired Variants */
.etsy-variants {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.etsy-style label {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: var(--clr-text-main);
    margin-bottom: 0.3rem;
}

.required-star {
    font-size: 1rem;
}

/* Total Price Display */
.pdp-total-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--clr-wood);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-select {
    position: relative;
}

.custom-select select {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid #CCC;
    border-radius: 4px;
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    appearance: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* very subtle Etsy shadow */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-select select:hover,
.custom-select select:focus {
    border-color: var(--clr-text-main);
    outline: none;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--clr-text-main);
    font-size: 0.8rem;
}

.pdp-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: stretch;
}

.quantity-selector {
    display: flex;
    border: 1px solid var(--clr-accent);
    border-radius: 2px;
}

.qty-btn {
    background: transparent;
    border: none;
    padding: 0 1rem;
    font-size: 1.2rem;
    color: var(--clr-text-main);
    cursor: pointer;
}

#product-qty {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--clr-accent);
    border-right: 1px solid var(--clr-accent);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--clr-text-main);
    -moz-appearance: textfield;
    appearance: textfield;
}

#product-qty::-webkit-outer-spin-button,
#product-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    flex: 1;
    /* Takes up remaining space */
    padding: 1rem;
}

.favorite-btn {
    width: 55px;
    background: transparent;
    border: 1px solid var(--clr-accent);
    border-radius: 2px;
    color: var(--clr-text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.favorite-btn:hover,
.favorite-btn.active {
    border-color: var(--clr-text-main);
    color: #e25555;
    /* subtle red for heart */
}

.pdp-shipping-info {
    font-size: 0.85rem;
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* --- PDP Personalization UI (Clothing) --- */

/* Swatches */
.swatch-container {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.swatch-label {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swatch-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.swatch {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    box-shadow: 0 0 0 1px var(--clr-accent);
    transition: all 0.2s ease;
}

.thread-swatch {
    width: 28px;
    /* Slightly smaller for thread */
    height: 28px;
}

/* Selected State */
.swatch-label input[type="radio"]:checked~.swatch {
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--clr-text-main);
    transform: scale(1.1);
}

.selected-value {
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Checkbox Toggle */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    user-select: none;
    margin-top: 1rem;
    color: var(--clr-text-main);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 1px solid var(--clr-text-main);
    border-radius: 3px;
    margin-right: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-container:hover input~.checkmark {
    background-color: var(--clr-wood);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

/* Personalization Box */
.personalization-box {
    background-color: var(--clr-wood);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
    border: 1px dashed var(--clr-primary);
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    overflow: hidden;
}

.personalization-box.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border: none;
}

.personalization-guidance {
    font-size: 0.85rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.etsy-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--clr-accent);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s ease;
}

.etsy-input:focus {
    outline: none;
    border-color: var(--clr-primary);
}

.etsy-input.error {
    border-color: #CC4B4B;
    background-color: #FFF5F5;
}

.validation-message {
    color: #CC4B4B;
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.validation-message.hidden {
    display: none;
}

/* Accordion */
.pdp-accordion {
    margin-top: 2rem;
    border-top: 1px solid var(--clr-accent);
}

.accordion-item {
    border-bottom: 1px solid var(--clr-accent);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--clr-text-main);
    cursor: pointer;
}

.accordion-header .icon-minus {
    display: none;
}

.accordion-header.active .icon-plus {
    display: none;
}

.accordion-header.active .icon-minus {
    display: block;
}

.accordion-content {
    display: none;
    padding-bottom: 1.5rem;
    color: var(--clr-text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pdp-faq .accordion-header {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}


/* --- Legal Pages --- */
.legal-page {
    padding: 6rem 5%;
    background-color: var(--clr-bg);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--clr-white);
    padding: 4rem;
    border-radius: 0;
    border: 1px solid var(--clr-accent);
}

.legal-title {
    font-size: 2.5rem;
    color: var(--clr-primary);
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.legal-section {
    margin-top: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--clr-text-main);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    border-bottom: 1px solid rgba(158, 181, 168, 0.3);
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--clr-primary);
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-list {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-legal-link {
    color: inherit;
    text-decoration: underline;
    opacity: 0.8;
}

.footer-legal-link:hover {
    opacity: 1;
}

/* --- FAQ Accordion --- */
.faq-list {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(158, 181, 168, 0.3);
    /* Sage green line */
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--clr-text-main);
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
    /* Remove default triangle in most browsers */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

/* Remove default triangle for Webkit */
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--clr-primary);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--clr-primary);
    transition: transform 0.3s ease;
}

details[open] .faq-question::after {
    transform: rotate(45deg);
    /* Turns the + into an x */
}

.faq-answer {
    padding-bottom: 1.5rem;
    padding-top: 0.5rem;
    line-height: 1.7;
    color: var(--clr-text-main);
}

.faq-answer p:not(:last-child) {
    margin-bottom: 1rem;
}

/* ============================================================
   AUTOCOMPLETE RECHERCHE
   ============================================================ */
.search-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--clr-border, #eadecc);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 500;
    overflow: hidden;
    display: none;
}

.search-autocomplete.open { display: block; }

.search-ac-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f5f0ea;
}

.search-ac-item:last-child { border-bottom: none; }
.search-ac-item:hover, .search-ac-item.active { background: #f8f5f0; }

.search-ac-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

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

.search-ac-item-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--clr-text, #4a3728);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-ac-item-cat {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 2px;
    text-transform: capitalize;
}

.search-ac-item-price {
    font-weight: 700;
    color: var(--clr-primary, #6b705c);
    font-size: 0.9rem;
    white-space: nowrap;
}

.search-ac-footer {
    padding: 0.6rem 1rem;
    background: #f8f5f0;
    font-size: 0.82rem;
    color: #888;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
}

.search-ac-footer:hover { background: #f0ebe3; color: var(--clr-primary, #6b705c); }

.search-ac-empty {
    padding: 1.2rem 1rem;
    text-align: center;
    color: #aaa;
    font-size: 0.88rem;
}

/* --- Etsy Elements --- */
.ggk-search-container {
    display: block;
    padding: 0.8rem 5%;
    background-color: var(--clr-bg);
    border-bottom: 1px solid rgba(158, 181, 168, 0.3);
}

.ggk-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: white;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(53,43,37,0.06);
}

.ggk-search-input {
    flex: 1;
    border: none;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.ggk-search-btn {
    background-color: var(--clr-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.etsy-gallery-actions,
.etsy-pagination {
    display: none;
}

.etsy-slider-track {
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* On desktop, keep standard behavior (no scroll snap) */
}

.etsy-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.etsy-slide img,
.etsy-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Trust Bar --- */
.trust-bar {
    background-color: var(--clr-wood);
    border-bottom: 1px solid var(--clr-accent);
    padding: 0.9rem 5%;
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--clr-text-main);
}

.trust-item i {
    color: var(--clr-primary);
    font-size: 1rem;
}

/* Add-to-cart button success state */
.add-to-cart-btn.success,
#add-to-cart-btn.success {
    background-color: #27AE60 !important;
    border-color: #27AE60 !important;
    color: white !important;
}

/* ============================================================
   CERTIFICATIONS BLOCK — PDP
   ============================================================ */
.certs-section {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: var(--clr-wood);
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-border);
}

.certs-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clr-text-secondary);
    margin-bottom: 0.85rem;
}

.certs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--clr-text-main);
    white-space: nowrap;
}

.cert-badge i {
    color: var(--clr-primary);
    font-size: 0.85rem;
}

/* ============================================================
   EDUCATIONAL BENEFITS — PDP
   ============================================================ */
.edu-benefits-section {
    margin-top: 1.5rem;
    padding: 1.4rem;
    background: linear-gradient(135deg, #f3f8f4 0%, #eef5f0 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(122,158,130,0.2);
}

.edu-benefits-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

.edu-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.edu-benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    border: 1px solid rgba(122,158,130,0.15);
}

.edu-benefit-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
}

.edu-benefit-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--clr-text-main);
    margin-bottom: 0.2rem;
}

.edu-benefit-desc {
    font-size: 0.78rem;
    color: var(--clr-text-secondary);
    line-height: 1.4;
    margin: 0;
}

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

/* ============================================================
   SIZE GUIDE TABLE — PDP
   ============================================================ */
.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.size-guide-table th {
    background: var(--clr-wood);
    color: var(--clr-text-main);
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid var(--clr-border);
}

.size-guide-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-text-main);
}

.size-guide-table tr:last-child td { border-bottom: none; }
.size-guide-table tr:nth-child(even) td { background: var(--clr-bg); }

/* --- Nav compression on medium screens (French labels are long) --- */
@media (max-width: 1400px) {
    .nav-links > li > a {
        font-size: 0.7rem;
        padding: 0.5rem 0.45rem;
        letter-spacing: 0;
    }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide for mobile prototype simplicity */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .ggk-search-container {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* 2 columns on mobile to match Etsy style */
    .product-grid,
    #featured-products .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 0.5rem;
    }

    .product-card,
    .collection-card {
        width: 100%;
        margin: 0;
    }

    .products-container {
        padding: 3rem 5%;
    }

    .product-image-container {
        margin-bottom: 0.8rem;
        aspect-ratio: 4/5;
        /* Slightly squarer so it's not too tall on small screens */
        height: auto;
    }

    .product-title {
        font-size: 1rem;
    }

    .section-collections {
        padding: 3rem 5%;
    }

    .collections-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-perso-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-perso h2 { font-size: 1.7rem; }

    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .theme-card { height: 160px; }

    .final-cta-btns { flex-direction: column; align-items: center; }

    .card-img {
        height: 220px;
    }

    .card-content {
        padding: 1.5rem 1rem;
    }

    .card-content h3 {
        font-size: 1.4rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        /* Fix horizontal overflow from 300px minmax */
    }

    .footer-content {
        grid-template-columns: 1fr;
        /* Stack footer vertically */
    }

    /* --- Etsy Mobile Specific Styles --- */
    /* End mobile specific Etsy styles */
    /* Full-Bleed Snap Gallery */
    .pdp-gallery.etsy-mobile-gallery {
        flex-direction: column;
        margin: 0 calc(-50vw + 50%);
        /* Edge-to-edge container */
        width: 100vw;
        position: relative;
    }

    .etsy-mobile-gallery .pdp-thumbnails {
        display: flex !important;
        order: 2;               /* appear below the main image */
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100vw;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        max-height: none;
        background: #fff;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        box-sizing: border-box;
    }
    .etsy-mobile-gallery .pdp-thumbnails::-webkit-scrollbar { display: none; }
    .etsy-mobile-gallery .pdp-main-media { order: 1; }
    .etsy-mobile-gallery .pdp-thumbnails .thumbnail {
        width: 62px;
        height: 78px;
        flex-shrink: 0;
    }

    .etsy-slider-container {
        width: 100vw;
        aspect-ratio: 4 / 5;
        border-radius: 0;
        position: relative;
        overflow: hidden;
        /* Prevent parent scrolling */
    }

    .etsy-slider-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        height: 100%;
        scrollbar-width: none;
        /* Firefox */
    }

    .etsy-slider-track::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .etsy-slide {
        scroll-snap-align: start;
        flex: 0 0 100vw;
        width: 100vw;
        height: 100%;
        background-color: #f7f7f7;
    }

    /* Gallery Overlays */
    .etsy-gallery-actions {
        display: flex;
        /* Show on mobile */
        position: absolute;
        top: 1rem;
        right: 1rem;
        flex-direction: column;
        gap: 0.8rem;
        z-index: 10;
    }

    .gallery-action-btn {
        background-color: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: #222;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .etsy-pagination {
        display: flex;
        /* Show on mobile */
        position: absolute;
        bottom: 1.5rem;
        left: 0;
        width: 100%;
        justify-content: center;
        gap: 8px;
        z-index: 10;
    }

    .etsy-pagination .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.7);
        transition: background-color 0.3s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .etsy-pagination .dot.active {
        background-color: #333;
        /* Dark indicator */
    }

    /* Restore padding for text sections */
    .pdp-info,
    .pdp-characteristics {
        padding: 0 5%;
    }

    /* Remove top whitespace for full-bleed gallery */
    .product-details-container {
        padding-top: 1rem;
    }

    .pdp-breadcrumbs {
        margin-bottom: 1rem;
        padding: 0 5%;
    }

    .pdp-wrapper {
        gap: 1.5rem;
    }

    /* Sticky Add To Cart */
    .pdp-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem 5%;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        margin-top: 0;
    }

    /* Add padding to wrapper to prevent the last content from being hidden behind sticky bar */
    .pdp-wrapper {
        padding-bottom: 5rem;
    }

    /* Trust bar collapses to 2x2 on mobile */
    .trust-bar-inner {
        gap: 1rem 2rem;
    }
}

/* --- Extra Small Screens (phones < 480px) --- */
@media (max-width: 480px) {
    /* Hero: tighter text */
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.4) 60%, rgba(255, 255, 255, 0.0) 100%);
    }

    .hero {
        min-height: 480px;
        height: 75vh;
    }

    .hero h1 {
        font-size: 1.55rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .btn-primary {
        padding: 0.85rem 2rem;
        font-size: 0.85rem;
    }

    /* Navbar: reduce padding so logo doesn't overflow */
    .navbar {
        padding: 1rem 4%;
    }

    .logo-img {
        height: 38px;
    }

    /* Search bar: slightly smaller */
    .ggk-search-input {
        font-size: 0.9rem;
    }

    /* Section titles */
    .section-title {
        font-size: 1.9rem;
    }

    /* Product grid: slightly tighter gap */
    .product-grid,
    #featured-products .product-grid {
        gap: 1rem 0.4rem;
    }

    /* Tap targets: buttons at least 48px tall */
    .btn-primary,
    .btn-secondary,
    .add-to-cart-btn,
    #add-to-cart-btn,
    .ggk-search-btn,
    .qty-btn {
        min-height: 48px;
    }

    .ggk-search-btn {
        width: 44px;
        height: 44px;
    }

    /* Cart badge: larger tap area */
    .cart-icon {
        padding: 8px;
        font-size: 1.4rem;
    }

    /* Mobile menu toggle: larger tap area */
    .mobile-menu-toggle {
        padding: 8px;
        font-size: 1.5rem;
    }

    /* Trust bar: stack all items */
    .trust-bar-inner {
        gap: 0.7rem 1.5rem;
    }

    .trust-item {
        font-size: 0.75rem;
    }

    /* Reviews: full width on tiny phones */
    .review-card {
        padding: 1.5rem 1rem;
    }

    /* Footer */
    .footer-content {
        gap: 2rem;
    }

    /* PDP: tighter padding */
    .product-details-container {
        padding: 0.5rem 3%;
    }

    /* Sticky ATC: leave space at bottom */
    body.has-sticky-atc {
        padding-bottom: 80px;
    }
}

/* ============================================================
   BADGES DE CONFIANCE — sous le bouton ATC
   ============================================================ */
.pdp-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: #f8f5f0;
    border-radius: 8px;
    border: 1px solid var(--clr-border, #eadecc);
}

.pdp-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #5a4a3a;
    font-weight: 600;
    white-space: nowrap;
}

.pdp-trust-badge i {
    color: var(--clr-primary, #6b705c);
    font-size: 0.9rem;
}

/* ============================================================
   LIGHTBOX ZOOM IMAGES PRODUIT
   ============================================================ */
.ggk-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: zoom-out;
}

.ggk-lightbox.open { display: flex; }

.ggk-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
    cursor: default;
    user-select: none;
    transition: opacity 0.15s;
}

.ggk-lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1.2rem;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
    z-index: 10000;
}

.ggk-lightbox-close:hover { background: rgba(255,255,255,0.3); }

.ggk-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10000;
}

.ggk-lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.ggk-lightbox-nav.prev { left: 1rem; }
.ggk-lightbox-nav.next { right: 1rem; }

/* Curseur zoom sur l'image principale produit */
.pdp-main-media img,
#main-product-image {
    cursor: zoom-in;
}

/* ============================================================
   COUNTDOWN LIVRAISON
   ============================================================ */
.pdp-countdown-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff8ee;
    border: 1px solid #f5dca0;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #8a5e00;
    font-weight: 600;
}

.pdp-countdown-bar i { color: #dda15e; }

.pdp-countdown-timer { font-variant-numeric: tabular-nums; }

/* ============================================================
   STOCK BAS + VISITEURS + POLITIQUE DE RETOUR
   ============================================================ */
.pdp-stock-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    color: #b45309;
    margin-bottom: 0.75rem;
    animation: pulse-stock 2s ease-in-out infinite;
}

.pdp-stock-warning i { color: #f59e0b; }

@keyframes pulse-stock {
    0%, 100% { border-color: #ffe082; }
    50%       { border-color: #f59e0b; }
}

.pdp-viewers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.pdp-viewers-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: blink-dot 1.5s ease-in-out infinite;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.pdp-return-policy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #4b5563;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px dashed #e5e7eb;
}

.pdp-return-policy i { color: var(--clr-primary, #6b705c); }


/* ============================================================
   EXIT INTENT POPUP
   ============================================================ */
.exit-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}

.exit-popup-overlay.open { display: flex; }

.exit-popup {
    background: var(--clr-bg, #faf9f7);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.exit-popup-close {
    position: absolute;
    top: 1rem; right: 1.2rem;
    background: none; border: none;
    font-size: 1.4rem; cursor: pointer; color: #aaa;
}

.exit-popup-emoji { font-size: 2.5rem; margin-bottom: 0.5rem; }

.exit-popup h2 {
    font-family: var(--font-heading);
    color: var(--clr-text, #4a3728);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.exit-popup p {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.exit-popup-code {
    background: #f5f0ea;
    border: 2px dashed var(--clr-accent, #dda15e);
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--clr-primary, #6b705c);
    margin-bottom: 1.2rem;
    display: inline-block;
    cursor: pointer;
}

.exit-popup-btn {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: var(--clr-primary, #6b705c);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.7rem;
}

.exit-popup-skip {
    background: none; border: none;
    font-size: 0.82rem; color: #aaa;
    cursor: pointer; text-decoration: underline;
}

/* ============================================================
   RÉCAPITULATIF COLLAPSIBLE CHECKOUT MOBILE
   ============================================================ */
.summary-toggle-btn {
    display: none;
    width: 100%;
    background: #f8f5f0;
    border: 1px solid var(--clr-border, #eadecc);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--clr-text, #4a3728);
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-toggle-btn .toggle-total {
    color: var(--clr-primary, #6b705c);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.summary-toggle-btn i { transition: transform 0.3s; }
.summary-toggle-btn.open i { transform: rotate(180deg); }

@media (max-width: 768px) {
    .summary-toggle-btn { display: flex; }
    .summary-section .section-title { display: none; }
    .summary-collapsible {
        display: none;
    }
    .summary-collapsible.open {
        display: block;
    }
}

/* Message checkout sans compte */
.checkout-guest-msg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f7f0;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    color: #2e7d32;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.checkout-guest-msg i { color: #4caf50; }

/* ============================================================
   MINI-CART DRAWER
   ============================================================ */
.mini-cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mini-cart-overlay.open {
    display: block;
    opacity: 1;
}

.mini-cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--clr-bg, #faf9f7);
    z-index: 1101;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mini-cart-drawer.open {
    right: 0;
}

.mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--clr-border, #eadecc);
}

.mini-cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--clr-text, #4a3728);
    margin: 0;
}

.mini-cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-text, #4a3728);
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}

.mini-cart-close:hover { color: var(--clr-accent, #dda15e); }

/* Barre livraison gratuite */
.mini-cart-shipping-bar {
    padding: 0.85rem 1.5rem;
    background: #f5f0ea;
    border-bottom: 1px solid var(--clr-border, #eadecc);
    font-size: 0.88rem;
    color: #5a4a3a;
}

.mini-cart-shipping-bar p {
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.shipping-progress-track {
    width: 100%;
    height: 6px;
    background: #e0d8ce;
    border-radius: 10px;
    overflow: hidden;
}

.shipping-progress-fill {
    height: 100%;
    background: var(--clr-primary, #6b705c);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Liste articles */
.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.mini-cart-item {
    display: flex;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #f0ebe3;
    align-items: flex-start;
}

.mini-cart-item:last-child { border-bottom: none; }

.mini-cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.mini-cart-item-info { flex: 1; }

.mini-cart-item-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--clr-text, #4a3728);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.mini-cart-item-variant {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.4rem;
}

.mini-cart-item-qty-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mini-cart-qty-btn {
    width: 26px;
    height: 26px;
    background: #f0ebe3;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--clr-text, #4a3728);
    transition: background 0.15s;
}

.mini-cart-qty-btn:hover { background: #e0d8ce; }

.mini-cart-qty-val {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.mini-cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.mini-cart-item-price {
    font-weight: 700;
    color: var(--clr-primary, #6b705c);
    font-size: 0.95rem;
    white-space: nowrap;
}

.mini-cart-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 0.85rem;
    padding: 0;
    transition: color 0.2s;
}

.mini-cart-remove:hover { color: #e05555; }

/* Panier vide */
.mini-cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #aaa;
    font-family: var(--font-heading);
    font-size: 1rem;
}

.mini-cart-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
    color: #ddd;
}

/* Footer total + CTA */
.mini-cart-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid var(--clr-border, #eadecc);
    background: #fff;
}

.mini-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.mini-cart-total-label {
    font-weight: 600;
    color: var(--clr-text, #4a3728);
}

.mini-cart-total-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--clr-primary, #6b705c);
}

.mini-cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--clr-primary, #6b705c);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
    margin-bottom: 0.6rem;
}

.mini-cart-checkout-btn:hover { background: #5a5f4e; }

.mini-cart-payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0.6rem 0;
}

.mini-cart-payment-icons img {
    height: 20px;
    opacity: 0.65;
    filter: grayscale(20%);
}

.mini-cart-continue-btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
}

/* Barre de progression livraison — aussi sur pages produit */
.product-shipping-bar {
    background: #f5f0ea;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    font-size: 0.88rem;
    color: #5a4a3a;
}
.product-shipping-bar:empty { display: none; }

.product-shipping-bar p { margin: 0 0 0.4rem; font-weight: 600; }

/* ============================================================
   MOBILE NAV DRAWER — TIROIR GAUCHE
   ============================================================ */

#nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1099;
    cursor: pointer;
}
#nav-backdrop.open { display: block; }

#nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: min(88vw, 320px);
    height: 100dvh;
    height: 100vh;
    background: #faf9f7;
    z-index: 1100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 32px rgba(0,0,0,0.22);
    overscroll-behavior: contain;
}
#nav-drawer.open { transform: translateX(0); }

/* — Header */
.nd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 2px solid #7a9a84;
    flex-shrink: 0;
    background: #faf9f7;
}
.nd-logo { height: 36px; border-radius: 50%; object-fit: contain; }
.nd-close {
    background: none;
    border: 1.5px solid #d4c5a9;
    border-radius: 50%;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #4a3728;
    font-size: 0.95rem;
    padding: 0;
    transition: background 0.15s, border-color 0.15s;
}
.nd-close:hover { background: #ece6dc; border-color: #b8a890; }

/* — Search */
.nd-search {
    position: relative;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #ece6dc;
    flex-shrink: 0;
}
.nd-search-input {
    width: 100%; box-sizing: border-box;
    border: 1.5px solid #d4c5a9;
    border-radius: 99px;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    color: #3a2e26;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.nd-search-input:focus { border-color: #7a9a84; }
.nd-search-input::placeholder { color: #bbb; }
.nd-search-icon {
    position: absolute;
    right: 2.1rem; top: 50%;
    transform: translateY(-50%);
    color: #ccc; font-size: 0.8rem;
    pointer-events: none;
}

/* — Scrollable area */
.nd-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }

/* — Category item */
.nd-item { border-bottom: 1px solid #ece6dc; }
.nd-item-row { display: flex; align-items: center; min-height: 52px; }

.nd-cat-link {
    flex: 1;
    padding: 0 0 0 1.25rem;
    min-height: 52px;
    display: flex; align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3a2e26;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
}
.nd-cat-link:hover { color: #7a9a84; }

.nd-toggle-btn {
    background: none; border: none;
    border-left: 1px solid #ece6dc;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #aaa; font-size: 0.75rem;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}
.nd-toggle-btn:hover { color: #7a9a84; background: #f5f0ea; }

.nd-chevron { transition: transform 0.25s ease; }
.nd-item.open .nd-chevron { transform: rotate(180deg); }

.nd-simple-link {
    display: flex; align-items: center;
    min-height: 52px;
    padding: 0 1.25rem;
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: #3a2e26; text-decoration: none;
    font-family: 'DM Sans', sans-serif;
}
.nd-simple-link:hover { color: #7a9a84; }

/* — Sub-menu accordion */
.nd-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
    background: #f5f0ea;
}
.nd-item.open .nd-sub { max-height: 800px; }

.nd-sub-section { padding: 0.25rem 0; }

.nd-sub-label {
    padding: 0.5rem 1.5rem 0.2rem;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #7a9a84;
}

.nd-sub-link {
    display: flex; align-items: center;
    min-height: 40px;
    padding: 0 1.5rem;
    font-size: 0.875rem;
    color: #5a4a3a;
    text-decoration: none;
    border-bottom: 1px solid rgba(212,197,169,0.3);
}
.nd-sub-link:last-child { border-bottom: none; }
.nd-sub-link:hover { background: rgba(122,154,132,0.1); color: #3a2e26; }

/* — Footer */
.nd-footer {
    flex-shrink: 0;
    border-top: 1px solid #ece6dc;
    background: #f0ebe3;
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
}
.nd-account-link {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.875rem; color: #5a4a3a;
    text-decoration: none; font-weight: 500;
}
.nd-account-link:hover { color: #7a9a84; }
.nd-lang-pill {
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 0.85rem; font-weight: 600; color: #5a4a3a;
    background: #fff;
    border: 1.5px solid #d4c5a9; border-radius: 99px;
    padding: 0.3rem 0.85rem; cursor: pointer;
    transition: border-color 0.15s;
}
.nd-lang-pill:hover { border-color: #7a9a84; }

/* ============================================================
   DATE DE LIVRAISON ESTIMÉE
   ============================================================ */
.delivery-estimate:empty { display: none; }
.delivery-estimate {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    background: var(--clr-wood);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--clr-text-main);
    line-height: 1.4;
}
.delivery-estimate .de-truck {
    font-size: 1.1rem;
    color: var(--clr-primary);
    flex-shrink: 0;
}
.delivery-estimate .de-body {
    flex: 1;
}
.delivery-estimate .de-cutoff {
    color: var(--clr-cta);
}
.delivery-estimate .de-label {
    color: var(--clr-text-secondary);
}

/* ============================================================
   TOAST NOTIFICATION PANIER
   ============================================================ */
.cart-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--clr-text-main);
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.cart-toast a {
    color: var(--clr-accent, #dda15e);
    text-decoration: underline;
    font-weight: 700;
    pointer-events: auto;
}

/* ============================================================
   STICKY ADD TO CART — MOBILE
   ============================================================ */
.sticky-atc-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--clr-border, #eadecc);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    padding: 0.75rem 1.25rem;
    z-index: 998;
    align-items: center;
    gap: 1rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .sticky-atc-bar {
        display: flex;
    }
}

.sticky-atc-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--clr-primary, #6b705c);
    white-space: nowrap;
}

.sticky-atc-btn {
    flex: 1;
    padding: 0.85rem 1rem;
    background: var(--clr-primary, #6b705c);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
}

/* ============================================================
   PHASE 8 — THÉMATIQUE, COMPTE CLIENT, IDÉES CADEAUX
   ============================================================ */

/* ── Badges éducatifs & Montessori ── */
.pdp-edu-section {
    margin: 1.5rem 0;
    padding: 1.2rem 1.4rem;
    background: linear-gradient(135deg, #f0f7f1 0%, #faf7f2 100%);
    border-radius: 10px;
    border-left: 4px solid #8da47e;
}
.pdp-edu-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #6b705c;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pdp-edu-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pdp-edu-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff;
    border: 1px solid #c5d9b8;
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.82rem;
    color: #4a6741;
    font-weight: 600;
}
.pdp-edu-badge i { font-size: 0.78rem; color: #8da47e; }

/* ── Certifications ── */
.pdp-certif-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    background: #faf7f2;
    border-radius: 8px;
    border: 1px solid #eadecc;
}
.pdp-certif-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #6b705c;
    font-weight: 700;
    background: #fff;
    border: 1px solid #ddd6c5;
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
}
.pdp-certif-badge i { color: #a0b891; font-size: 0.85rem; }

/* ── Toggle cadeau ── */
.pdp-gift-toggle-section {
    margin: 1.2rem 0;
}
.pdp-gift-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: 2px dashed #c5b8a0;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    color: #6b705c;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
    transition: border-color 0.2s, background 0.2s;
}
.pdp-gift-toggle-btn:hover,
.pdp-gift-toggle-btn.active {
    border-color: #8da47e;
    background: #f0f7f1;
}
.pdp-gift-toggle-btn i { font-size: 1rem; color: #a0b891; }
/* Mode "Je fais un cadeau" */
.pdp-gift-options {
    margin-top: 1rem;
}
.gift-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}
.gift-toggle-input {
    accent-color: var(--clr-primary);
    width: 17px;
    height: 17px;
    cursor: pointer;
    flex-shrink: 0;
}
.gift-toggle-text {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--clr-text, #4a3728);
}
.gift-toggle-text i { color: var(--clr-primary); }
.gift-toggle-price {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
    margin-left: 0.2rem;
}
.gift-options-panel {
    display: none;
    margin-top: 0.75rem;
    padding: 1rem;
    background: #f9f7f3;
    border-radius: 8px;
    border: 1px solid #e5ddd0;
}
.gift-options-panel.open { display: block; }
.gift-panel-desc {
    font-size: 0.85rem;
    color: #6b705c;
    margin: 0 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.gift-field {
    margin-bottom: 0.75rem;
}
.gift-field label {
    display: block;
    font-size: 0.85rem;
    color: #4a3728;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.gift-field textarea,
.gift-field input[type="date"] {
    width: 100%;
    border: 1px solid #ddd6c5;
    border-radius: 6px;
    padding: 0.55rem 0.7rem;
    font-size: 0.88rem;
    font-family: var(--font-body);
    resize: vertical;
    box-sizing: border-box;
    background: #fff;
}
.gift-field textarea:focus,
.gift-field input[type="date"]:focus {
    outline: none;
    border-color: var(--clr-primary);
}

/* Mini trust bar sur pages produit */
.pdp-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #edeae4;
    border-bottom: 1px solid #edeae4;
}
.pdp-trust-bar span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #666;
    white-space: nowrap;
}
.pdp-trust-bar i { color: var(--clr-primary); font-size: 0.8rem; }

/* ── Page Compte Client ── */
.account-page { max-width: 900px; margin: 5rem auto; padding: 0 5%; }
.account-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.account-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--clr-text, #4a3728);
    margin-bottom: 0.5rem;
}
.account-header p { color: #888; font-size: 0.95rem; }

.account-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #eadecc;
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.account-tabs::-webkit-scrollbar { display: none; }
.account-tab-btn {
    background: none;
    border: none;
    padding: 0.8rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.account-tab-btn:hover { color: var(--clr-primary, #6b705c); }
.account-tab-btn.active {
    color: var(--clr-primary, #6b705c);
    border-bottom-color: var(--clr-primary, #6b705c);
}
.account-panel { display: none; }
.account-panel.active { display: block; }

.account-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--clr-border, #eadecc);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
}
.account-card h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--clr-text, #4a3728);
    margin-bottom: 1.2rem;
}
.account-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (max-width: 600px) { .account-form-row { grid-template-columns: 1fr; } }
.account-form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.account-form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.account-form-group input,
.account-form-group select {
    border: 1px solid #ddd6c5;
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: #4a3728;
    background: #faf9f6;
    font-size: 16px;
}
.account-form-group input:focus,
.account-form-group select:focus {
    outline: none;
    border-color: var(--clr-primary, #6b705c);
    background: #fff;
}
.account-save-btn {
    display: inline-block;
    background: var(--clr-primary, #6b705c);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 0.5rem;
}
.account-save-btn:hover { opacity: 0.85; }
.account-save-btn.loading { opacity: 0.6; cursor: not-allowed; }

/* Baby profile card */
.baby-profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f7f1, #faf7f2);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}
.baby-avatar {
    width: 56px;
    height: 56px;
    background: #8da47e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.baby-profile-info h3 { font-size: 1rem; color: #4a3728; margin-bottom: 0.2rem; }
.baby-profile-info p { font-size: 0.85rem; color: #888; }

/* Fidélité points */
.loyalty-points-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #6b705c, #8da47e);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 1.5rem;
}
.loyalty-points-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    display: block;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.loyalty-points-label { font-size: 0.9rem; opacity: 0.85; }
.loyalty-progress {
    margin-top: 1.2rem;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}
.loyalty-progress-bar {
    height: 100%;
    background: #fff;
    border-radius: 4px;
    transition: width 0.6s ease;
}
.loyalty-next-reward { font-size: 0.82rem; opacity: 0.8; margin-top: 0.5rem; }

/* Wishlist grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.wishlist-item {
    border: 1px solid #eadecc;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wishlist-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.07); }
.wishlist-item img { width: 100%; height: 130px; object-fit: cover; }
.wishlist-item-body { padding: 0.6rem 0.8rem; }
.wishlist-item-name { font-size: 0.85rem; font-weight: 700; color: #4a3728; margin-bottom: 0.2rem; }
.wishlist-item-price { font-size: 0.88rem; color: var(--clr-primary, #6b705c); font-weight: 700; }
.wishlist-item-actions { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.wishlist-atc-btn {
    flex: 1;
    background: var(--clr-primary, #6b705c);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}
.wishlist-remove-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    color: #aaa;
    font-size: 0.8rem;
}
.wishlist-remove-btn:hover { color: #c0392b; border-color: #c0392b; }

/* Wishlist heart button on product pages */
.pdp-wishlist-btn {
    background: none;
    border: 2px solid #ddd6c5;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #bbb;
    font-size: 1.1rem;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.pdp-wishlist-btn:hover,
.pdp-wishlist-btn.active { border-color: #e74c3c; color: #e74c3c; background: #fff5f5; }

/* Commandes historique */
.order-history-list { display: flex; flex-direction: column; gap: 1rem; }
.order-history-item {
    border: 1px solid #eadecc;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.order-history-num { font-weight: 700; color: #4a3728; font-size: 0.95rem; }
.order-history-date { font-size: 0.82rem; color: #888; margin-top: 0.2rem; }
.order-history-total { font-weight: 700; color: var(--clr-primary, #6b705c); }
.order-history-status {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}
.status-paid    { background: #e8f5e9; color: #2e7d32; }
.status-shipped { background: #e3f2fd; color: #1565c0; }
.status-pending { background: #fff8e1; color: #f57f17; }

/* Auth forms (login/register on account page) */
.auth-form-wrapper {
    max-width: 460px;
    margin: 0 auto;
}
.auth-tabs {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eadecc;
    margin-bottom: 1.5rem;
}
.auth-tab {
    flex: 1;
    padding: 0.8rem;
    text-align: center;
    background: #faf7f2;
    font-weight: 700;
    font-size: 0.9rem;
    color: #888;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border: none;
}
.auth-tab.active { background: var(--clr-primary, #6b705c); color: #fff; }
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* ── Page Idées Cadeaux ── */
.gift-hero {
    background: linear-gradient(135deg, #f9f4ee 0%, #e8f4ea 100%);
    padding: 4rem 5% 3rem;
    text-align: center;
}
.gift-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--clr-text, #4a3728);
    margin-bottom: 0.8rem;
}
.gift-hero p { color: #777; max-width: 500px; margin: 0 auto 2rem; font-size: 1rem; }
.gift-occasions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.gift-occasion-chip {
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    border: 2px solid var(--clr-primary, #6b705c);
    color: var(--clr-primary, #6b705c);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    background: none;
}
.gift-occasion-chip:hover,
.gift-occasion-chip.active { background: var(--clr-primary, #6b705c); color: #fff; }

.gift-section { padding: 3rem 5%; }
.gift-section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--clr-text, #4a3728);
    margin-bottom: 0.5rem;
}
.gift-section-subtitle { color: #888; font-size: 0.92rem; margin-bottom: 1.8rem; }
.gift-price-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.gift-price-chip {
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    background: #faf7f2;
    border: 1px solid #eadecc;
    font-size: 0.82rem;
    font-weight: 700;
    color: #6b705c;
    cursor: pointer;
    transition: background 0.2s;
}
.gift-price-chip:hover,
.gift-price-chip.active { background: #6b705c; color: #fff; border-color: #6b705c; }

/* ── Size guide modal ── */
.size-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--clr-primary, #6b705c);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0.4rem 0;
}
.size-guide-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}
.size-guide-modal.open { display: flex; }
.size-guide-inner {
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}
.size-guide-inner h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #4a3728;
    margin-bottom: 1rem;
}
.size-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.size-table th, .size-table td {
    padding: 0.6rem 0.8rem;
    text-align: center;
    border-bottom: 1px solid #f0ebe2;
}
.size-table th { background: #f9f6f1; font-weight: 700; color: #6b705c; }
.size-guide-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #aaa;
    cursor: pointer;
    margin-top: -0.5rem;
}

.sticky-atc-btn:hover { background: #5a5f4e; }

/* Barre livraison gratuite dans sticky ATC */
.sticky-atc-bar {
    flex-direction: column;
    gap: 0;
}

@media (max-width: 768px) {
    .sticky-atc-bar-row {
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding-top: 0.4rem;
    }

    .sticky-atc-shipping-msg {
        font-size: 0.75rem;
        color: #5a4a3a;
        font-weight: 600;
        padding: 0.3rem 0 0.1rem;
        width: 100%;
    }

    .sticky-atc-shipping-msg .shipping-progress-track {
        height: 4px;
        margin-top: 3px;
    }
}

/* ============================================================
   MOBILE FILTER PANEL (slide-in from bottom)
   ============================================================ */

/* Mobile trigger bar — hidden on desktop */
.filter-mobile-bar {
    display: none;
}

/* Mobile filter panel & overlay — hidden on desktop */
.filter-panel,
.filter-panel-overlay {
    display: none;
}

@media (max-width: 768px) {
    /* Hide the desktop horizontal filter bar */
    .filter-bar {
        display: none;
    }

    /* Show the mobile trigger bar */
    .filter-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 5%;
        border-top: 1px solid rgba(158, 181, 168, 0.3);
        border-bottom: 1px solid rgba(158, 181, 168, 0.3);
        background: var(--clr-bg);
        gap: 0.75rem;
    }

    .filter-mobile-open-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: none;
        border: 1px solid rgba(158, 181, 168, 0.5);
        border-radius: 4px;
        padding: 0.55rem 1rem;
        font-family: var(--font-body);
        font-size: 0.9rem;
        color: var(--clr-text-main);
        cursor: pointer;
        flex-shrink: 0;
    }

    .filter-mobile-sort-select {
        flex: 1;
        padding: 0.55rem 0.75rem;
        border: 1px solid rgba(158, 181, 168, 0.5);
        border-radius: 4px;
        background-color: transparent;
        color: var(--clr-text-main);
        font-family: var(--font-body);
        font-size: 0.9rem;
        outline: none;
        cursor: pointer;
        min-width: 0;
    }

    /* Overlay */
    .filter-panel-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 2000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .filter-panel-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

    /* Slide-in panel from bottom */
    .filter-panel {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--clr-bg);
        border-radius: 16px 16px 0 0;
        z-index: 2001;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 70vh;
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .filter-panel.open {
        transform: translateY(0);
    }

    .filter-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 1.5rem 1rem;
        border-bottom: 1px solid var(--clr-accent);
        position: sticky;
        top: 0;
        background: var(--clr-bg);
        z-index: 1;
    }

    .filter-panel-header h3 {
        font-size: 1rem;
        font-family: var(--font-heading);
        font-weight: 600;
        margin: 0;
    }

    .filter-panel-close-btn {
        background: none;
        border: none;
        font-size: 1.4rem;
        cursor: pointer;
        color: var(--clr-text-main);
        line-height: 1;
        padding: 0.25rem 0.25rem 0.25rem 1rem;
    }

    .filter-panel-body {
        padding: 0.5rem 1.5rem 1.5rem;
    }

    .filter-panel-cats {
        list-style: none;
        display: flex;
        flex-direction: column;
    }

    .filter-panel-cats li a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--clr-accent);
        font-size: 1rem;
        color: var(--clr-text-main);
        opacity: 0.7;
        transition: opacity 0.2s;
        text-decoration: none;
    }

    .filter-panel-cats li:last-child a {
        border-bottom: none;
    }

    .filter-panel-cats li a.active,
    .filter-panel-cats li a:hover {
        opacity: 1;
        font-weight: 700;
    }

    .filter-panel-apply-btn {
        display: block;
        width: 100%;
        margin-top: 1.5rem;
        padding: 1rem;
        background: var(--clr-primary);
        color: white;
        border: none;
        border-radius: 6px;
        font-family: var(--font-body);
        font-size: 1rem;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: opacity 0.2s;
    }

    .filter-panel-apply-btn:hover {
        opacity: 0.9;
    }

    /* Filtre prix dans le panneau mobile */
    .filter-price-section {
        margin-top: 1.2rem;
        padding-top: 1rem;
        border-top: 1px solid var(--clr-border, #eadecc);
    }

    .filter-price-label {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--clr-text, #4a3728);
        margin-bottom: 0.6rem;
    }

    .filter-price-inputs {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.6rem;
    }

    .filter-price-inputs input {
        width: 80px;
        padding: 0.5rem 0.6rem;
        border: 1px solid #d1d1d1;
        border-radius: 6px;
        font-size: 0.9rem;
        text-align: center;
    }

    .filter-price-inputs span {
        color: #999;
        font-weight: 700;
    }

    .filter-price-reset {
        background: none;
        border: none;
        color: var(--clr-primary, #6b705c);
        font-size: 0.8rem;
        text-decoration: underline;
        cursor: pointer;
        padding: 0;
    }
}

/* ============================================================
   PRODUCT REVIEWS SECTION (UGC avec photos)
   ============================================================ */

#product-reviews-section {
    padding: 3rem 0;
    border-top: 1px solid var(--clr-accent);
    margin-top: 2rem;
}

#product-reviews-section .reviews-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

#reviews-summary {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.reviews-avg {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.reviews-avg .review-star.filled,
.review-stars .review-star.filled {
    color: #e9a800;
}

.reviews-avg .review-star,
.review-stars .review-star {
    color: #ddd;
    font-size: 1.1rem;
}

.reviews-count {
    color: #888;
    font-size: 0.9rem;
}

/* Reviews list */
#reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.review-card {
    background: var(--clr-wood, #f7f7f7);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.review-stars {
    display: flex;
    gap: 2px;
    font-size: 1rem;
}

.review-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.8rem;
    color: #999;
    margin-left: auto;
}

.review-title {
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.review-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
}

.review-photo {
    margin-top: 0.75rem;
    border-radius: 6px;
    object-fit: cover;
    max-width: 140px;
    height: auto;
    border: 1px solid #eee;
}

.reviews-empty {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

/* Review submission form */
.review-form-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-top: 1px solid var(--clr-accent);
    padding-top: 1.5rem;
}

#review-form .form-group {
    margin-bottom: 1rem;
}

#review-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--clr-text-main);
}

#review-form input[type="text"],
#review-form input[type="email"],
#review-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--clr-text-main);
    background: #fff;
}

#review-form input:focus,
#review-form textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
}

#review-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Star input */
.star-input-container {
    display: flex;
    gap: 4px;
    margin-bottom: 0.25rem;
}

.star-input-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #ddd;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}

.star-input-btn.active {
    color: #e9a800;
}

/* Photo upload */
.review-photo-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px dashed #bbb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
    transition: border-color 0.2s;
}

.review-photo-label:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

#review-photo-input {
    display: none;
}

.review-submit-btn {
    margin-top: 1rem;
    padding: 0.85rem 2rem;
    background: var(--clr-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.review-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.review-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
}

.review-status.success {
    background: #f0faf4;
    color: #2d7a4f;
    border: 1px solid #b2dfdb;
}

.review-status.error {
    background: #fff3f3;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

@media (max-width: 768px) {
    .review-date {
        width: 100%;
        margin-left: 0;
    }
}

/* ============================================================
   WEB PUSH OPT-IN PROMPT
   ============================================================ */

#push-prompt {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--clr-accent);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3000;
    max-width: 420px;
    width: calc(100% - 2rem);
    animation: promptSlideUp 0.4s ease;
}

@keyframes promptSlideUp {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0);   opacity: 1; }
}

.push-prompt-icon {
    font-size: 1.5rem;
    color: var(--clr-primary);
    flex-shrink: 0;
}

.push-prompt-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.push-prompt-text strong {
    font-size: 0.9rem;
}

.push-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}

.push-prompt-yes {
    padding: 0.45rem 1rem;
    background: var(--clr-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.push-prompt-no {
    padding: 0.35rem 0.5rem;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #999;
    cursor: pointer;
    text-align: center;
}

.push-prompt-no:hover {
    color: #666;
}
/* ============================================================
   WISHLIST — bouton cœur
   ============================================================ */
.favorite-btn,
.gallery-action-btn[aria-label="Favorite"] {
    transition: color 0.2s, transform 0.15s;
}
.favorite-btn:hover,
.gallery-action-btn[aria-label="Favorite"]:hover {
    color: #e74c3c;
    transform: scale(1.2);
}
.favorite-btn[aria-pressed="true"] i,
.gallery-action-btn[aria-label="Favorite"][aria-pressed="true"] i {
    color: #e74c3c;
}

/* ============================================================
   MODE CADEAU
   ============================================================ */
.gift-mode-toggle {
    margin-top: 1rem;
    padding: 0.6rem 0;
}
.gift-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--clr-primary);
    user-select: none;
}
.gift-toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--clr-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.gift-toggle-icon { font-size: 1.1rem; }

.gift-panel {
    background: #fdf9f4;
    border: 1px solid #ead9c2;
    border-radius: 10px;
    padding: 1.2rem;
    margin-top: 0.6rem;
    animation: fadeInDown 0.2s ease;
}
.gift-panel-inner { display: flex; flex-direction: column; gap: 1rem; }

.gift-wrap-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    color: #4a3728;
}
.gift-wrap-label input[type="checkbox"] {
    width: 17px; height: 17px; accent-color: var(--clr-primary); cursor: pointer;
}
.gift-wrap-icon { font-size: 1rem; }

.gift-message-group { display: flex; flex-direction: column; gap: 0.4rem; }
.gift-message-group label { font-size: 0.85rem; font-weight: 600; color: #4a3728; }
.gift-message-input {
    width: 100%;
    border: 1px solid #ead9c2;
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: #4a3728;
    background: #fff;
    resize: vertical;
    min-height: 70px;
    box-sizing: border-box;
}
.gift-message-input:focus { outline: none; border-color: var(--clr-primary); }
.gift-message-counter {
    font-size: 0.75rem;
    color: #aaa;
    text-align: right;
    margin-top: -0.2rem;
}
.gift-info {
    font-size: 0.78rem;
    color: #888;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.gift-info::before { content: "ℹ️"; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BÉNÉFICES ÉDUCATIFS
   ============================================================ */
.edu-benefits-section {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f0f7f1 0%, #faf9f6 100%);
    border-radius: 10px;
    border: 1px solid #dceedd;
}
.edu-benefits-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--clr-primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.edu-benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.edu-benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e4f0e6;
}
.edu-benefit-card:last-child { border-bottom: none; }
.edu-benefit-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.edu-benefit-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #3a5a3e;
    display: block;
    margin-bottom: 0.15rem;
}
.edu-benefit-desc { font-size: 0.82rem; color: #5a7a5e; margin: 0; line-height: 1.4; }
