/* ---------- Variables globales ---------- */
/* :root {
    --bg: #f6f7fb;
    --fg: #0f172a;
    --muted: #6b7280;
    --brand: #8b6914;
    --brand-600: #734f05;
    --card: #ffffff;

    
    --wrap: 1680px;
    --gutter: 16px;

    
    --line: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.1);
} */

/* ---------- Reset & Base ---------- */
/* * {
    box-sizing: border-box;
} */
/* html,
body {
    margin: 0;
    padding: 0;
} */
/* body {
    font:
        16px/1.5 system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        "Helvetica Neue",
        Arial,
        "Noto Sans",
        "Liberation Sans",
        sans-serif;
    color: var(--fg);
    background: rgba(139, 105, 20, 0.08);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
} */
/* a {
    text-decoration: none !important;
} */

/* ---------- Helpers ---------- */
.container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 12px var(--gutter);
    padding-top: 0%;
}
.flex {
    display: flex;
}
.between {
    justify-content: space-between;
}
.center {
    align-items: center;
}

/* ---------- Branding & Header/Footer ---------- */
.logo {
    font-weight: 800;
    text-decoration: none;
    color: var(--fg);
}
/* .logo-img {
    height: 50px;
    width: auto;
    display: block;
} */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}
.site-header nav a {
    margin-left: 16px;
    text-decoration: none;
    color: var(--fg);
}

.site-footer {
    margin-top: 60px;
    padding: 24px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

/* Clean header (option) */
.site-header.clean {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #eef0f4;
}
.header-row {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 12px var(--gutter);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: transform 0.2s ease;
    opacity: 0;
    transform: translateY(-4px);
    animation: fadeInBrand 0.6s ease forwards;
}
.brand:hover {
    transform: translateY(-2px);
}
.logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #fff; */
    /* border-radius: 12px; */
    padding: 4px;
    padding-left: 8px;
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); */
    transition: box-shadow 0.3s ease;
}
.brand:hover .logo-wrap {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}
.logo-img {
    height: 65px;
    width: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-name {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.3px;
    color: var(--fg);
    transition: color 0.3s ease;
}
.brand-sub {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.5px;
}
.brand:hover .brand-name {
    color: var(--brand);
}
@keyframes fadeInBrand {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}
.nav-link {
    text-decoration: none;
    color: var(--fg);
    padding: 8px 10px;
    border-radius: 10px;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}
.nav-link:hover {
    background: #f4f5f7;
}
.nav-link.active {
    color: var(--brand);
    background: rgba(139, 105, 20, 0.08);
    font-weight: 600;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 24px;
}
.chip-admin {
    text-decoration: none;
    color: #111827;
    background: #fff;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
}
.chip-admin:hover {
    background: #f7f7f9;
}
.hello {
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 1024px) {
    .nav-main {
        gap: 14px;
    }
    .nav-right {
        gap: 10px;
    }
    .brand-name {
        display: none;
    }
}
@media (max-width: 860px) {
    .header-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    .nav-main {
        order: 3;
        width: 100%;
        justify-content: center;
        border-top: 1px solid #f0f2f5;
        padding-top: 8px;
    }
    .logo-img {
        height: 40px;
    }
    .nav-right {
        order: 2;
        margin-left: auto;
    }
}

/* ---------- Buttons ---------- */

/* .btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: var(--brand);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
} */

.btn-ghost,
.btn.btn-ghost {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--line);
    padding: 10px;
}

/* ---------- Generic Grid & Cards ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border-radius: 16px;
    /* padding: 12px !important; */
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
    /* background: #fff; */
    /* border-radius: 0.75rem; */
    /* box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); */
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.card:hover {
    transform: translateY(-2px);
}
.card img {
    /* width: 100%;
    height: 200px; */
    object-fit: cover;
    border-radius: 12px;
    /* background: #f3f4f6; */
}

/* ---------- Product (fiche) ---------- */
.product {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}
.product img {
    width: 100%;
    border-radius: 16px;
}
@media (max-width: 900px) {
    .product {
        grid-template-columns: 1fr;
    }
    .qv-image.media {
        margin-top: 33px !important;
    }
}

/* ---------- Forms ---------- */
.form {
    display: grid;
    gap: 12px;
    max-width: 560px;
}
.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-row .req {
    color: var(--brand);
}
.form-row .help {
    color: var(--muted);
    font-size: 12px;
}
.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ---------- Tables ---------- */
.table {
    width: 100%;
    border-collapse: collapse;
    /* background: #fff; */
    border-radius: 12px;
    overflow: hidden;
}
.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.table thead {
    background: #8b6914;
}

