/* script/site.css — styles communs de la boutique Santos Signature (chargés par index.php).
   Présentation « marketplace » : en-tête avec recherche, barre des rayons, cartes produits.
   Ce fichier est gardé en mémoire par le navigateur : il n'est téléchargé qu'une fois. */

:root {
    --primary-color: #1a1a1a;
    --accent-color: #d4af37;
    --bg-light: #F6F1E9;
    --mk-ink: #1a1a1a;
    --mk-gold: #d4af37;
    --mk-gold-dark: #8a6d12;
    --mk-ground: #F6F1E9;
    --mk-surface: #ffffff;
    --mk-line: #E6DFD3;
    --mk-line-strong: #B9AE9C;
    --mk-muted: #5F574C;
    --mk-text-soft: #4A4339;
    --mk-red: #A3211A;
    --mk-radius: 12px;
}

html, body {
    min-height: 100vh;
    margin: 0;
}

body.mk {
    background: var(--mk-ground);
    color: var(--mk-ink);
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Compatibilité avec les pages incluses (panier, compte, fiche produit...) ---------- */
#produits,
.bg-light,
.bg-reassurance {
    background-color: transparent !important;
}

.card {
    background-color: #ffffff !important;
    border-color: var(--mk-line);
    border-radius: var(--mk-radius);
}

/* Champs de formulaire bien visibles */
.form-control, .form-select {
    background-color: #ffffff !important;
    border: 1px solid #6c757d !important;
    color: #212529 !important;
    font-weight: 500;
    padding: 0.6rem 0.75rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    background-color: #fff !important;
}

.form-control:disabled {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #495057 !important;
    font-weight: bold;
}

.form-check-input {
    border: 1px solid #6c757d !important;
}

/* ---------- Mise en page générale ---------- */
.mk-container {
    width: 100%;
    max-width: 1450px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.mk-main {
    padding-top: 28px;
    padding-bottom: 16px;
    scroll-margin-top: 150px;
}

.mk-section {
    margin-top: 44px;
}

.mk-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    margin-bottom: 18px;
}

.mk-section-head h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--mk-ink);
}

.mk-muted {
    color: var(--mk-muted);
    font-size: 0.9rem;
}

.mk-gold {
    color: var(--mk-gold) !important;
    font-weight: 700;
}

.mk-link-btn {
    background: none;
    border: 0;
    padding: 0;
    min-height: 44px;
    font-weight: 700;
    color: var(--mk-ink);
    text-decoration: underline;
}

.mk-link-btn:hover {
    color: var(--mk-gold-dark);
}

/* ---------- Boutons ---------- */
.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    border: 2px solid transparent;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mk-btn-gold {
    background: var(--mk-gold);
    color: var(--mk-ink);
}

.mk-btn-gold:hover {
    background: #e2c35a;
    color: var(--mk-ink);
}

.mk-btn-dark {
    background: var(--mk-ink);
    color: #ffffff;
    width: 100%;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0 10px;
    gap: 4px;
    white-space: nowrap;
}

.mk-btn-dark:hover {
    background: #3a332b;
    color: #ffffff;
}

.mk-btn-outline {
    border-color: var(--mk-ink);
    color: var(--mk-ink);
    background: transparent;
    align-self: flex-start;
}

.mk-btn-outline:hover {
    background: var(--mk-ink);
    color: #ffffff;
}

.mk-btn-disabled {
    background: #D9D2C5;
    color: var(--mk-text-soft);
    width: 100%;
    font-weight: 700;
    cursor: not-allowed;
}

/* ---------- Bandeau d'information ---------- */
.mk-topbar {
    background: var(--mk-ink);
    color: #ffffff;
    font-size: 0.82rem;
}

.mk-topbar-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 24px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.mk-topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.mk-topbar-links a {
    color: #ffffff;
    text-decoration: none;
}

.mk-topbar-links a:hover {
    text-decoration: underline;
}

/* ---------- En-tête ---------- */
.mk-header {
    background: var(--mk-surface);
    border-bottom: 1px solid var(--mk-line);
    z-index: 1030;
}

.mk-header-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.mk-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.mk-search {
    flex: 1 1 420px;
    min-width: 0;
    position: relative;
    display: flex;
    margin: 0;
    border: 1px solid var(--mk-ink); /* contour plus fin (2px avant, 09/11) */
    border-radius: 10px;
    background: #ffffff;
}

.mk-search-cat {
    border: 0;
    border-right: 1px solid var(--mk-line);
    border-radius: 9px 0 0 9px;
    background: var(--mk-ground);
    color: var(--mk-ink);
    font: inherit;
    font-weight: 600;
    padding: 0 12px;
    min-height: 46px;
    max-width: 170px;
}

.mk-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    padding: 0 16px;
    min-height: 46px;
    font: inherit;
    color: var(--mk-ink);
    background: #ffffff;
    outline: none;
}

.mk-search:focus-within {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.45);
}

.mk-search-btn {
    border: 0;
    border-radius: 0 9px 9px 0;
    background: var(--mk-gold);
    color: var(--mk-ink);
    min-width: 60px;
    min-height: 46px;
    font-size: 1.1rem;
}

.mk-search-btn:hover {
    background: #e2c35a;
}

/* Menu des produits trouvés, sous le champ de recherche */
.mk-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1040;
    max-height: min(70vh, 540px);
    overflow-y: auto;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--mk-line-strong);
    border-top: 3px solid var(--mk-gold);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.mk-search-results[hidden] {
    display: none;
}

.mk-sr-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--mk-ink);
    text-decoration: none;
}

.mk-sr-item:hover,
.mk-sr-item.is-active {
    background: #FAF6EF;
    color: var(--mk-ink);
}

.mk-sr-item.is-active {
    box-shadow: inset 0 0 0 2px var(--mk-gold);
}

.mk-sr-item img {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    background: #F1EBE1;
}

.mk-sr-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.mk-sr-name {
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mk-sr-ref {
    font-size: 0.82rem;
    color: var(--mk-muted);
}

.mk-sr-out {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mk-red);
}

.mk-sr-price {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-weight: 800;
    white-space: nowrap;
}

.mk-sr-new {
    color: var(--mk-red);
}

.mk-sr-old {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--mk-muted);
    text-decoration: line-through;
}

.mk-sr-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: sticky;
    bottom: 0;
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 -6px 0 #ffffff, 0 6px 0 #ffffff;
    background: var(--mk-ink);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
}

.mk-sr-all span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mk-sr-all:hover {
    background: var(--mk-gold);
    color: var(--mk-ink);
}

.mk-sr-empty {
    padding: 18px 12px;
    text-align: center;
    font-weight: 600;
    color: var(--mk-muted);
}

.mk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 22px;
}

.mk-action {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--mk-ink);
    text-decoration: none;
    font-size: 1.25rem;
}

.mk-action:hover {
    color: var(--mk-gold-dark);
}

.mk-action-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 0.95rem;
}

