/* ============================================================
   SOLNET SHOP - Boutique publique
   Design moderne, premium, e-commerce professionnel
   ============================================================ */

:root {
    --shop-primary: #0d6efd;
    --shop-primary-dark: #0a58ca;
    --shop-secondary: #1a1d23;
    --shop-accent: #00c9a7;
    --shop-bg: #f8f9fc;
    --shop-card-bg: #ffffff;
    --shop-text: #1e293b;
    --shop-text-muted: #64748b;
    --shop-border: #e2e8f0;
    --shop-radius: 12px;
    --shop-radius-lg: 16px;
    --shop-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shop-shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shop-shadow-lg: 0 10px 30px rgba(0,0,0,.1);
    --shop-transition: all .2s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--shop-bg);
    color: var(--shop-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ── Navbar ─────────────────────────────────────────── */

.shop-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--shop-border);
    padding: .75rem 0;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.shop-navbar .navbar-collapse {
    background: #ffffff;
}

@media (max-width: 991.98px) {
    .shop-navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--shop-border);
        box-shadow: 0 6px 20px rgba(0,0,0,.08);
        padding: 1rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

.brand-logo {
    height: 80px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .brand-logo { height: 50px; }
}

/* Logo blanc du pied de page (emsolnet.com/images/logo_solnet_blanc.png) */
.footer-logo { height: 80px; width: auto; }
@media (max-width: 767.98px) {
    .footer-logo { height: 60px; }
}

.brand-name {
    font-weight: 700; font-size: 1.15rem; color: var(--shop-secondary);
    display: block; line-height: 1.1;
}
.brand-sub {
    font-size: .72rem; color: var(--shop-text-muted);
    font-weight: 500; letter-spacing: .02em;
}

.shop-navbar .nav-link {
    font-weight: 500; color: var(--shop-text);
    padding: .5rem 1rem; font-size: .93rem;
    transition: var(--shop-transition);
}
.shop-navbar .nav-link:hover { color: var(--shop-primary); }

.btn-icon {
    width: 40px; height: 40px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; border: none; background: transparent;
    color: var(--shop-text); font-size: 1.2rem;
    transition: var(--shop-transition);
}
.btn-icon:hover { background: var(--shop-bg); color: var(--shop-primary); }

.cart-badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--shop-primary);
    color: #fff; font-size: .65rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

.search-form .form-control {
    border-radius: 10px 0 0 10px;
    border: 1px solid var(--shop-border);
    font-size: .875rem; padding: .45rem .9rem;
}
.search-form .btn {
    border-radius: 0 10px 10px 0;
}

.navbar-toggler {
    border: none; padding: .5rem;
    font-size: 1.4rem; color: var(--shop-text);
}

.dropdown-menu {
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow-md);
    padding: .5rem;
}
.dropdown-item {
    border-radius: 8px; font-size: .9rem; padding: .45rem .8rem;
}
.dropdown-item:hover { background: var(--shop-bg); }

/* ── Hero / Banner ──────────────────────────────────── */