/* ---------- Stats / Cards ---------- */
.stats {
    display: flex;
    gap: 12px;
    margin: 12px 0 24px;
}
.stat {
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.flash {
    padding: 10px 12px;
    border-radius: 8px;
    margin: 10px 0;
}
.flash.success {
    background: #dcfce7;
}
.flash.error {
    background: #fee2e2;
}

/* ---------- Home (light) ---------- */
.home-hero {
    margin: 0 0 40px;
    padding: 60px 0;
    background: linear-gradient(135deg, #fff, #fafafa);
    border-radius: 28px;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.hero-left,
.hero-text {
    flex: 1;
}
.hero-right,
.hero-image {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-left h1 {
    font-size: 36px;
    margin: 0 0 6px;
}
.hero-left .sub {
    color: var(--muted);
    margin: 0 0 14px;
}
.hero-cta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.usp {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 0;
    margin: 10px 0 0;
    list-style: none;
    color: var(--muted);
}
.usp li span {
    color: var(--brand);
    margin-right: 4px;
}

.hero-right .hero-card,
.hero-image img {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #eee;
}
.hero-right .hero-card img,
.hero-image img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}
.badge.big {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #111827;
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.home-cats {
    margin: 10px 0 10px;
}
.home-cats h2 {
    margin: 0 0 10px;
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    font-size: 14px;
}
.chip:hover {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.12);
}

.home-strip {
    margin: 8px 0 28px;
}
.strip-inner {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 20px;
}
.dot {
    opacity: 0.5;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 2px 10px;
}
.section-head .link {
    text-decoration: none;
    color: #0f172a;
    opacity: 0.8;
}

.grid-products .product-card {
    overflow: hidden;
    padding: 0;
}

.home-testimonial {
    margin: 24px 0;
}
.testi-card {
    background: var(--card);
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}
.quote {
    font-size: 18px;
    margin: 0 0 12px;
}
.by {
    display: flex;
    gap: 10px;
    align-items: center;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.home-newsletter .newsletter-card {
    /* background: linear-gradient(180deg, #fff, #f9fafb); */
    /* border: 1px solid #eee; */
    /* border-radius: 18px; */
    padding: 45px;
    text-align: center;
}
.nl-form {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 10px 0;
}
.nl-form input {
    width: 320px;
    max-width: 70vw;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.hint {
    color: var(--muted);
}

.home-cta-final .final-card {
    margin: 15px;
    padding: 22px;
    border-radius: 18px;
    background: var(--card);
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

@media (max-width: 980px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }
    .hero-left h1 {
        font-size: 32px;
    }
    .hero-right .hero-card img,
    .hero-image img {
        max-width: 90%;
        margin: 0 auto;
    }
    .usp {
        justify-content: center;
    }
}

/* ---------- Carousel horizontal ---------- */
.carousel {
    position: relative;
    overflow: hidden;
}
.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
}
.carousel-track > * {
    scroll-snap-align: start;
}
.carousel-btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
}
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Admin ---------- */
.admin-dashboard .muted {
    color: var(--muted);
}
.admin-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.admin-head h1 {
    margin: 0;
}
.admin-head .head-actions {
    display: flex;
    gap: 10px;
}
.kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.kpi {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.kpi-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.kpi-icon {
    font-size: 18px;
}
.kpi-label {
    color: #111827;
    font-weight: 600;
}
.kpi-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}
.kpi-foot {
    font-size: 12px;
}
.quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 6px 0 16px;
}
.quick-card {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
}
.q-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(139, 105, 20, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--brand);
}
.q-body strong {
    display: block;
}
.q-body .muted {
    font-size: 13px;
}

.admin-section {
    margin-top: 10px;
}
.status {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid var(--line);
    background: #fff;
}
.status.ok {
    color: #065f46;
    background: #ecfdf5;
    border-color: #d1fae5;
}
.status.warn {
    color: #92400e;
    background: #fff7ed;
    border-color: #fed7aa;
}
.admin-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.breadcrumbs {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 14px;
}
.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

.switch {
    display: flex;
    align-items: center;
    gap: 8px;
}
.switch input {
    width: 18px;
    height: 18px;
}

.table-wrap {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
/* .table-admin th {
    background: #fafafa;
} */
.table-actions {
    text-align: right;
}
@media (max-width: 900px) {
    .table-actions {
        text-align: left;
    }
}

.tag {
    display: inline-block;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    color: #0f172a;
}

/* ---------- Quick View Modal ---------- */
/* .qv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    place-items: center;
    z-index: 1000;
} */
/* .qv-overlay.is-open {
    display: grid;
} */
/* .qv-modal {
    width: min(1050px, 92vw);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 18px;
    position: relative;
} */
/* .qv-modal {
    width: min(1100px, calc(100vw - 24px));
    max-height: 92vh;
    overflow: auto;
} */

.qv-loading,
.qv-error {
    padding: 60px;
    text-align: center;
    color: #6b7280;
}
/* .qv-content {
    position: relative;
} */
/* .qv-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
} */
/* .qv-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
} */

/* .qv-body {
    display: grid;
    grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
} */

/* .qv-left {
    padding: 12px;
} */

/* .qv-left,
.qv-right {
    min-width: 0;
} */

/* .qv-image {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fafafa;
    padding: 12px;
} */

/* Bloc image */
/* .qv-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #f7f7f7;
} */

.qv-main-img {
    display: block;
    width: 100%;
    height: clamp(320px, 42vw, 520px);
    max-height: 58vh;
    object-fit: contain;
    object-position: center;
    background: #f7f7f7;
}
/* .qv-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
} */
/* .qv-right {
    padding: 8px;
} */

/* .qv-title {
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 12px;
    font-weight: 800;
} */
/* .qv-badges {
    margin-bottom: 10px;
} */
/* .qv-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f2f4f7;
    margin-right: 6px;
} */
/* .qv-ref {
    color: #374151;
    margin: 6px 0 16px;
} */
/* .qv-controls {
    display: flex;
    gap: 10px;
    align-items: center;
} */
/* .qv-controls .qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    height: 38px;
}
.qv-controls .qty-btn {
    width: 34px;
    height: 38px;
    border: 0;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
}
.qv-controls .qty-input {
    width: 56px;
    height: 38px;
    border: 0;
    text-align: center;
}
.qv-controls .unit-select .unit {
    height: 38px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 0 12px;
    cursor: default;
}
.qv-image.media {
    background: transparent;
    transition: background 0.3s ease;
}
.qv-content .qv-left .media:hover {
    background: #fff;
} */
/* .qv-description {
    color: #374151;
    margin: 8px 0 4px;
    line-height: 1.5;
} */

.btn-primary {
    height: 38px;
    border: 0;
    background: var(--brand);
    color: #fff;
    border-radius: 10px;
    padding: 0 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-ghost {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
}
@media (max-width: 900px) {
    /* .qv-body {
        grid-template-columns: 1fr;
    } */
    /* .qv-title {
        font-size: 24px;
    } */
}

/* =====================================================
   CATALOGUE – Scoped styles (page catalogue)
   Ajoute .catalog-page sur le wrapper <div class="shell catalog-page">
   ===================================================== */

.new-item {
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Layout & Sidebar */
.catalog-page .layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 18px;
    align-items: start;
}
@media (max-width: 1100px) {
    .catalog-page .layout {
        grid-template-columns: 1fr;
    }
}

.catalog-page .bc {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.92rem;
    margin: 10px 4px 10px;
}
.catalog-page .bc a {
    color: inherit;
    text-decoration: none;
}
.catalog-page .bc a:hover {
    color: var(--fg);
    text-decoration: underline;
}

.catalog-page .sb {
    position: sticky;
    top: 112px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
@media (max-width: 1100px) {
    .catalog-page .sb {
        position: static;
        top: auto;
    }
}
.catalog-page .sb-head {
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--line);
}
.catalog-page .tabs {
    display: flex;
    background: #f3f4f6;
    padding: 5px;
    border-radius: 12px;
}
.catalog-page .tab {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--fg);
    transition: transform 0.15s ease;
}
.catalog-page .tab.active {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.catalog-page .tab:hover {
    transform: translateY(-1px);
}
.catalog-page .sb-scroll {
    max-height: calc(100vh - 170px);
    overflow: auto;
    padding: 6px 10px 14px;
}
.catalog-page details.acc {
    border-bottom: 1px solid var(--line);
}
.catalog-page details.acc:last-child {
    border-bottom: none;
}
.catalog-page details.acc > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    font-weight: 700;
}
.catalog-page .acc-body {
    padding: 0 6px 12px;
}
.catalog-page .subcats {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}
.catalog-page .sub {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--fg);
    text-decoration: none;
    border: 1px solid transparent;
}
.catalog-page .sub:hover {
    background: #f8fafc;
    border-color: var(--line);
}
.catalog-page .sub.active {
    background: #fff;
    border-color: #d1d5db;
}

/* Head outils */
.catalog-page .head {
    position: sticky;
    top: 112px;
    z-index: 11;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
@media (max-width: 1100px) {
    .catalog-page .head {
        position: static;
        top: auto;
    }
}

.catalog-page .sort {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.95rem;
}
.catalog-page .sort select {
    appearance: none;
    border: 1px solid var(--line);
    background: #f8f9fa;
    color: var(--fg);
    border-radius: 10px;
    padding: 8px 36px 8px 12px;
}
.catalog-page .pbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 70px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: var(--fg);
    background: #fff;
    transition:
        transform 0.12s ease,
        box-shadow 0.2s ease;
}
.catalog-page .pbtn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.catalog-page .pbtn.disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* Grille produits (5 → 4 → 3 → 2) */
.catalog-page .grid {
    margin-top: 14px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
    .catalog-page .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .catalog-page .grid-home {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (min-width: 1100px) {
    .catalog-page .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .catalog-page .grid-home {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
@media (min-width: 1440px) {
    .catalog-page .grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .catalog-page .grid-home {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Carte produit – moderne & épuré */
.catalog-page .card {
    position: relative;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition:
        box-shadow 0.25s ease,
        transform 0.12s ease;
}
.card-quantity {
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: rgba(139, 105, 20, 0.08);
    border-radius: 4px;
    font-size: 13px;
    color: #555;
}
.catalog-page .card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* PARTIE IMAGE – full-bleed sans bordure ni marge */
.catalog-page .media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #f8fafc;
    margin: 0;
    border: 0;
}
.catalog-page .card:hover .media {
    background: #fff;
}
.catalog-page .media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 90%;
    object-fit: contain;
    transform: none;
    transition: transform 0.3s ease;
}
.catalog-page .card:hover .media img {
    transform: scale(1.03);
    transform-origin: center center;
}

/* Cœur sur l'image */
.catalog-page .fav {
    position: absolute;
    inset: 12px 12px auto auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    color: #b91c1c;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}
.catalog-page .media:hover .fav {
    opacity: 1;
    transform: translateY(0);
}
.catalog-page .fav[aria-pressed="true"] {
    background: #b91c1c;
    color: #fff;
}

/* PARTIE CONTENU – séparée visuellement de l'image */
.catalog-page .c-body {
    padding: 12px;
    /* border-top: 1px solid #eef2f7; */
    text-align: initial;
}

/* Ligne ref (gauche) / prix (droite) sur une seule ligne */
.catalog-page .row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px;
}
.catalog-page .ref {
    color: #8b5c2e;
    font-weight: 500;
    font-size: 0.8rem;
    white-space: nowrap;
}
.catalog-page .price {
    font-family: var(--font__family);
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Titre */
.catalog-page .title {
    font-family: var(--font__family);
    font-weight: 500;
    word-break: break-word;
    margin: 0 0 10px;
    line-height: 1.25;
    max-width: 38ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.catalog-page .title a {
    color: var(--fg);
    text-decoration: none;
}
.catalog-page .title a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Meta sous le titre (alignée à gauche) */
.catalog-page .meta {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #6b7280;
    margin: 4px 0 8px;
}
.catalog-page .meta a {
    color: inherit;
    text-decoration: none;
}

/* Actions bas de carte */
.catalog-page .row-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Sélecteur quantité compact */
.catalog-page .qty-group {
    /* display: grid;
    grid-template-columns: 40px 56px 40px;
    align-items: center;
    background: #f3f4f6;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); */
    display: inline-grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}
.catalog-page .qty-btn {
    /* border: 0;
    background: transparent;
    height: 40px;
    font-size: 18px;
    line-height: 40px;
    cursor: pointer;
    color: #111827;
    display: grid;
    place-items: center;
    user-select: none; */
    width: 100%;
    height: 100%;
    border: 0;
    background: #f3f4f6;
    border-right: 1px solid #e6eaf0;
    font-size: 20px;
    line-height: 1;
    color: #111827;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.catalog-page .qty-field {
    /* width: 56px;
    height: 40px;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    text-align: center;
    font: inherit;
    font-weight: 800;
    color: #0f172a;
    line-height: 40px;
    pointer-events: none; */
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0 6px;
    background: #fff;
    text-align: center;
    font: inherit;
    font-weight: 700;
    color: #0f172a;
    box-sizing: border-box;
}
.catalog-page .qty-btn:last-child {
    border-right: none;
}

/* Bouton panier */
.catalog-page .cart {
    width: 66px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--brand), var(--brand-600));
    color: #fff;
    border: none;
    box-shadow: 0 6px 16px rgba(139, 105, 20, 0.22);
    display: grid;
    place-items: center;
    transition:
        transform 0.12s ease,
        box-shadow 0.2s ease;
    padding: 4px;
}
.catalog-page .cart:hover {
    box-shadow: 0 8px 20px rgba(139, 105, 20, 0.28);
    transform: translateY(-1px);
}
.catalog-page .cart:active {
    transform: translateY(1px);
}

/* Accessibilité (motion) */
@media (prefers-reduced-motion: reduce) {
    .catalog-page .card,
    .catalog-page .media img,
    .catalog-page .fav {
        transition: none;
    }
}

/* ---------- Panier header ---------- */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--fg);
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease;
}
.cart-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.cart-count {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 700;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(139, 105, 20, 0.25);
    transition: transform 0.15s ease;
}
.cart-link:hover .cart-count {
    transform: scale(1.08);
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}
.cart-count.pulse {
    animation: pulse 0.3s ease;
}

/* --- SLIDER FULL WIDTH --- */
.hero-slider.fullwidth {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #000;
    color: #fff;
}
.hero-slider .slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.hero-slider .slides {
    display: flex;
    transition: transform 0.6s ease;
    width: 100%;
}
.hero-slider .slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: clamp(280px, 60vw, 620px);
}
.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* object-position: center top; */
    display: block;
}
.hero-slider .slide-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    padding: 0 20px;
}
.hero-slider .slide-caption h2 {
    font-size: clamp(26px, 4vw, 48px);
    margin-bottom: 12px;
}
.hero-slider .slide-caption p {
    font-size: clamp(16px, 2vw, 22px);
    margin-bottom: 16px;
}
.hero-slider .btn {
    background: #8b5c2e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}
.hero-slider .btn:hover {
    background: #8b5c2e;
}
.hero-slider .btn.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.hero-slider .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 28px;
    transition: background 0.2s ease;
    z-index: 5;
}
.hero-slider .nav:hover {
    background: rgba(0, 0, 0, 0.6);
}
.hero-slider .nav.prev {
    left: 20px;
}
.hero-slider .nav.next {
    right: 20px;
}
.hero-slider .dots {
    position: absolute;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.hero-slider .dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #fff6;
    cursor: pointer;
    transition: background 0.3s;
}
.hero-slider .dots button[aria-current="true"] {
    background: #fff;
}

