/* Boutique — feuille de style du site client (complète Bootstrap 5 et banners.css)
 * Mobile-first. Charte EASY SHOP : Noir Ébène, Or, Crème ; Lora (titres) + Poppins (texte).
 * Les couleurs viennent de Paramètres › Apparence via --brand-* (partials/theme-vars). */
:root {
    --shop-primary: var(--brand-primary, #151311);
    --shop-primary-rgb: var(--brand-primary-rgb, 21, 19, 17);
    --shop-primary-dark: color-mix(in srgb, var(--shop-primary) 80%, #000);
    --shop-gold: var(--brand-accent, #b0802b);
    --shop-gold-text: color-mix(in srgb, var(--shop-gold) 78%, #000); /* or assombri : lisible sur fond clair */
    --shop-primary-soft: color-mix(in srgb, var(--shop-gold) 13%, #fff);
    --shop-dark: var(--brand-dark, #151311);
    --shop-ink: #151311;
    --shop-muted: #6b5d4b;
    --shop-line: #ebe2d3;
    --shop-bg: #f7f2ea;
    --shop-radius: 1rem;
    --shop-shadow: 0 .35rem 1.25rem rgba(60, 40, 10, .08);
    --shop-shadow-sm: 0 .15rem .6rem rgba(60, 40, 10, .08);
    --mobile-nav-h: 4rem;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --bs-primary: var(--shop-primary);
    --bs-primary-rgb: var(--shop-primary-rgb);
    --bs-link-color: var(--shop-gold-text);
    --bs-link-hover-color: var(--shop-ink);
    --bs-heading-font-family: "Lora", Georgia, serif;
    --bs-body-font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-border-radius: .75rem;
}

html { -webkit-text-size-adjust: 100%; }
body {
    background: var(--shop-bg);
    color: var(--shop-ink);
    font-family: var(--bs-body-font-family);
    font-size: .94rem;
    overflow-x: clip;
    -webkit-tap-highlight-color: rgba(var(--shop-primary-rgb), .12);
}
a, button, label, .btn { touch-action: manipulation; }
img { max-width: 100%; }
h1, h2, h3, .title, .break-word { overflow-wrap: anywhere; }
h1, h2, h3, h4, h5, h6 { color: var(--shop-ink); }
h1, h2, h3, .page-title, .section-title, .product-title, .h3, .h4, .h5 { font-family: "Lora", Georgia, serif; font-weight: 700; }
a { color: var(--shop-gold-text); }
a:hover { color: var(--shop-ink); }

/* ---------- Boutons et formulaires ---------- */
.btn { border-radius: 2rem; font-weight: 500; }
.btn-primary {
    --bs-btn-bg: var(--shop-primary); --bs-btn-border-color: var(--shop-primary);
    --bs-btn-hover-bg: var(--shop-primary-dark); --bs-btn-hover-border-color: var(--shop-primary-dark);
    --bs-btn-active-bg: var(--shop-primary-dark); --bs-btn-active-border-color: var(--shop-primary-dark);
    --bs-btn-disabled-bg: var(--shop-primary); --bs-btn-disabled-border-color: var(--shop-primary);
    background-image: none;
    box-shadow: 0 .35rem .9rem rgba(var(--shop-primary-rgb), .28);
}
.btn-outline-primary {
    --bs-btn-color: var(--shop-primary); --bs-btn-border-color: var(--shop-primary);
    --bs-btn-hover-bg: var(--shop-primary); --bs-btn-hover-border-color: var(--shop-primary);
    --bs-btn-active-bg: var(--shop-primary-dark); --bs-btn-active-border-color: var(--shop-primary-dark);
}
.text-primary { color: var(--shop-primary) !important; }
.bg-primary { background-color: var(--shop-primary) !important; }
.form-control, .form-select { border-radius: .75rem; border-color: #dfe4ee; }
.form-control:focus, .form-select:focus { border-color: var(--shop-primary); box-shadow: 0 0 0 .2rem rgba(var(--shop-primary-rgb), .15); }
.form-check-input:checked { background-color: var(--shop-primary); border-color: var(--shop-primary); }
.input-group > .form-control { border-radius: .75rem; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--shop-muted); font-size: .8rem; }
.alert { border-radius: var(--shop-radius); }
.page-link { color: var(--shop-primary); }
.active > .page-link, .page-link.active { background-color: var(--shop-primary); border-color: var(--shop-primary); }

@media (max-width: 991.98px) {
    .form-control, .form-select, .form-control-sm, .form-select-sm, .input-group-sm > .form-control { font-size: 16px; }
    .form-control-sm, .form-select-sm { min-height: 2.5rem; }
    .btn { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
    .btn.btn-link.p-0, .btn-close { min-height: 0; }
    .btn-sm { min-height: 2.5rem; }
    .form-check { min-height: 1.75rem; }
    .form-check-input { width: 1.25em; height: 1.25em; margin-top: .15em; }
    .form-check-label { padding-left: .25rem; }
}
@media (min-width: 576px) { .w-sm-auto { width: auto !important; } }

/* Sélecteur de quantité − / + */
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid #dfe4ee; border-radius: 2rem; background: #fff; overflow: hidden; }
.qty-stepper button { border: 0; background: transparent; width: 2.5rem; font-size: 1.15rem; color: var(--shop-ink); line-height: 1; display: flex; align-items: center; justify-content: center; }
.qty-stepper button:active { background: var(--shop-primary-soft); }
.qty-stepper input { border: 0; width: 3rem; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; padding: .375rem 0; background: transparent; }
.qty-stepper input:focus { outline: none; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper.sm button { width: 2.25rem; }
.qty-stepper.sm input { width: 2.5rem; font-size: 16px; }
.qty-stepper.lg { min-height: 2.75rem; }
@media (min-width: 992px) { .qty-stepper.sm button { width: 2rem; } .qty-stepper.sm input { font-size: .9rem; } }

/* ---------- Bandeau d'annonce ---------- */
.announce-bar { background: var(--shop-dark); color: #f6efe4; font-size: .76rem; }
.announce-bar .carousel-item { text-align: center; padding: .4rem 2.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce-bar a { color: #fff; text-decoration: none; }
.announce-bar i { color: var(--shop-gold); }

/* ---------- En-tête ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 1020; transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 .25rem 1rem rgba(15, 30, 80, .08); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; padding: .6rem 0; }
.header-left, .header-right { display: flex; align-items: center; gap: .35rem; }
.header-right { justify-content: flex-end; }
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; color: var(--shop-ink); text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: .3rem; }
.brand-name i { color: var(--shop-primary); font-size: 1.35rem; }
.brand-tagline { font-size: .58rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--shop-primary); margin-top: .25rem; white-space: nowrap; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
.brand img, .brand .brand-logo { height: 40px; width: auto; max-width: 52vw; object-fit: contain; }
@media (min-width: 992px) { .brand .brand-logo.is-full { height: 56px; max-width: none; } }
.brand-footer .brand-logo { height: 64px; max-width: 80vw; }
.icon-btn { position: relative; border: 0; background: transparent; color: var(--shop-ink); width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.45rem; text-decoration: none; border-radius: 50%; padding: 0; }
.icon-btn:hover { color: var(--shop-primary); background: var(--shop-primary-soft); }
.icon-btn .label { display: none; }
.count-badge { position: absolute; top: .1rem; right: .05rem; background: var(--shop-gold); color: var(--shop-ink); font-size: .62rem; font-weight: 700; border-radius: 1rem; min-width: 1.15rem; height: 1.15rem; display: flex; align-items: center; justify-content: center; padding: 0 .28rem; border: 2px solid #fff; font-style: normal; line-height: 1; }

/* Recherche + bouton filtres */
.search-row { display: flex; gap: .6rem; align-items: center; padding: .25rem 0 .9rem; }
.search-field { position: relative; flex: 1; min-width: 0; }
.search-field .form-control { border-radius: 2rem; border: 1px solid var(--shop-line); background: #fff; padding: .7rem 1rem .7rem 2.9rem; box-shadow: var(--shop-shadow-sm); font-size: 16px; }
.search-field .search-submit { position: absolute; left: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; width: 2.4rem; height: 2.4rem; color: var(--shop-ink); font-size: 1.15rem; display: flex; align-items: center; justify-content: center; }
.filter-round { flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 50%; background: #fff; border: 1px solid var(--shop-line); box-shadow: var(--shop-shadow-sm); display: inline-flex; align-items: center; justify-content: center; color: var(--shop-ink); font-size: 1.2rem; text-decoration: none; position: relative; }
.filter-round:hover { color: var(--shop-primary); }

@media (min-width: 992px) {
    .header-row { grid-template-columns: auto 1fr auto; gap: 2rem; padding: .9rem 0; }
    .brand { align-items: flex-start; }
    .brand-name { font-size: 1.5rem; }
    .brand-tagline { max-width: none; }
    .header-row .search-field .form-control { padding-top: .65rem; padding-bottom: .65rem; box-shadow: none; background: var(--shop-bg); }
    .icon-btn { width: auto; height: auto; padding: .3rem .5rem; border-radius: .75rem; flex-direction: column; font-size: 1.35rem; }
    .icon-btn .label { display: block; font-size: .7rem; margin-top: .15rem; font-weight: 500; }
    .count-badge { top: -.2rem; right: .1rem; }
}

/* Barre des rayons */
.category-nav { background: #fff; border-top: 1px solid var(--shop-line); border-bottom: 1px solid var(--shop-line); }
.category-nav .container { display: flex; gap: .45rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding-top: .55rem; padding-bottom: .55rem; }
.category-nav .container::-webkit-scrollbar { display: none; }
.category-nav a { color: var(--shop-ink); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .9rem; font-size: .84rem; border-radius: 2rem; background: var(--shop-bg); flex-shrink: 0; font-weight: 500; }
.category-nav a.active { background: var(--shop-primary); color: #fff; }
@media (min-width: 992px) {
    .category-nav .container { gap: .25rem; padding-top: .35rem; padding-bottom: .35rem; }
    .category-nav a { background: transparent; }
    .category-nav a:hover { color: var(--shop-primary); background: var(--shop-primary-soft); }
}

/* Menu latéral */
.offcanvas-menu { --bs-offcanvas-width: min(86vw, 340px); }
.offcanvas-menu .menu-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--shop-muted); font-weight: 600; padding: 1rem 1rem .35rem; }
.offcanvas-menu .menu-link { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; color: var(--shop-ink); text-decoration: none; border: 0; background: none; width: 100%; text-align: left; font-size: .95rem; }
.offcanvas-menu .menu-link:active, .offcanvas-menu .menu-link.active { background: var(--shop-primary-soft); color: var(--shop-primary); }
.offcanvas-menu .menu-link > i:first-child { font-size: 1.1rem; color: var(--shop-gold-text); width: 2rem; height: 2rem; border-radius: 50%; background: var(--shop-primary-soft); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.offcanvas-menu .menu-link .chev { margin-left: auto; color: var(--shop-muted); transition: transform .2s; }
.offcanvas-menu .menu-link[aria-expanded="true"] .chev { transform: rotate(90deg); }
.offcanvas-menu .submenu a { display: block; padding: .55rem 1rem .55rem 3.75rem; color: var(--shop-ink); text-decoration: none; font-size: .9rem; }

main.site-main { padding-top: .5rem; padding-bottom: 1.5rem; }
@media (min-width: 992px) { main.site-main { padding-top: 1.5rem; } }
.breadcrumb { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.breadcrumb::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .breadcrumb { flex-wrap: wrap; white-space: normal; } }
.page-title { font-size: clamp(1.25rem, 4.8vw, 1.75rem); font-weight: 700; letter-spacing: -.01em; }

/* ---------- Accueil ---------- */
.hero-carousel { border-radius: 1.25rem; box-shadow: 0 .75rem 2rem rgba(21, 19, 17, .2); }
.hero-carousel .carousel-inner { border-radius: 1.25rem; }
.hero-carousel .carousel-indicators { margin-bottom: .55rem; gap: .35rem; }
.hero-carousel .carousel-indicators [data-bs-target] { width: .45rem; height: .45rem; border-radius: 1rem; border: 0; margin: 0; background: #fff; opacity: .55; transition: width .25s, opacity .25s; }
.hero-carousel .carousel-indicators .active { width: 1.3rem; opacity: 1; background: var(--shop-gold); }
@media (min-width: 768px) { .hero-carousel, .hero-carousel .carousel-inner { border-radius: 1.5rem; } }

.cat-circles { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .25rem .1rem .5rem; margin: 0 -.1rem; scroll-snap-type: x proximity; }
.cat-circles::-webkit-scrollbar { display: none; }
.cat-circle { flex: 0 0 auto; width: 4.9rem; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--shop-ink); scroll-snap-align: start; }
.cat-circle .ic { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: #fff; box-shadow: var(--shop-shadow-sm); display: flex; align-items: center; justify-content: center; font-size: 1.45rem; color: var(--shop-ink); transition: transform .15s, color .15s, box-shadow .15s; overflow: hidden; }
.cat-circle .ic img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle .name { font-size: .68rem; hyphens: auto; -webkit-hyphens: auto; margin-top: .45rem; text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cat-circle:hover .ic { color: var(--shop-primary); transform: translateY(-2px); box-shadow: var(--shop-shadow); }
@media (min-width: 992px) {
    .cat-circles { justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
    .cat-circle { width: 7rem; }
    .cat-circle .ic { width: 4.6rem; height: 4.6rem; font-size: 1.8rem; }
    .cat-circle .name { font-size: .85rem; }
}

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.section-title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.see-all { font-size: .82rem; font-weight: 500; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; color: var(--shop-ink); }
.see-all i { color: var(--shop-gold); font-size: 1.05rem; }
.see-all:hover { color: var(--shop-primary); }
@media (min-width: 768px) { .section-title { font-size: 1.3rem; } }
.home-section { margin-bottom: 1.6rem; }
@media (min-width: 992px) { .home-section { margin-bottom: 2.75rem; } }

.feature-card { background: #fff; border-radius: var(--shop-radius); box-shadow: var(--shop-shadow-sm); padding: .75rem; height: 100%; display: flex; gap: .65rem; align-items: center; text-decoration: none; color: var(--shop-ink); }
.feature-card .ic { width: 2.5rem; height: 2.5rem; border-radius: 50%; flex-shrink: 0; background: var(--shop-primary-soft); color: var(--shop-gold-text); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.feature-card .t { font-weight: 600; font-size: .8rem; line-height: 1.25; display: block; }
.feature-card .s { font-size: .7rem; color: var(--shop-muted); display: block; line-height: 1.3; margin-top: .1rem; }
@media (min-width: 768px) { .feature-card { padding: 1rem 1.1rem; } .feature-card .ic { width: 3rem; height: 3rem; font-size: 1.35rem; } .feature-card .t { font-size: .92rem; } .feature-card .s { font-size: .8rem; } }

/* Rangée de produits défilante sur mobile/tablette */
@media (max-width: 991.98px) {
    .scroll-row { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem; padding-top: .15rem; }
    .scroll-row::-webkit-scrollbar { display: none; }
    .scroll-row > * { flex: 0 0 44%; max-width: 44%; scroll-snap-align: start; }
}
@media (min-width: 576px) and (max-width: 991.98px) { .scroll-row > * { flex-basis: 30%; max-width: 30%; } }

/* ---------- Cartes produit ---------- */
.product-card { background: #fff; border-radius: var(--shop-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: var(--shop-shadow-sm); transition: box-shadow .15s, transform .15s; position: relative; }
.product-card:hover { box-shadow: var(--shop-shadow); transform: translateY(-2px); }
.product-thumb { aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; position: relative; padding: 1.4rem .6rem .4rem; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-thumb .placeholder-icon { font-size: 2.6rem; color: #c8d0e0; }
.p-badge { position: absolute; top: .55rem; left: .55rem; z-index: 2; font-size: .55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; border-radius: 2rem; padding: .2rem .5rem; background: var(--shop-primary); max-width: calc(100% - 4rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-badge.green { background: #16a34a; } .p-badge.purple { background: #7c3aed; } .p-badge.orange { background: #ea7a0c; }
.p-badge.red { background: #dc2626; } .p-badge.dark { background: #151311; } .p-badge.blue { background: #1d4ed8; }
.p-badge.gold { background: var(--shop-gold); color: var(--shop-ink); }
.p-discount { position: absolute; top: .55rem; right: .55rem; z-index: 2; font-size: .62rem; font-weight: 700; color: #dc2626; background: #fde8e8; border-radius: 2rem; padding: .15rem .45rem; }
.product-card .body { padding: .2rem .7rem .75rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-card .brand-name { font-size: .68rem; color: var(--shop-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .title { font-size: .8rem; font-weight: 500; line-height: 1.3; color: var(--shop-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; margin-bottom: .35rem; }
.product-card .title::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* toute la carte est cliquable */
.product-card .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .35rem; margin-top: auto; }
.product-card .price { font-size: .86rem; display: block; line-height: 1.2; white-space: normal; }
.product-card .price .amount { white-space: nowrap; }
.product-card .price small { font-size: .62em; font-weight: 600; color: var(--shop-muted); white-space: nowrap; }
.product-card .price-old { font-size: .68rem; display: block; }
.product-card .stock-low, .product-card .stock-out { font-size: .68rem; margin-top: .2rem; }
.cart-round { position: relative; z-index: 2; flex-shrink: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: var(--shop-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: 0 .3rem .7rem rgba(var(--shop-primary-rgb), .35); transition: transform .15s; }
.cart-round:hover { transform: scale(1.06); background: var(--shop-gold); color: var(--shop-ink); }
.cart-round:disabled { background: #c8d0e0; box-shadow: none; }
@media (min-width: 768px) {
    .product-thumb { padding: 1.8rem 1rem .5rem; }
    .product-card .body { padding: .3rem 1rem 1rem; }
    .p-badge { font-size: .65rem; top: .75rem; left: .75rem; }
    .p-discount { font-size: .7rem; top: .75rem; right: .75rem; }
    .product-card .title { font-size: .9rem; }
    .product-card .price { font-size: 1.02rem; }
    .product-card .price-old { font-size: .78rem; }
    .cart-round { width: 2.5rem; height: 2.5rem; font-size: 1.1rem; }
}
.price { font-weight: 700; color: var(--shop-ink); white-space: nowrap; }
.price-old { color: var(--shop-muted); text-decoration: line-through; font-size: .85rem; white-space: nowrap; }
.stock-low { color: #c2410c; font-size: .8rem; }
.stock-out { color: #b42318; font-size: .8rem; }

/* ---------- Catalogue ---------- */
.catalog-toolbar .form-select { min-width: 0; border-radius: 2rem; }
.filter-btn { position: relative; white-space: nowrap; border-radius: 2rem; }
.filter-btn .count { background: var(--shop-primary); color: #fff; border-radius: 1rem; font-size: .7rem; min-width: 1.15rem; height: 1.15rem; display: inline-flex; align-items: center; justify-content: center; margin-left: .35rem; padding: 0 .3rem; }
@media (max-width: 991.98px) {
    .filters-offcanvas { --bs-offcanvas-height: auto; max-height: 85vh; border-top-left-radius: 1.25rem; border-top-right-radius: 1.25rem; }
    .filters-offcanvas .offcanvas-body { padding-bottom: calc(1rem + var(--safe-bottom)); }
    .filters-offcanvas .panel { border: 0; padding: 0; box-shadow: none; }
}
@media (min-width: 992px) { .filters-offcanvas .offcanvas-body { display: block; } }
.chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1rem; }
.chips::-webkit-scrollbar { display: none; }
.chips a, .chips button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .95rem; border-radius: 2rem; background: #fff; border: 1px solid var(--shop-line); color: var(--shop-ink); text-decoration: none; font-size: .84rem; white-space: nowrap; }
.chips a.active { background: var(--shop-primary); border-color: var(--shop-primary); color: #fff; }
.chips button { color: #b42318; }

/* ---------- Fiche produit ---------- */
.product-gallery { background: #fff; border-radius: 1.25rem; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shop-shadow-sm); padding: 1rem; }
.product-gallery img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: .15rem .1rem .25rem; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button { width: 64px; height: 64px; flex: 0 0 64px; padding: .25rem; border: 2px solid transparent; border-radius: .75rem; overflow: hidden; background: #fff; box-shadow: var(--shop-shadow-sm); }
.gallery-thumbs button.active { border-color: var(--shop-primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-title { font-size: clamp(1.2rem, 5vw, 1.7rem); font-weight: 700; }
.product-price { font-size: clamp(1.4rem, 6vw, 1.8rem); color: var(--shop-ink); font-family: "Poppins", sans-serif; }
.product-description { overflow-wrap: anywhere; }
.reassurance li { display: flex; gap: .6rem; align-items: flex-start; }
.reassurance i { color: var(--shop-gold); }

/* ---------- Panneaux, panier, commande ---------- */
.panel { background: #fff; border-radius: var(--shop-radius); padding: 1rem; box-shadow: var(--shop-shadow-sm); border: 0; }
@media (min-width: 768px) { .panel { padding: 1.35rem; } }
.cart-thumb { width: 64px; height: 64px; border-radius: .75rem; background: #fff; border: 1px solid var(--shop-line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; padding: .2rem; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 576px) { .cart-thumb { width: 80px; height: 80px; } }
.cart-line .name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.option-card { border: 1.5px solid #dfe4ee; border-radius: .9rem; padding: .85rem 1rem; cursor: pointer; display: block; background: #fff; }
.option-card:has(input:checked) { border-color: var(--shop-primary); background: var(--shop-primary-soft); }
.option-card input { margin-right: .5rem; }
.option-head { display: flex; align-items: flex-start; gap: .25rem; }
.option-head .grow { flex: 1; min-width: 0; }
.summary-row { display: flex; justify-content: space-between; gap: .75rem; margin-bottom: .4rem; }
.summary-row > span:last-child { text-align: right; }
.summary-total { font-size: 1.15rem; font-weight: 700; border-top: 1px dashed #d5dbe7; padding-top: .6rem; margin-top: .6rem; }
@media (min-width: 992px) { .sticky-summary { position: sticky; top: 8rem; } }
.address-picker { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.address-picker::-webkit-scrollbar { display: none; }
.address-picker .btn { flex: 0 0 auto; max-width: 15rem; display: block; white-space: normal; border-radius: .9rem; }
.badge.rounded-pill.bg-primary { background: var(--shop-primary) !important; }

/* Barre d'action collante (produit, panier) */
.action-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--mobile-nav-h) + var(--safe-bottom)); z-index: 1029; background: #fff; border-top: 1px solid var(--shop-line); box-shadow: 0 -.25rem 1rem rgba(15, 30, 80, .07); padding: .55rem .75rem; display: flex; align-items: center; gap: .75rem; }
.action-bar .total-label { font-size: .7rem; color: var(--shop-muted); line-height: 1; }
.action-bar .total-value { font-weight: 700; font-size: 1.02rem; white-space: nowrap; }
.action-bar .btn { flex: 1; white-space: nowrap; }

/* ---------- Espace client ---------- */
.account-tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1rem; }
.account-tabs::-webkit-scrollbar { display: none; }
.account-tabs a, .account-tabs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .95rem; border-radius: 2rem; background: #fff; border: 1px solid var(--shop-line); color: var(--shop-ink); text-decoration: none; font-size: .84rem; white-space: nowrap; }
.account-tabs a.active { background: var(--shop-primary); border-color: var(--shop-primary); color: #fff; }
.account-tabs button { color: #b42318; }

.timeline { display: flex; flex-direction: column; gap: .9rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 13px; width: 3px; background: #e1e6f0; }
.timeline .step { position: relative; display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: var(--shop-muted); }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; background: #e1e6f0; color: #fff; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.timeline .step.done { color: var(--shop-ink); font-weight: 600; }
.timeline .step.done .dot { background: var(--shop-primary); }
@media (min-width: 576px) {
    .timeline { flex-direction: row; justify-content: space-between; gap: 0; }
    .timeline::before { top: 15px; bottom: auto; left: 6%; right: 6%; width: auto; height: 3px; }
    .timeline .step { flex: 1; flex-direction: column; gap: .35rem; text-align: center; font-size: .8rem; }
    .timeline .dot { width: 32px; height: 32px; }
}

/* ---------- Pages ---------- */
.rich-text h2 { font-size: 1.05rem; font-weight: 700; margin-top: 1.5rem; }
.rich-text h3 { font-size: .98rem; font-weight: 700; margin-top: 1.25rem; }
.rich-text p, .rich-text li { color: #344054; }
.contact-card { text-decoration: none; color: var(--shop-ink); display: block; }
.contact-card .ic { width: 3rem; height: 3rem; border-radius: 50%; margin: 0 auto .5rem; background: var(--shop-primary-soft); color: var(--shop-gold-text); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--shop-dark); color: #d8cbb7; font-size: .88rem; border-radius: 1.5rem 1.5rem 0 0; }
.site-footer a { color: #f6efe4; text-decoration: none; display: inline-block; padding: .15rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer h6 { color: #fff; font-weight: 600; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand img { max-height: 44px; }
.social-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.social-links a { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; padding: 0; }
.social-links a:hover { background: var(--shop-gold); color: var(--shop-ink); }
.pay-chip { display: inline-block; border: 1px solid color-mix(in srgb, var(--shop-gold) 55%, transparent); border-radius: 2rem; padding: .2rem .7rem; font-size: .75rem; margin: 0 .3rem .3rem 0; color: #f6efe4; }

/* ---------- Navigation mobile (bouton central surélevé) ---------- */
.mobile-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
    background: #fff; border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -.35rem 1.5rem rgba(15, 30, 80, .1);
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    height: calc(var(--mobile-nav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
}
.mobile-nav > a, .mobile-nav > button { border: 0; background: none; height: var(--mobile-nav-h); color: var(--shop-muted); text-decoration: none; font-size: .66rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; position: relative; padding: 0; font-family: inherit; }
.mobile-nav i { font-size: 1.3rem; line-height: 1; position: relative; }
.mobile-nav .active { color: var(--shop-primary); font-weight: 600; }
.mobile-nav .nav-center { justify-content: flex-end; padding-bottom: .55rem; color: var(--shop-ink); font-weight: 500; }
.mobile-nav .nav-center .bubble {
    position: absolute; top: -1.55rem; left: 50%; transform: translateX(-50%);
    width: 3.7rem; height: 3.7rem; border-radius: 50%;
    background: var(--shop-primary); color: var(--shop-gold); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 5px #fff, 0 0 0 6.5px var(--shop-gold), 0 .5rem 1rem rgba(var(--shop-primary-rgb), .35);
}
.mobile-nav .nav-center .bubble i { font-size: 1.45rem; }
@media (max-width: 991.98px) {
    body { padding-bottom: calc(var(--mobile-nav-h) + var(--safe-bottom)); }
    body.has-action-bar { padding-bottom: calc(var(--mobile-nav-h) + 4rem + var(--safe-bottom)); }
}

.toast-flash { position: fixed; top: 1rem; right: 1rem; z-index: 1080; max-width: 22rem; }
[x-cloak] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Navigation sans rechargement : indicateurs de chargement ---------- */
.turbo-progress-bar { height: 3px; background: linear-gradient(90deg, #8a6420, #b0802b, #e2c27a); box-shadow: 0 0 10px rgba(176, 128, 43, .6); }
html[aria-busy="true"] main { opacity: .55; transition: opacity .15s ease .12s; pointer-events: none; }
@keyframes es-spin { to { transform: rotate(360deg); } }
.btn.is-loading, .cart-round.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading > *, .cart-round.is-loading > * { visibility: hidden; }
.btn.is-loading::after, .cart-round.is-loading::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 1.1rem; height: 1.1rem; border-radius: 50%;
    border: 2px solid var(--es-spin, #fff); border-right-color: transparent; animation: es-spin .65s linear infinite;
}
.btn-light.is-loading, .btn-outline-primary.is-loading, .btn-outline-secondary.is-loading, .btn-link.is-loading, .btn-outline-success.is-loading, .btn-outline-danger.is-loading { --es-spin: #151311; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ---------- Notifications flottantes ---------- */
.es-toasts { position: fixed; z-index: 1090; left: 50%; transform: translateX(-50%); bottom: calc(var(--toast-bottom, 1.25rem) + env(safe-area-inset-bottom, 0px)); width: min(92vw, 420px); display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.es-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: .65rem; background: #151311; color: #f6efe4; border-radius: 1rem; padding: .8rem .9rem; box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .28); font-size: .9rem; line-height: 1.4; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; border-left: 4px solid #b0802b; }
.es-toast.is-shown { opacity: 1; transform: none; }
.es-toast.is-leaving { opacity: 0; transform: translateY(12px); }
.es-toast > i { font-size: 1.15rem; color: #b0802b; margin-top: .05rem; }
.es-toast.is-error { border-left-color: #e5484d; }
.es-toast.is-error > i { color: #ff7a7f; }
.es-toast-body { flex: 1; min-width: 0; }
.es-toast-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; color: #e2c27a; font-weight: 600; text-decoration: none; }
.es-toast-link:hover { color: #fff; }
.es-toast-close { border: 0; background: none; color: #d8cbb7; padding: 0 .1rem; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .es-toast { transition: none; } }
@media (max-width: 991.98px) { .es-toasts { --toast-bottom: calc(var(--mobile-nav-h) + .75rem); } body.has-action-bar .es-toasts { --toast-bottom: calc(var(--mobile-nav-h) + 4.75rem); } }