.mk-action-txt small {
    font-size: 0.75rem;
    color: var(--mk-muted);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mk-cart {
    background: var(--mk-ink);
    color: #ffffff;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 1.05rem;
}

.mk-cart strong {
    font-size: 0.95rem;
}

.mk-cart:hover {
    background: #3a332b;
    color: #ffffff;
}

.mk-cart-count {
    background: var(--mk-gold);
    color: var(--mk-ink);
    font-weight: 800;
    font-size: 0.8rem;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Barre des rayons ---------- */
.mk-rayons {
    border-top: 1px solid var(--mk-line);
    background: var(--mk-surface);
}

.mk-rayons-in {
    display: flex;
    align-items: center;
    gap: 0 10px;
}

.mk-rayons-all {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    background: var(--mk-ink);
    color: #ffffff;
    font-weight: 700;
}

.mk-rayons-all:hover {
    background: #3a332b;
}

.mk-rayons-nav {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
}

.mk-rayons-nav .navbar-nav {
    flex-wrap: wrap;
}

.mk-rayons-nav .nav-link {
    font-weight: 600;
    color: var(--mk-ink) !important;
    padding: 0 12px !important;
    min-height: 46px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.mk-rayons-nav .nav-link:hover,
.mk-rayons-nav .nav-link.active {
    color: var(--mk-gold-dark) !important;
}

.mk-rayons-promo {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 8px;
    font-weight: 800;
    color: var(--mk-red);
    text-decoration: none;
}

.mk-rayons-promo:hover,
.mk-rayons-promo.active {
    color: var(--mk-red);
    text-decoration: underline;
}

/* Cœur « Mes favoris », à côté de « Nos offres » (le nombre de favoris en pastille) */
.mk-rayons-fav {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 46px;
    padding: 0 8px;
    font-size: 1.2rem;
    color: var(--mk-red);
    text-decoration: none;
}

.mk-rayons-fav:hover,
.mk-rayons-fav.active {
    color: var(--mk-red);
    transform: scale(1.08);
}

/* Fiche produit : « X personnes sont intéressées par cet article » */
.mk-fav-interet {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 10px;
    color: #4b5563;
    font-weight: 600;
}

.mk-fav-interet .fa-users {
    color: #4b5563;
}

.mk-fav-interet .mk-fav-nb {
    color: var(--mk-red);
    font-weight: 800;
}

.mk-fav-interet[hidden] {
    display: none;
}

.mk-fav-count {
    position: absolute;
    top: 3px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--mk-red);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.dropdown-menu {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    padding: 8px 0 !important;
    background-color: #ffffff;
    min-width: 210px;
}

.dropdown-item {
    font-size: 0.92rem;
    font-weight: 500;
    color: #4a5568;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--mk-gold-dark);
    padding-left: 24px;
}

@media (min-width: 992px) {
    .dropdown-submenu { position: relative; }
    .dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -6px; }
}

.dropdown-submenu > a::after {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    float: right;
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 2px;
}

.dropdown-submenu:hover > a::after { color: var(--mk-gold-dark); }

/* ---------- Panneau « Tous les rayons » ---------- */
.mk-panel .offcanvas-header {
    background: var(--mk-ink);
    color: #ffffff;
}

.mk-panel .offcanvas-title {
    font-size: 1rem;
    font-weight: 800;
}

.mk-panel-group {
    padding: 14px 16px;
    border-top: 8px solid var(--mk-ground);
    display: flex;
    flex-direction: column;
}

.mk-panel-title {
    font-weight: 800;
    margin-bottom: 4px;
}

.mk-panel-group a {
    min-height: 40px;
    display: flex;
    align-items: center;
    color: var(--mk-ink);
    text-decoration: none;
}

.mk-panel-group a:hover {
    color: var(--mk-gold-dark);
}

.sidebar-tree-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sidebar-tree-item {
    position: relative;
}

.sidebar-item-header {
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 8px;
    border-bottom: 1px solid #f1f3f5;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

.sidebar-item-header:hover {
    background-color: #f8f9fa;
}

.sidebar-item-header.active {
    background-color: var(--mk-ink);
}

.sidebar-item-header.active .sidebar-link,
.sidebar-item-header.active .toggle-btn {
    color: #ffffff !important;
}

.sidebar-link {
    font-weight: 500;
    font-size: 0.92rem;
    color: #4a5568;
    text-decoration: none;
    display: inline-block;
}

.sidebar-link:hover {
    color: var(--mk-gold-dark);
}

.toggle-btn {
    cursor: pointer;
    outline: none;
    line-height: 1;
    min-width: 36px;
    min-height: 28px;
}

.arrow-icon {
    transition: transform 0.2s ease;
}

.sidebar-tree-item.hover-open > .sidebar-item-header .arrow-icon,
.sidebar-tree-item.open > .sidebar-item-header .arrow-icon {
    transform: rotate(180deg);
    color: var(--mk-gold) !important;
}

.sidebar-submenu {
    display: none;
    background-color: #f8f9fa;
    margin-top: 0 !important;
    padding-top: 2px;
    padding-bottom: 2px;
    position: relative;
    z-index: 10;
}

.sidebar-tree-item.hover-open > .sidebar-submenu,
.sidebar-tree-item.open > .sidebar-submenu {
    display: block !important;
}

.btn-toutes-nouveautes {
    padding: 10px 16px;
    display: block;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    border-bottom: 1px solid #f1f3f5;
}

.btn-toutes-nouveautes:hover,
.btn-toutes-nouveautes.active {
    color: var(--mk-gold-dark);
}

/* ---------- Bloc d'accueil ---------- */
.mk-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
}

.mk-hero-main {
    flex: 999 1 560px;
    min-width: 0;
    position: relative;
    min-height: 400px;
    border-radius: 14px;
    overflow: hidden;
    background: #2a221a;
    display: flex;
    align-items: flex-end;
}

.mk-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------------------------------------------------------------------------------------
   Diaporama de l'accueil
   Deux calques d'image se relaient. Celui qui arrive passe par-dessus (is-dessus) et joue un effet :
   fx-... = point de départ, is-visible = point d'arrivée. kb-... = mouvement lent pendant l'affichage.
   is-reset = changement sans animation, is-cache = calque rangé.
   --------------------------------------------------------------------------------------------- */
.mk-hero-calque {
    transition:
        opacity 1.2s ease,
        transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
        clip-path 1.2s cubic-bezier(0.45, 0, 0.2, 1),
        filter 1.2s ease;
    will-change: transform, opacity;
}

.mk-hero-calque.is-cache {
    opacity: 0;
    visibility: hidden;
}

.mk-hero-calque.is-dessus {
    z-index: 1;
}

.mk-hero-calque.is-reset {
    transition: none;
}

/* Le texte et les commandes restent au-dessus des images */
.mk-hero-main .mk-hero-panel {
    z-index: 2;
}

/* --- Effets de changement : point de départ --- */
.mk-hero-calque.fx-fondu {
    opacity: 0;
}

.mk-hero-calque.fx-zoom {
    opacity: 0;
    transform: scale(1.22);
}

.mk-hero-calque.fx-flou {
    opacity: 0;
    transform: scale(1.08);
    filter: blur(22px);
}

/* Bascule : l'image arrive agrandie et légèrement penchée, puis se redresse */
.mk-hero-calque.fx-bascule {
    opacity: 0;
    transform: scale(1.3) rotate(-6deg);
}

.mk-hero-calque.fx-glisse {
    transform: translateX(100%);
}

/* Descend : l'image arrive par le haut */
.mk-hero-calque.fx-descend {
    transform: translateY(-100%);
}

/* Store : l'image se découvre de haut en bas */
.mk-hero-calque.fx-store {
    clip-path: inset(0 0 100% 0);
}

/* Coin : un cercle s'ouvre depuis le coin en bas à gauche */
.mk-hero-calque.fx-coin {
    clip-path: circle(0% at 0% 100%);
}

/* Losange : un losange s'ouvre depuis le centre */
.mk-hero-calque.fx-losange {
    clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
}

.mk-hero-calque.fx-monte {
    transform: translateY(100%);
}

.mk-hero-calque.fx-rideau {
    clip-path: inset(0 100% 0 0);
}

.mk-hero-calque.fx-volets {
    clip-path: inset(0 50% 0 50%);
}

.mk-hero-calque.fx-cercle {
    clip-path: circle(0% at 50% 50%);
}

.mk-hero-calque.fx-diagonale {
    clip-path: polygon(0 0, 0 0, -45% 100%, -45% 100%);
}

/* --- Effets de changement : point d'arrivée --- */
.mk-hero-calque.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

.mk-hero-calque.fx-rideau.is-visible,
.mk-hero-calque.fx-store.is-visible,
.mk-hero-calque.fx-volets.is-visible {
    clip-path: inset(0 0 0 0);
}

.mk-hero-calque.fx-coin.is-visible {
    clip-path: circle(150% at 0% 100%);
}

.mk-hero-calque.fx-losange.is-visible {
    clip-path: polygon(50% -100%, 200% 50%, 50% 200%, -100% 50%);
}

.mk-hero-calque.fx-cercle.is-visible {
    clip-path: circle(75% at 50% 50%);
}

.mk-hero-calque.fx-diagonale.is-visible {
    clip-path: polygon(0 0, 145% 0, 100% 100%, -45% 100%);
}

/* L'image qui part, pendant l'effet « glisse » */
.mk-hero-calque.is-sortie {
    transform: translateX(-35%);
}

/* --- Mouvement lent de l'image affichée (la durée est donnée par le script) --- */
@keyframes mk-kb-avant {
    from { scale: 1; }
    to { scale: 1.14; }
}

@keyframes mk-kb-arriere {
    from { scale: 1.14; }
    to { scale: 1; }
}

@keyframes mk-kb-droite {
    from { scale: 1.12; translate: -3.5% 0; }
    to { scale: 1.12; translate: 3.5% 0; }
}

@keyframes mk-kb-gauche {
    from { scale: 1.12; translate: 3.5% 0; }
    to { scale: 1.12; translate: -3.5% 0; }
}

.mk-hero-calque.kb-avant { animation: mk-kb-avant 9s linear both; }
.mk-hero-calque.kb-arriere { animation: mk-kb-arriere 9s linear both; }
.mk-hero-calque.kb-droite { animation: mk-kb-droite 9s linear both; }
.mk-hero-calque.kb-gauche { animation: mk-kb-gauche 9s linear both; }

/* --- Repères : un point par image, le point de l'image affichée est allongé et doré --- */
.mk-hero-points {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(26, 26, 26, 0.62);
}

.mk-hero-point {
    width: 24px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transition: width 0.3s ease;
}

.mk-hero-point::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.mk-hero-point:hover::before {
    background: #ffffff;
}

.mk-hero-point[aria-current="true"] {
    width: 38px;
}

.mk-hero-point[aria-current="true"]::before {
    width: 26px;
    background: var(--mk-gold, #d4af37);
}

.mk-hero-point:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -4px;
    border-radius: 999px;
}

/* --- Barre de progression : se remplit pendant l'affichage de l'image --- */
@keyframes mk-hero-avance {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.mk-hero-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 4px;
    background: var(--mk-gold, #d4af37);
    transform: scaleX(0);
    transform-origin: left center;
}

.mk-hero-progress.is-en-cours {
    animation: mk-hero-avance 6s linear both;
}

/* Petits écrans : le texte occupe presque tout le bloc. On garde une bande d'image libre en haut,
   où se placent les repères. */
@media (max-width: 700px) {
    .mk-hero-main[data-diapo] {
        padding-top: 96px;
    }
}

/* Appareils réglés sur « moins d'animations » : pas de mouvement lent de l'image */
@media (prefers-reduced-motion: reduce) {
    .mk-hero-calque {
        animation: none !important;
    }
}

.mk-hero-panel {
    position: relative;
    margin: 28px;
    max-width: 470px;
    background: rgba(26, 26, 26, 0.88);
    color: #ffffff;
    padding: 28px 30px;
    border-radius: 12px;
}

.mk-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mk-gold);
}

.mk-hero-panel h1 {
    color: #ffffff;
    margin: 10px 0 12px;
    font-size: 2.3rem;
    line-height: 1.12;
    font-weight: 800;
}

.mk-hero-panel p {
    margin: 0 0 20px;
    color: #EDE6DA;
}

.mk-hero-side {
    flex: 1 1 300px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mk-tile {
    flex: 1 1 auto;
    background: var(--mk-surface);
    border: 1px solid var(--mk-line);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.mk-tile-icon {
    font-size: 1.9rem;
}

.mk-tile-title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
}

.mk-tile-text {
    color: var(--mk-text-soft);
}

.mk-tile-dark {
    background: var(--mk-ink);
    border-color: var(--mk-ink);
    color: #ffffff;
}

.mk-tile-dark .mk-tile-icon,
.mk-tile-dark .mk-tile-link {
    color: var(--mk-gold);
}

.mk-tile-dark .mk-tile-text {
    color: #EDE6DA;
}

.mk-tile-link {
    font-weight: 700;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.mk-tile-link:hover {
    text-decoration: underline;
}

/* Bannière des autres pages (rayon, fiche produit, panier...) */
.mk-banner {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 180px;
}

/* ---------- Rayons en vignettes ---------- */
.mk-rayon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.mk-rayon-tile {
    display: flex;
    flex-direction: column;
    background: var(--mk-surface);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    overflow: hidden;
    color: var(--mk-ink);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mk-rayon-tile:hover {
    border-color: var(--mk-ink);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    color: var(--mk-ink);
}

.mk-rayon-tile img,
.mk-rayon-noimg {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.mk-rayon-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EDE6DA;
    color: var(--mk-muted);
    font-size: 2rem;
}

.mk-rayon-name {
    padding: 12px 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mk-rayon-name i {
    font-size: 0.8rem;
}

/* ---------- Cartes produits ---------- */
.mk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

/* Rangée défilante (Coups de cœur) : toujours un nombre entier de produits visibles,
   jamais un produit coupé au bord. On avance avec les flèches ou en faisant glisser. */
.mk-scroller {
    --mk-cols: 5;
    --mk-gap: 16px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--mk-cols) - 1) * var(--mk-gap)) / var(--mk-cols));
    gap: var(--mk-gap);
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.mk-scroller::-webkit-scrollbar {
    display: none;
}

.mk-scroller .mk-card {
    scroll-snap-align: start;
    min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    .mk-scroller { scroll-behavior: auto; }
}

.mk-scroll-nav {
    display: flex;
    gap: 8px;
}

.mk-scroll-nav[hidden] {
    display: none;
}

.mk-scroll-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mk-line-strong);
    border-radius: 50%;
    background: #ffffff;
    color: var(--mk-ink);
    font-size: 0.9rem;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mk-scroll-btn:hover:not(:disabled) {
    background: var(--mk-ink);
    border-color: var(--mk-ink);
    color: #ffffff;
}

.mk-scroll-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.mk-scroll-pause {
    margin-right: 6px;
    font-size: 0.8rem;
}

/* Points sous le carrousel */
.mk-scroll-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 6px;
}

.mk-scroll-dots[hidden] {
    display: none;
}

.mk-scroll-dot {
    width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
}

.mk-scroll-dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--mk-line-strong);
    transition: width 0.2s ease, background-color 0.2s ease;
}

.mk-scroll-dot:hover::before {
    background: var(--mk-muted);
}

.mk-scroll-dot.is-active::before {
    width: 26px;
    background: var(--mk-ink);
}

@media (max-width: 1199.98px) {
    .mk-scroller { --mk-cols: 4; }
}

@media (max-width: 991.98px) {
    .mk-scroller { --mk-cols: 3; }
}

.mk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--mk-surface);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mk-card:hover {
    border-color: var(--mk-line-strong);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.mk-card-img {
    display: block;
    background: #F1EBE1;
}

.mk-card-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.mk-card-body {
    flex: 1 1 auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mk-card-name {
    font-weight: 700;
    line-height: 1.3;
    min-height: 2.6em;
    color: var(--mk-ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mk-card-name:hover {
    color: var(--mk-gold-dark);
}

.mk-card-rating {
    font-size: 0.8rem;
    color: #B7791F;
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: 1.3rem;
}

.mk-card-rating .mk-muted {
    margin-left: 4px;
    font-size: 0.8rem;
}

.mk-star-off,
.mk-card-rating .text-muted {
    color: #B9AE9C !important;
}

/* Panier : pourquoi un port reste à payer quand certains articles ont la livraison offerte */
.mk-port-note {
    margin: -4px 0 10px;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--mk-muted);
}

/* Mention « Livraison offerte » sous le prix des cartes produit */
.mk-card-franco {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin: 4px 0 0;
    padding: 2px 9px;
    border-radius: 999px;
    background: #EAF5EE;
    color: #1D6A39;
    font-size: 0.78rem;
    font-weight: 600;
}

.mk-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    margin-top: 2px;
}

.mk-price {
    font-size: 1.3rem;
    font-weight: 800;
}

.mk-price-promo {
    color: var(--mk-red);
}

.mk-price-old {
    font-size: 0.9rem;
    color: var(--mk-muted);
    text-decoration: line-through;
}

.mk-card-countdown {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mk-red);
}

.mk-card-form {
    margin: auto 0 0;
    padding-top: 6px;
}

.mk-badge-promo {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background: var(--mk-red);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 6px;
}

.roue-container { max-width: 950px; margin: 0 auto; }

/* ---------- Pagination ---------- */
.pagination-custom .page-link {
    color: #1a1a1a;
    border: 1px solid var(--mk-line-strong);
    margin: 0 4px;
    border-radius: 10px !important;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    transition: all 0.2s ease;
}

.pagination-custom .page-link:hover {
    background-color: #f8f9fa;
    color: var(--mk-gold-dark);
    border-color: var(--mk-gold-dark);
}

.pagination-custom .page-item.active .page-link {
    background-color: var(--mk-ink);
    border-color: var(--mk-ink);
    color: #ffffff;
}

.pagination-custom .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #8f867a;
    border-color: #e2e8f0;
}

/* ---------- Image du bas de la fiche produit (choisie par catégorie dans l'administration) ---------- */
.mk-fiche-banner a,
.mk-fiche-banner > img {
    display: block;
    max-width: 950px;      /* même largeur que l'image du bas de l'accueil */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #E6DFD3;
    background: #F1EBE1;
}

.mk-fiche-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.mk-fiche-banner a {
    transition: box-shadow 0.2s ease;
}

.mk-fiche-banner a:hover {
    box-shadow: 0 10px 28px rgba(26, 26, 26, 0.16);
}

.mk-fiche-banner a:focus-visible {
    outline: 3px solid #d4af37;
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .mk-fiche-banner a,
    .mk-fiche-banner > img {
        border-radius: 12px;
    }
}

/* ---------- Réassurance ---------- */
.mk-reassurance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.mk-reassure {
    background: var(--mk-surface);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.mk-reassure > i {
    font-size: 1.6rem;
    margin-top: 2px;
}

.mk-reassure h6 {
    color: var(--mk-ink);
    margin: 0 0 2px;
    font-weight: 800;
    font-size: 1rem;
}

.mk-reassure p {
    margin: 0;
    color: var(--mk-text-soft);
    font-size: 0.9rem;
}

/* ---------- Pied de page ---------- */
.mk-footer {
    background-color: var(--mk-ink) !important;
    margin-top: 56px !important;
}

.mk-footer h5 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.mk-footer li a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

.mk-footer li a:hover {
    color: var(--mk-gold) !important;
}

/* Ligne des informations légales (SIREN, SIRET, TVA...) sous le copyright */
.mk-footer-legal {
    color: #FAF7ED;
    opacity: 0.75;
    font-size: 0.78rem;
    line-height: 1.6;
}

/* ---------- Assistant IA en plein écran ---------- */
#chat-container.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    z-index: 9999 !important;
}

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 991.98px) {
    .mk-rayons-nav { display: none; }
    .mk-header.sticky-top { position: static; }
    .mk-action-txt { display: none; }
    .mk-actions { margin-left: auto; gap: 6px 16px; }
    .mk-search { order: 3; flex-basis: 100%; }
    .mk-logo img { height: 48px; }
    .mk-main { scroll-margin-top: 16px; }
}

@media (max-width: 575.98px) {
    .mk-container { padding-left: 14px; padding-right: 14px; }
    .mk-search-cat { display: none; }
    .mk-search-input { border-radius: 9px 0 0 9px; }
    /* liens du bandeau deja presents dans le pied de page : on garde seulement le message livraison */
    .mk-topbar-links { display: none; }
    .mk-topbar-in { justify-content: center; text-align: center; padding-top: 6px; padding-bottom: 6px; }
    .mk-topbar { font-size: 0.7rem; }
    .mk-hero-main { min-height: 340px; }
    .mk-hero-panel { margin: 14px; padding: 20px; }
    .mk-hero-panel h1 { font-size: 1.6rem; }
    .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .mk-rayon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .mk-scroller { --mk-cols: 2; --mk-gap: 10px; }
    .mk-card-body { padding: 10px; }
    .mk-price { font-size: 1.1rem; }
    .mk-btn-dark { padding: 0 8px; font-size: 0.85rem; }
    .mk-cart strong { display: none; }
    .mk-banner { height: 120px; }
    .mk-section { margin-top: 32px; }
}

/* ==========================================================================
   FICHE PRODUIT (pages/product1.php)
   ========================================================================== */