/* checkout-page */

.checkout-page {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.checkout-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.checkout-steps {
    margin-bottom: 0.75rem;
    padding: 12px !important;
}

.checkout-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.checkout-steps-list li {
    position: relative;
    padding-left: 1.2rem;
    color: #6b7280;
}

.checkout-steps-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    border: 2px solid #d1d5db;
}

.checkout-steps-list li.done {
    color: #10b981;
}

.checkout-steps-list li.done::before {
    border-color: #10b981;
    background: #10b981;
}

.checkout-steps-list li.current {
    color: #111827;
    font-weight: 600;
}

.checkout-steps-list li.current::before {
    border-color: #6366f1;
    background: #eef2ff;
}

.checkout-cart h2,
.checkout-confirm h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.checkout-cart-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.checkout-cart-summary {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.checkout-infos {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 1.25rem;
    font-size: 0.9rem;
}

.checkout-infos li {
    margin-bottom: 0.35rem;
    color: #374151;
}

.checkout-form {
    margin-bottom: 0.75rem;
}

.btn-full {
    width: 100%;
}

.checkout-legal {
    color: #6b7280;
    margin: 0;
}

.small {
    font-size: 0.8rem;
}

@media (max-width: 991px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-confirm {
        order: -1;
    }
}

@media (max-width: 576px) {
    .checkout-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-header a {
        width: 100%;
        text-align: center;
    }
}

/* page Thanks */

.thanks-page {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.thanks-card {
    max-width: 520px;
    width: 100%;
    text-align: center;
    padding: 2.5rem 2rem;
}

.thanks-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.thanks-card h1 {
    font-size: 1.55rem;
    margin-bottom: 0.75rem;
}

.thanks-text {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.thanks-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-ghost {
    text-align: center;
}

@media (max-width: 576px) {
    .thanks-card {
        padding: 2rem 1.25rem;
    }
}

/* ––– Structure générale ––– */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    gap: 15px;
}

/* Pour mobile : éléments en colonne */
@media (max-width: 640px) {
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-right {
        width: 100%;
    }
}

/* ––– Champs de saisie ––– */
.toolbar .input {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    transition: 0.25s ease;
    background: #f8f8f8;
}

/* Focus élégant */
.toolbar .input:focus {
    border-color: #4a8cff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(74, 140, 255, 0.2);
    outline: none;
}

/* ––– Select ––– */
#prod-sort {
    min-width: 200px;
    cursor: pointer;
}

/* Hover */
.toolbar .input:hover {
    background: #ffffff;
    border-color: #c4c4c4;
}

/* Conteneur à droite */
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --------------------------------------------------------------------- */
/* 🎨 CSS SIMPLIFIÉ - Centrage parfait avec système de zones */
/* --------------------------------------------------------------------- */
/* .product-card .media {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
} */

/* .product-card .image-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .slide-image {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
} */

/* .product-card .slide-image.active {
    opacity: 1;
    z-index: 1;
} */

.fav {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.7;
    transition: all 0.2s ease;
    padding: 0;
}

.fav:hover {
    opacity: 1;
    transform: scale(1.1);
}

.fav.active {
    color: #e74c3c;
    opacity: 1;
}

.fav.loading {
    pointer-events: none;
    opacity: 0.5;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ----- STYLES BARRE DE RECHERCHE PREMIUM ----- */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    max-width: 550px;
    position: relative;
}

.search-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 14px 48px 14px 48px;
    border: 2px solid #e0e0e0;
    border-radius: 12px 0 0 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    background: white;
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.search-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    pointer-events: none;
    z-index: 2;
}