.shop-hero {
    /* Bannière : fond menthe pâle, feuilles à gauche, photo SOLNET à droite, vague turquoise */
    position: relative;
    overflow: hidden;
    background: linear-gradient(100deg, #eef9f7 0%, #f3fbfa 45%, #e4f5f2 100%);
    color: var(--shop-text);
    padding: 5.5rem 0;
    min-height: 530px;
    display: flex; align-items: center;
}
.shop-hero .container { position: relative; z-index: 3; }
.shop-hero::before {
    /* trame de petits points, très discrète, au centre */
    content: ''; position: absolute; inset: 0; z-index: 0;
    background-image: radial-gradient(circle, rgba(14, 143, 126, .10) 1.2px, transparent 1.3px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 45%, #000 60%, transparent 75%);
            mask-image: linear-gradient(90deg, transparent 15%, #000 45%, #000 60%, transparent 75%);
}
/* Grandes feuilles pâles à gauche */
.hero-feuilles { position: absolute; left: -40px; top: 0; height: 100%; width: 300px; z-index: 1; pointer-events: none; }
/* Photo (droite) à sa taille réelle, collée à droite, fondue vers la gauche */
.hero-photo {
    position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: 40%;
    object-fit: cover; object-position: right center; z-index: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
/* Vague turquoise devant le bord gauche de la photo */
.hero-vague { position: absolute; top: 0; bottom: 0; right: 21%; width: 32%; height: 100%; z-index: 2; pointer-events: none; }

.hero-eyebrow { color: #0e8f7e; font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 800; line-height: 1.12; letter-spacing: -.02em;
    color: #0b1220;
}
.hero-title span { display: block; color: #0e8f7e; }
.hero-subtitle { font-size: 1.2rem; color: #6b7280; max-width: 520px; line-height: 1.6; }
.hero-btn-primaire {
    background: var(--shop-primary); color: #fff; border: none; border-radius: 8px;
    padding: .85rem 1.6rem; font-weight: 600; font-size: 1.05rem;
}
.hero-btn-primaire:hover { background: var(--shop-primary-dark); color: #fff; }
.hero-btn-outline {
    background: #fff; color: #0b1220; border: 1.5px solid #0b1220; border-radius: 8px;
    padding: .6rem 1.6rem; font-weight: 500; font-size: 1.25rem; line-height: 1.3;
}
.hero-btn-outline:hover { background: #0b1220; color: #fff; }

/* Cartes blanches devant la vague */
.hero-cartes { display: flex; flex-direction: column; gap: 1rem; width: 270px; margin-left: auto; margin-right: 50%; }
@media (max-width: 1399.98px) { .hero-cartes { margin-right: 32%; } }
@media (max-width: 1199.98px) { .hero-cartes { margin-right: 0; } }
.hero-carte {
    display: flex; align-items: center; gap: 1.1rem;
    padding: 1.25rem 1.4rem; border-radius: 18px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    font-weight: 500; font-size: 1.1rem; color: #0b1220; line-height: 1.35;
}
.hero-carte i { font-size: 2.3rem; color: #0e8f7e; flex-shrink: 0; width: 44px; text-align: center; }
.hero-carte .ico-feuille { width: 44px; height: 44px; color: #0e8f7e; flex-shrink: 0; }

/* ── Barre de confiance ─────────────────────────────── */

.trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--shop-border);
    padding: 1rem 0;
}
.trust-item {
    display: flex; align-items: center; gap: .6rem;
    font-size: .95rem; color: var(--shop-text-muted); font-weight: 500;
}
.trust-item i { font-size: 1.3rem; color: var(--shop-primary); }

@media (max-width: 991.98px) {
    .shop-hero { min-height: 0; padding: 3.5rem 0; }
    /* Téléphone et tablette : photo en fond très pâle, texte toujours lisible */
    .hero-photo { width: 100%; max-width: none; opacity: .15; -webkit-mask-image: none; mask-image: none; }
    .hero-vague, .hero-feuilles { display: none; }
}
@media (max-width: 575.98px) {
    .shop-hero .hero-title { font-size: 2rem; }
    .hero-btn-outline { font-size: 1rem; padding: .7rem 1.4rem; }
}

/* ── Section titles ─────────────────────────────────── */

.section-title {
    font-weight: 700; font-size: 1.6rem;
    color: var(--shop-secondary);
    position: relative;
}
.section-subtitle {
    color: var(--shop-text-muted); font-size: .95rem;
    max-width: 500px;
}

/* ── Product Cards ──────────────────────────────────── */

.product-card {
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    border: 1px solid var(--shop-border);
    transition: var(--shop-transition);
    height: 100%;
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shop-shadow-lg);
    border-color: transparent;
}

.product-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
}
.product-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-card-img img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute; top: .75rem; left: .75rem;
    background: var(--shop-accent);
    color: #fff; font-size: .7rem; font-weight: 700;
    padding: .3rem .65rem; border-radius: 6px;
    text-transform: uppercase; letter-spacing: .04em;
}
.product-badge.sale {
    background: #ef4444;
}

.product-card-body {
    padding: 1.1rem 1.25rem;
    flex: 1; display: flex; flex-direction: column;
}
.product-card-category {
    font-size: .75rem; color: var(--shop-primary);
    font-weight: 600; text-transform: uppercase;
    letter-spacing: .03em; margin-bottom: .3rem;
}
.product-card-title {
    font-weight: 600; font-size: 1rem;
    color: var(--shop-secondary); margin-bottom: .4rem;
    line-height: 1.3;
}
.product-card-title a {
    color: inherit; text-decoration: none;
}
.product-card-title a:hover { color: var(--shop-primary); }
.product-card-desc {
    font-size: .83rem; color: var(--shop-text-muted);
    line-height: 1.5; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-footer {
    padding: 0 1.25rem 1.1rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem;
}
.product-price {
    font-size: 1.15rem; font-weight: 700;
    color: var(--shop-secondary);
}
.product-price-old {
    font-size: .85rem; color: var(--shop-text-muted);
    text-decoration: line-through; margin-left: .35rem;
}

/* ── Buttons ────────────────────────────────────────── */

.btn-shop {
    background: var(--shop-primary);
    color: #fff; border: none;
    border-radius: 10px;
    font-weight: 600; font-size: .85rem;
    padding: .55rem 1.2rem;
    transition: var(--shop-transition);
    display: inline-flex; align-items: center; gap: .4rem;
}
.btn-shop:hover {
    background: var(--shop-primary-dark);
    color: #fff; transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,110,253,.3);
}

.btn-shop-outline {
    background: transparent;
    color: var(--shop-primary);
    border: 1.5px solid var(--shop-primary);
    border-radius: 10px;
    font-weight: 600; font-size: .85rem;
    padding: .5rem 1.2rem;
    transition: var(--shop-transition);
    display: inline-flex; align-items: center; gap: .4rem;
}
.btn-shop-outline:hover {
    background: var(--shop-primary);
    color: #fff;
}

.btn-cart-sm {
    width: 38px; height: 38px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--shop-primary);
    color: #fff; border: none;
    transition: var(--shop-transition);
    flex-shrink: 0;
}
.btn-cart-sm:hover {
    background: var(--shop-primary-dark);
    color: #fff;
    transform: scale(1.05);
}

/* ── Category Cards ─────────────────────────────────── */

.category-card {
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--shop-border);
    transition: var(--shop-transition);
    text-decoration: none; color: var(--shop-text);
    display: block;
}
.category-card:hover {
    border-color: var(--shop-primary);
    transform: translateY(-3px);
    box-shadow: var(--shop-shadow-md);
    color: var(--shop-primary);
}
.category-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(13,110,253,.1), rgba(0,201,167,.1));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--shop-primary);
    margin: 0 auto 1rem;
    transition: var(--shop-transition);
}
.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--shop-primary), var(--shop-accent));
    color: #fff;
}