.mk-product {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mk-product .mk-section {
    margin-top: 16px;
}

/* Fil d'Ariane */
.mk-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-size: 0.88rem;
    color: var(--mk-muted);
}

.mk-breadcrumb a {
    color: var(--mk-muted);
    text-decoration: none;
    padding: 6px 0;
}

.mk-breadcrumb a:hover {
    color: var(--mk-ink);
    text-decoration: underline;
}

.mk-breadcrumb i {
    font-size: 0.6rem;
    color: var(--mk-line-strong);
}

.mk-breadcrumb span[aria-current] {
    color: var(--mk-ink);
    font-weight: 700;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bloc principal : photos à gauche, achat à droite */
.mk-product-top {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    background: var(--mk-surface);
    border: 1px solid var(--mk-line);
    border-radius: 16px;
    padding: 28px;
}

/* Galerie */
.mk-gallery {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.mk-gallery-main:only-child {
    grid-column: 1 / -1;
}

.mk-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mk-thumb-btn {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 10px;
    line-height: 0;
}

.thumb-img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    background: #ffffff;
    border: 2px solid var(--mk-line);
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.75;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}

.thumb-img:hover {
    opacity: 1;
    border-color: var(--mk-line-strong);
}

.thumb-img.active {
    opacity: 1;
    border-color: var(--mk-ink);
}

.mk-gallery-main {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border: 1px solid var(--mk-line);
    border-radius: 14px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    /* coins arrondis de la photo : posés par le script de pages/product1.php (clip-path) */
}

.mk-badge-lg {
    top: 14px;
    left: 14px;
    font-size: 1rem;
    padding: 8px 14px;
    border-radius: 8px;
}

.mk-zoom-btn {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--mk-line-strong);
    background: #ffffff;
    color: var(--mk-ink);
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.mk-zoom-btn:hover {
    background: var(--mk-ink);
    border-color: var(--mk-ink);
    color: #ffffff;
}

/* Colonne d'achat */
.mk-buybox {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mk-vendor {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--mk-muted);
}

.mk-vendor i {
    color: var(--mk-gold-dark);
}

.mk-vendor strong {
    color: var(--mk-ink);
}

.mk-product-title {
    margin: 8px 0 12px;
    font-size: clamp(1.5rem, 2.3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--mk-ink);
    overflow-wrap: anywhere;
}

.mk-product-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.95rem;
}

.mk-product-rating a {
    color: var(--mk-text-soft);
    text-decoration: underline;
}

.mk-product-rating a:hover {
    color: var(--mk-ink);
}

.mk-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 0.95rem;
}

.mk-stars .text-warning {
    color: #C48A12 !important;
}

.mk-stars .text-muted {
    color: #B9AE9C !important;
}

/* Référence : sur sa propre ligne, sous les étoiles et « Aucun avis » */
.mk-ref {
    flex-basis: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    color: var(--mk-muted);
    font-size: 0.88rem;
}

.mk-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--mk-line);
}

.mk-price-big {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--mk-ink);
    white-space: nowrap;
}

.mk-price-big.mk-price-promo {
    color: var(--mk-red);
}

.mk-product-price .mk-price-old {
    font-size: 1.15rem;
    white-space: nowrap;
}

.mk-price-save {
    align-self: center;
    background: var(--mk-red);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Livraison offerte, sous le prix de la fiche produit */
.mk-badge-franco {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 4px;
    padding: 7px 12px;
    border: 1px solid var(--mk-line-strong);
    border-radius: 999px;
    color: var(--mk-ink);
    font-size: 0.92rem;
}

.mk-badge-franco i {
    color: var(--mk-gold-dark);
}

.mk-badge-franco.is-offerte {
    border-color: transparent;
    background: #EAF5EE;
    color: #1D6A39;
}

.mk-badge-franco.is-offerte i {
    color: #1D6A39;
}

.mk-ttc {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mk-muted);
}

.mk-product-timer {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    align-self: flex-start;
    gap: 4px 8px;
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #FBECEA;
    color: var(--mk-red);
    font-size: 0.92rem;
    font-weight: 600;
}

.mk-product-timer-over {
    background: #EEE8DD;
    color: var(--mk-muted);
}

.mk-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 16px;
    font-weight: 700;
}

.mk-stock-ok { color: #1D6A39; }
.mk-stock-low { color: var(--mk-red); }
.mk-stock-out { color: var(--mk-red); }

.mk-buy-form {
    margin: 0;
}

.mk-qty-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mk-text-soft);
}

.mk-buy-row {
    display: flex;
    gap: 12px;
}

.custom-select-qty {
    flex: 0 0 96px;
    width: 96px;
    min-height: 56px;
    font-size: 1.05rem;
    font-weight: 800 !important;
    border-radius: 10px;
    cursor: pointer;
}

.mk-btn-buy {
    flex: 1 1 auto;
    width: 100%;
    min-height: 56px;
    font-size: 1.08rem;
    box-shadow: 0 6px 16px rgba(138, 109, 18, 0.25);
}

.mk-btn-buy.mk-btn-disabled {
    box-shadow: none;
}

.mk-promises {
    list-style: none;
    margin: 22px 0 0;
    padding: 16px 18px;
    display: grid;
    gap: 12px;
    background: #FAF6EF;
    border: 1px solid var(--mk-line);
    border-radius: 12px;
    font-size: 0.93rem;
    color: var(--mk-text-soft);
}

.mk-promises li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mk-promises i {
    flex: 0 0 22px;
    text-align: center;
    color: var(--mk-gold-dark);
    font-size: 1.05rem;
}

.mk-promises strong {
    color: var(--mk-ink);
}

/* Description et caractéristiques */
.mk-product-details {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.mk-box {
    background: var(--mk-surface);
    border: 1px solid var(--mk-line);
    border-radius: 14px;
    padding: 24px;
    min-width: 0;
}

.mk-box-title {
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--mk-gold);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--mk-ink);
}

.description-box {
    position: relative;
    color: var(--mk-text-soft);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.description-box h1,
.description-box h2,
.description-box h3,
.description-box h4,
.description-box h5,
.description-box h6 {
    margin: 1.2em 0 0.5em;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--mk-ink);
}

.description-box > :first-child {
    margin-top: 0;
}

.description-box a {
    color: var(--mk-ink);
    text-decoration: underline;
}

.description-box > :last-child {
    margin-bottom: 0;
}

.description-box img {
    max-width: 100%;
    height: auto;
}

.description-box table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.description-box.truncated {
    max-height: 280px;
    overflow: hidden;
}

.description-box.truncated::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
    pointer-events: none;
}

.description-box.expanded {
    max-height: none;
}

.btn-toggle-desc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    background: none;
    border: 0;
    font-weight: 800;
    color: var(--mk-ink);
    text-decoration: underline;
    cursor: pointer;
}

.btn-toggle-desc:hover {
    color: var(--mk-gold-dark);
}

.mk-specs {
    margin: 0;
}

.mk-specs > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--mk-line);
}

.mk-specs > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mk-specs dt {
    font-weight: 600;
    color: var(--mk-muted);
}

.mk-specs dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

/* Avis clients */
.mk-reviews {
    scroll-margin-top: 150px;
}

.mk-reviews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--mk-line);
}

.mk-reviews-head .mk-box-title i {
    color: var(--mk-muted);
    margin-right: 4px;
}

.mk-reviews-score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mk-reviews-score strong {
    font-size: 1.6rem;
    line-height: 1;
}

.mk-reviews-list {
    display: grid;
    gap: 12px;
}

.review-card {
    background: #FAF6EF;
    border: 1px solid var(--mk-line);
    border-radius: 10px;
    padding: 14px 16px;
    overflow-wrap: anywhere;
}

.mk-review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-bottom: 8px;
}

.mk-review-meta > i {
    font-size: 1.3rem;
    color: var(--mk-line-strong);
}

.mk-review-meta .mk-stars {
    margin-left: auto;
}

/* Réponse de la boutique sous un avis (admin « Avis clients ») */
.mk-review-reponse {
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--mk-surface);
    border-left: 3px solid var(--mk-gold);
    border-radius: 6px;
}
.mk-review-reponse-titre {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.mk-review-reponse-titre > i {
    color: var(--mk-gold-dark);
}

/* Comment les avis sont vérifiés (obligatoire) */
.mk-avis-mention {
    margin: 28px 0 0;   /* 06/11 : descendue (l'encadré « Vous avez acheté ce produit ? » au-dessus a été retiré) */
    font-size: 0.85rem;
    color: var(--mk-muted);
}
.mk-avis-mention > i {
    color: #2e7d32;
}

/* Invitation à donner son avis, sous les avis de la fiche produit */
.mk-avis-invitation {
    margin: 14px 0 0;
    padding: 10px 12px;
    background: #FBF3DA;
    border-radius: 8px;
}
.mk-avis-invitation > i {
    color: var(--mk-gold-dark);
}

/* Mention « Avis récompensé » sur un avis */
.mk-avis-recompense {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--mk-gold-dark);
    background: #FBF3DA;
    border-radius: 999px;
    padding: 2px 8px;
}

/* Photo agrandie */
.modal-nav-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 1.2rem;
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

@media (max-width: 991.98px) {
    .mk-product-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 18px;
    }

    .mk-gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .mk-thumbs {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .mk-thumb-btn {
        flex: 0 0 auto;
    }

    .thumb-img {
        width: 68px;
        height: 68px;
    }

    .mk-product-details {
        grid-template-columns: minmax(0, 1fr);
    }

    .mk-reviews {
        scroll-margin-top: 16px;
    }
}

@media (max-width: 575.98px) {
    .mk-product {
        gap: 14px;
    }

    .mk-product-top {
        padding: 14px;
        border-radius: 14px;
    }

    .mk-box {
        padding: 18px 16px;
    }

    .mk-price-big {
        font-size: 2.1rem;
    }

    .mk-ref {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
        flex-basis: 100%;
    }

    .custom-select-qty {
        flex-basis: 84px;
        width: 84px;
    }

    .mk-review-meta .mk-stars {
        margin-left: 0;
        flex-basis: 100%;
    }
}

.mk-promises a,
.mk-summary-trust a,
.mk-summary-note a {
    color: var(--mk-ink);
    font-weight: 700;
    text-decoration: underline;
}

/* ==========================================================================
   PANIER (pages/cart1.php)
   ========================================================================== */
.mk-cartpage {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Étapes de la commande */
.mk-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mk-muted);
}

.mk-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mk-steps li + li::before {
    content: "";
    width: 36px;
    height: 2px;
    margin-right: 2px;
    background: var(--mk-line-strong);
}

.mk-step-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--mk-line-strong);
    background: #ffffff;
    font-size: 0.85rem;
}

.mk-steps .is-current {
    color: var(--mk-ink);
}

.mk-steps .is-current .mk-step-num {
    background: var(--mk-ink);
    border-color: var(--mk-ink);
    color: #ffffff;
}

.mk-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
}

.mk-page-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 800;
    color: var(--mk-ink);
}

/* Panier vide */
.mk-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 56px 24px;
    text-align: center;
}

.mk-cart-empty > i {
    font-size: 2.6rem;
    color: var(--mk-line-strong);
}

.mk-cart-empty p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--mk-muted);
}

/* Livraison offerte */
.mk-freeship {
    background: var(--mk-surface);
    border: 1px solid var(--mk-line);
    border-radius: 12px;
    padding: 14px 18px;
}

.mk-freeship-ok {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #EAF4EC;
    border-color: #B5D6BD;
    color: #175A30;
}

.mk-freeship-ok > i {
    font-size: 1.4rem;
}

/* Bandeau d'information : la livraison offerte ne s'applique pas à cette commande */
.mk-freeship-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.93rem;
}

.mk-freeship-info > i {
    margin-top: 3px;
    font-size: 1.1rem;
    color: var(--mk-gold-dark);
}

.mk-freeship-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    font-size: 0.93rem;
    font-weight: 600;
}

.mk-freeship-text i {
    margin-right: 10px;
    color: var(--mk-gold-dark);
}

.mk-freeship-count {
    font-weight: 800;
    white-space: nowrap;
}

.mk-progress {
    height: 10px;
    margin-top: 10px;
    background: #EEE8DD;
    border-radius: 999px;
    overflow: hidden;
}

.mk-progress-bar {
    height: 100%;
    background: var(--mk-gold);
    border-radius: 999px;
}

/* Articles à gauche, récapitulatif à droite */
.mk-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 20px;
    align-items: start;
}

.mk-cart-items {
    padding: 6px 24px 14px;
}

.mk-cart-cols,
.mk-cart-line {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 92px 110px 46px;
    gap: 16px;
    align-items: center;
}

.mk-cart-cols {
    padding: 14px 0 12px;
    border-bottom: 1px solid var(--mk-line);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mk-muted);
}

.mk-cart-cols span:first-child {
    grid-column: span 2;
}

.mk-cart-cols span:nth-child(3) {
    text-align: right;
}

.mk-cart-line {
    padding: 18px 0;
    border-bottom: 1px solid var(--mk-line);
}

.mk-cart-thumb {
    display: block;
    line-height: 0;
}

.mk-cart-thumb img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 1px solid var(--mk-line);
    border-radius: 10px;
    background: #F1EBE1;
}

.mk-cart-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mk-cart-name {
    font-weight: 700;
    line-height: 1.3;
    color: var(--mk-ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.mk-cart-name:hover {
    color: var(--mk-gold-dark);
    text-decoration: underline;
}

.mk-cart-unit {
    font-size: 0.92rem;
    color: var(--mk-text-soft);
}

.mk-cart-unit .mk-price-old {
    margin-left: 6px;
}

.mk-cart-promo {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--mk-red);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    vertical-align: 1px;
}

.mk-cart-qty {
    margin: 0;
}

.mk-cart-qty .form-select {
    width: 92px;
    min-height: 44px;
    font-weight: 800 !important;
    border-radius: 10px;
    cursor: pointer;
}

.mk-cart-total {
    font-size: 1.1rem;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.mk-cart-remove {
    margin: 0;
}

.mk-cart-remove button {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    border: 1px solid var(--mk-line-strong);
    border-radius: 10px;
    background: #ffffff;
    color: var(--mk-red);
    font-weight: 700;
    font-size: 0.9rem;
}

.mk-cart-remove button:hover {
    background: var(--mk-red);
    border-color: var(--mk-red);
    color: #ffffff;
}

.mk-cart-remove button span {
    display: none;
}

.mk-cart-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 10px;
    font-weight: 700;
    color: var(--mk-ink);
    text-decoration: none;
}

.mk-cart-back:hover {
    color: var(--mk-gold-dark);
    text-decoration: underline;
}

.mk-cart-back i {
    font-size: 0.75rem;
}

/* Récapitulatif */
.mk-summary {
    position: sticky;
    top: 150px;
}

.mk-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 6px 0;
}