.search-input:focus ~ .search-icon {
    color: #3498db;
}

.search-loading {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    z-index: 3;
}

.search-input.loading ~ .search-loading {
    display: block;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

.search-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #8b6914, #c09939);
    color: white;
    border: 2px solid #8b6914;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #8b6914, #c09939);
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.search-btn:active {
    transform: scale(0.98);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

.clear-search-btn {
    padding: 8px 14px;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.clear-search-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
    color: #c0392b;
}

.clear-search-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .search-bar {
        max-width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .search-input {
        border-radius: 12px;
    }

    .search-btn {
        border-radius: 12px;
        border: 2px solid #8b6914;
        width: 100%;
        justify-content: center;
    }

    .head {
        flex-direction: column;
        gap: 16px;
    }
}

/* Quick */

.qv-image.media {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

/* .qv-datasheet {
    margin-top: 12px;
    padding: 10px 12px;
    background: #e3f2fd;
    border-radius: 6px;
    border-left: 3px solid #1976d2;
} */

/* .qv-datasheet a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
} */

/* .qv-datasheet a:hover {
    text-decoration: underline;
} */

/* .qv-thumbs {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
} */

/* .qv-thumb {
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.qv-thumb img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
} */

/* Thumbnails */
/* .qv-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 84px));
    gap: 10px;
    margin-top: 12px;
} */

/* .qv-thumb img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
} */

/* .qv-thumb.active {
    outline: 2px solid #1976d2;
} */

/* Mobile */
@media (max-width: 768px) {
    /* .qv-modal {
        width: calc(100vw - 16px);
        max-height: 94vh;
        padding: 0;
    } */

    /* .qv-content {
        padding: 16px;
    } */

    /* .qv-body {
        grid-template-columns: 1fr;
        gap: 16px;
    } */

    /* .qv-image {
        border-radius: 14px;
    } */

    .qv-main-img {
        width: 100%;
        height: clamp(220px, 52vw, 340px);
        max-height: 38vh;
        object-fit: contain;
    }
    /* 
    .qv-right {
        overflow-wrap: anywhere;
    } */

    .row-top {
        gap: 10px;
        align-items: flex-start;
    }

    .row-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .qty-group {
        flex: 1 1 140px;
    }

    .qv-add,
    .cart.qv-add {
        flex: 1 1 140px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .qv-main-img {
        height: 240px;
        max-height: 34vh;
    }

    /* .qv-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .qv-thumb img {
        height: 60px;
    } */
}

/* home */

/* Bande défilante – logos partenaires */
.partners-band {
    /* margin: 20px 0 20px; */
    padding: 5px;
    /* border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line); */
    background: #fff;
    overflow: hidden;
}

.partners-track {
    display: flex;
    width: max-content;
    animation: partners-scroll 28s linear infinite;
}

.partners-row {
    display: flex;
    gap: 40px;
    padding: 10px 0;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 0 4px;
}

.partner-item img {
    display: block;
    height: 90px;
    width: auto;
    /* filter: grayscale(1); */
    opacity: 0.9;
    transition:
        filter 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.partner-item img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-1px);
}

/* Animation continue */
@keyframes partners-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Respect des préférences utilisateur (moins d'animations) */
@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
    }
}

/* forgot password  */
.forgot-pass-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.forgot-pass-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 700px;
    width: 100%;
    align-items: start;
}

.forgot-pass-card {
    background: white;
    border-radius: 20px;
    padding: 60px 80px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forgot-pass-header {
    text-align: center;
    margin-bottom: 40px;
}

.forgot-pass-logo {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #8b6914 0%, #c09939 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    box-shadow: 0 8px 24px rgba(139, 105, 20, 0.25);
}

.forgot-pass-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
}

.forgot-pass-subtitle {
    font-size: 16px;
    color: #718096;
    margin: 0;
}

.flash.error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    animation: shake 0.4s ease;
}