/* ── Product Detail Page ────────────────────────────── */

.product-gallery {
    position: relative;
}
.product-gallery-main {
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f1f5f9;
}
.product-gallery-main img {
    width: 100%; height: 100%; object-fit: cover;
}
.product-gallery-thumbs {
    display: flex; gap: .5rem; margin-top: .75rem;
}
.product-thumb {
    width: 70px; height: 70px;
    border-radius: 10px;
    overflow: hidden; cursor: pointer;
    border: 2px solid var(--shop-border);
    transition: var(--shop-transition);
}
.product-thumb:hover,
.product-thumb.active {
    border-color: var(--shop-primary);
}
.product-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}

.product-detail-price {
    font-size: 1.8rem; font-weight: 800;
    color: var(--shop-secondary);
}

.product-meta {
    font-size: .85rem; color: var(--shop-text-muted);
}
.product-meta dt { font-weight: 600; color: var(--shop-text); }

.qty-input {
    display: flex; align-items: center;
    border: 1.5px solid var(--shop-border);
    border-radius: 10px; overflow: hidden;
    width: fit-content;
}
.qty-input button {
    width: 40px; height: 40px;
    border: none; background: transparent;
    font-size: 1.1rem; cursor: pointer;
    transition: var(--shop-transition);
    color: var(--shop-text);
}
.qty-input button:hover { background: var(--shop-bg); }
.qty-input input {
    width: 50px; text-align: center;
    border: none; font-weight: 600;
    font-size: .95rem; outline: none;
}

/* ── Cart ───────────────────────────────────────────── */

.cart-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem;
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius);
    border: 1px solid var(--shop-border);
    transition: var(--shop-transition);
}
.cart-item:hover { box-shadow: var(--shop-shadow); }
.cart-item-img {
    width: 80px; height: 80px;
    border-radius: 10px;
    overflow: hidden; flex-shrink: 0;
    background: #f1f5f9;
}
.cart-item-img img {
    width: 100%; height: 100%; object-fit: cover;
}