.mk-summary-row strong {
    white-space: nowrap;
}

.mk-summary-block {
    margin: 12px 0;
    padding: 12px 14px;
    background: #FAF6EF;
    border: 1px solid var(--mk-line);
    border-radius: 10px;
    font-size: 0.92rem;
}

.mk-summary-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--mk-text-soft);
}

.mk-summary-note i,
.mk-cagnotte label i {
    color: var(--mk-gold-dark);
}

.mk-cagnotte {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mk-cagnotte-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mk-cagnotte-check .form-check-input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.mk-cagnotte label {
    font-weight: 700;
    cursor: pointer;
}

.mk-cagnotte label i {
    margin-right: 6px;
}

.mk-cagnotte-amount {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--mk-ink);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    white-space: nowrap;
}

.mk-cagnotte-applied {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--mk-line);
    color: #1D6A39;
    font-weight: 700;
}

.mk-summary-ship {
    margin: 16px 0 10px;
}

.mk-summary-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.mk-summary-label .mk-muted {
    font-size: 0.85rem;
    font-weight: 500;
}

.mk-summary-ship .form-select {
    border-radius: 10px;
    min-height: 44px;
}

.mk-ship-options {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.mk-ship-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 10px 14px;
    border: 2px solid var(--mk-line);
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mk-ship-option:hover {
    border-color: var(--mk-line-strong);
}

.mk-ship-option:has(input:checked) {
    border-color: var(--mk-ink);
    background: #FAF6EF;
}

.mk-ship-option .form-check-input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.mk-ship-name {
    flex: 1 1 auto;
    font-weight: 600;
}

.mk-ship-name i {
    width: 20px;
    margin-right: 6px;
    text-align: center;
    color: var(--mk-gold-dark);
}

.mk-ship-price {
    font-weight: 800;
    white-space: nowrap;
}

.mk-free {
    color: #1D6A39;
    font-weight: 800;
}

.mk-ship-warning {
    padding: 10px 12px;
    background: #FFF4D6;
    border: 1px solid #E3C566;
    border-radius: 10px;
    font-size: 0.88rem;
}

.mk-ship-warning i {
    margin-right: 8px;
}

.mk-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin: 12px 0 18px;
    padding-top: 16px;
    border-top: 2px solid var(--mk-ink);
    font-size: 1.5rem;
    font-weight: 800;
    white-space: nowrap;
}

.mk-summary-total small {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mk-muted);
}

.mk-summary-trust {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--mk-text-soft);
}

.mk-summary-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mk-summary-trust i {
    flex: 0 0 18px;
    text-align: center;
    color: var(--mk-gold-dark);
}

@media (max-width: 1099.98px) {
    .mk-cart-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .mk-summary {
        position: static;
    }
}

@media (max-width: 699.98px) {
    .mk-cart-items {
        padding: 4px 16px 12px;
    }

    .mk-cart-cols {
        display: none;
    }

    .mk-cart-line {
        grid-template-columns: 80px auto minmax(0, 1fr);
        grid-template-areas:
            "photo infos infos"
            "qte   retirer total";
        gap: 12px 14px;
        padding: 16px 0;
    }

    .mk-cart-thumb { grid-area: photo; align-self: start; }
    .mk-cart-info { grid-area: infos; }
    .mk-cart-qty { grid-area: qte; }
    .mk-cart-remove { grid-area: retirer; }
    .mk-cart-total { grid-area: total; }

    .mk-cart-thumb img {
        width: 80px;
        height: 80px;
    }

    .mk-cart-qty .form-select {
        width: 80px;
    }

    .mk-cart-remove button {
        width: auto;
        height: 44px;
        padding: 0 12px;
    }

    .mk-cart-remove button span {
        display: inline;
    }

    .mk-steps li + li::before {
        width: 16px;
    }

    .mk-summary-total {
        font-size: 1.35rem;
    }
}

/* ==========================================================================
   LIVRAISON ET PAIEMENT (pages/checkout1.php, pages/payment1.php)
   ========================================================================== */
/* Étapes déjà faites : cliquables pour revenir en arrière */
.mk-steps li a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
}

.mk-steps li a:hover .mk-step-label {
    text-decoration: underline;
}

.mk-steps .is-done {
    color: var(--mk-ink);
}

.mk-steps .is-done .mk-step-num {
    background: var(--mk-gold);
    border-color: var(--mk-gold);
    color: var(--mk-ink);
    font-size: 0.75rem;
}

.mk-steps .is-done + li::before {
    background: var(--mk-gold);
}

/* Adresse de livraison */
.mk-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.mk-form {
    padding: 28px;
}

.mk-form-note {
    margin: 0 0 18px;
    font-size: 0.88rem;
    color: var(--mk-muted);
}

.mk-req {
    color: var(--mk-red);
    font-weight: 800;
}

.mk-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px 16px;
}

.mk-col-3 { grid-column: span 3; }
.mk-col-4 { grid-column: span 4; }
.mk-col-5 { grid-column: span 5; }
.mk-col-7 { grid-column: span 7; }
.mk-col-12 { grid-column: span 12; }

.mk-field {
    min-width: 0;
}

.mk-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--mk-ink);
}

.mk-field .form-control,
.mk-field .form-select {
    min-height: 48px;
    border-radius: 10px;
}

.mk-form .mk-btn-buy {
    margin-top: 26px;
}

.mk-btn-buy:disabled {
    background: #D9D2C5;
    color: var(--mk-text-soft);
    box-shadow: none;
    cursor: not-allowed;
}

.mk-form-hint {
    margin: 10px 0 0;
    font-size: 0.88rem;
    color: var(--mk-muted);
    text-align: center;
}

.mk-checkout-aside .mk-summary-trust {
    margin-top: 0;
    font-size: 0.92rem;
}

.mk-checkout-aside .mk-cart-back {
    margin-top: 14px;
}

/* Récapitulatif avant paiement */
.mk-pay-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.mk-box-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 16px;
}

.mk-box-head .mk-box-title {
    margin-bottom: 0;
}

.mk-box-title i {
    margin-right: 8px;
    color: var(--mk-gold-dark);
    font-size: 1.05rem;
}

.mk-box-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--mk-ink);
    text-decoration: underline;
}

.mk-box-link:hover {
    color: var(--mk-gold-dark);
}

.mk-address {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    font-style: normal;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.mk-address span:empty {
    display: none;
}

.mk-order-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mk-order-lines li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--mk-line);
}

.mk-order-lines li:last-child {
    padding-bottom: 0;
}

.mk-order-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.mk-order-total {
    font-weight: 800;
    white-space: nowrap;
}

.mk-summary-discount {
    color: #1D6A39;
}

.mk-summary-discount i {
    margin-right: 8px;
}

.mk-pay-note {
    margin: 0 0 14px;
    font-size: 0.88rem;
    color: var(--mk-muted);
}

@media (max-width: 1099.98px) {
    .mk-checkout-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 699.98px) {
    .mk-form {
        padding: 18px 16px;
    }

    .mk-form-grid {
        gap: 14px;
    }

    .mk-col-3,
    .mk-col-4,
    .mk-col-5,
    .mk-col-7 {
        grid-column: span 12;
    }
}

/* ==========================================================================
   PAGE D'UN RAYON, D'UNE RECHERCHE OU DES OFFRES (index.php + pages/products_list.php)
   ========================================================================== */
/* Menu du haut : petite flèche sur les rayons qui ont des sous-rayons, trait doré sur le rayon ouvert */
.mk-rayons-nav .nav-item.dropdown > .nav-link::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    margin-left: 6px;
    border: 0;
    color: var(--mk-muted);
}

.mk-rayons-nav .nav-link.active {
    box-shadow: inset 0 -3px 0 var(--mk-gold);
}

/* Bannière avec le nom du rayon : texte blanc sur la photo, avec un voile léger à gauche pour la lisibilité */
.mk-cat-hero {
    position: relative;
    background-color: var(--mk-ink);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
}

.mk-cat-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 16, 10, 0.62) 0%, rgba(20, 16, 10, 0.34) 45%, rgba(20, 16, 10, 0.06) 100%);
}

.mk-cat-hero-in {
    position: relative;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 10px;
    padding-top: 28px;
    padding-bottom: 30px;
}

/* Bloc du titre (présent ou non selon la version d'index.php : le rendu est le même) */
.mk-cat-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
}

.mk-cat-trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    font-size: 0.88rem;
    color: #F4EFE6;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.mk-cat-trail a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: inherit;
    text-decoration: none;
}

.mk-cat-trail a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.mk-cat-trail i {
    font-size: 0.6rem;
    opacity: 0.7;
}

.mk-cat-trail span[aria-current] {
    color: #ffffff;
    font-weight: 700;
}

.mk-cat-hero h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(1.8rem, 3.6vw, 2.9rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    overflow-wrap: anywhere;
}

.mk-cat-count {
    margin: 2px 0 0;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--mk-gold);
    color: var(--mk-ink);
    font-size: 0.88rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

/* Sous-rayons en raccourcis et tri */
.mk-list-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 22px;
}

.mk-list-bar:not(:has(*)) {
    display: none;
}

.mk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.mk-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--mk-line-strong);
    border-radius: 999px;
    background: #ffffff;
    color: var(--mk-ink);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mk-chip:hover {
    border-color: var(--mk-ink);
    color: var(--mk-ink);
}

.mk-chip.is-active {
    background: var(--mk-ink);
    border-color: var(--mk-ink);
    color: #ffffff;
}

.mk-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.mk-sort label {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.mk-sort .form-select {
    width: auto;
    min-width: 200px;
    min-height: 44px;
    border-radius: 10px;
    cursor: pointer;
}

/* Aucun produit */
.mk-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 56px 24px;
    text-align: center;
    background: var(--mk-surface);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
}

.mk-empty > i {
    font-size: 2.6rem;
    color: var(--mk-line-strong);
}

.mk-empty p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--mk-muted);
}

@media (max-width: 575.98px) {
    .mk-cat-hero::before {
        background: linear-gradient(to top, rgba(20, 16, 10, 0.6) 0%, rgba(20, 16, 10, 0.3) 100%);
    }

    .mk-cat-hero-in {
        min-height: 170px;
        padding-top: 18px;
        padding-bottom: 20px;
    }

    .mk-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -14px;
        padding-right: 14px;
        padding-bottom: 4px;
        width: 100%;
    }

    .mk-sort {
        width: 100%;
        margin-left: 0;
    }

    .mk-sort .form-select {
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* ==========================================================================
   GRAND PANNEAU DES SOUS-RAYONS (menu du haut, index.php)
   ========================================================================== */
.mk-rayons-in {
    position: relative;
}

.mk-rayons-nav,
.mk-rayons-nav .navbar-nav,
.mk-rayons-nav .mk-mega-item {
    position: static;
}

.mk-rayons-nav .mk-mega {
    position: absolute;
    top: 100%;
    left: 24px;
    right: 24px;
    z-index: 1040;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--mk-line) !important;
    border-top: 3px solid var(--mk-gold) !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.2) !important;
    animation: mkMegaIn 0.16s ease-out;
}

/* Au clavier : le panneau s'ouvre quand on arrive sur le rayon avec la touche Tab */
.mk-rayons-nav .mk-mega-item:focus-within > .mk-mega {
    display: block;
}

@keyframes mkMegaIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .mk-rayons-nav .mk-mega { animation: none; }
}

.mk-mega-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    background: #FAF6EF;
    border-bottom: 1px solid var(--mk-line);
}

.mk-mega-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mk-ink);
}

.mk-mega-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--mk-ink);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.mk-mega-all:hover {
    background: var(--mk-gold);
    color: var(--mk-ink);
}

.mk-mega-body {
    display: flex;
    align-items: stretch;
    gap: 28px;
    padding: 24px 28px 28px;
}

.mk-mega-grid {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px 20px;
    align-content: start;
}

.mk-mega-block {
    min-width: 0;
}

.mk-mega-sub {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--mk-ink);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mk-mega-sub img,
.mk-mega-noimg {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    background: #F1EBE1;
}

.mk-mega-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mk-gold-dark);
    font-size: 1.2rem;
}

.mk-mega-name {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.mk-mega-sub > i {
    font-size: 0.75rem;
    color: var(--mk-line-strong);
    transition: transform 0.15s ease, color 0.15s ease;
}

.mk-mega-sub:hover,
.mk-mega-sub.is-active {
    background: #FAF6EF;
    border-color: var(--mk-line);
    color: var(--mk-ink);
}

.mk-mega-sub.is-active {
    border-color: var(--mk-gold);
}

.mk-mega-sub:hover > i {
    color: var(--mk-gold-dark);
    transform: translateX(3px);
}

/* Sous-sous-rayons, sous le sous-rayon */
.mk-mega-list {
    list-style: none;
    margin: 2px 0 6px;
    padding: 0 0 0 80px;
}

.mk-mega-list .mk-mega-list {
    margin: 0;
    padding-left: 14px;
    border-left: 1px solid var(--mk-line);
}

.mk-mega-list a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--mk-text-soft);
    text-decoration: none;
}

.mk-mega-list a:hover,
.mk-mega-list a.is-active {
    color: var(--mk-ink);
    text-decoration: underline;
}

.mk-mega-list a.is-active {
    font-weight: 700;
}

/* Photo du rayon, à droite */
.mk-mega-visual {
    flex: 0 0 300px;
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 190px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--mk-ink);
    background-position: center center;
    background-size: cover;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.mk-mega-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 16, 10, 0.7) 0%, rgba(20, 16, 10, 0) 50%);
    transition: background-color 0.15s ease;
}

