/* Game Town — base styles (tokens in tokens.css; bento layer in bento.css) */

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--primary-hover); }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Header */
.app-header {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(15,23,42,0.06), 0 1px 0 rgba(255,255,255,0.8) inset;
    padding: 0.75rem 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 64px;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0.9;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    transition: opacity 0.2s ease;
    justify-self: start;
}
.logo:hover { opacity: 0.9; }

.logo img {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    border-radius: var(--radius);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-self: center;
}

.header-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    justify-self: end;
}

.main-nav > a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(255,255,255,0.5) inset;
    text-shadow: 0 1px 1px rgba(255,255,255,0.8), 0 1px 2px rgba(0,0,0,0.06);
}
.main-nav > a:hover {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border-color: color-mix(in srgb, var(--primary) 28%, transparent);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1), 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent);
}
.main-nav > a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-cart, .nav-fav {
    position: relative;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--text);
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-cart:hover, .nav-fav:hover {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.nav-cart .badge, .nav-fav .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: background 0.2s ease;
}
.nav-toggle:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: background 0.2s ease;
}
.nav-toggle:hover span { background: var(--primary); }

@media (max-width: 768px) {
    .app-header {
        padding: 0.5rem 1rem;
        min-height: 56px;
        grid-template-columns: auto 1fr auto;
    }
    .logo img { height: 40px; }
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 1rem;
        gap: 0;
        box-shadow: 0 8px 24px rgba(15,23,42,0.12);
        border-bottom: 1px solid var(--border);
        justify-self: stretch;
    }
    .main-nav.open {
        display: flex;
    }
    .main-nav > a {
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }
    .main-nav > a:last-of-type { border-bottom: none; }
    .nav-toggle { display: flex; }
}

/* Main */
.app-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1.5rem;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-logo {
    display: inline-block;
    margin-bottom: 1rem;
    opacity: 0.95;
    transition: opacity 0.2s;
}
.hero-logo:hover { opacity: 1; }
.hero-logo img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

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

.hero-promo code {
    background: var(--bg-elevated);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.trust-section-logo {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.trust-section-logo:hover { opacity: 1; }
.trust-section-logo img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.cta-section-logo {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.cta-section-logo:hover { opacity: 1; }
.cta-section-logo img {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.hero-visual img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    box-shadow: 0 4px 20px rgba(15,23,42,0.15);
}

@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .hero-content h1 { font-size: 1.5rem; }
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--neutral-dark); }

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-secondary:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Promo banner */
.promo-banner, .promo-banner-large {
    background: linear-gradient(135deg, var(--black) 0%, var(--neutral-dark) 50%, var(--accent) 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    text-align: center;
}

.promo-banner-large { padding: 1.5rem; font-size: 1.1rem; }

.promo-banner code, .promo-banner-large code {
    background: rgba(255,255,255,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Sections */
.section-products {
    margin-bottom: 3rem;
}

.section-products h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.section-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
}

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--neutral-dark);
}

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

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

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

.badge-sale {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}

.product-card h3 {
    font-size: 1rem;
    padding: 1rem 1rem 0;
    line-height: 1.3;
}

.product-platform {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.25rem 1rem 0;
}

.product-short-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.25rem 1rem 0;
    line-height: 1.4;
}

.product-card-footer {
    padding: 1rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.product-price .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.old-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-add-cart:hover { background: var(--primary-hover); }

.btn-add-fav {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s;
}

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

.btn-add-fav.in-favorites,
.product-card.in-favorites .btn-add-fav {
    color: var(--accent);
    border-color: var(--accent);
}
.btn-add-fav.in-favorites svg,
.product-card.in-favorites .btn-add-fav svg {
    fill: currentColor;
}
.btn-add-fav.in-favorites svg path,
.product-card.in-favorites .btn-add-fav svg path {
    fill: currentColor;
    stroke: none;
}

/* CTA section */
.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.cta-section h2 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.cta-section p { margin-bottom: 1.5rem; color: var(--text-muted); }

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-gallery {
    position: relative;
}

.product-gallery > img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    display: none;
}

.product-gallery > img.active { display: block; }

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.gallery-thumbs .thumb {
    width: 60px;
    height: 45px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    background: none;
}

.gallery-thumbs .thumb.active { border-color: var(--primary); }

.gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.product-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-price-block .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.product-description {
    margin: 1.5rem 0;
    color: var(--text-muted);
}

.product-params {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
}

.product-params dt {
    font-weight: 600;
    color: var(--text-muted);
}

.product-params dd {
    margin: 0;
}

.product-actions-detail {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.out-of-stock { color: var(--accent); margin-top: 1rem; }

.cta-product {
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    text-align: center;
}

@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; }
}

