/* ============================================
   Amour Crochet Garden - Premium E-commerce
   ============================================ */

:root {
    /* Palette - refined artisan feel */
    --color-bg: #FDFBF7;
    --color-bg-alt: #F8F5F0;
    --color-surface: #FFFFFF;
    --color-text: #2C2825;
    --color-text-muted: #6B6560;
    --color-text-light: #9A948C;

    --color-accent: #B8864A;
    --color-accent-hover: #9A7039;
    --color-accent-light: #E8DCC8;
    --color-accent-muted: rgba(184, 134, 74, 0.12);

    --color-success: #4A7C59;
    --color-success-bg: #E8F0EB;
    --color-error: #B85450;
    --color-error-bg: #F5E8E7;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(44, 40, 37, 0.06);
    --shadow-md: 0 4px 20px rgba(44, 40, 37, 0.08);
    --shadow-lg: 0 8px 40px rgba(44, 40, 37, 0.12);

    --transition: 0.2s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 72px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { transform: translateY(12px); }
    to { transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

html.no-smooth-scroll {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}


/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 9999;
    transition: top var(--transition);
}

.skip-link:focus {
    top: var(--space-md);
}

/* ========== Header ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(44, 40, 37, 0.06);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-text);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: transparent;
}

.logo-icon {
    font-size: 1.4em;
}

.logo-text {
    line-height: 1.1;
}

@media (max-width: 640px) {
    .logo-text {
        font-size: 1rem;
        max-width: 9.5rem;
    }
    .logo-img {
        width: 40px;
        height: 40px;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-2xl);
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
}

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

.nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    background: var(--color-accent);
    color: white;
    border-radius: 100px;
    transform: scale(0);
    transition: transform var(--transition);
}

.nav-cart-badge.has-items {
    transform: scale(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
    display: none;
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #E8DCC8 0%, #F5EDE3 50%, #EDE4D8 100%);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(253, 251, 247, 0.3) 0%, rgba(253, 251, 247, 0.7) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    padding: var(--space-3xl);
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-accent-muted);
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease-out both;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.1s both;
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.35s both;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: white;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent-muted);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text-muted);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-full {
    width: 100%;
}

/* ========== Sections ========== */
.section {
    padding: var(--space-3xl) 0;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-wide {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.section-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========== Events ========== */
.section-events {
    background: var(--color-bg-alt);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

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

.event-card-featured {
    grid-column: span 2;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg-alt) 100%);
}

.event-card-featured .event-card-title {
    font-size: 1.5rem;
}

.event-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(44, 40, 37, 0.06);
    transition: box-shadow var(--transition), transform var(--transition);
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
.event-card:nth-child(5) { animation-delay: 0.5s; }

.event-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.event-type {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-accent-muted);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    margin-bottom: var(--space-md);
}

.event-card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.event-date::before {
    content: "📅 ";
}

.event-location::before {
    content: "📍 ";
}

.event-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.event-card-large .event-desc {
    margin-top: var(--space-md);
    white-space: pre-wrap;
}

/* ========== Products ========== */
.section-products {
    background: var(--color-bg);
}

/* Product spotlight - vedette homepage */
.product-spotlight {
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.9s ease-out 0.3s both;
}

.product-spotlight-link {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition);
}

.product-spotlight-link:hover {
    box-shadow: var(--shadow-lg);
}

.spotlight-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

.product-spotlight-link:hover .spotlight-image img {
    transform: scale(1.03);
}

.spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 40, 37, 0.4) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-xl);
    opacity: 0;
    transition: opacity var(--transition);
}

.product-spotlight-link:hover .spotlight-overlay {
    opacity: 1;
}

.spotlight-cta {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.spotlight-content {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spotlight-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text);
    margin: var(--space-sm) 0 var(--space-md);
}

.spotlight-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    flex: 1;
}

.spotlight-price {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-accent);
}

.products-showcase {
    margin-top: var(--space-2xl);
}

.showcase-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    letter-spacing: 0.02em;
}