.mk-mega-visual span {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    font-size: 1.05rem;
}

.mk-mega-visual:hover {
    color: var(--mk-gold);
}

@media (max-width: 1199.98px) {
    .mk-mega-visual { flex-basis: 230px; }
    .mk-mega-list { padding-left: 80px; }
}

/* ==========================================================================
   PAGES D'INFORMATION LONGUES (conditions générales de vente)
   ========================================================================== */
.mk-legal {
    color: #1a1a1a;
}

.mk-legal-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 2px solid #1a1a1a;
}

.mk-legal-head h1 {
    margin: 0 0 6px;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.mk-legal-head p {
    margin: 0;
    max-width: 62ch;
    color: #5F574C;
}

.mk-legal-print {
    flex: 0 0 auto;
}

/* Sommaire à gauche, texte à droite */
.mk-legal-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.mk-legal-toc {
    position: sticky;
    top: 150px;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    padding: 18px 16px 18px 18px;
    border: 1px solid #E6DFD3;
    border-radius: 14px;
    background: #ffffff;
}

.mk-legal-toc summary {
    margin-bottom: 10px;
    font-weight: 800;
    font-size: 1rem;
    list-style: none;
    cursor: default;
}

.mk-legal-toc summary::-webkit-details-marker {
    display: none;
}

.mk-legal-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mk-legal-toc a {
    display: flex;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    color: #4A4339;
    font-size: 0.9rem;
    line-height: 1.35;
    text-decoration: none;
}

.mk-legal-toc a span {
    flex: 0 0 22px;
    color: #8a6d12;
    font-weight: 800;
    text-align: right;
}

.mk-legal-toc a:hover,
.mk-legal-toc a:focus-visible {
    background: #F6F1E9;
    color: #1a1a1a;
}

/* Le texte : une colonne étroite, confortable à lire */
.mk-legal-body {
    max-width: 74ch;
    font-size: 1.02rem;
    line-height: 1.7;
}

.mk-legal-body section {
    padding-top: 6px;
    margin-bottom: 38px;
    scroll-margin-top: 160px;
}

.mk-legal-body section > h2 {
    margin: 0 0 14px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

/* Le numéro de l'article, au-dessus de son titre */
.mk-legal-body section > h2 span {
    display: block;
    margin-bottom: 2px;
    color: #8a6d12;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0;
}

.mk-legal-body h3 {
    margin: 22px 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
}

.mk-legal-body p {
    margin: 0 0 12px;
}

.mk-legal-body ul,
.mk-legal-body ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.mk-legal-body li {
    margin-bottom: 6px;
}

.mk-legal-body a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #d4af37;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.mk-legal-body a:hover {
    color: #8a6d12;
}

/* Rappel en tête de page */
.mk-legal-summary {
    margin-bottom: 40px;
    padding: 22px 26px;
    border-radius: 16px;
    background: #1a1a1a;
    color: #F6F1E9;
}

.mk-legal-summary h2 {
    margin: 0 0 12px;
    color: #d4af37;
    font-size: 1.15rem;
    font-weight: 800;
}

.mk-legal-summary ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.mk-legal-summary li::marker {
    color: #d4af37;
}

.mk-legal-summary a {
    color: #ffffff;
}

.mk-legal-summary a:hover {
    color: #d4af37;
}

.mk-legal-summary p {
    margin: 0;
    color: #CFC7BA;
    font-size: 0.88rem;
}

/* Coordonnées, encadré des garanties, formulaire */
.mk-legal-card {
    margin: 0 0 14px;
    padding: 16px 20px;
    border-left: 4px solid #d4af37;
    border-radius: 0 12px 12px 0;
    background: #ffffff;
    font-style: normal;
    line-height: 1.65;
}

.mk-legal-box {
    margin: 4px 0 16px;
    padding: 20px 24px;
    border: 1px solid #B9AE9C;
    border-radius: 14px;
    background: #ffffff;
}

.mk-legal-box h3:first-child {
    margin-top: 0;
}

.mk-legal-box p:last-child,
.mk-legal-box ul:last-child {
    margin-bottom: 0;
}

.mk-legal-steps strong {
    font-weight: 800;
}

.mk-legal-form {
    padding-top: 28px !important;
    border-top: 2px solid #1a1a1a;
}

.mk-legal-form dl {
    margin: 0;
}

.mk-legal-form dl div {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 6px 12px;
    margin-top: 16px;
}

.mk-legal-form dt {
    font-weight: 700;
}

/* La ligne à remplir à la main */
.mk-legal-form dd {
    flex: 1 1 180px;
    min-height: 1.4em;
    margin: 0;
    border-bottom: 1px dotted #5F574C;
}

@media (max-width: 991.98px) {
    .mk-legal-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .mk-legal-toc {
        position: static;
        max-height: none;
        padding: 0;
    }

    .mk-legal-toc summary {
        margin: 0;
        padding: 14px 18px;
        cursor: pointer;
    }

    .mk-legal-toc summary::after {
        content: "Afficher";
        float: right;
        color: #8a6d12;
        font-size: 0.86rem;
        font-weight: 700;
    }

    .mk-legal-toc details[open] summary::after {
        content: "Masquer";
    }

    .mk-legal-toc ol {
        padding: 0 10px 12px;
    }

    .mk-legal-body section {
        scroll-margin-top: 20px;
    }
}

@media (max-width: 575.98px) {
    .mk-legal-summary,
    .mk-legal-box {
        padding: 18px;
    }

    .mk-legal-body section > h2 {
        font-size: 1.25rem;
    }
}

/* ---------- Questions fréquentes ---------- */
.mk-faq-search {
    position: relative;
    flex: 0 1 340px;
}

.mk-faq-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #5F574C;
    pointer-events: none;
}

.mk-faq-search .form-control {
    min-height: 48px;
    padding-left: 44px;
    border: 2px solid #1a1a1a;
    border-radius: 999px;
    background: #ffffff;
}

.mk-faq-search .form-control:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.45);
}

.mk-faq-toc a span {
    color: #8a6d12;
    text-align: center;
}

.mk-faq-count {
    margin: 0 0 18px;
    color: #5F574C;
    font-weight: 600;
}

.mk-faq-theme[hidden] {
    display: none;
}

/* Une question : on clique pour déplier la réponse */
.mk-faq-item {
    border-bottom: 1px solid #E6DFD3;
}

.mk-faq-theme h2 + .mk-faq-item {
    border-top: 1px solid #E6DFD3;
}

.mk-faq-item summary {
    position: relative;
    padding: 16px 44px 16px 0;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

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

/* Le signe + qui devient − une fois la réponse dépliée */
.mk-faq-item summary::before,
.mk-faq-item summary::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 16px;
    height: 2px;
    margin-top: -1px;
    border-radius: 2px;
    background: #8a6d12;
    transition: transform 0.2s ease;
}

.mk-faq-item summary::after {
    transform: rotate(90deg);
}

.mk-faq-item[open] summary::after {
    transform: rotate(0deg);
}

.mk-faq-item summary:hover {
    color: #8a6d12;
}

.mk-faq-item summary:focus-visible {
    outline: 3px solid #d4af37;
    outline-offset: 2px;
    border-radius: 6px;
}

.mk-faq-answer {
    padding: 0 44px 18px 0;
    color: #4A4339;
}

.mk-faq-answer p:last-child {
    margin-bottom: 0;
}

.mk-faq-none {
    padding: 22px 24px;
    border: 1px dashed #B9AE9C;
    border-radius: 14px;
    color: #5F574C;
    font-weight: 600;
}

.mk-faq-contact {
    margin-top: 8px;
    padding: 26px 28px !important;
    border-radius: 16px;
    background: #1a1a1a;
    color: #F6F1E9;
}

.mk-legal-body .mk-faq-contact > h2 {
    color: #d4af37;
    font-size: 1.2rem;
}

.mk-faq-contact p:last-child {
    margin-bottom: 0;
    color: #CFC7BA;
    font-size: 0.94rem;
}

.mk-legal-body .mk-faq-contact a {
    color: #ffffff;
}

.mk-legal-body .mk-faq-contact a:hover {
    color: #d4af37;
}

@media (max-width: 575.98px) {
    .mk-faq-search {
        flex-basis: 100%;
    }

    .mk-faq-contact {
        padding: 20px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mk-faq-item summary::before,
    .mk-faq-item summary::after {
        transition: none;
    }
}

/* ---------- Pages Livraison et Retours ---------- */
/* Les repères à retenir, en tête de page */
.mk-info-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 40px !important;
    padding: 0 !important;
    list-style: none;
    border-radius: 16px;
    background: #1a1a1a;
    color: #F6F1E9;
    overflow: hidden;
}

.mk-info-facts li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 20px 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    line-height: 1.4;
}

.mk-info-facts li:first-child {
    border-left: 0;
}

.mk-info-facts i {
    margin-bottom: 8px;
    color: #d4af37;
    font-size: 1.25rem;
}

.mk-info-facts strong {
    font-weight: 800;
}

.mk-info-facts span {
    color: #CFC7BA;
    font-size: 0.88rem;
}

/* Tableau des frais de livraison */
.mk-info-select {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 22px 0 12px;
}

.mk-info-select label {
    font-weight: 700;
}

.mk-info-select .form-select {
    width: auto;
    min-width: 220px;
    border: 2px solid #1a1a1a;
    border-radius: 10px;
    font-weight: 600;
}

.mk-info-table-wrap {
    margin: 12px 0 10px;
    border: 1px solid #B9AE9C;
    border-radius: 14px;
    background: #ffffff;
    overflow-x: auto;
}

.mk-info-table-wrap[hidden] {
    display: none;
}

.mk-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
    line-height: 1.4;
}

.mk-info-table caption {
    caption-side: top;
    padding: 14px 18px 0;
    color: #5F574C;
    font-size: 0.88rem;
    text-align: left;
}

.mk-info-table th,
.mk-info-table td {
    padding: 12px 18px;
    border-top: 1px solid #E6DFD3;
    text-align: right;
    white-space: nowrap;
}

.mk-info-table thead th {
    border-top: 0;
    color: #5F574C;
    font-size: 0.86rem;
    font-weight: 700;
}

.mk-info-table th:first-child {
    text-align: left;
    font-weight: 600;
}

.mk-info-table tbody td {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.mk-info-na {
    color: #5F574C;
    font-weight: 500;
    font-size: 0.9rem;
}

.mk-info-note {
    color: #5F574C;
    font-size: 0.88rem;
}

/* Liste des pays livrés */
.mk-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 !important;
    list-style: none;
}

.mk-info-tags li {
    margin: 0;
    padding: 6px 14px;
    border: 1px solid #B9AE9C;
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.94rem;
    font-weight: 600;
}

/* Les étapes d'un retour, dans l'ordre */
.mk-info-steps {
    margin: 0 0 14px;
    padding: 0 !important;
    list-style: none;
    counter-reset: mk-etape;
}

.mk-info-steps li {
    position: relative;
    margin: 0;
    padding: 0 0 22px 56px;
    counter-increment: mk-etape;
}

.mk-info-steps li::before {
    content: counter(mk-etape);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1a1a1a;
    color: #d4af37;
    font-weight: 800;
}

/* Le trait qui relie une étape à la suivante */
.mk-info-steps li::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 42px;
    bottom: 6px;
    width: 2px;
    background: #E6DFD3;
}

.mk-info-steps li:last-child {
    padding-bottom: 0;
}

.mk-info-steps li:last-child::after {
    display: none;
}

.mk-info-steps strong {
    display: block;
    padding-top: 5px;
    font-weight: 800;
}

.mk-info-steps p {
    margin: 4px 0 0;
    color: #4A4339;
}

@media (max-width: 575.98px) {
    .mk-info-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .mk-info-facts li {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        column-gap: 6px;
        padding: 14px 18px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .mk-info-facts li:first-child {
        border-top: 0;
    }

    .mk-info-facts i {
        grid-row: span 2;
        margin: 4px 0 0;
    }

    .mk-info-table th,
    .mk-info-table td {
        padding: 10px 12px;
    }

    .mk-info-table th:first-child {
        white-space: normal;
    }

    .mk-info-select .form-select {
        width: 100%;
    }
}

/* Impression : le texte seul, sans le menu ni le pied de page du site */
@media print {
    body:has(.mk-legal) .mk-topbar,
    body:has(.mk-legal) .mk-header,
    body:has(.mk-legal) .mk-banner,
    body:has(.mk-legal) .mk-section,
    body:has(.mk-legal) .mk-footer,
    body:has(.mk-legal) .offcanvas,
    body:has(.mk-legal) #chat-toggle-btn,
    body:has(.mk-legal) #chat-container,
    .mk-legal-toc,
    .mk-legal-print {
        display: none !important;
    }

    .mk-legal-layout {
        display: block;
    }

    .mk-legal-body {
        max-width: none;
        font-size: 11pt;
    }

    .mk-legal-summary {
        background: none;
        color: #000000;
        border: 1px solid #000000;
    }

    .mk-legal-summary h2,
    .mk-legal-summary p,
    .mk-legal-summary a {
        color: #000000;
    }

    .mk-legal-body section {
        break-inside: avoid-page;
    }
}

/* ==========================================================================================
   Vus récemment, essai en 2D, galerie des clients, filtre de prix (connect/boutique_plus.php)
   ========================================================================================== */

/* Étiquette « Essai chez moi en 2D » sur la photo d'un produit */
.mk-card-img {
    position: relative;
}

.mk-badge-2d {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 9px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(26, 26, 26, 0.88);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mk-badge-2d i {
    margin-right: 3px;
    color: var(--mk-gold);
}

.mk-idees {
    margin-top: 36px;
}

/* Encart de l'accueil : tester un produit chez soi */
.mk-essai2d-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    padding: 22px 26px;
    border-radius: 16px;
    background: var(--mk-ink);
    color: #ffffff;
}

.mk-essai2d-in > i {
    flex: 0 0 auto;
    font-size: 2rem;
    color: var(--mk-gold);
}

.mk-essai2d-texte {
    flex: 1 1 320px;
    min-width: 0;
}

.mk-essai2d-texte h2 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.25;
}

.mk-essai2d-texte p {
    margin: 0;
    max-width: 62ch;
    color: #E6DFD3;
    line-height: 1.5;
}