.flash.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    animation: slideDown 0.5s ease;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-8px);
    }
    75% {
        transform: translateX(8px);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.forgot-pass-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label svg {
    color: #8b6914;
}

.form-group input {
    padding: 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #f7fafc;
}

.form-group input:focus {
    outline: none;
    border-color: #c09939;
    background: white;
    box-shadow: 0 0 0 3px rgba(192, 153, 57, 0.1);
}

.btn-login {
    background: linear-gradient(135deg, #8b6914 0%, #c09939 100%);
    color: white;
    border: none;
    padding: 18px 28px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(139, 105, 20, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 105, 20, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.forgot-pass-divider {
    position: relative;
    text-align: center;
}

.forgot-pass-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e2e8f0;
}

.forgot-pass-divider span {
    position: relative;
    background: white;
    padding: 0 20px;
    color: #a0aec0;
    font-size: 14px;
    font-weight: 500;
}

.forgot-pass-footer {
    text-align: center;
}

.forgot-pass-footer p {
    font-size: 15px;
    color: #718096;
    margin: 0 0 18px 0;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #2d3748;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
}

.btn-outline:hover {
    background: #fff9f0;
    border-color: #c09939;
    transform: translateY(-2px);
    color: #8b6914;
}

/* Responsive */
@media (max-width: 768px) {
    .forgot-pass-card {
        padding: 40px 32px;
    }
}

@media (max-width: 640px) {
    .forgot-pass-page {
        padding: 20px;
    }

    .forgot-pass-card {
        padding: 32px 24px;
    }

    .forgot-pass-header h1 {
        font-size: 28px;
    }
}

/* base */

.account-menu {
    position: relative;
}

.account-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #333;
}

.account-btn:hover {
    background: #f0f0f0;
}

.account-btn svg {
    width: 20px;
    height: 20px;
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    margin-top: 8px;
    z-index: 1000;
    display: none;
}

.account-dropdown.open {
    display: block;
}

.account-dropdown a,
.account-dropdown button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.2s ease;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
    background: #f5f5f5;
}

.account-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.account-dropdown a:last-child,
.account-dropdown button:last-child {
    border-radius: 0 0 8px 8px;
}

.account-dropdown hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 4px 0;
}