.products-grid-showcase {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.product-card-showcase .product-card-body {
    padding: var(--space-md);
}

.product-card-showcase .product-name {
    font-size: 1.05rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-xl);
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(44, 40, 37, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: fadeInUp 0.5s ease-out both;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

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

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

.product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-bg-alt) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 40, 37, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.product-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 100px;
}

.badge-unavailable {
    background: var(--color-error-bg);
    color: var(--color-error);
}

.product-card-body {
    padding: var(--space-lg);
}

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.product-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* ========== About ========== */
.section-about {
    background: var(--color-bg-alt);
}

.about-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

/* ========== Contact ========== */
.section-contact {
    background: var(--color-bg);
}

.contact-grid {
    max-width: 560px;
    margin: 0 auto;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.social-btn {
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid rgba(44, 40, 37, 0.1);
    transition: all var(--transition);
}

.social-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.contact-form {
    background: var(--color-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-form .field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: var(--space-md);
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid rgba(44, 40, 37, 0.15);
    border-radius: var(--radius-md);
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-full {
    margin-top: var(--space-lg);
}

.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.alert-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.alert-error {
    background: var(--color-error-bg);
    color: var(--color-error);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ========== Cart ========== */
.section-cart {
    min-height: 50vh;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.cart-item-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.cart-item-total {
    font-weight: 600;
    color: var(--color-accent);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.cart-summary {
    max-width: none;
    margin-left: 0;
    padding: var(--space-xl);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.cart-layout {
    display: grid;
    gap: var(--space-2xl);
    align-items: start;
}

@media (min-width: 900px) {
    .cart-layout {
        grid-template-columns: 1.25fr 0.85fr;
    }
}

.cart-totals {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(44, 40, 37, 0.08);
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.cart-totals-total {
    margin-top: 0.75rem;
    font-size: 1.15rem;
}

.cart-shipping-hint {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin: 0.25rem 0 0.75rem;
}

.cart-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 560px) {
    .cart-form-row {
        grid-template-columns: 1fr;
    }
}

.cart-total {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.cart-summary .btn-full {
    margin-bottom: var(--space-md);
}

.cart-contact {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.cart-contact-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin-bottom: var(--space-xs);
}

.cart-contact-hint {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.cart-contact label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: var(--color-text);
}

.cart-contact .optional {
    color: var(--color-text-muted);
    font-weight: normal;
}

.cart-contact input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: var(--space-md);
    border: 1px solid var(--color-border, #ddd);
    border-radius: 8px;
    font: inherit;
    background: var(--color-bg, #fff);
}

.cart-contact input:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
}

.cart-continue {
    display: block;
    text-align: center;
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.cart-continue:hover {
    text-decoration: underline;
}

.cart-empty {
    text-align: center;
    padding: var(--space-3xl);
    animation: fadeInUp 0.6s ease-out;
}

.cart-empty .cart-empty-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: var(--space-lg);
    display: block;
}

.cart-empty p {
    margin-bottom: var(--space-lg);
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.modal-add-form {
    margin-bottom: var(--space-md);
}

.modal-contact-link {
    display: block;
    text-align: center;
    margin-top: var(--space-sm);
}

/* ========== Checkout success ========== */
.section-success {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.success-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    background: var(--color-success-bg);
    color: var(--color-success);
    font-size: 2.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.success-content {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.success-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.success-message {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.success-reference {
    margin: calc(-1 * var(--space-md)) 0 var(--space-xl);
    color: var(--color-text);
    font-size: 0.95rem;
}

/* ========== Page hero (inner pages) ========== */
.page-hero {
    padding-top: calc(var(--header-height) + var(--space-3xl));
    padding-bottom: var(--space-2xl);
}

.page-hero-small {
    background: var(--color-bg-alt);
    border-bottom: 1px solid rgba(44, 40, 37, 0.06);
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    animation: fadeInUp 0.5s ease-out both;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

/* ========== Catalog / Filters ========== */
.section-catalog {
    padding-top: var(--space-2xl);
}

.container-wide {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.filters-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
}

.filters-form {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.filters-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.filter-group {
    margin-bottom: var(--space-lg);
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.filter-group select,
.filter-group input[type="number"],
.filter-group input[type="text"],
.filter-group input[type="date"] {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: inherit;
    border: 1px solid rgba(44, 40, 37, 0.15);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-accent-muted);
}

.filter-group-checkbox label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.filter-group-checkbox input {
    width: auto;
}

.filters-inline {
    margin-bottom: var(--space-2xl);
}

.filters-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
}

.filters-inline select,
.filters-inline input {
    padding: var(--space-sm) var(--space-md);
    font-family: inherit;
    border: 1px solid rgba(44, 40, 37, 0.15);
    border-radius: var(--radius-md);
}

.products-grid-catalog {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Bento grid - 2 premiers produits en format portrait (plus grands) */
.products-grid-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
}

.products-grid-bento .product-card-large {
    grid-column: span 1;
}

.products-grid-bento .product-card-large .product-image-wrap {
    aspect-ratio: 3/4;
}

.products-grid-bento .product-card-large .product-name {
    font-size: 1.2rem;
}

.products-grid-bento .product-card-large .product-card-body {
    padding: var(--space-lg);
}

.catalog-header {
    margin-bottom: var(--space-lg);
}

.catalog-count {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ========== Modal ========== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.modal[hidden] {
    display: none;
}

.modal.is-opening .modal-backdrop { animation: fadeIn 0.25s ease-out; }
.modal.is-opening .modal-content { animation: scaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal.is-closing .modal-backdrop { animation: fadeIn 0.2s ease-out reverse; }
.modal.is-closing .modal-content { animation: scaleIn 0.2s ease-in reverse; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(44, 40, 37, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    z-index: 1;
    transition: color var(--transition), background var(--transition);
}

.modal-close:hover {
    color: var(--color-text);
    background: white;
}

.modal-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
}

.modal-image-wrap {
    min-height: 320px;
    aspect-ratio: 1;
    background: var(--color-bg-alt);
}

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

.modal-placeholder {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-bg-alt) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.modal-info {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info .product-category {
    margin-bottom: var(--space-sm);
}

.modal-product-name {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.modal-product-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    flex: 1;
    margin-bottom: var(--space-xl);
}

.modal-product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-xl);
}

.modal-product-stock {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: var(--space-md) var(--space-xl);
    background: var(--color-text);
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

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

.toast-success { background: var(--color-success); }
.toast-error { background: var(--color-error); }

/* ========== Empty state ========== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-3xl);
    color: var(--color-text-muted);
}

.empty-state-full {
    padding: var(--space-3xl) var(--space-xl);
}

/* ========== Footer ========== */
.footer {
    background: var(--color-text);
    color: var(--color-text-light);
    padding: var(--space-2xl) var(--space-xl);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

.footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: var(--space-lg);
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f3ebe1;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-social-link:hover {
    border-color: var(--color-accent);
    color: #fff;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.footer-nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: white;
}

.footer-legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    margin-bottom: var(--space-lg);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.78rem;
}

.footer-legal a:hover {
    color: var(--color-accent-light);
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .product-spotlight-link {
        grid-template-columns: 1fr;
    }

    .spotlight-content {
        padding: var(--space-xl);
    }

    .spotlight-title {
        font-size: 1.5rem;
    }

    .container-wide {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }

    .products-grid-bento {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .products-grid-bento .product-card-large .product-image-wrap {
        aspect-ratio: 1;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .events-grid-home {
        grid-template-columns: 1fr;
    }

    .event-card-featured {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        display: flex;
        align-items: center;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 998;
        background: rgba(44, 40, 37, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .nav-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        z-index: 999;
        background: var(--color-bg);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: var(--space-lg) 0;
        display: none;
        box-shadow: 0 8px 24px rgba(44, 40, 37, 0.15);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        padding: var(--space-md) var(--space-xl);
        min-height: 48px;
        border-bottom: 1px solid rgba(44, 40, 37, 0.06);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-cart {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .product-spotlight-link {
        grid-template-columns: 1fr;
    }

    .spotlight-image {
        aspect-ratio: 4/3;
    }

    .spotlight-content {
        padding: var(--space-lg);
    }

    .spotlight-title {
        font-size: 1.35rem;
    }

    .spotlight-desc {
        font-size: 0.9rem;
        margin-bottom: var(--space-md);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

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

    .products-grid-catalog {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

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

    .product-card-large .product-name {
        font-size: 1.1rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .events-grid-home {
        grid-template-columns: 1fr;
    }

    .event-card-featured {
        grid-column: span 1;
    }
}

/* ========== Checkout page ========== */
.page-checkout {
    background: var(--color-bg);
}

.checkout-page {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-3xl);
    overflow: hidden;
}

.checkout-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 8% 18%, rgba(232, 220, 200, 0.55), transparent 60%),
        radial-gradient(ellipse 55% 45% at 92% 8%, rgba(184, 134, 74, 0.12), transparent 55%),
        linear-gradient(180deg, #faf6f0 0%, var(--color-bg) 48%, #f3ebe1 100%);
}

.checkout-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.checkout-shell {
    position: relative;
    z-index: 1;
    max-width: 1100px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: var(--space-2xl);
    animation: fadeIn 0.5s ease both;
}

.checkout-step {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.checkout-step.is-active {
    color: var(--color-text);
    font-weight: 600;
}

.checkout-step-num {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 1px solid rgba(44, 40, 37, 0.18);
    background: rgba(255, 255, 255, 0.55);
}

.checkout-step.is-active .checkout-step-num {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.checkout-step-sep {
    width: 2rem;
    height: 1px;
    background: rgba(44, 40, 37, 0.15);
}

.checkout-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto var(--space-2xl);
    animation: fadeInUp 0.55s ease both;
}

.checkout-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.checkout-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.checkout-lead {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.checkout-alert {
    max-width: 720px;
    margin: 0 auto var(--space-xl);
}

.checkout-grid {
    display: grid;
    gap: var(--space-xl);
    align-items: start;
}

@media (min-width: 960px) {
    .checkout-grid {
        grid-template-columns: 1.35fr 0.9fr;
        gap: var(--space-2xl);
    }
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    animation: fadeInUp 0.6s ease 0.08s both;
}

.checkout-panel {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 134, 74, 0.14);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: 0 12px 40px rgba(44, 40, 37, 0.05);
}

.checkout-panel-head {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(44, 40, 37, 0.06);
}

.checkout-panel-head h2 {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.checkout-panel-head p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.checkout-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.field-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 640px) {
    .field-pair {
        grid-template-columns: 1fr;
    }
}

.field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.45rem;
}

.field-optional {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    opacity: 0.75;
}

.field input {
    width: 100%;
    padding: 0.95rem 1.05rem;
    border: 1px solid rgba(44, 40, 37, 0.12);
    border-radius: 14px;
    background: rgba(253, 251, 247, 0.9);
    color: var(--color-text);
    font: inherit;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.field input::placeholder {
    color: var(--color-text-light);
}

.field input:hover {
    border-color: rgba(184, 134, 74, 0.35);
}

.field input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(184, 134, 74, 0.14);
}

.field-postal {
    max-width: none;
}

.delivery-method-offer {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(44, 40, 37, 0.06);
}

.delivery-method-offer-head h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.delivery-method-offer-head p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.delivery-method-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.delivery-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 1.05rem;
    border: 1px solid rgba(44, 40, 37, 0.12);
    border-radius: 14px;
    background: rgba(253, 251, 247, 0.9);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.delivery-option:hover {
    border-color: rgba(184, 134, 74, 0.35);
}

.delivery-option:has(input:checked) {
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(184, 134, 74, 0.14);
}

.delivery-option input {
    margin-top: 0.2rem;
    accent-color: var(--color-accent);
}

.delivery-option-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.delivery-option-title {
    font-weight: 600;
    color: var(--color-text);
}

.delivery-option-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.delivery-method-hint {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    color: var(--color-accent);
    line-height: 1.45;
}

.checkout-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-sm);
}

.checkout-back {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.checkout-back:hover {
    color: var(--color-accent);
}

.checkout-submit {
    min-width: 240px;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(184, 134, 74, 0.28);
}

.checkout-summary {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
    background: linear-gradient(165deg, #2c2825 0%, #3d342c 100%);
    color: #f7f1e8;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.65s ease 0.14s both;
}

.checkout-summary-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.checkout-summary-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(247, 241, 232, 0.12);
}

.checkout-summary-item {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.checkout-summary-thumb {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-summary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-summary-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkout-summary-info {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    width: 100%;
    font-size: 0.92rem;
}

.checkout-summary-name {
    color: rgba(247, 241, 232, 0.9);
}

.checkout-summary-line {
    white-space: nowrap;
    font-weight: 500;
}

.checkout-summary-totals {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    color: rgba(247, 241, 232, 0.75);
}

.checkout-summary-row.is-total {
    margin-top: 0.45rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(247, 241, 232, 0.12);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
}

.checkout-summary-note {
    margin-top: var(--space-lg);
    font-size: 0.82rem;
    color: rgba(247, 241, 232, 0.65);
    line-height: 1.45;
}

.checkout-summary-note.is-free {
    color: #d4e8d8;
}

@media (max-width: 959px) {
    .checkout-summary {
        position: static;
        order: -1;
    }

    .checkout-grid {
        display: flex;
        flex-direction: column;
    }
}

/* ========== Legal / FAQ ========== */
.section-legal {
    padding-top: var(--space-xl);
}

.legal-wrap {
    display: grid;
    gap: var(--space-2xl);
    align-items: start;
}

@media (min-width: 900px) {
    .legal-wrap {
        grid-template-columns: 1fr 240px;
    }
}

.legal-content {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    line-height: 1.7;
}

.legal-content h2 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
    margin: var(--space-xl) 0 var(--space-md);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.25rem;
    margin-bottom: var(--space-lg);
}

.legal-content a {
    color: var(--color-accent);
}

.faq-item {
    border: 1px solid rgba(44, 40, 37, 0.08);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--color-bg-alt);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 560;
    color: var(--color-text);
}

.faq-item p {
    margin: 0.75rem 0 0.25rem;
}

.legal-nav {
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-bg-alt);
}

.legal-nav h2 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.legal-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    padding: 0.35rem 0;
}

.legal-nav a:hover,
.legal-nav a.is-active {
    color: var(--color-accent);
}

/* ========== Cookie banner (RGPD) ========== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    padding: var(--space-md);
    pointer-events: none;
}

.cookie-banner-inner {
    pointer-events: auto;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-xl);
    background: rgba(44, 40, 37, 0.96);
    color: #f7f1e8;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(232, 220, 200, 0.12);
    animation: slideUp 0.35s ease both;
}

.cookie-banner-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.cookie-banner-text {
    font-size: 0.9rem;
    color: rgba(247, 241, 232, 0.78);
    max-width: 56ch;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--color-accent-light);
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.cookie-btn {
    min-width: 7.5rem;
}

.cookie-banner .btn-outline {
    border-color: rgba(247, 241, 232, 0.28);
    color: #f7f1e8;
}

.cookie-banner .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cookie-modal[hidden],
.cookie-banner[hidden] {
    display: none !important;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(20, 16, 12, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.cookie-modal-panel {
    position: relative;
    width: min(440px, 100%);
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.25s ease both;
}

.cookie-modal-panel h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.cookie-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
}

.cookie-pref {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    align-items: center;
    padding: 0.9rem 0;
    border-top: 1px solid rgba(44, 40, 37, 0.08);
}

.cookie-pref p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}

.cookie-pref-badge {
    font-size: 0.75rem;
    color: var(--color-accent);
    white-space: nowrap;
}

.cookie-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ========== Hero image: add your image ========== */
/* When you have your hero image, add to static/img/hero.jpg and use: */
/* .hero-bg-image[data-hero-image] { background-image: url('/static/img/hero.jpg'); } */