.mk-essai2d-in .mk-btn {
    flex: 0 0 auto;
}

/* Galerie « Chez nos clients » */
.mk-galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.mk-galerie-photo {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--mk-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--mk-ink);
    text-decoration: none;
}

.mk-galerie-photo:hover,
.mk-galerie-photo:focus-visible {
    border-color: var(--mk-ink);
    color: var(--mk-ink);
}

.mk-galerie-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #F1EBE1;
}

.mk-galerie-legende {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px 12px;
    font-size: 0.88rem;
    line-height: 1.35;
}

.mk-galerie-legende strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mk-galerie-legende > span {
    color: var(--mk-muted);
}

.mk-galerie-etoiles {
    font-size: 0.78rem;
}

.mk-galerie-etoiles .text-warning {
    color: #C48A12 !important;
}

.mk-galerie-etoiles .text-muted {
    color: #B9AE9C !important;
}

.mk-galerie-invite {
    margin: 26px 0 0;
    color: var(--mk-text-soft);
}

.mk-galerie-invite a,
.mk-section-head .mk-lien-suite {
    color: var(--mk-ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--mk-gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Filtre de prix d'une liste de produits */
.mk-prix {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: -6px 0 22px;
}

.mk-prix-titre {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Le menu déroulant des prix : même allure que « Trier par » */
.mk-prix .form-select {
    width: auto;
    min-width: 200px;
    min-height: 44px;
    border-radius: 10px;
    cursor: pointer;
}

.mk-prix-compte {
    margin-left: 2px;
    color: var(--mk-muted);
    font-size: 0.88rem;
}

.mk-card[hidden] {
    display: none !important;
}

@media (max-width: 575.98px) {
    .mk-prix .form-select {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mk-prix-compte {
        flex: 0 0 100%;
        margin-left: 0;
    }

    .mk-essai2d-in {
        padding: 18px;
    }

    .mk-essai2d-in .mk-btn {
        width: 100%;
    }

    .mk-galerie {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mk-badge-2d {
        left: 6px;
        bottom: 6px;
        max-width: calc(100% - 12px);
        font-size: 0.66rem;
    }
}

/* Nombre de ventes, juste au-dessus du prix des cartes produits */
.mk-card-ventes {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: #111111;
}

.mk-card-ventes strong {
    color: #111111;
    font-weight: 800;
}

/* « 6 personnes l'ont dans leur panier. » sous le prix des cartes produits (pages/products_list.php) */
.mk-card-panier {
    margin-top: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b3261e;
}

/* Choix de la langue dans l'en-tête (index.php) : traduction automatique Google */
.mk-langue {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--mk-ink);
}

.mk-langue-select {
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 999px;
    background: transparent;
    color: var(--mk-ink);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 4px 10px;
    cursor: pointer;
}

/* Barre et bulles de Google Traduction : cachées, le site garde sa mise en page */
iframe.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

font[style] {
    background: none !important;
    box-shadow: none !important;
}

/* Mondial Relay : point relais choisi dans le panier (pages/cart1.php) */
.mk-relais {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
}

.mk-relais-choisi {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid var(--mk-ink);
    border-radius: 10px;
    background: #FAF6EF;
    font-size: 0.88rem;
    line-height: 1.35;
}

.mk-relais-choisi i {
    margin-top: 3px;
    color: var(--mk-gold-dark);
}

.mk-relais-choisi strong,
.mk-relais-choisi span {
    display: block;
}

.mk-relais-titre {
    font-size: 0.78rem;
    color: var(--mk-muted);
}

.mk-relais-vide {
    margin: 0;
    padding: 10px 12px;
    background: #FFF4D6;
    border: 1px solid #E3C566;
    border-radius: 10px;
    font-size: 0.88rem;
}

.mk-relais-vide i {
    margin-right: 8px;
}

.mk-relais-btn {
    width: 100%;
    justify-content: center;
}

.mk-relais-btn i {
    margin-right: 8px;
}

.mk-relais-erreur {
    padding: 10px 12px;
    background: #FDECEC;
    border: 1px solid #E5A0A0;
    border-radius: 10px;
}

#mkRelaisWidget {
    min-height: 420px;
}

/* ---------- Grand écran : favoris à gauche, panier (sous-total) à droite, sur toutes les pages (pages/colonnes_accueil.php) ---------- */
.mk-col {
    display: none;
}
@media (min-width: 1500px) {
    .mk-colonnes {
        display: grid;
        grid-template-columns: 210px minmax(0, 1320px) 210px;
        justify-content: center;
        align-items: start;
        gap: 20px;
        padding: 0 16px;
    }
    .mk-colonnes-centre {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }
    .mk-colonnes-centre .mk-container {
        padding-left: 0;
        padding-right: 0;
    }
    .mk-col-fav {
        grid-column: 1;
        grid-row: 1;
    }
    .mk-col-panier {
        grid-column: 3;
        grid-row: 1;
    }
    .mk-col {
        display: block;
        position: sticky;
        top: calc(var(--mk-entete-h, 90px) + 12px);
        max-height: calc(100vh - var(--mk-entete-h, 90px) - 24px);
        overflow-y: auto;
        margin-top: 16px;
        padding: 12px;
        background: var(--mk-surface);
        border: 1px solid var(--mk-line);
        border-radius: var(--mk-radius);
        text-align: center;
        font-size: 0.95rem;
    }
    /* Ascenseur fin et discret (Edge, Chrome) ; Firefox : règle juste en dessous */
    .mk-col::-webkit-scrollbar {
        width: 6px;
    }
    .mk-col::-webkit-scrollbar-track {
        background: transparent;
    }
    .mk-col::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.18);
        border-radius: 3px;
    }
    .mk-col:hover::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.32);
    }
    .mk-col::-webkit-scrollbar-button {
        display: none;
        height: 0;
    }
    @supports (-moz-appearance: none) {
        .mk-col {
            scrollbar-width: thin;
            scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
        }
    }
}
.mk-col-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
}
.mk-col-head:hover {
    color: #fff;
    filter: brightness(1.08);
}
.mk-col-head-fav {
    background: var(--mk-red);
}
.mk-col-head-panier {
    background: var(--mk-ink);
}
.mk-col-total {
    margin: 10px 0 8px;
    font-size: 1.6rem;
    font-weight: 800;
}
.mk-col-franco {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 10px;
    padding: 8px;
    background: #FBF3E4;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.35;
}
.mk-col-franco i {
    margin-right: 6px;
}
.mk-col-franco-ok {
    display: block;
    color: #1f7a3a;
    font-weight: 700;
}
.mk-col-barre {
    display: block;
    height: 6px;
    background: var(--mk-line);
    border-radius: 3px;
    overflow: hidden;
}
.mk-col-barre span {
    display: block;
    height: 100%;
    background: var(--mk-gold);
}
.mk-col-btn {
    display: block;
    padding: 9px 10px;
    border: 1px solid var(--mk-line-strong);
    border-radius: 999px;
    color: var(--mk-ink);
    font-weight: 700;
    text-decoration: none;
}
.mk-col-btn:hover {
    background: var(--mk-ground);
    color: var(--mk-ink);
}
.mk-col-vide {
    margin: 14px 0 4px;
    color: var(--mk-muted);
    font-size: 0.85rem;
}
.mk-col-liste {
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--mk-line);
    list-style: none;
}
.mk-col-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-bottom: 16px;
    text-align: center;
}
.mk-col-img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--mk-ground);
}
.mk-col-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mk-col-nom {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--mk-text-soft);
    font-size: 0.88rem;
    line-height: 1.3;
    text-decoration: none;
}
.mk-col-nb {
    margin: -6px 0 8px;
    color: var(--mk-muted);
    font-size: 0.9rem;
}
.mk-col-nom:hover {
    text-decoration: underline;
}
.mk-col-choix {
    color: var(--mk-muted);
    font-size: 0.75rem;
}
.mk-col-prix {
    font-weight: 800;
    font-size: 1.05rem;
}
.mk-col-qte select {
    min-width: 84px;
    margin-top: 3px;
    padding: 3px 8px;
    border: 1px solid var(--mk-line-strong);
    border-radius: 6px;
    background: #fff;
    font-size: 0.95rem;
}
.mk-col-lien {
    color: var(--mk-red);
    font-weight: 700;
    font-size: 0.85rem;
}
.mk-col-item[hidden] {
    display: none;
}

/* Écran large (panier et favoris sur les côtés) : le texte du bandeau de catégorie ne colle plus au bord de la photo */
@media (min-width: 1500px) {
    .mk-colonnes-centre .mk-cat-hero-in {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* ==========================================================================
   MENU DES RAYONS SUR UNE LIGNE (« Plus de rayons ») ET MENU « NOS OFFRES »
   L'ordre des rayons se règle dans l'administration (page Catégories).
   ========================================================================== */
.mk-rayons-nav .navbar-nav {
    flex-wrap: nowrap;
}
.mk-rayons-nav .nav-link {
    white-space: nowrap;
}
.mk-rayons-nav [hidden],
.mk-offres-nav [hidden] {
    display: none !important;
}
.mk-rayons-nav .mk-plus {
    position: relative;
    flex: 0 0 auto;
}
.mk-rayons-nav .mk-plus > .nav-link {
    color: var(--mk-gold-dark) !important;
}
.mk-rayons-nav .mk-plus > .nav-link::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    margin-left: 6px;
}
.mk-plus-menu,
.mk-offres-menu {
    position: absolute;
    top: 100%;
    z-index: 1040;
    min-width: 240px;
    margin: 0 !important;
    padding: 8px 0 !important;
    background: #ffffff;
    border: 1px solid var(--mk-line) !important;
    border-top: 3px solid var(--mk-gold) !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18) !important;
}
.mk-plus-menu { left: 0; }
.mk-offres-menu { right: 0; left: auto; }
.mk-plus-menu .dropdown-item,
.mk-offres-menu .dropdown-item {
    padding: 9px 20px;
    font-weight: 600;
    color: var(--mk-ink);
}
.mk-plus-menu .dropdown-item.active,
.mk-offres-menu .dropdown-item.active {
    background: transparent;
    color: var(--mk-gold-dark);
}
.mk-offres-nav {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0;
}
.mk-offres-nav .nav-item {
    position: relative;
}
.mk-offres-nav .mk-rayons-promo::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
}

/* ---------- Produit mis en avant « À la une » (connect/mise_en_avant.php) ---------- */
.mk-badge-une {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background: var(--mk-gold-dark, #8a6d1f);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 6px;
}
.mk-badge-une.is-sous-promo {
    top: 42px;
}

/* Fiche produit : petite fenêtre « Retours : voir les conditions » (pages/product1.php) */
.mk-promise-retours > span {
    position: relative;
}
.mk-retours-pop {
    display: inline;
}
.mk-retours-pop summary {
    display: inline;
    list-style: none;
    cursor: pointer;
    color: var(--mk-ink);
    font-weight: 700;
    text-decoration: underline;
}
.mk-retours-pop summary::-webkit-details-marker {
    display: none;
}
.mk-promises .mk-retours-pop summary i {
    margin-left: 3px;
    font-size: 0.7rem;
    color: inherit;
    transition: transform 0.2s ease;
    display: inline-block;
}
.mk-retours-pop[open] summary i {
    transform: rotate(180deg);
}
.mk-retours-pop summary:focus-visible {
    outline: 3px solid #d4af37;
    outline-offset: 2px;
    border-radius: 4px;
}
/* la fenêtre flotte sous le lien, par-dessus la page */
.mk-retours-fenetre {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 50;
    width: 420px;
    max-width: calc(100vw - 48px);
    padding: 0 0 14px;
    background: #fff;
    border: 1px solid var(--mk-line);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--mk-text-soft);
}
/* petite pointe vers le lien */
.mk-retours-fenetre::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 70px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid var(--mk-line);
    border-top: 1px solid var(--mk-line);
    transform: rotate(45deg);
}
.mk-retours-fenetre ul {
    margin: 0;
    padding: 0 16px 0 34px;
}
.mk-promises .mk-retours-fenetre li {
    display: list-item;
    margin-bottom: 4px;
}
.mk-retours-fenetre li:last-child {
    margin-bottom: 0;
}
.mk-promises .mk-retours-fenetre a {
    font-weight: 600;
}
@media (max-width: 575.98px) {
    /* sur téléphone, la fenêtre part sous l'icône pour ne pas dépasser de l'écran */
    .mk-retours-fenetre {
        left: -34px;
        width: calc(100vw - 80px);
        max-width: 420px;
    }
    .mk-retours-fenetre::before {
        left: 104px;
    }
}

/* barre de titre de la petite fenêtre, avec la croix pour fermer */
.mk-retours-fenetre-tete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 10px 10px 16px;
    background: #FAF6EF;
    border-bottom: 1px solid var(--mk-line);
    border-radius: 16px 16px 0 0;
}
.mk-retours-fenetre::before {
    background: #FAF6EF;
}
.mk-retours-fenetre-tete strong {
    font-size: 0.9rem;
    color: var(--mk-ink);
}
.mk-retours-fermer {
    flex: none;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--mk-ink);
    cursor: pointer;
}
.mk-retours-fermer:hover,
.mk-retours-fermer:focus-visible {
    background: #EFE6D6;
}

/* texte de la petite fenêtre des retours (repris de la photo de serge, frais de renvoi corrigés) */
.mk-retours-texte {
    max-height: min(60vh, 460px);
    overflow-y: auto;
    padding: 0 16px;
}
.mk-retours-texte p {
    margin: 0 0 10px;
}
.mk-retours-texte p:last-child {
    margin-bottom: 0;
}
.mk-retours-sous-titre {
    font-style: italic;
    text-decoration: underline;
    color: var(--mk-ink);
}
.mk-retours-texte ol {
    margin: 0 0 10px;
    padding-left: 20px;
}
.mk-promises .mk-retours-texte li {
    display: list-item;
    margin-bottom: 6px;
}