/* Cart & Favorites pages */
.page-cart, .page-favorites, .page-checkout, .page-gift, .page-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-about-logo, .page-contact-logo, .page-gift-logo, .page-promo-logo {
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.page-about-logo:hover, .page-contact-logo:hover, .page-gift-logo:hover, .page-promo-logo:hover { opacity: 1; }
.page-about-logo img, .page-contact-logo img, .page-gift-logo img, .page-promo-logo img {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    border-radius: var(--radius);
}

.page-cart h1, .page-favorites h1, .page-checkout h1, .page-gift h1, .page-content h1 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.page-desc, .lead {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.cart-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info h3 { font-size: 1rem; }

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

.btn-qty, .btn-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
}

.btn-qty:hover, .btn-remove:hover { border-color: var(--primary); }

.cart-summary {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
}

.cart-total { font-size: 1.25rem; }

.cart-summary .btn-primary { margin-top: 1rem; }

@media (max-width: 600px) {
    .cart-item { grid-template-columns: 60px 1fr; }
    .cart-item-actions { grid-column: 1 / -1; }
}

/* Favorites page — Ma liste de nostalgie */
.page-favorites { max-width: 1100px; }

.fav-hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, transparent) 0%, color-mix(in srgb, var(--accent) 6%, transparent) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.fav-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--black);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.fav-pixel-heart {
    color: var(--accent);
    font-size: 1rem;
}

.cart-empty {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.cart-empty-logo {
    display: inline-block;
    margin-bottom: 1rem;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.cart-empty-logo:hover { opacity: 1; }
.cart-empty-logo img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.fav-hero-logo {
    display: block;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.fav-hero-logo:hover { opacity: 1; }
.fav-hero-logo img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.fav-empty {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.fav-empty-icon {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 1rem;
}

.fav-empty-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.fav-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.fav-count { color: var(--text-muted); margin: 0; }

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

.fav-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.fav-card:hover {
    box-shadow: var(--shadow-elevated);
    border-color: var(--neutral-dark);
}

.fav-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.fav-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-elevated);
}

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

.fav-card-body {
    padding: 0.75rem;
    flex: 1;
}

.fav-card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fav-card-platform {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.fav-card-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.fav-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

.fav-card-actions .btn-sm {
    flex: 1;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
}

.fav-card-actions .btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--accent);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.fav-card-actions .btn-icon:hover {
    background: rgba(234,88,12,0.1);
    color: var(--accent);
}

.fav-card-actions .btn-icon.in-favorites,
.fav-card .btn-remove-fav {
    color: var(--accent);
}

@media (max-width: 480px) {
    .fav-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
    .fav-card-body h3 { font-size: 0.9rem; }
}

/* Checkout */
.checkout-empty {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.checkout-empty p { margin-bottom: 1rem; color: var(--text-muted); }

.checkout-form {
    position: relative;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.checkout-form .newsletter-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.checkout-form-error {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    border-radius: var(--radius);
    font-size: 0.9rem;
    line-height: 1.45;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
}

.checkout-summary { margin-bottom: 1.5rem; }

.checkout-email-group {
    margin-bottom: 1.5rem;
}

.checkout-promo-group {
    margin-bottom: 1.5rem;
}

.checkout-promo-group .field-hint code {
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    background: var(--bg-elevated);
    border-radius: 4px;
}

.checkout-summary-line {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.checkout-discount-line {
    color: var(--accent, #22c55e);
}

.field-hint {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Checkout — paiement */
.checkout-payment {
    margin: 0 0 1.5rem;
    padding: 0;
    border: none;
}

.checkout-payment > legend {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    padding: 0;
}

.checkout-payment-intro {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
}

.payment-method-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.payment-method-option:has(input:checked) {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, var(--bg-elevated));
}

.payment-method-option input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.payment-method-label {
    font-weight: 500;
}

.payment-method-label small {
    display: block;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.btn-submit { width: 100%; padding: 1rem; }

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 2px solid var(--primary);
    max-width: 400px;
    width: 100%;
}

.modal-content h2 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
    color: var(--primary);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* Gift page */
.gift-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.gift-hero img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
}

@media (max-width: 768px) { .gift-hero { grid-template-columns: 1fr; } }

.gift-grid-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 2rem 0 0.35rem;
    color: var(--primary);
}

.gift-grid-lead {
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    line-height: 1.6;
    max-width: 42rem;
}

.gift-after-grid {
    margin-top: 2.5rem;
}

.gift-page-faq {
    margin-top: 0.5rem;
}

/* About page */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.about-hero-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

.about-hero-text h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-hero-text p { margin-bottom: 1rem; }

.about-address {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .about-hero { grid-template-columns: 1fr; }
    .about-hero-image { order: -1; }
}

/* Content pages */
.content-block {
    margin-bottom: 2rem;
}

.content-block h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    padding: 1.5rem;
    border-radius: var(--radius);
    z-index: 9998;
    box-shadow: var(--shadow);
    transition: transform 0.3s, opacity 0.3s;
}

.cookie-popup.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
}

.cookie-content h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Promo banner — welcome offer (first order) */
.promo-banner-block {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4f46e5 100%);
    color: #fff;
    padding: 0.6rem 1rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(79, 70, 229, 0.25);
    position: relative;
    z-index: 100;
}

.promo-banner-block.hidden {
    display: none;
}

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

.promo-banner-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.promo-banner-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.promo-banner-text code {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.promo-banner-text a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.promo-banner-text a:hover {
    color: #fef3c7;
}

.promo-banner-cta {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.promo-banner-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.promo-banner-close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.promo-banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .promo-banner-inner {
        flex-direction: column;
        gap: 0.5rem;
        padding-right: 2.5rem;
    }
    .promo-banner-close {
        top: 0.5rem;
        right: 0.5rem;
        transform: none;
    }
}

.cookie-content a:hover { text-decoration: none; }

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-actions {
        justify-content: flex-end;
    }
}

/* Toast */
#retro-toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.2s, opacity 0.2s;
}

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