.account-name {
    padding: 12px 16px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

/* cart index  */

.cart-page {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cart-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: #6c757d;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(260px, 1fr);
    gap: 1.5rem;
}

.cart-table {
    margin-bottom: 0;
}

.cart-table thead tr th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    border-bottom-width: 1px;
}
.cart-items {
    padding: 12px !important;
}
.cart-item-row td {
    vertical-align: middle;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-item-thumb {
    width: 52px;
    height: 52px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-name {
    font-weight: 600;
}

.cart-item-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.muted {
    color: #6c757d;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.cart-summary {
    padding: 12px !important;
}
.cart-summary h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.cart-summary-line,
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.cart-summary-total {
    font-weight: 700;
    font-size: 1.02rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.cart-summary-note {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.cart-checkout-btn {
    width: 100%;
    margin-bottom: 0.75rem;
}

.cart-continue-bottom {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
}

.cart-continue-top {
    white-space: nowrap;
    font-size: 0.9rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px dashed #d1d5db;
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cart-empty h2 {
    margin-bottom: 0.5rem;
}

.cart-empty p {
    margin-bottom: 1.5rem;
    color: #6c757d;
}

.btn-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
}

@media (max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        order: -1;
    }
}

@media (max-width: 576px) {
    .cart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-continue-top {
        width: 100%;
        text-align: center;
    }

    .cart-item-info {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody tr {
        display: block;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .cart-table tbody tr td {
        display: flex;
        justify-content: space-between;
        padding-left: 0;
        padding-right: 0;
        border-top: none;
    }

    .cart-item-product {
        display: block;
        flex-direction: column;
    }

    .cart-item-qty::before {
        content: "Quantité";
        font-size: 0.8rem;
        color: #6c757d;
        margin-right: 0.5rem;
    }
}

/* admin order details */

.discount-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.discount-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.discount-btn {
    padding: 10px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.discount-btn:hover {
    border-color: #3498db;
    background: #ecf0f1;
}

.discount-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.discount-btn.cancel {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.discount-btn.cancel:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.discount-info {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: none;
}

.discount-info.show {
    display: block;
}

.discount-info p {
    margin: 5px 0;
    font-size: 14px;
}

.discount-info .highlight {
    color: #27ae60;
    font-weight: 600;
}

.item-discount-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-discount-input {
    width: 70px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

.item-discount-reset {
    padding: 4px 8px;
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.item-discount-reset:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.summary-section {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row.total {
    border-bottom: 2px solid #3498db;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 0;
    margin-top: 10px;
    color: #3498db;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* .btn-secondary:hover {
    background: #f9f9f9;
    border-color: #999;
} */
/* .btn-secondary {
    background: white;
    color: #333;
    border: 1px solid #ddd;
} */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* admin quotepdf  */

/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

html {
    height: 100%;
}

.controls {
    max-width: 950px;
    margin: 0 auto 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #734f05;
    color: white;
}

.btn-primary:hover {
    background: #5a3d04;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.document {
    max-width: 950px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    page-break-after: avoid;
}

.page-break {
    page-break-after: always;
    margin-top: 40px;
}

/* EN-TÊTE */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.header-left h1 {
    font-size: 28px;
    color: dark;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.header-left .tagline {
    font-size: 10px;
    color: #666;
    margin-bottom: 8px;
}

.header-left p {
    margin: 2px 0;
    font-size: 10px;
    color: #666;
}

.header-right {
    text-align: right;
}

.logo-box img {
    width: 40%;
    height: 40%;
    object-fit: contain;
    padding: 7px;
}

.doc-type {
    font-size: 24px;
    font-weight: 700;
    color: dark;
    margin-bottom: 4px;
}

.doc-type.quote {
    color: #f39c12;
}

.doc-number {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.doc-date {
    font-size: 10px;
    color: #999;
}

/* INFOS RAPIDES */
.quick-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding: 10px;
    background: #734e0511;
    border-radius: 6px;
}

.info-item {
    border-right: 1px solid #ddd;
    padding-right: 15px;
}

.info-item:last-child {
    border-right: none;
    padding-right: 0;
}

.info-label {
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 13px;
    font-weight: 600;
    color: #734f05;
}

/* BLOC CLIENT */
/* BLOC CLIENT */
.client-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.client-block,
.details-block {
    background: #734e0511;
    padding: 10px;
    border-radius: 6px;
}

.client-block h3,
.details-block h3 {
    font-size: 11px;
    font-weight: 700;
    color: #734f05;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.client-block p,
.details-block p {
    margin: 4px 0;
    font-size: 10px;
    line-height: 1.6;
    color: #333;
}

.client-label {
    font-weight: 600;
    color: #666;
    display: inline-block;
    width: 80px;
}

/* TABLEAU */
/* table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 10px;
} */

table thead {
    background: #734f05;
    color: white;
}

table th {
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    /* font-size: 10px; */
    /* border: 1px solid #734f05; */
}

table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

table tbody tr:hover {
    background: #f0f0f0;
}

.product-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-name {
    font-weight: 600;
    color: #333;
}

.product-ref {
    font-size: 9px;
    color: #999;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
}

.badge-tva {
    background: #f3e5d0;
    color: #734f05;
}

.badge-weight {
    background: #f3e5f5;
    color: #6a1b9a;
}

.badge-discount {
    background: #ffebee;
    color: #c62828;
}

/* TOTAUX */
.summary-section {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    margin-bottom: 20px;
}

.summary-box {
    width: 320px;
    border: 2px solid #734f05;
    border-radius: 6px;
    overflow: hidden;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 10px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    background: #734f05;
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 12px 15px;
}

.summary-row.total span:last-child {
    color: white;
}

.summary-label {
    color: #666;
}

.summary-value {
    font-weight: 600;
    color: #333;
}

/* CONDITIONS */
.conditions-section {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 9px;
    line-height: 1.6;
    color: #666;
}

.conditions-section h4 {
    font-size: 10px;
    font-weight: 700;
    color: #734f05;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.conditions-section p {
    margin: 4px 0;
}

/* SIGNATURE */
.signature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed #999;
}

.signature-box {
    text-align: center;
    font-size: 9px;
    color: #666;
}

.signature-line {
    margin-top: 35px;
    border-top: 1px solid #333;
    padding-top: 4px;
    min-height: 30px;
}

/* PIED DE PAGE */
.footer-section {
    text-align: center;
    font-size: 9px;
    color: #999;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.footer-section p {
    margin: 2px 0;
}

/* IMPRESSION */
@media print {
    body {
        padding: 0;
        background: white;
    }
    .controls {
        display: none;
    }
    .document {
        box-shadow: none;
        max-width: 100%;
        margin: 0;
        padding: 30px;
        page-break-after: always;
    }
    .page-break {
        page-break-after: always;
    }
}

/* ===== STYLES PAGINATION "CHARGER PLUS" ===== */
.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    margin-bottom: 48px;
}

.load-more-info {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.load-more-info strong {
    font-weight: 600;
    color: #333;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #2180a0 0%, #1d7480 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 128, 141, 0.3);
}

.btn-load-more:hover {
    background: linear-gradient(135deg, #1d7480 0%, #1a6873 100%);
    box-shadow: 0 6px 16px rgba(33, 128, 141, 0.4);
    transform: translateY(-2px);
}

.btn-load-more:active {
    transform: translateY(0);
}

.btn-load-more.loading {
    opacity: 0.8;
    pointer-events: none;
}

.btn-load-more .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-load-more.loading .spinner {
    display: block;
}

.btn-load-more.loading .icon,
.btn-load-more.loading .text {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== OPTIMISATION IMAGES ===== */
/* .product-card .slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .slide-image {
    transition: opacity 0.3s ease;
} */

/* ===== APPARITION PROGRESSIVE ===== */
.product-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card.new-item {
    animation: fadeInUp 0.6s ease-out;
}

/* ---------- Pages légales (CGV + Mentions) ---------- */

.page-cgv,
.page-mentions {
    padding: 64px 0 80px;
    /* même background que le body */
    background: inherit;
    /* ou simplement: background: inherit; si ton body a déjà ce fond partout */
}

/* Colonne centrale type "document" */

.page-cgv .container,
.page-mentions .container {
    max-width: 1000px; /* colonne plus fine pour la lecture */
    margin: 0 auto;
    /* padding: 40px var(--gutter) 48px; */
    padding: 50px;
    background: var(--card);
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

/* En-tête principal */

.page-cgv h1,
.page-mentions h1 {
    margin: 0 0 32px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

/* Sous-titres (grandes sections) */

.page-cgv h2,
.page-mentions h2 {
    margin: 40px 0 40px;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    /* text-align: center; */
}

/* Sous-sous-titres (si tu en as) */

.page-cgv h3,
.page-mentions h3 {
    margin: 28px 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

/* Texte du document */

.page-cgv p,
.page-mentions p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.9;
    color: #374151;
    text-align: justify; /* effet “vrai document” */
}

/* Listes */

.page-cgv ul,
.page-mentions ul,
.page-cgv ol,
.page-mentions ol {
    margin: 0 0 18px 22px;
    padding: 0;
    font-size: 16px;
    line-height: 1.9;
    color: #374151;
}

.page-cgv li,
.page-mentions li {
    margin: 0 0 6px;
}

/* Liens */

.page-cgv a,
.page-mentions a {
    color: #b45309;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.page-cgv a:hover,
.page-mentions a:hover {
    color: #92400e;
}

/* Notes / petites infos */

.page-cgv small,
.page-mentions small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #9ca3af;
}

/* Séparateurs entre gros blocs, si tu mets des <hr> */

.page-cgv hr,
.page-mentions hr {
    border: 0;
    border-top: 1px dashed #e5e7eb;
    margin: 28px 0;
}

/* Optionnel : blocs de section internes
   (si tu enveloppes chaque grand article dans <section class="legal-section">) */

.legal-section {
    padding: 20px 0 24px;
    border-bottom: 1px solid #edf2f7;
}

.legal-section:last-of-type {
    border-bottom: none;
}

/* Responsive */

@media (max-width: 768px) {
    .page-cgv,
    .page-mentions {
        padding: 40px 0 48px;
    }

    .page-cgv .container,
    .page-mentions .container {
        padding: 28px 18px 32px;
        border-radius: 16px;
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    }

    .page-cgv h1,
    .page-mentions h1 {
        font-size: 26px;
    }

    .page-cgv h2,
    .page-mentions h2 {
        font-size: 20px;
    }

    .page-cgv h3,
    .page-mentions h3 {
        font-size: 17px;
    }

    .page-cgv p,
    .page-mentions p,
    .page-cgv ul,
    .page-mentions ul,
    .page-cgv ol,
    .page-mentions ol {
        font-size: 15px;
    }
}

/*
x
xx
x

x

x
x
x

x
x
x
x
x

x
x
x
x



---------- Base ---------- */
:root {
    --bg: #f6f7fb;
    --fg: #0f172a;
    --muted: #6b7280;
    --brand: #8b6914;
    --brand-600: #734f05;
    --card: #ffffff;
    --line: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.1);
    --wrap: 1680px;
    --gutter: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font:
        16px/1.5 system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    color: var(--fg);
    background: rgba(139, 105, 20, 0.08);
}

a {
    text-decoration: none !important;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn--primary {
    background: var(--brand);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--line);
    box-shadow: none;
}

/* ---------- Quick View ---------- */
.qv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    place-items: center;
    z-index: 1000;
}

.qv-overlay.is-open {
    display: grid;
}

.qv-modal {
    width: min(1050px, 92vw);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 18px;
    position: relative;
}

.qv-content {
    position: relative;
}

.qv-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.qv-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.qv-left {
    padding: 12px;
    min-width: 0;
}

.qv-right {
    padding: 8px;
    min-width: 0;
}

.qv-image {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fafafa;
    padding: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.qv-image img,
.qv-image .qv-main-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 320px;
    margin: 0 auto;
    object-fit: contain;
}

.qv-title {
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 12px;
    font-weight: 800;
}

.qv-badges {
    margin-bottom: 10px;
}

.qv-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f2f4f7;
    margin-right: 6px;
}

.qv-ref,
.qv-description {
    color: #374151;
}

.qv-ref {
    margin: 6px 0 16px;
}

.qv-description {
    margin: 8px 0 4px;
    line-height: 1.5;
}

.qv-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.qv-controls .qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    height: 38px;
}

.qv-controls .qty-btn {
    width: 34px;
    height: 38px;
    border: 0;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
}

.qv-controls .qty-input {
    width: 56px;
    height: 38px;
    border: 0;
    text-align: center;
}

.qv-controls .unit-select .unit {
    height: 38px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 0 12px;
    cursor: default;
}

.qv-btn-primary {
    height: 38px;
    border: 0;
    background: var(--brand);
    color: #fff;
    border-radius: 10px;
    padding: 0 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qv-btn-ghost {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
}

/* ---------- Quick View thumbs ---------- */
.qv-thumbs {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.qv-thumb {
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.qv-thumb img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.qv-thumb.active {
    outline: 2px solid #1976d2;
}

.qv-datasheet {
    margin-top: 12px;
    padding: 10px 12px;
    background: #e3f2fd;
    border-radius: 6px;
    border-left: 3px solid #1976d2;
}

.qv-datasheet a {
    color: #1976d2;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qv-datasheet a:hover {
    text-decoration: underline;
}

/* ---------- Product card image slider ---------- */
.product-card .media {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.product-card .image-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .slide-image {
    position: absolute;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card .slide-image.active {
    opacity: 1;
    z-index: 1;
}

/* ---------- Fav scoped ---------- */
.product-card .fav {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.7;
    transition: all 0.2s ease;
    padding: 0;
}

.product-card .fav:hover {
    opacity: 1;
    transform: scale(1.1);
}

.product-card .fav.active {
    color: #e74c3c;
    opacity: 1;
}

.product-card .fav.loading {
    pointer-events: none;
    opacity: 0.5;
}

/* ---------- Responsive Quick View ---------- */
@media (max-width: 900px) {
    .qv-body {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: start;
    }

    .qv-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .qv-modal {
        width: 94vw;
        max-width: 94vw;
        padding: 12px;
        border-radius: 14px;
        overflow: hidden;
    }

    .qv-content,
    .qv-left,
    .qv-right,
    .qv-image {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .qv-left,
    .qv-right {
        padding: 0;
    }

    .qv-image {
        padding: 6px;
        border-radius: 12px;
    }

    .qv-image img,
    .qv-image .qv-main-img {
        max-height: 180px;
    }

    .qv-title {
        font-size: 20px;
        line-height: 1.2;
    }
}