.cart-summary {
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius-lg);
    border: 1px solid var(--shop-border);
    padding: 1.5rem;
}
.cart-summary-row {
    display: flex; justify-content: space-between;
    padding: .5rem 0; font-size: .9rem;
}
.cart-summary-total {
    font-size: 1.2rem; font-weight: 700;
    border-top: 2px solid var(--shop-secondary);
    margin-top: .5rem; padding-top: .75rem;
}

/* ── Checkout ───────────────────────────────────────── */

.checkout-form .form-label {
    font-weight: 500; font-size: .875rem;
    color: var(--shop-text);
}
.checkout-form .form-control {
    border-radius: 10px;
    border: 1.5px solid var(--shop-border);
    padding: .6rem 1rem;
    font-size: .9rem;
    transition: var(--shop-transition);
}
.checkout-form .form-control:focus {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}

/* ── CTA Section ────────────────────────────────────── */

.cta-section {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff;
    border-radius: var(--shop-radius-lg);
    padding: 3rem 2rem;
}

/* ── Footer ─────────────────────────────────────────── */

.shop-footer {
    background: #0f1117;
    color: #94a3b8;
}
.footer-heading {
    color: #fff; font-weight: 600;
    font-size: .9rem; margin-bottom: .75rem;
}
.footer-links {
    list-style: none; padding: 0; margin: 0;
}
.footer-links li {
    margin-bottom: .4rem; font-size: .85rem;
}
.footer-links a {
    color: #94a3b8; text-decoration: none;
    transition: var(--shop-transition);
}
.footer-links a:hover { color: #fff; }

.social-link {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; text-decoration: none;
    transition: var(--shop-transition);
}
.social-link:hover {
    background: var(--shop-primary); color: #fff;
    border-color: var(--shop-primary);
}

/* ── Info Page ──────────────────────────────────────── */

.info-page {
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius-lg);
    border: 1px solid var(--shop-border);
    padding: 2.5rem;
}
.info-page h2 { font-weight: 700; margin-top: 1.5rem; font-size: 1.3rem; }
.info-page p { color: var(--shop-text-muted); line-height: 1.7; }

/* ── Toast Notification ─────────────────────────────── */

.shop-toast {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    background: var(--shop-secondary);
    color: #fff;
    padding: .85rem 1.5rem;
    border-radius: 12px;
    font-size: .9rem; font-weight: 500;
    box-shadow: var(--shop-shadow-lg);
    z-index: 9999;
    transform: translateY(100px); opacity: 0;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    display: flex; align-items: center; gap: .6rem;
}
.shop-toast.show {
    transform: translateY(0); opacity: 1;
}

/* ── Empty State ────────────────────────────────────── */

.empty-state {
    text-align: center; padding: 4rem 2rem;
}
.empty-state-icon {
    width: 80px; height: 80px;
    background: var(--shop-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--shop-text-muted);
    margin: 0 auto 1.5rem;
}

/* ── Pagination ─────────────────────────────────────── */

.pagination .page-link {
    border-radius: 10px;
    border: 1px solid var(--shop-border);
    color: var(--shop-text);
    margin: 0 2px;
    font-size: .875rem; font-weight: 500;
}
.pagination .page-item.active .page-link {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
}

/* ── Stock Badge ────────────────────────────────────── */

