:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
}

* { box-sizing: border-box; }
body { color: var(--text); font-family: 'Segoe UI', system-ui, sans-serif; }

/* ── HEADER ─────────────────────────────────────────────────────────── */
.site-header { background: #fff; border-bottom: 1px solid var(--border); z-index: 100; }
.site-header .navbar-brand { font-size: 1.3rem; color: var(--primary); }
.site-header .nav-link { color: var(--text); font-weight: 500; }
.site-header .nav-link:hover { color: var(--primary); }
.btn-icon { background: none; border: none; padding: 6px 10px; color: var(--text); font-size: 1.15rem; }
.btn-icon:hover { color: var(--primary); }
.promo-bar { background: var(--primary); color: #fff; font-size: .8rem; }
.promo-bar a { color: #fff; }

/* ── HERO ────────────────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
    border-bottom: 1px solid var(--border);
}

/* ── PRODUCT CARDS ───────────────────────────────────────────────────── */
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.product-img-wrap {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light);
}
.product-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #cbd5e1; font-size: 2rem;
}
.product-info { padding: .75rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .25rem; }
.product-title { font-size: .875rem; font-weight: 600; margin-bottom: .5rem; flex: 1; }
.product-title a { color: var(--text); text-decoration: none; }
.product-title a:hover { color: var(--primary); }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1rem; font-weight: 700; color: var(--primary); }
.btn-add-cart {
    background: var(--primary); color: #fff; border: none;
    border-radius: 8px; padding: .35rem .6rem;
    transition: background .15s;
}
.btn-add-cart:hover { background: var(--primary-dark); color: #fff; }

/* ── PAGE PRODUIT ────────────────────────────────────────────────────── */
.product-gallery img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: zoom-in;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb {
    width: 72px; height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .15s;
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--primary); }

.variant-btn {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: .35rem .8rem;
    font-size: .875rem;
    cursor: pointer;
    transition: all .15s;
    background: #fff;
}
.variant-btn:hover,
.variant-btn.selected { border-color: var(--primary); color: var(--primary); background: #ede9fe; }

/* Étoiles avis */
.stars-display { color: #f59e0b; }

/* ── PANIER ──────────────────────────────────────────────────────────── */
.cart-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.cart-item:last-child { border-bottom: none; }
.qty-input { width: 60px; text-align: center; }

/* ── CHECKOUT ────────────────────────────────────────────────────────── */
.order-summary { background: var(--bg-light); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.step-indicator { display: flex; gap: 1rem; margin-bottom: 2rem; }
.step { flex: 1; text-align: center; padding: .5rem; border-radius: 8px; font-size: .8rem; }
.step.active { background: var(--primary); color: #fff; font-weight: 600; }
.step.done { background: #dcfce7; color: #166534; }
.step.pending { background: #f1f5f9; color: var(--muted); }

/* ── BREADCRUMB ──────────────────────────────────────────────────────── */
.breadcrumb { font-size: .85rem; }
.breadcrumb-item a { color: var(--muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--primary); }

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.site-footer { font-size: .9rem; }
.site-footer a:hover { color: #fff !important; }

/* ── TOAST PANIER ────────────────────────────────────────────────────── */
.cart-toast {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    background: #0f172a; color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 10px;
    font-size: .9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all .25s;
    z-index: 9999;
    pointer-events: none;
}
.cart-toast.show { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .product-title { font-size: .8rem; }
    .product-price { font-size: .9rem; }
    .hero-section h1 { font-size: 1.6rem; }
}