/* Fiche produit, « Vous aimerez aussi » et « Vus récemment » : 5 produits plus petits sur une seule ligne (pas de trou à droite) */
@media (min-width: 992px) {
    .mk-grid.mk-grid-similaires,
    .mk-vus-fiche .mk-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Fiche produit : bannière au format Google 728 × 90 (970 × 90 sur grand écran), au-dessus de « Vus récemment » */
.mk-banniere-pub {
    display: flex;
    justify-content: center;
    margin-top: 24px;   /* espace avec les produits « Vous aimerez aussi » au-dessus */
}
.mk-banniere-cadre {
    display: block;
    width: 100%;
    max-width: 728px;
    aspect-ratio: 728 / 90;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}
@media (min-width: 1200px) {
    .mk-banniere-cadre {
        max-width: 970px;
        aspect-ratio: 970 / 90;
    }
}
.mk-banniere-cadre img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mk-banniere-texte {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 14px;
    padding: 0 20px;
    background: linear-gradient(90deg, #1f1a12, #3a2f1c);
    color: #f5ead2;
    font-size: 0.92rem;
    white-space: nowrap;
}
.mk-banniere-texte strong {
    color: #d4af37;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}
.mk-banniere-texte i {
    color: #d4af37;
    margin-right: 4px;
}
@media (max-width: 767.98px) {
    /* sur téléphone : format 320 × 100 de Google, deux lignes */
    .mk-banniere-cadre,
    .mk-banniere-cadre:hover {
        max-width: 320px;
        aspect-ratio: 320 / 100;
    }
    .mk-banniere-texte {
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
        gap: 2px 12px;
        font-size: 0.75rem;
        white-space: normal;
        text-align: center;
    }
    .mk-banniere-texte strong {
        flex-basis: 100%;
        font-size: 0.95rem;
    }
    .mk-banniere-texte span:last-child {
        display: none;
    }
}

/* Avec votre propre image : le cadre prend exactement sa forme (jamais étirée ni rognée) */
.mk-banniere-cadre.is-image,
.mk-banniere-cadre.is-image:hover,
.mk-banniere-cadre:has(img),
.mk-banniere-cadre:has(img):hover {
    aspect-ratio: auto;
    max-width: 728px;
}
.mk-banniere-cadre.is-image img,
.mk-banniere-cadre:has(img) img {
    width: 100%;
    height: auto;
    object-fit: initial;
}

/* Accueil (classe js-photos posée par index.php) : fond gris avec une bande claire qui balaie (shimmer) pendant le chargement d'une photo,
   photo qui apparaît en fondu, cartes et vignettes qui montent en fondu quand on fait défiler la page */
.js-photos .photo-fond { background: #e2e2e2 linear-gradient(100deg, #e2e2e2 30%, #f5f5f5 50%, #e2e2e2 70%) no-repeat;
    background-size: 200% 100%; animation: photo-shimmer 1.2s linear infinite; }
@keyframes photo-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.js-photos img.photo-attente { opacity: 0; transition: opacity .5s ease-in-out; }
.js-photos img.photo-attente.photo-chargee { opacity: 1; }
.js-photos .apparition { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js-photos .apparition.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js-photos .photo-fond { animation: none; }
    .js-photos img.photo-attente, .js-photos .apparition { transition: none; transform: none; }
}

/* 07/11 (serge) : téléphone et tablette : les bannières du haut (catégories, jeu, fiche produit...) ne sont plus coupées sur les côtés.
   index.php donne la forme de l'image (--mk-ban-pct = hauteur en % de la largeur, mkBannerPct). Sur petit écran :
   - .mk-banner prend exactement la hauteur de l'image : on la voit en entier ;
   - .mk-cat-hero montre l'image entière en haut, puis le titre de la catégorie juste en dessous, sur le fond foncé.
   Sans --mk-ban-pct (image introuvable), on garde l'ancien affichage. */
@media (max-width: 991.98px) {
    .mk-banner[style*="--mk-ban-pct"] { height: auto; aspect-ratio: auto; padding-top: calc(var(--mk-ban-pct) * 1%); background-size: 100% auto; background-position: center top; }
    .mk-cat-hero[style*="--mk-ban-pct"] { background-size: 100% auto; background-position: center top; }
    .mk-cat-hero[style*="--mk-ban-pct"]::before { top: calc(var(--mk-ban-pct) * 1vw); background: var(--mk-ink, #1c1610); }
    .mk-cat-hero[style*="--mk-ban-pct"] .mk-cat-hero-in { min-height: 0; padding-top: calc(var(--mk-ban-pct) * 1% + 14px); padding-bottom: 16px; }
}

/* Bouton « Afficher plus » sous les produits de l'accueil (pages/products_list.php) */
.mk-plus-zone { display: flex; justify-content: center; margin: 2rem 0 1rem; }
.mk-plus-zone[hidden] { display: none; }
.mk-plus-btn { min-width: 240px; padding: .75rem 1.75rem; }
.mk-plus-btn .mk-plus-nb { opacity: .75; font-weight: 400; margin-left: .25rem; }
.mk-plus-btn:disabled { opacity: .7; cursor: wait; }

/* =====================================================================
   Panneau « Tous les rayons » noir et or en deux colonnes (08/11/2026, modèle A choisi par serge)
   HTML : pages/menu_rayons.php (appelé par index.php).
   ===================================================================== */
.mk-menu2.offcanvas-start { width: min(420px, 94vw); border-right: 0; display: flex; flex-direction: column; background: var(--mk-surface, #fff); }
.mk-menu2-tete { flex: 0 0 auto; padding: 16px 16px 14px; color: #fff; background: #141210; border-bottom: 2px solid var(--mk-gold, #d4af37); }
.mk-menu2-l1 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mk-menu2-titre { margin: 0; font-size: 1.2rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; }
.mk-menu2-logo { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--mk-gold, #d4af37); color: var(--mk-gold, #d4af37);
    display: grid; place-items: center; font-family: Georgia, 'Times New Roman', serif; font-size: 1.05rem; font-weight: 700; }
.mk-menu2-fermer { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; border: 1px solid rgba(212,175,55,.55);
    background: transparent; color: var(--mk-gold, #d4af37); font-size: 1.1rem; display: grid; place-items: center; cursor: pointer; }
.mk-menu2-fermer:hover, .mk-menu2-fermer:focus-visible { background: rgba(212,175,55,.15); }
.mk-menu2-cherche { position: relative; margin: 0; }
.mk-menu2-cherche i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--mk-muted, #5F574C); pointer-events: none; }
.mk-menu2-cherche input { width: 100%; height: 44px; border: 0; border-radius: 999px; padding: 0 16px 0 44px;
    background: #fff; color: #222; font: inherit; font-size: .95rem; }
.mk-menu2-cherche input:focus { outline: 3px solid rgba(212,175,55,.6); outline-offset: 1px; }

.mk-menu2-raccourcis { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px;
    border-bottom: 1px solid var(--mk-line, #E6DFD3); background: var(--mk-surface, #fff); }
.mk-menu2-raccourcis a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px;
    border-radius: 12px; color: var(--mk-ink, #1a1a1a); text-decoration: none; font-size: .75rem; font-weight: 700; }
.mk-menu2-raccourcis a i { font-size: 1.1rem; color: var(--mk-gold-dark, #8a6d12); }
.mk-menu2-raccourcis a:hover { background: var(--mk-ground, #F6F1E9); }
.mk-menu2-raccourcis em { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: #141210; color: var(--mk-gold, #d4af37); font-style: normal; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; }

.mk-menu2-corps { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 108px 1fr; }
.mk-menu2-gauche { overflow-y: auto; background: var(--mk-ground, #F6F1E9); padding: 4px 0 12px; overscroll-behavior: contain; }
.mk-menu2-r { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px;
    text-align: center; color: var(--mk-text-soft, #4A4339); text-decoration: none; font-size: .72rem; font-weight: 700; line-height: 1.2; }
.mk-menu2-r i { font-size: 1.25rem; color: #8b8274; }
.mk-menu2-r span { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; max-width: 100%; }
.mk-menu2-r:hover { color: var(--mk-ink, #1a1a1a); background: rgba(0,0,0,.03); }
.mk-menu2-r.is-offre i { color: var(--mk-gold, #d4af37); }
.mk-menu2-r.is-promo i { color: var(--mk-red, #A3211A); }
.mk-menu2-r.is-ici { color: var(--mk-ink, #1a1a1a); }
.mk-menu2-r.is-on { background: var(--mk-surface, #fff); color: var(--mk-ink, #1a1a1a); }
.mk-menu2-r.is-on i { color: var(--mk-gold-dark, #8a6d12); }
.mk-menu2-r.is-on::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--mk-gold, #d4af37); }

.mk-menu2-droite { overflow-y: auto; padding: 14px 12px 18px; background: var(--mk-surface, #fff); overscroll-behavior: contain; display: flex; flex-direction: column; }
.mk-menu2-panneau { flex: 1 0 auto; display: flex; flex-direction: column; }
.mk-menu2-panneau[hidden] { display: none; }
.mk-menu2-ban { position: relative; display: block; height: 104px; border-radius: 12px; overflow: hidden; margin-bottom: 16px; text-decoration: none; background: #141210; }
.mk-menu2-ban img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-menu2-ban span { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px;
    background: linear-gradient(90deg, rgba(10,8,4,.78) 0%, rgba(10,8,4,.25) 75%, transparent 100%); color: #fff; }
.mk-menu2-ban strong { font-size: 1.02rem; font-weight: 800; line-height: 1.2; }
.mk-menu2-ban em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--mk-gold, #d4af37); margin-top: 3px; }
.mk-menu2-panneau h3 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 800; color: var(--mk-ink, #1a1a1a); line-height: 1.25; }
.mk-menu2-tout { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--mk-gold-dark, #8a6d12); font-weight: 700; font-size: .9rem; text-decoration: none; }
.mk-menu2-tout:hover { text-decoration: underline; }
.mk-menu2-sous { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 6px; }
.mk-menu2-sous a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none;
    color: var(--mk-ink, #1a1a1a); font-size: .78rem; font-weight: 700; line-height: 1.2; }
.mk-menu2-sous img, .mk-menu2-sansphoto { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
    border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--mk-gold, #d4af37), 0 3px 10px rgba(0,0,0,.08); transition: transform .15s; }
.mk-menu2-sansphoto { display: grid; place-items: center; background: var(--mk-ground, #F6F1E9); color: var(--mk-gold-dark, #8a6d12); font-size: 1.5rem; }
.mk-menu2-sous a:hover img, .mk-menu2-sous a:hover .mk-menu2-sansphoto { transform: scale(1.05); }
.mk-menu2-sous a.is-on { color: var(--mk-gold-dark, #8a6d12); }
.mk-menu2-sous a.is-on img, .mk-menu2-sous a.is-on .mk-menu2-sansphoto { box-shadow: 0 0 0 3px var(--mk-gold, #d4af37); }
.mk-menu2-vus { margin-top: auto; padding-top: 22px; }
.mk-menu2-vus h4 { margin: 0 0 10px; font-size: .95rem; font-weight: 800; color: var(--mk-ink, #1a1a1a); }
.mk-menu2-vus > div { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.mk-menu2-vus a { flex: 0 0 auto; scroll-snap-align: start; }
.mk-menu2-vus img { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; display: block; background: var(--mk-ground, #F6F1E9); }

.mk-menu2-pied { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--mk-line, #E6DFD3); background: var(--mk-surface, #fff); font-size: .78rem; }
.mk-menu2-pied a { color: var(--mk-muted, #5F574C); text-decoration: none; }
.mk-menu2-pied a:hover { color: var(--mk-ink, #1a1a1a); text-decoration: underline; }
@media (max-width: 359.98px) {
    .mk-menu2-corps { grid-template-columns: 90px 1fr; }
    .mk-menu2-sous img, .mk-menu2-sansphoto { width: 62px; height: 62px; }
}
/* 08/11 (serge) : champ de recherche du menu avec des coins arrondis (pas en forme de pilule) */
.mk-menu2-cherche input { border-radius: 12px; }
/* 08/11 (serge) : logo de Santos Signature à la place du « S » en haut du menu */
img.mk-menu2-logo { width: auto; height: 50px; border: 0; border-radius: 8px; display: block; flex: 0 0 auto; }
/* 08/11 (serge) : un peu plus d'ombre sous les fenêtres blanches du site (cartes, encadrés, colonnes) */
.card, .mk-tile, .mk-rayon-tile, .mk-card, .mk-reassure, .mk-product-top, .mk-box, .mk-freeship, .mk-empty,
.mk-legal-toc, .mk-legal-box, .mk-info-table-wrap, .mk-col {
    box-shadow: 0 2px 6px rgba(40, 30, 15, 0.07), 0 10px 26px rgba(40, 30, 15, 0.10);
}
.mk-rayon-tile:hover, .mk-card:hover {
    box-shadow: 0 4px 10px rgba(40, 30, 15, 0.10), 0 16px 34px rgba(40, 30, 15, 0.16);
}
/* 08/11 (serge) : ombre sous la barre blanche des rayons (en-tête), comme les fenêtres blanches */
.mk-header { box-shadow: 0 2px 6px rgba(40, 30, 15, 0.08), 0 8px 22px rgba(40, 30, 15, 0.12); }
/* 08/11 (serge) : étapes « Panier, Livraison, Paiement » centrées au milieu de la page */
.mk-steps { justify-content: center; }
/* 08/11 (serge) : traits plus longs entre les étapes Panier / Livraison / Paiement */
.mk-steps { column-gap: 14px; }
.mk-steps li + li::before { width: 90px; margin-right: 6px; }
@media (max-width: 767.98px) { .mk-steps li + li::before { width: 40px; } }
@media (max-width: 575.98px) { .mk-steps { column-gap: 6px; font-size: .82rem; } .mk-steps li { gap: 6px; } .mk-steps li + li::before { width: 16px; margin-right: 0; } }

/* 08/11 (serge) : pages panier, livraison et paiement : colonne « À la une » à droite (pages/colonnes_accueil.php, mkColonneUne) */
.mk-col-head-une { background: var(--mk-gold, #d4af37); color: #1a1a1a; }
.mk-col-head-une:hover { color: #1a1a1a; background: #e2c35a; }
@media (min-width: 1500px) {
    .mk-col-une { grid-column: 3; grid-row: 1; }
}

/* 09/11 Page « Notre histoire » (pages/histoire.php) : numéro du chapitre sur la même ligne que le titre */
.mk-histoire .mk-legal-body section > h2 {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.mk-histoire .mk-legal-body section > h2 span {
    display: inline-block;
    flex: 0 0 auto;
    margin-bottom: 0;
    font-size: 1.4rem;
    font-weight: 800;
}

/* Page rayon : « Prix » et « Trier par » sur la même ligne (2026-11-09) */
/* Sur sa propre ligne, sous les sous-rayons, à gauche : « Trier par » puis « Prix » */
.mk-list-outils {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 34px;
    flex: 0 0 100%;
    margin-left: 0;
    margin-top: 24px; /* plus d'espace sous les pilules des sous-rayons */
}

.mk-list-outils .mk-sort {
    order: -1;
}

.mk-list-outils .mk-prix {
    margin: 0;
}

.mk-list-outils .mk-sort {
    margin-left: 0;
}

@media (max-width: 575.98px) {
    .mk-list-outils {
        width: 100%;
        margin-left: 0;
    }

    .mk-list-outils .mk-prix,
    .mk-list-outils .mk-sort {
        width: 100%;
    }
}

.mk-prix[hidden] {
    display: none;
}

/* ---------- Accueil : quand le bloc d'accueil est trop étroit, on enlève les 2 cadres à côté du diaporama (11/11/2026) ----------
   Cadre noir « Tentez votre chance » et cadre blanc « Testez nos produits en 2D » : cachés, le diaporama prend toute la largeur.
   Pour changer la largeur où ils disparaissent : modifier 900px ci-dessous. */
.mk-hero {
    container-type: inline-size;
}
@container (max-width: 900px) {
    .mk-hero-side {
        display: none;
    }
}

/* 12/11 (serge) : nouvelle carte produit de la liste (photo « Catalogue déco ») : carte blanche arrondie,
   grande photo arrondie, cœur rond blanc, « Visualiser chez moi », nom en gras, rayon en marron,
   gros prix et bouton marron « Voir le produit ». Classe mk-card-v2 (pages/products_list.php). */
.mk-card.mk-card-v2 {
    background: #ffffff;
    border: 0;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(40, 30, 15, 0.06), 0 12px 28px rgba(40, 30, 15, 0.10);
}
.mk-card.mk-card-v2:hover { box-shadow: 0 4px 10px rgba(40, 30, 15, 0.10), 0 18px 36px rgba(40, 30, 15, 0.16); }
.mk-card-v2 .mk-card-img { border-radius: 14px; overflow: hidden; background: #F4EFE7; }
.mk-card-v2 .mk-card-img img { aspect-ratio: 5 / 4; transition: transform .35s ease; }
.mk-card-v2:hover .mk-card-img img { transform: scale(1.03); }
.mk-card-v2 .mk-fav-btn { top: 20px; right: 20px; background: #ffffff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.mk-card-v2 .mk-badge-promo { top: 20px; left: 20px; }
.mk-card-v2 .mk-badge-2d {
    left: 10px; bottom: 10px; padding: 7px 13px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.95); color: #2b2118; font-size: 0.78rem; font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.mk-card-v2 .mk-badge-2d i { color: #2b2118; }
.mk-card-v2 .mk-badge-2d img { max-height: 16px; width: auto; vertical-align: -3px; margin-right: 4px; }
.mk-card-v2 .mk-card-body { padding: 14px 6px 4px; gap: 4px; }
.mk-card-v2 .mk-card-name { font-size: 1.05rem; font-weight: 800; color: #1f1a15; min-height: 0; }
.mk-card-v2 .mk-card-sous { color: #9c6b3e; font-size: 0.88rem; line-height: 1.3; }
.mk-card-v2 .mk-card-rating,
.mk-card-v2 .mk-card-ventes,
.mk-card-v2 .mk-card-panier { display: none; }
.mk-card-v2 .mk-card-price { margin: 8px 0 4px; }
.mk-card-v2 .mk-price { font-size: 1.5rem; font-weight: 800; color: #1f1a15; }
.mk-card-v2 .mk-price.mk-price-promo { color: var(--mk-red); }
.mk-card-v2 .mk-card-rupture { font-size: 0.82rem; font-weight: 700; color: var(--mk-red); }
.mk-card-v2 .mk-btn-voir {
    margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px;
    box-sizing: border-box; width: 100%; padding: 12px 14px; border-radius: 10px;
    background: #5b3a26; color: #ffffff; font-weight: 700; text-decoration: none;
    transition: background .15s ease;
}
.mk-card-v2 .mk-btn-voir:hover, .mk-card-v2 .mk-btn-voir:focus-visible { background: #452b1b; color: #ffffff; }

/* 12/11 (serge) : étiquette « Bon plan » (sans prix barré) sur les cartes et la fiche produit (connect/bons_plans.php) */
.mk-badge-promo.mk-badge-bonplan { background: #2f7d4f; color: #ffffff; }
.mk-badge-bonplan-fiche {
    display: inline-block; margin-left: 10px; padding: 4px 11px; border-radius: 6px;
    background: #2f7d4f; color: #ffffff; font-size: 0.82rem; font-weight: 800; vertical-align: middle;
}
/* 12/11 (serge) : prix en rouge sur les cartes « Bon plan » (pas de prix barré) */
.mk-card-bonplan .mk-card-price .mk-price { color: var(--mk-red); }
/* 12/11 (serge) : « Petit prix » en orange, pour le distinguer de « Bon plan » */
.mk-badge-promo.mk-badge-bonplan.mk-badge-petitprix, .mk-badge-bonplan-fiche.mk-badge-petitprix { background: #E8740C; color: #ffffff; }
/* 12/11 (serge) : étiquettes « Bon plan » et « Petit prix » un peu transparentes */
.mk-badge-promo.mk-badge-bonplan, .mk-badge-bonplan-fiche { opacity: 0.85; }
/* 12/11 (serge) : « Visualiser chez moi » un peu transparent aussi */
.mk-card-v2 .mk-badge-2d { opacity: 0.85; }
/* 12/11 (serge) : photo entière dans les cartes (plus de haut ou de bas coupé), fond blanc autour */
.mk-card-v2 .mk-card-img { background: #ffffff; }
.mk-card-v2 .mk-card-img img { object-fit: contain; padding: 6px; box-sizing: border-box; }
/* 12/11 (serge) : photos trop petites avec le cadre 5/4 : cadre carré (comme les photos produit), sans marge */
.mk-card-v2 .mk-card-img img { aspect-ratio: 1 / 1; padding: 0; }
/* 12/11 (serge) : photo bord à bord comme « Vus récemment » : pas de marge autour, coins arrondis seulement en haut,
   cadre carré qui remplit (les photos produit sont carrées, donc rien n est coupé) */
.mk-card.mk-card-v2 { padding: 0; overflow: hidden; }
.mk-card-v2 .mk-card-img { border-radius: 18px 18px 0 0; }
.mk-card-v2 .mk-card-img img { object-fit: cover; aspect-ratio: 1 / 1; padding: 0; }
.mk-card-v2 .mk-card-body { padding: 14px 14px 14px; }
.mk-card-v2 .mk-fav-btn { top: 10px; right: 10px; }
.mk-card-v2 .mk-badge-promo { top: 10px; left: 10px; }

/* 13/11 (serge) : la vague grisée de chargement revient sur les cartes v2 (leur fond blanc l'écrasait, même priorité CSS) */
.js-photos .mk-card-v2 .mk-card-img.photo-fond { background: #e2e2e2 linear-gradient(100deg, #e2e2e2 30%, #f5f5f5 50%, #e2e2e2 70%) no-repeat; background-size: 200% 100%; }

/* 13/11 (serge) : mode de livraison de chaque article quand le panier mélange point relais et domicile (pages/cart1.php) */
.mk-cart-mode { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; margin-left: 4px; padding: 2px 8px; border-radius: 999px; font-size: .74rem; background: #f3ece3; color: #5b3a26; }
.mk-cart-mode.is-domicile { background: #fff4d6; color: #7a4b00; }

/* 13/11 (serge) : plus de trait jaune devant « Récapitulatif » (panier) */
.mk-summary .mk-box-title { border-left: 0; padding-left: 0; }
/* 13/11 (serge) : étiquette « À domicile uniquement » sans fond jaune, à la taille du texte */
.mk-cart-mode, .mk-cart-mode.is-domicile { background: transparent; padding: 0; margin-left: 0; width: auto; max-width: max-content; color: #5b3a26; }

/* 14/11 (serge) : panier, détail colis par colis sous le choix du mode de livraison */
.mk-colis-detail { margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; font-size: .88rem; }
.mk-colis-detail-titre { font-weight: 700; margin-bottom: 6px; }
.mk-colis-ligne { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 4px 0; }
.mk-colis-ligne + .mk-colis-ligne { border-top: 1px dashed rgba(0,0,0,.08); }
.mk-colis-qui i { margin-right: 6px; opacity: .7; }
.mk-colis-qui small { display: block; opacity: .75; margin-left: 20px; }
.mk-colis-prix { white-space: nowrap; font-weight: 600; }

/* 14/11 (serge) : fiche produit « Vendu par … · expédié par … » */
.mk-vendu-par { font-size: .85rem; opacity: .8; margin: 14px 0 6px; }
.mk-vendu-par.mk-expedie-par { margin: 0 0 18px; }
.mk-vendu-par i { margin-right: 6px; }
.mk-vendu-par .mk-vendu-logo { height: 18px; width: auto; vertical-align: middle; margin-right: 6px; }
.mk-vendu-par:not(.mk-expedie-par) { display: flex; align-items: center; opacity: 1; }

/* 14/11 (serge) : plus d entourage autour du badge « Livraison … » de la fiche produit */
.mk-badge-franco:not(.is-offerte) { border: 0; padding-left: 0; padding-right: 0; }

/* 14/11 (serge) : panier, frais de port du vendeur sous l article */
.mk-cart-port { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: .74rem; color: #5b3a26; }

/* 14/11 (serge) : fiche produit, bloc « Livraison garantie » */
.mk-garanties { margin: 16px 0 6px; }
.mk-garanties-titre { font-weight: 700; font-size: 1rem; margin: 0 0 8px; display: flex; align-items: center; }
.mk-garanties-titre i { color: #2fa84f; margin-right: 8px; }
.mk-garanties ul { list-style: none; margin: 0; padding: 0 0 0 24px; }
.mk-garanties li { font-size: .88rem; color: #666; margin: 0 0 10px; display: flex; align-items: baseline; }
.mk-garanties li i { color: #2fa84f; font-size: .75rem; margin-right: 10px; flex: 0 0 auto; }

/* 14/11 (serge) : étiquette « Petit prix » façon panneau : bandeau orange dégradé, contour blanc, texte blanc gras penché, « ! » orange */
.mk-badge-promo.mk-badge-bonplan.mk-badge-petitprix, .mk-badge-bonplan-fiche.mk-badge-petitprix {
    background: linear-gradient(180deg, #ff9a2e 0%, #f26a0f 55%, #d9500a 100%);
    color: #ffffff; opacity: 1; font-style: italic; font-weight: 900; letter-spacing: .2px;
    border: 2px solid #ffffff; border-radius: 7px; box-shadow: 0 0 0 1px #e3560b, 0 2px 4px rgba(0,0,0,.25);
    text-shadow: 1px 1px 0 rgba(0,0,0,.28); transform: rotate(-3deg); margin-right: 14px;
}
.mk-badge-bonplan-fiche.mk-badge-petitprix { position: relative; }
.mk-badge-promo.mk-badge-bonplan.mk-badge-petitprix::after, .mk-badge-bonplan-fiche.mk-badge-petitprix::after {
    content: "!"; position: absolute; right: -15px; top: 50%; transform: translateY(-60%) rotate(10deg);
    font-size: 2.1em; font-weight: 900; font-style: normal; color: #f26a0f; line-height: 1;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 2px 3px rgba(0,0,0,.25);
}

/* 14/11 (serge) : fiche produit, ombre derrière le cadre des promesses, et même cadre pour « Mes achats en toute confiance » */
.mk-promises { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22); }
.mk-garanties { background: #FAF6EF; border: 1px solid var(--mk-line); border-radius: 12px; padding: 16px 18px 8px; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22); }

/* 14/11 (serge) : étiquettes Promo et Bon plan façon panneau, comme « Petit prix » (couleurs d'origine + reflet, contour blanc, « ! ») */
.mk-badge-promo, .mk-badge-bonplan-fiche {
    background-image: linear-gradient(180deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,.18) 100%);
    opacity: 1; font-style: italic; font-weight: 900;
    border: 2px solid #ffffff; border-radius: 7px; box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 2px 4px rgba(0,0,0,.25);
    text-shadow: 1px 1px 0 rgba(0,0,0,.28); transform: rotate(-3deg); margin-right: 14px;
}
.mk-badge-bonplan-fiche { position: relative; }
.mk-badge-promo::after, .mk-badge-bonplan-fiche::after {
    content: "!"; position: absolute; right: -15px; top: 50%; transform: translateY(-60%) rotate(10deg);
    font-size: 2.1em; font-weight: 900; font-style: normal; line-height: 1; color: var(--mk-red, #c62828);
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 2px 3px rgba(0,0,0,.25);
}
.mk-badge-promo.mk-badge-bonplan::after, .mk-badge-bonplan-fiche::after { color: #2f7d4f; }

/* ---------- 17/11/2026 (serge) : la bannière d'accueil (diaporama + 2 cadres) n'est pas affichée sur téléphone ----------
   Pour changer la largeur où elle disparaît : modifier 767.98px ici ET dans index.php (script du diaporama). */
@media (max-width: 767.98px) {
    .mk-hero {
        display: none;
    }
}

/* 17/11 (serge) : ombre juste sous la bande marron de l'en-tête (logo, recherche, panier),
   par-dessus la barre blanche des rayons. */
.mk-header .mk-rayons {
    border-top: 0;
    box-shadow: inset 0 10px 12px -6px rgba(60, 40, 20, 0.55);
}

/* 17/11 (serge) : contour de la barre de recherche en marron foncé au lieu du noir */
.mk-search { border-color: #5b3a26; }