.stock-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .78rem; font-weight: 600;
}
.stock-badge.in-stock { color: #16a34a; }
.stock-badge.low-stock { color: #f59e0b; }
.stock-badge.out-of-stock { color: #ef4444; }

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 991.98px) {
    .shop-hero { padding: 3rem 0; }
    .hero-title { font-size: 1.8rem; }
}

@media (max-width: 767.98px) {
    .shop-hero { padding: 2.5rem 0; }
    .product-card-footer { flex-direction: column; align-items: stretch; }
    .product-card-footer .btn-cart-sm { width: 100%; height: auto; padding: .5rem; border-radius: 10px; }
    .cart-item { flex-direction: column; text-align: center; }
    .cart-item-img { margin: 0 auto; }
    .info-page { padding: 1.5rem; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 1.5rem; }
    .section-title { font-size: 1.3rem; }
}

/* ── Caisse (étapes, choix, paiement) ─────────────────── */

.checkout .co-step {
    background: #fff; border: 1px solid var(--shop-border); border-radius: var(--shop-radius-lg);
    padding: 1.4rem 1.5rem; margin-bottom: 1rem; box-shadow: var(--shop-shadow);
}
.checkout .co-step-head { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.checkout .co-step-head h5 { margin: 0; font-weight: 700; font-size: 1.05rem; }
.checkout .co-num {
    width: 28px; height: 28px; border-radius: 50%; background: var(--shop-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.checkout .co-choice {
    display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1.5px solid var(--shop-border);
    border-radius: var(--shop-radius); cursor: pointer; transition: var(--shop-transition); background: #fff; margin: 0;
}
.checkout .co-choice:hover { border-color: #b6ccf7; }
.checkout .co-choice.active { border-color: var(--shop-primary); background: rgba(13,110,253,.04); box-shadow: 0 0 0 3px rgba(13,110,253,.08); }
.checkout .co-choice .form-check-input { margin: 0; flex-shrink: 0; }
.checkout .co-choice span { flex-grow: 1; line-height: 1.25; }
.checkout .co-choice strong { display: block; font-size: .92rem; }
.checkout .co-choice small { color: var(--shop-text-muted); font-size: .76rem; }
.checkout .co-choice > i { font-size: 1.35rem; color: var(--shop-primary); }
.checkout .co-payment { min-height: 120px; }
.checkout .co-secure { margin-top: .85rem; font-size: .78rem; color: var(--shop-text-muted); display: flex; gap: .4rem; align-items: flex-start; }
.checkout .co-secure i { color: #16a34a; }
.checkout .co-virement { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--shop-radius); padding: .9rem 1rem; font-size: .86rem; }
.checkout .co-items { max-height: 320px; overflow-y: auto; }
.checkout .co-thumb { position: relative; width: 52px; height: 52px; border-radius: 10px; background: #f1f5f9; border: 1px solid var(--shop-border); flex-shrink: 0; }
.checkout .co-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.checkout .co-qty {
    position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
    background: #64748b; color: #fff; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.checkout .co-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--shop-border); font-size: .74rem; color: var(--shop-text-muted); }
.checkout .co-trust i { color: var(--shop-primary); margin-right: .25rem; }
.co-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(2px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.co-overlay.d-none { display: none !important; }
.co-overlay-box { background: #fff; border-radius: var(--shop-radius-lg); padding: 2rem 2.25rem; text-align: center; max-width: 360px; box-shadow: var(--shop-shadow-lg); }

/* ── Page de commande (confirmation / suivi) ──────────── */

.order-page .order-hero { background: #fff; border: 1px solid var(--shop-border); border-radius: var(--shop-radius-lg); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shop-shadow); }
.order-page .order-hero-icon { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 2.3rem; }
.order-page .order-card { background: #fff; border: 1px solid var(--shop-border); border-radius: var(--shop-radius-lg); padding: 1.4rem 1.5rem; box-shadow: var(--shop-shadow); }
.order-page .order-steps { display: flex; justify-content: space-between; position: relative; margin: .5rem 0 0; }
.order-page .order-steps::before { content: ''; position: absolute; top: 15px; left: 8%; right: 8%; height: 3px; background: var(--shop-border); }
.order-page .order-step { position: relative; text-align: center; flex: 1; font-size: .75rem; color: var(--shop-text-muted); }
.order-page .order-step .dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--shop-border); display: flex; align-items: center; justify-content: center; margin: 0 auto .35rem; position: relative; z-index: 1; }
.order-page .order-step.done .dot { background: var(--shop-primary); border-color: var(--shop-primary); color: #fff; }
.order-page .order-step.done { color: var(--shop-text); font-weight: 600; }
.virement-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--shop-radius); padding: 1rem 1.15rem; line-height: 1.6; font-size: .92rem; text-align: left; }

/* ── Code promo & barre « livraison gratuite » (panier, caisse) ── */
.promo-box { border-top: 1px dashed #e2e8f0; padding-top: .75rem; }
.promo-badge { display: inline-flex; align-items: center; background: #dcfce7; color: #166534; font-weight: 700; font-size: .82rem; letter-spacing: .04em; padding: .3rem .65rem; border-radius: 999px; }
.ship-progress { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: .55rem .75rem; color: #166534; }
.ship-progress-bar { height: 6px; background: #dcfce7; border-radius: 999px; margin-top: .4rem; overflow: hidden; }
.ship-progress-bar span { display: block; height: 100%; background: #16a34a; border-radius: 999px; transition: width .3s; }
.ship-progress-ok { font-weight: 600; }

/* ── Catégories et sous-catégories ─────────────────── */

/* Menu « Produits » : grand panneau pleine largeur, une colonne par catégorie principale */
.shop-mega-panneau { padding: 0; border: 0; }
.shop-mega-tout { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--shop-primary); text-decoration: none; padding: .25rem 0; }
.shop-mega-tout:hover { text-decoration: underline; }
.shop-mega-titre { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.shop-mega-titre a { font-weight: 700; color: var(--shop-text); text-decoration: none; }
.shop-mega-titre a:hover { color: var(--shop-primary); }
.shop-mega-sous { list-style: none; margin: 0; padding: 0; }
.shop-mega-sous a { display: block; color: var(--shop-text-muted); text-decoration: none; font-size: .88rem; padding: .22rem 0; }
.shop-mega-sous a:hover { color: var(--shop-primary); }
.shop-mega-ouvrir { display: none; border: 0; background: none; color: var(--shop-text-muted); padding: .35rem .6rem; }
.shop-mega-ouvrir i { display: inline-block; transition: transform .15s; }
.shop-mega-groupe.ouvert .shop-mega-ouvrir i { transform: rotate(180deg); }
.shop-mega .dropdown-toggle::after { transition: transform .15s; }
.shop-mega .dropdown-toggle.show::after { transform: rotate(180deg); }
@media (min-width: 992px) {
    .shop-mega { position: static; }
    .shop-mega-panneau.dropdown-menu { position: absolute; left: 0; right: 0; top: 100%; width: 100%; margin-top: 0; border-radius: 0;
        border-top: 1px solid var(--shop-border); box-shadow: 0 18px 30px -12px rgba(15,23,42,.18); max-height: calc(100vh - 90px); overflow-y: auto; }
    .shop-mega-panneau .container { padding-top: 1.5rem; padding-bottom: 1.75rem; }
    .shop-mega-tout { margin-bottom: 1.1rem; }
    .shop-mega-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.5rem 2rem; }
    .shop-mega-titre { padding-bottom: .45rem; margin-bottom: .5rem; border-bottom: 2px solid var(--shop-border); }
}
@media (max-width: 991.98px) {
    .shop-mega-panneau.dropdown-menu { box-shadow: none; border: 0; background: transparent; padding: 0 0 .5rem; }
    .shop-mega-panneau .container { padding: 0 1rem; }
    .shop-mega-tout { padding: .5rem 0; }
    .shop-mega-groupe { border-top: 1px solid var(--shop-border); }
    .shop-mega-titre a { flex: 1; padding: .6rem 0; }
    .shop-mega-ouvrir { display: inline-block; }
    .shop-mega-sous { display: none; padding: 0 0 .5rem .9rem; }
    .shop-mega-groupe.ouvert .shop-mega-sous { display: block; }
    .shop-mega-sous a { padding: .4rem 0; }
}
.cat-fil { font-size: .85rem; color: var(--shop-text-muted, #6b7280); display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; }
.cat-fil a { color: var(--shop-primary); text-decoration: none; }
.cat-fil a:hover { text-decoration: underline; }
.cat-fil-actuel { color: var(--shop-text); font-weight: 600; }
.cat-fil-sep { color: #cbd5e1; }
.cat-pastilles { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-pastille { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--shop-border);
    background: #fff; color: var(--shop-text); font-size: .85rem; text-decoration: none; transition: var(--shop-transition); }
.cat-pastille span { font-size: .75rem; color: var(--shop-text-muted, #6b7280); }
.cat-pastille:hover { border-color: var(--shop-primary); color: var(--shop-primary); }
.cat-pastille.active { background: var(--shop-primary); border-color: var(--shop-primary); color: #fff; }
.cat-pastille.active span { color: rgba(255,255,255,.85); }
.cat-nb { font-size: .75rem; color: #94a3b8; font-weight: 400; }
.cat-sous { border-left: 2px solid var(--shop-border); padding-left: .75rem; }
.category-icon-image { background: none; overflow: hidden; }
.category-card:hover .category-icon-image { background: none; }

/* ── Marque ────────────────────────────────────────── */

.product-card-marque { font-weight: 700; color: var(--shop-text); }
.produit-marque { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--shop-text-muted);
    text-decoration: none; border: 1px solid var(--shop-border); border-radius: 999px; padding: .15rem .65rem; margin-bottom: .5rem; }
.produit-marque:hover { color: var(--shop-primary); border-color: var(--shop-primary); }
.produit-marque-logo { padding: .3rem .6rem; background: #fff; }
.produit-marque-logo img { height: 28px; max-width: 140px; object-fit: contain; display: block; }
.marque-entete { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--shop-border); border-radius: 12px; padding: .9rem 1.1rem; }
.marque-entete-logo { height: 56px; max-width: 160px; object-fit: contain; flex-shrink: 0; }

/* ── Vitrine : barre d'annonce, promotions, images, marques, pop-up (admin → Apparence) ── */

.vitrine-barre { position: relative; font-size: .88rem; padding: .5rem 2.5rem; text-align: center; }
.vitrine-barre .container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem 1rem; }
.vitrine-barre a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.vitrine-barre-fermer { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); border: 0; background: none; opacity: .8; padding: .25rem .4rem; }
.vitrine-barre-fermer:hover { opacity: 1; }
.vitrine-promo { display: grid; grid-template-columns: 1fr; border-radius: var(--shop-radius-lg); overflow: hidden; background: var(--promo-fond); color: var(--promo-texte); box-shadow: var(--shop-shadow-md); }
.vitrine-promo.avec-image { grid-template-columns: 1.1fr 1fr; }
.vitrine-promo-texte { padding: 2.25rem 2.5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.vitrine-promo-surtitre { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; opacity: .85; margin-bottom: .35rem; }
.vitrine-promo-titre { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.15; margin-bottom: .6rem; color: inherit; }
.vitrine-promo-btn { background: var(--promo-texte); color: var(--promo-fond); font-weight: 700; border-radius: 999px; padding: .6rem 1.4rem; }
.vitrine-promo-btn:hover { opacity: .9; background: var(--promo-texte); color: var(--promo-fond); }
.vitrine-promo-image img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 220px; }
.vitrine-compte { display: flex; gap: .5rem; margin-bottom: 1.1rem; }
.vitrine-compte span { background: rgba(255,255,255,.18); border-radius: 10px; padding: .35rem .6rem; font-size: .8rem; min-width: 3.4rem; text-align: center; }
.vitrine-compte b { display: block; font-size: 1.35rem; line-height: 1.1; }
.vitrine-image { display: block; border-radius: var(--shop-radius-lg); overflow: hidden; }
.vitrine-image.pleine { border-radius: 0; }
.vitrine-image img { width: 100%; height: auto; display: block; }
a.vitrine-image { transition: var(--shop-transition); }
a.vitrine-image:hover { box-shadow: var(--shop-shadow-md); }
.vitrine-marques-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.vitrine-marque { background: #fff; border: 1px solid var(--shop-border); border-radius: var(--shop-radius); height: 96px; display: flex; align-items: center; justify-content: center;
    padding: 1rem; text-decoration: none; color: var(--shop-text); font-weight: 700; transition: var(--shop-transition); }
.vitrine-marque img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: var(--shop-transition); }
.vitrine-marque:hover { border-color: var(--shop-primary); box-shadow: var(--shop-shadow-md); }
.vitrine-marque:hover img { filter: none; opacity: 1; }
.vitrine-popup .modal-content { border: 0; border-radius: var(--shop-radius-lg); overflow: hidden; position: relative; }
.vitrine-popup-image { width: 100%; display: block; max-height: 60vh; object-fit: cover; }
.vitrine-popup-fermer { position: absolute; top: .75rem; right: .75rem; z-index: 2; background-color: rgba(255,255,255,.9); border-radius: 50%; padding: .5rem; opacity: 1; }
@media (max-width: 767.98px) {
    .vitrine-promo.avec-image { grid-template-columns: 1fr; }
    .vitrine-promo-image { order: -1; }
    .vitrine-promo-image img { min-height: 0; max-height: 220px; }
    .vitrine-promo-texte { padding: 1.5rem; }
    .vitrine-barre { padding: .45rem 2.25rem; font-size: .82rem; }
}

/* ── Documents PDF (fiche produit) ─────────────────── */

.produit-docs { border: 1px solid var(--shop-border); border-radius: var(--shop-radius); padding: .85rem 1rem; background: #fff; }
.produit-doc { display: flex; align-items: center; gap: .75rem; padding: .5rem .25rem; border-top: 1px solid var(--shop-border); text-decoration: none; color: var(--shop-text); }
.produit-docs .fw-bold + .produit-doc { border-top: 0; }
.produit-doc:hover { color: var(--shop-primary); }
.produit-doc-icone { font-size: 1.4rem; color: #dc2626; flex-shrink: 0; }
.produit-doc-icone.fds { color: #d97706; }
.produit-doc-nom { flex: 1; min-width: 0; font-size: .9rem; font-weight: 600; line-height: 1.25; }
.produit-doc-nom small { display: block; font-weight: 400; color: var(--shop-text-muted); font-size: .75rem; }

/* ── Zoom au survol de la photo produit ────────────── */

.product-gallery-main.zoomable { cursor: zoom-in !important; }
.product-gallery-main.zoomable img { transition: transform .25s ease-out; will-change: transform; }

/* ── Recherche : aperçu en direct sous la barre ────── */

.rl-zone { position: relative; }
.rl-panneau { position: absolute; top: calc(100% + 6px); left: 0; z-index: 1080; width: max(100%, 420px); max-width: calc(100vw - 2rem);
    background: #fff; border: 1px solid var(--shop-border); border-radius: var(--shop-radius); box-shadow: 0 18px 40px -12px rgba(15,23,42,.25); overflow: hidden; }
.search-form .rl-panneau { left: auto; right: 0; }
.rl-panneau[hidden] { display: none; }
.rl-groupe { padding: .4rem 0; border-bottom: 1px solid var(--shop-border); }
.rl-groupe:last-child { border-bottom: 0; }
.rl-titre { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--shop-text-muted); padding: .25rem .9rem; }
.rl-item { display: flex; align-items: center; gap: .7rem; padding: .45rem .9rem; color: var(--shop-text); text-decoration: none; }
.rl-item:hover, .rl-item.actif { background: #eff6ff; color: var(--shop-primary); }
.rl-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--shop-border); flex-shrink: 0; background: #f8fafc; }
.rl-nom { flex: 1; min-width: 0; font-size: .88rem; font-weight: 600; line-height: 1.25; }
.rl-nom small { display: block; font-weight: 400; color: var(--shop-text-muted); font-size: .75rem; }
.rl-nom mark { background: #fef08a; padding: 0; color: inherit; }
.rl-prix { font-weight: 700; font-size: .88rem; white-space: nowrap; }
.rl-prix s { color: var(--shop-text-muted); font-weight: 400; font-size: .75rem; margin-right: .25rem; }
.rl-pastilles { display: flex; flex-wrap: wrap; gap: .35rem; padding: .25rem .9rem .35rem; }
.rl-pastilles a { font-size: .8rem; border: 1px solid var(--shop-border); border-radius: 999px; padding: .2rem .65rem; text-decoration: none; color: var(--shop-text); }
.rl-pastilles a:hover, .rl-pastilles a.actif { border-color: var(--shop-primary); color: var(--shop-primary); background: #eff6ff; }
.rl-tout { display: block; text-align: center; padding: .6rem; font-size: .85rem; font-weight: 600; color: var(--shop-primary); text-decoration: none; background: #f8fafc; }
.rl-tout:hover, .rl-tout.actif { background: #eff6ff; }
.rl-vide { padding: 1rem .9rem; font-size: .88rem; color: var(--shop-text-muted); text-align: center; }

/* ── Fiche produit : description et caractéristiques ── */

.produit-bloc { background: #fff; border-radius: 16px; border: 1px solid var(--shop-border); padding: 2rem; }
.produit-carac { font-size: .92rem; }
.produit-carac th { width: 42%; font-weight: 600; color: var(--shop-text); background: #f8fafc; padding: .6rem .8rem; }
.produit-carac td { color: var(--shop-text-muted); padding: .6rem .8rem; overflow-wrap: anywhere; }
.produit-carac tr:last-child th, .produit-carac tr:last-child td { border-bottom: 0; }
.produit-carac-puces { list-style: none; padding: 0; margin-bottom: 0; display: grid; gap: .45rem; font-size: .92rem; color: var(--shop-text-muted); }
.produit-carac-puces li { display: flex; gap: .55rem; align-items: baseline; }
.produit-carac-puces i { color: var(--shop-primary); font-size: .85rem; flex-shrink: 0; }
@media (max-width: 575.98px) { .produit-bloc { padding: 1.25rem; } }

/* ── Bouton de langue (FR | EN) ── */
.shop-langue { font-size: .8rem; font-weight: 700; letter-spacing: .04em; min-width: 2.4rem; }