/* Footer */
.app-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.trust-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.footer-address {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-newsletter {
    max-width: 400px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
}

.footer-newsletter h4 { margin-bottom: 0.5rem; }

.footer-newsletter p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Honeypot anti-spam (laisser vide) */
.newsletter-form .newsletter-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-form .btn-primary { width: 100%; }
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
}

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

.footer-logo {
    display: inline-block;
}

.footer-logo img {
    height: 60px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    border-radius: 10px;
}

.footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }

.footer-legal {
    text-align: center;
    padding: 1.5rem;
    margin: 0 -1.5rem -2rem;
    background: var(--black);
    color: rgba(255,255,255,0.9);
}

.footer-legal .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-legal a { color: rgba(255,255,255,0.9); }
.footer-legal a:hover { color: #fff; }

.payment-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
}

.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-logos img {
    height: 32px;
    width: auto;
    max-width: 56px;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.payment-logos img:hover {
    opacity: 1;
}
.footer-legal .copyright { font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.copyright { font-size: 0.9rem; color: var(--text-muted); }

/* Legal content */
.legal-content h2 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p { margin-bottom: 0.75rem; }

.legal-content ul {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
    line-height: 1.55;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

/* FAQ */
.page-faq .faq-list { margin-top: 1.5rem; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.faq-item summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
}

.faq-item p {
    padding: 0 1rem 1rem;
    margin: 0;
    color: var(--text-muted);
}

/* Trust section */
/* Boutique hero block */
.boutique-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.boutique-hero-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.boutique-hero-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.boutique-hero-image img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .boutique-hero { grid-template-columns: 1fr; }
    .boutique-hero-image { order: -1; }
}

.trust-section {
    margin-bottom: 2rem;
}

.trust-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.trust-item {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.trust-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.trust-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, var(--black) 0%, var(--neutral-dark) 100%);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-item strong { display: block; margin-bottom: 0.25rem; }

.trust-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Reviews */
.reviews-section {
    margin-bottom: 2rem;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-elevated) 50%, var(--bg-dark) 100%);
    border-radius: var(--radius);
}

.reviews-section h2,
.reviews-block h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--primary);
}

.reviews-intro {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.reviews-section .visually-hidden,
.reviews-block .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reviews carousel */
.reviews-slider {
    /* --reviews-count défini sur la page d’accueil (nombre d’avis) */
    --reviews-count: 8;
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 2.75rem;
    outline: none;
}

.reviews-slider:focus-visible {
    box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--primary);
    border-radius: var(--radius);
}

.reviews-slider-viewport {
    overflow: hidden;
    border-radius: var(--radius);
}

.reviews-slider-track {
    display: flex;
    width: calc(var(--reviews-count) * 100%);
    transition: transform 0.45s ease;
    will-change: transform;
}

.reviews-slider .review-card.reviews-slide {
    flex: 0 0 calc(100% / var(--reviews-count));
    width: calc(100% / var(--reviews-count));
    min-width: 0;
    box-sizing: border-box;
}

.reviews-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--primary);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.reviews-slider-nav:hover {
    background: rgba(5, 150, 105, 0.12);
    border-color: var(--primary);
}

.reviews-slider-nav:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.reviews-slider-prev {
    left: 0;
}

.reviews-slider-next {
    right: 0;
}

.reviews-slider-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.reviews-slider-dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.reviews-slider-dot:hover,
.reviews-slider-dot:focus-visible {
    background: var(--text-muted);
    outline: none;
}

.reviews-slider-dot:focus-visible {
    box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--primary);
}

.reviews-slider-dot.active {
    background: var(--primary);
    transform: scale(1.25);
}

@media (max-width: 520px) {
    .reviews-slider {
        padding: 0 2.25rem;
    }

    .reviews-slider-nav {
        width: 2rem;
        height: 2rem;
        font-size: 1.15rem;
    }
}

.review-card {
    position: relative;
    padding: 1.5rem 1.5rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
}

.review-stars {
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.review-stars .star-empty {
    color: var(--border);
}

.review-quote {
    margin: 0 0 1rem;
    padding: 0;
    border: none;
}

.review-quote p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

.review-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.review-meta cite {
    font-style: normal;
    font-weight: 600;
    color: var(--text);
}

.review-location {
    color: var(--text-muted);
}

.review-location::before {
    content: '·';
    margin-right: 0.5rem;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.review-date::before {
    content: '·';
    margin-right: 0.5rem;
}

/* Home FAQ — grouped single-column layout (v2 tokens) */
.home-faq {
    position: relative;
    margin: 2.5rem 0 var(--space-8, 2rem);
    padding: 0;
    background: var(--surface);
    border-radius: var(--radius-xl, 28px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.home-faq-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #6366f1 50%, var(--accent) 100%);
}

.home-faq-inner {
    position: relative;
    z-index: 1;
    max-width: 52rem;
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2rem);
}

.home-faq-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.home-faq-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-muted);
    border: 1px solid rgba(79, 70, 229, 0.22);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}

.home-faq-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 0.65rem;
}

.home-faq-lead {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--text-muted);
    max-width: 40rem;
    margin: 0 auto;
    line-height: 1.65;
}

.home-faq-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.home-faq-stat {
    padding: 1rem 0.85rem;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
}

.home-faq-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.home-faq-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-top: 0.35rem;
    display: block;
}

.home-faq-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.home-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.home-faq-group {
    margin: 0;
}

.home-faq-group-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(79, 70, 229, 0.15);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.home-faq-group-title::before {
    content: '';
    width: 4px;
    height: 1.2em;
    background: linear-gradient(180deg, var(--primary), #6366f1);
    border-radius: 2px;
    flex-shrink: 0;
}

.home-faq-group-items {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.home-faq-load-wrap {
    display: flex;
    justify-content: center;
}

.home-faq-load-more {
    min-height: 48px;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-faq-load-more:hover {
    border-color: rgba(79, 70, 229, 0.35);
}

/* .btn-* can override [hidden] display */
.home-faq-load-more[hidden] {
    display: none !important;
}

.home-faq-load-wrap[hidden] {
    display: none !important;
}

.home-faq-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(135deg, var(--primary-muted) 0%, var(--accent-muted) 100%);
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: var(--radius-lg);
}

.home-faq-help-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: var(--radius-md);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.home-faq-help-text {
    flex: 1 1 220px;
    min-width: 0;
}

.home-faq-help-text strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.home-faq-help-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.home-faq-help-cta {
    flex-shrink: 0;
    align-self: center;
    text-decoration: none;
}

.home-faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-faq-item:hover {
    border-color: rgba(79, 70, 229, 0.28);
    box-shadow: var(--shadow-md);
}

.home-faq-item[open] {
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
}

.home-faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--neutral-dark);
    line-height: 1.35;
}

.home-faq-item summary::-webkit-details-marker {
    display: none;
}

.home-faq-item summary::after {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    margin-top: -4px;
}

.home-faq-item[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.home-faq-item summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 10px;
}

.home-faq-answer {
    padding: 0 1.2rem 1.1rem;
    border-top: 1px solid var(--border);
    margin-top: 0;
}

.home-faq-answer p {
    margin: 0.85rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.home-faq-answer a {
    font-weight: 500;
    color: var(--primary);
}

.home-faq-answer a:hover {
    color: var(--primary-hover);
}

.home-faq-answer code {
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 0.88em;
    font-weight: 600;
    background: var(--surface-2);
    color: var(--neutral-dark);
    padding: 0.12em 0.45em;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.home-faq-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 0.25rem;
}

.home-faq-more.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
}

@media (max-width: 720px) {
    .home-faq-stats-row {
        grid-template-columns: 1fr;
    }

    .home-faq-help {
        flex-direction: column;
        text-align: center;
    }

    .home-faq-help-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .home-faq-item summary {
        font-size: 0.95rem;
        padding: 0.95rem 1rem;
    }

    .home-faq-answer {
        padding: 0 1rem 1rem;
    }
}

/* Category page */
.page-category { margin-bottom: 2rem; }

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 3rem 2rem;
}

.error-404 h1 { margin-bottom: 1rem; }
