:root{
    --navy:#0f1b2d;
    --navy2:#18263b;
    --gold:#d4af37;
    --gold2:#b98720;
    --cream:#f8f5ef;
    --paper:#fffdf8;
    --white:#ffffff;
    --text:#141c2d;
    --muted:#737b8c;
    --line:#eee4d6;
    --success:#14834a;
    --danger:#b42318;
    --shadow:0 18px 42px rgba(15,27,45,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Arial,sans-serif;background:linear-gradient(180deg,#fff 0%,#faf7f0 55%,#f4efe5 100%);color:var(--text)}
a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}
button:disabled{opacity:.42;filter:grayscale(.2);cursor:not-allowed}
.shop-body{padding-bottom:92px}

.hm-app-header{
    position:sticky;top:0;z-index:50;
    display:flex;align-items:center;justify-content:space-between;
    padding:12px 16px;background:rgba(255,255,255,.94);
    backdrop-filter:blur(18px);border-bottom:1px solid rgba(238,228,214,.95);
}
.hm-brand{display:flex;align-items:center;gap:10px;min-width:0}
.hm-brand-icon{
    width:52px;height:52px;border-radius:18px;overflow:hidden;
    display:flex;align-items:center;justify-content:center;
    background:linear-gradient(135deg,var(--navy),#26384f);
    color:var(--gold);box-shadow:0 12px 28px rgba(15,27,45,.18);
    flex:0 0 auto;
}
.hm-brand-icon img{width:100%;height:100%;object-fit:cover;background:#fff}
.hm-brand-icon strong{font-size:18px;letter-spacing:.5px}
.hm-brand-text{min-width:0}
.hm-brand-text strong{display:block;font-size:18px;line-height:1.1;color:var(--navy)}
.hm-brand-text span{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
.hm-cart-button{
    display:flex;align-items:center;gap:8px;border:1px solid var(--line);
    background:#fff;border-radius:999px;padding:8px 10px;
    font-weight:900;box-shadow:0 8px 18px rgba(15,27,45,.06);
}
.hm-cart-button span{font-size:13px}
.hm-cart-button b{min-width:26px;height:26px;border-radius:999px;background:var(--gold);display:flex;align-items:center;justify-content:center;color:#111}

.hm-app{max-width:1180px;margin:auto;padding:16px 14px 34px}
.hm-alert{border-radius:18px;padding:13px 15px;margin-bottom:14px;font-weight:850}
.hm-alert.success{background:#eaf8ef;color:#11683b}
.hm-alert.error{background:#fdecec;color:#9a2118}

.hm-hero{
    position:relative;overflow:hidden;border-radius:32px;padding:24px;
    background:
        radial-gradient(circle at 82% 22%,rgba(212,175,55,.35),transparent 28%),
        radial-gradient(circle at 10% 100%,rgba(255,255,255,.16),transparent 25%),
        linear-gradient(135deg,#101b2d,#21334d 62%,#8a6a27 130%);
    color:#fff;min-height:220px;display:grid;grid-template-columns:1fr 170px;align-items:center;gap:20px;
    box-shadow:var(--shadow);
}
.hm-hero:before{content:"";position:absolute;right:58px;bottom:20px;width:140px;height:140px;border:1px solid rgba(255,255,255,.13);border-radius:38px;transform:rotate(18deg)}
.hm-hero-content{position:relative;z-index:1}
.hm-hero-tag,.hm-label,.hm-section-head span{
    display:inline-block;text-transform:uppercase;letter-spacing:.13em;font-size:11px;font-weight:950;color:var(--gold);
}
.hm-hero h1{margin:8px 0 10px;font-size:34px;line-height:1.04;max-width:620px}
.hm-hero p{margin:0;color:#eee6d7;line-height:1.55;max-width:620px}
.hm-hero-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:18px}
.hm-hero-actions a{
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111;border-radius:16px;padding:12px 15px;font-weight:950;
}
.hm-hero-actions span{font-size:13px;color:#f5ead2}
.hm-hero-visual{position:relative;z-index:1}
.hm-tool-card{
    width:160px;height:160px;border-radius:38px;background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.20);display:grid;place-items:center;text-align:center;padding:16px;
}
.hm-tool-card span{font-size:38px}
.hm-tool-card strong{display:block;font-size:32px;color:var(--gold);margin-top:4px}
.hm-tool-card small{display:block;color:#fff;font-weight:800}

.hm-search{
    display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;
    margin:15px 0 22px;background:#fff;border:1px solid var(--line);
    border-radius:24px;padding:9px;box-shadow:0 12px 28px rgba(15,27,45,.07);
}
.hm-search span{padding-left:8px}
.hm-search input{border:0;outline:none;background:transparent;min-width:0;padding:12px}
.hm-search button,.hm-product-actions button,.hm-buy button,.primary-btn{
    border:0;border-radius:16px;background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111;font-weight:950;padding:12px 16px;cursor:pointer;text-align:center;
}
.hm-section{margin-top:22px}
.hm-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:13px}
.hm-section-head h2{margin:2px 0 0;color:var(--navy);font-size:25px}
.hm-section-head a{font-weight:900;color:#9a6a12;font-size:13px}
.hm-category-row{display:flex;gap:10px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:none}
.hm-category-row::-webkit-scrollbar{display:none}
.hm-category{
    min-width:145px;background:#fff;border:1px solid var(--line);border-radius:22px;
    padding:13px;display:flex;align-items:center;gap:10px;box-shadow:0 10px 22px rgba(15,27,45,.06);
}
.hm-category i{
    width:36px;height:36px;border-radius:15px;background:#fff5d7;color:#9a6a12;
    display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:950;
}
.hm-category strong{color:var(--navy);font-size:14px}

.hm-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(238px,1fr));gap:14px}
.hm-product{
    background:#fff;border:1px solid var(--line);border-radius:28px;overflow:hidden;
    box-shadow:0 14px 34px rgba(15,27,45,.07);
}
.hm-product-image{
    height:166px;background:linear-gradient(135deg,#fff,#f5ead6);
    display:flex;align-items:center;justify-content:center;position:relative;
}
.hm-product-image img{max-width:100%;max-height:100%;object-fit:contain}
.hm-product-fallback{
    width:112px;height:112px;border-radius:32px;background:linear-gradient(135deg,#fff9e8,#ead498);
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    color:#9a6a12;border:1px solid #ead9aa;box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.hm-product-fallback span{font-size:42px;font-weight:950;line-height:1}
.hm-product-fallback small{font-size:13px;font-weight:950;margin-top:4px}
.hm-product-fallback.large{width:190px;height:190px;border-radius:50px}
.hm-product-fallback.large span{font-size:74px}
.hm-product-body{padding:14px}
.hm-product-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}
.hm-product-meta span{color:#9a6a12;font-size:12px;font-weight:950}
.hm-product-meta i,.hm-detail-price i{
    font-style:normal;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:950;white-space:nowrap;
}
.hm-product-meta i.ok,.hm-detail-price i.ok{background:#eaf8ef;color:var(--success)}
.hm-product-meta i.ko,.hm-detail-price i.ko{background:#fdecec;color:var(--danger)}
.hm-product h3{font-size:16px;color:var(--navy);margin:9px 0 6px;min-height:40px}
.hm-product p{font-size:12px;color:var(--muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-product-price{margin:12px 0}
.hm-product-price strong{font-size:19px;color:#111827}
.hm-product-actions{display:grid;grid-template-columns:1fr 1.3fr;gap:8px;align-items:center}
.hm-product-actions a{
    border:1px solid var(--line);border-radius:16px;padding:11px;text-align:center;font-weight:950;color:#8a5a0a;background:#fff;
}
.hm-product-actions form{margin:0}
.hm-product-actions button{width:100%;padding:11px}

.hm-back{display:inline-flex;margin-bottom:14px;color:#9a6a12;font-weight:950}
.hm-detail{
    background:#fff;border:1px solid var(--line);border-radius:32px;overflow:hidden;box-shadow:var(--shadow);
    display:grid;grid-template-columns:1fr 1fr;
}
.hm-detail-image{min-height:430px;background:linear-gradient(135deg,#fff,#f5ead6);display:flex;align-items:center;justify-content:center}
.hm-detail-image img{max-width:100%;max-height:100%;object-fit:contain}
.hm-detail-body{padding:26px}
.hm-detail-body h1{font-size:31px;line-height:1.12;color:var(--navy);margin:8px 0}
.hm-ref{color:var(--muted)}
.hm-detail-price{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0}
.hm-detail-price strong{font-size:28px;color:var(--gold2)}
.hm-info-box{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.hm-info-box div{background:#fff8e6;border:1px solid #efdca6;border-radius:20px;padding:14px}
.hm-info-box span{display:block;color:#8a6a25;font-size:12px;font-weight:800}
.hm-info-box strong{display:block;margin-top:5px}
.hm-description{line-height:1.7;color:#445}
.hm-buy{display:grid;gap:10px;margin-top:18px}
.hm-buy label{font-weight:950}
.hm-buy div{display:grid;grid-template-columns:110px 1fr;gap:10px}
.hm-buy input{border:1px solid var(--line);border-radius:16px;padding:12px}

.cart-mobile-list{display:grid;gap:12px}
.cart-mobile-item{
    background:#fff;border:1px solid var(--line);border-radius:22px;padding:13px;
    display:grid;grid-template-columns:58px 1fr auto;gap:12px;align-items:center;
    box-shadow:0 10px 24px rgba(15,27,45,.05);
}
.cart-thumb{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,var(--navy),var(--gold));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:950;font-size:13px}
.cart-info{display:grid;gap:4px}
.cart-info span,.cart-info small{color:var(--muted);font-size:12px}
.cart-actions{display:flex;align-items:center;gap:10px;margin-top:5px}
.cart-actions input{width:78px;border:1px solid var(--line);border-radius:13px;padding:8px}
.cart-actions a{color:var(--danger);font-weight:850;font-size:13px}
.cart-total{white-space:nowrap;color:var(--navy)}
.checkout-summary{
    background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px;margin-top:16px;
    display:grid;gap:12px;box-shadow:0 12px 28px rgba(15,27,45,.06);
}
.checkout-summary div{display:flex;justify-content:space-between;gap:15px}
.checkout-summary span{color:var(--muted)}
.checkout-summary .grand-total{font-size:20px;color:var(--gold2)}
.app-empty,.hm-empty{
    background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px;display:grid;gap:12px;
    text-align:center;box-shadow:0 12px 28px rgba(15,27,45,.06);
}
.secondary-btn{
    border:1px solid #ead493;border-radius:16px;background:#fff;color:#8a5a0a;
    padding:12px 16px;font-weight:950;cursor:pointer;
}
.checkout-mobile-grid{display:grid;grid-template-columns:1.3fr .8fr;gap:18px}
.app-form{
    background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px;
    display:grid;gap:10px;box-shadow:0 12px 28px rgba(15,27,45,.06);
}
.app-form label{font-weight:900}
.app-form input,.app-form textarea{
    width:100%;border:1px solid var(--line);border-radius:16px;padding:13px;background:#fff;
}
.app-form textarea{min-height:92px}
.sticky-summary{align-self:start;position:sticky;top:90px}
.tracking-mobile{
    background:#fff;border:1px solid var(--line);border-radius:28px;padding:22px;box-shadow:var(--shadow);
}
.tracking-mobile h1{margin:0 0 8px;color:var(--navy)}
.tracking-subtitle{color:var(--muted)}
.tracking-status{
    display:inline-flex;background:#fff4d4;color:#8a5a0a;border:1px solid #efd99a;
    border-radius:999px;padding:8px 12px;font-weight:950;font-size:12px;
}
.tracking-steps{margin:20px 0;display:grid;gap:11px}
.tracking-step{border-left:4px solid var(--gold);background:#fffaf0;border-radius:16px;padding:13px 15px}
.tracking-step b{display:block}
.tracking-step small{display:block;color:var(--muted);margin-top:3px}
.tracking-step span{display:block;color:#445;margin-top:5px}

.hm-bottom-nav{
    position:fixed;left:50%;bottom:12px;transform:translateX(-50%);
    z-index:60;width:min(620px,calc(100% - 24px));height:68px;
    background:rgba(255,255,255,.96);backdrop-filter:blur(18px);
    border:1px solid var(--line);border-radius:25px;box-shadow:0 18px 45px rgba(15,27,45,.18);
    display:grid;grid-template-columns:repeat(4,1fr);padding:7px;
}
.hm-bottom-nav a{
    position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
    border-radius:18px;color:var(--muted);font-weight:950;
}
.hm-bottom-nav span{font-size:18px;line-height:1}
.hm-bottom-nav small{font-size:11px}
.hm-bottom-nav a.active{background:#fff3cc;color:#9a6a12}
.hm-bottom-nav em{
    position:absolute;top:5px;right:22%;min-width:18px;height:18px;border-radius:999px;
    background:var(--gold);color:#111;font-style:normal;font-size:10px;display:flex;align-items:center;justify-content:center;
}
.hm-pagination{margin:20px 0}

.admin-body{background:#f4f6f8;display:grid;grid-template-columns:245px 1fr;min-height:100vh;padding-bottom:0}
.admin-sidebar{background:var(--navy);color:#fff;padding:22px;display:flex;flex-direction:column;gap:8px}
.admin-logo{font-size:28px;font-weight:900;color:var(--gold);margin-bottom:20px}
.admin-logo span{font-size:15px;color:#fff}
.admin-sidebar a{padding:12px 14px;border-radius:12px;color:#fff}
.admin-sidebar a:hover{background:rgba(255,255,255,.08)}
.admin-main{padding:28px;overflow:auto}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:20px 0}
.stat-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}
.stat-card span{color:var(--muted)}
.stat-card strong{display:block;font-size:26px;color:var(--navy);margin-top:8px}
.admin-table{width:100%;border-collapse:collapse;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 10px 25px rgba(0,0,0,.04)}
.admin-table th,.admin-table td{padding:13px;border-bottom:1px solid #edf0f3;text-align:left;font-size:14px}
.admin-table th{background:#fbfbfc;color:#344;font-weight:900}
.filter-links{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.filter-links a{background:#fff;border:1px solid var(--line);padding:9px 12px;border-radius:999px}
.admin-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}

@media(max-width:820px){
    .hm-app{padding:13px 12px 28px}
    .hm-app-header{padding:11px 14px}
    .hm-brand-icon{width:48px;height:48px;border-radius:17px}
    .hm-brand-text strong{font-size:17px}
    .hm-cart-button span{display:none}
    .hm-hero{grid-template-columns:1fr;min-height:205px;padding:22px 18px;border-radius:28px}
    .hm-hero h1{font-size:27px}
    .hm-hero-visual{display:none}
    .hm-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
    .hm-product{border-radius:24px}
    .hm-product-image{height:128px}
    .hm-product-fallback{width:88px;height:88px;border-radius:25px}
    .hm-product-fallback span{font-size:34px}
    .hm-product-body{padding:11px}
    .hm-product-meta{display:grid;gap:6px}
    .hm-product h3{font-size:14px;min-height:36px}
    .hm-product-price strong{font-size:17px}
    .hm-product-actions{grid-template-columns:1fr}
    .hm-product-actions a{display:none}
    .hm-detail,.checkout-mobile-grid{grid-template-columns:1fr}
    .hm-detail-image{min-height:290px}
    .hm-detail-body{padding:18px}
    .hm-detail-body h1{font-size:25px}
    .hm-info-box{grid-template-columns:1fr}
    .hm-buy div{grid-template-columns:1fr}
    .cart-mobile-item{grid-template-columns:52px 1fr}
    .cart-total{grid-column:2}
    .sticky-summary{position:relative;top:auto}
    .admin-body{grid-template-columns:1fr}
}

/* PATCH 29 — Panier latéral superposé */
.hm-no-scroll{
    overflow:hidden;
}

.hm-cart-backdrop{
    position:fixed;
    inset:0;
    background:rgba(15,27,45,.42);
    backdrop-filter:blur(6px);
    opacity:0;
    visibility:hidden;
    transition:.22s ease;
    z-index:80;
}

.hm-cart-backdrop.is-open{
    opacity:1;
    visibility:visible;
}

.hm-cart-drawer{
    position:fixed;
    top:0;
    right:0;
    width:min(430px,92vw);
    height:100dvh;
    background:#fffdf8;
    border-left:1px solid var(--line);
    box-shadow:-24px 0 70px rgba(15,27,45,.22);
    transform:translateX(105%);
    transition:.26s ease;
    z-index:90;
    display:flex;
    flex-direction:column;
}

.hm-cart-drawer.is-open{
    transform:translateX(0);
}

.hm-cart-drawer-head{
    padding:18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid var(--line);
    background:linear-gradient(135deg,#fff,#fff8e7);
}

.hm-cart-drawer-head span{
    display:block;
    text-transform:uppercase;
    letter-spacing:.13em;
    color:var(--gold2);
    font-size:11px;
    font-weight:950;
}

.hm-cart-drawer-head strong{
    display:block;
    font-size:22px;
    color:var(--navy);
    margin-top:3px;
}

.hm-cart-drawer-head button{
    width:42px;
    height:42px;
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
    color:var(--navy);
    font-size:28px;
    line-height:1;
    cursor:pointer;
}

.hm-cart-drawer-content{
    padding:16px;
    overflow:auto;
    flex:1;
}

.hm-drawer-loading,
.hm-drawer-error{
    padding:18px;
    border-radius:18px;
    background:#fff;
    border:1px solid var(--line);
    color:var(--muted);
    font-weight:850;
}

.hm-drawer-error{
    color:var(--danger);
    background:#fdecec;
}

.hm-drawer-empty{
    min-height:70vh;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:12px;
    padding:20px;
}

.hm-drawer-empty-icon{
    width:82px;
    height:82px;
    border-radius:28px;
    background:linear-gradient(135deg,var(--navy),var(--gold));
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    box-shadow:0 18px 38px rgba(15,27,45,.16);
}

.hm-drawer-empty strong{
    font-size:22px;
    color:var(--navy);
}

.hm-drawer-empty span{
    color:var(--muted);
    line-height:1.5;
}

.hm-drawer-items{
    display:grid;
    gap:12px;
}

.hm-drawer-item{
    display:grid;
    grid-template-columns:58px 1fr auto;
    gap:12px;
    align-items:center;
    padding:12px;
    border:1px solid var(--line);
    border-radius:22px;
    background:#fff;
    box-shadow:0 10px 24px rgba(15,27,45,.05);
}

.hm-drawer-thumb{
    width:58px;
    height:58px;
    border-radius:18px;
    background:linear-gradient(135deg,var(--navy),var(--gold));
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:950;
    font-size:13px;
}

.hm-drawer-info{
    min-width:0;
}

.hm-drawer-info strong{
    display:block;
    color:var(--navy);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.hm-drawer-info span,
.hm-drawer-info small{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-top:3px;
}

.hm-drawer-line-total{
    text-align:right;
    color:var(--navy);
}

.hm-drawer-line-total strong{
    display:block;
    white-space:nowrap;
}

.hm-drawer-line-total span{
    display:block;
    color:var(--muted);
    font-size:11px;
}

.hm-drawer-summary{
    margin-top:16px;
    border:1px solid var(--line);
    border-radius:24px;
    background:#fff;
    padding:16px;
    display:grid;
    gap:12px;
    box-shadow:0 12px 28px rgba(15,27,45,.06);
}

.hm-drawer-summary div{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}

.hm-drawer-summary span{
    color:var(--muted);
}

.hm-drawer-grand-total{
    padding-top:12px;
    border-top:1px solid var(--line);
    font-size:20px;
}

.hm-drawer-grand-total strong{
    color:var(--gold2);
}

.hm-drawer-primary,
.hm-drawer-secondary{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    border-radius:16px;
    font-weight:950;
    text-align:center;
}

.hm-drawer-primary{
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111;
}

.hm-drawer-secondary{
    border:1px solid var(--line);
    color:#8a5a0a;
    background:#fff;
}

@media(max-width:600px){
    .hm-cart-drawer{
        width:100vw;
        border-left:0;
        border-radius:24px 24px 0 0;
    }

    .hm-cart-drawer-head{
        padding-top:calc(16px + env(safe-area-inset-top));
    }

    .hm-drawer-item{
        grid-template-columns:54px 1fr;
    }

    .hm-drawer-line-total{
        grid-column:2;
        text-align:left;
    }
}

/* PATCH 31 — Actions quantité/retrait dans le panier latéral */
.hm-drawer-qty{
    display:inline-grid;
    grid-template-columns:34px 52px 34px;
    gap:6px;
    align-items:center;
    margin-top:9px;
    background:#fffaf0;
    border:1px solid var(--line);
    border-radius:15px;
    padding:5px;
}

.hm-drawer-qty input{
    width:52px;
    border:0;
    background:transparent;
    text-align:center;
    font-weight:950;
    color:var(--navy);
    outline:none;
}

.hm-drawer-qty-btn{
    width:34px;
    height:34px;
    border:0;
    border-radius:11px;
    background:#fff;
    color:#8a5a0a;
    font-size:18px;
    font-weight:950;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(15,27,45,.06);
}

.hm-drawer-remove{
    display:inline-flex;
    margin-top:8px;
    border:0;
    background:transparent;
    color:var(--danger);
    font-weight:900;
    padding:0;
    cursor:pointer;
}

.hm-drawer-remove:disabled{
    opacity:.6;
}

.hm-drawer-update-form{
    margin:0;
}

@media(max-width:600px){
    .hm-drawer-qty{
        grid-template-columns:36px 56px 36px;
    }

    .hm-drawer-qty input{
        width:56px;
    }
}

/* PATCH 32 — Admin livraison */
.admin-grid-2{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-top:18px;
}

.form-card h2{
    margin-top:0;
}

@media(max-width:820px){
    .admin-grid-2{
        grid-template-columns:1fr;
    }
}

/* PATCH 33 — API livreur */
.small-btn{
    padding:8px 10px !important;
    border-radius:10px !important;
    font-size:12px !important;
}

/* PATCH 34 — Web app livreur mobile */
.driver-app-body{
    margin:0;
    min-height:100vh;
    background:linear-gradient(180deg,#0f1b2d 0%,#18263b 38%,#f7f1e5 38%,#f7f1e5 100%);
    color:#142033;
    font-family:Inter,Arial,sans-serif;
}

.driver-shell{
    max-width:560px;
    margin:auto;
    padding:16px;
    padding-bottom:40px;
}

.driver-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:#fff;
    margin-bottom:18px;
}

.driver-header span{
    display:block;
    color:#d4af37;
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:11px;
    font-weight:950;
}

.driver-header strong{
    display:block;
    font-size:22px;
    margin-top:4px;
}

.driver-logout,
.driver-header button{
    border:1px solid rgba(255,255,255,.2);
    background:rgba(255,255,255,.1);
    color:#fff;
    border-radius:14px;
    padding:10px 12px;
    font-weight:900;
}

.driver-card,
.driver-detail-card,
.driver-welcome,
.driver-empty,
.driver-error,
.driver-loading{
    background:#fff;
    border:1px solid #eee4d6;
    border-radius:26px;
    box-shadow:0 18px 42px rgba(15,27,45,.16);
}

.driver-card{
    padding:22px;
    display:grid;
    gap:12px;
}

.driver-logo{
    width:76px;
    height:76px;
    border-radius:25px;
    background:linear-gradient(135deg,#0f1b2d,#d4af37);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:950;
    font-size:24px;
}

.driver-card h1{
    margin:4px 0 0;
    color:#0f1b2d;
}

.driver-card p{
    margin:0;
    color:#737b8c;
    line-height:1.5;
}

.driver-card label{
    font-weight:900;
    margin-top:6px;
}

.driver-card input{
    border:1px solid #eee4d6;
    border-radius:16px;
    padding:14px;
    width:100%;
}

.driver-primary,
.driver-location,
.driver-mission-footer button,
.driver-actions button,
.driver-call{
    border:0;
    border-radius:16px;
    padding:13px 15px;
    background:linear-gradient(135deg,#d4af37,#b98720);
    color:#111;
    font-weight:950;
    text-align:center;
    cursor:pointer;
}

.driver-message{
    color:#b98720;
    font-weight:850;
    min-height:20px;
}

.driver-welcome{
    padding:16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
}

.driver-welcome span,
.driver-section-title span{
    display:block;
    color:#b98720;
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:11px;
    font-weight:950;
}

.driver-welcome strong{
    display:block;
    font-size:22px;
    color:#0f1b2d;
}

.driver-welcome button{
    border:1px solid #eee4d6;
    background:#fff;
    color:#8a5a0a;
    border-radius:14px;
    padding:10px 12px;
    font-weight:900;
}

.driver-location{
    width:100%;
    margin-bottom:8px;
}

.driver-section-title{
    margin:18px 0 12px;
}

.driver-section-title strong{
    display:block;
    color:#0f1b2d;
    font-size:22px;
    margin-top:4px;
}

.driver-missions{
    display:grid;
    gap:12px;
}

.driver-mission-card{
    background:#fff;
    border:1px solid #eee4d6;
    border-radius:24px;
    padding:15px;
    box-shadow:0 12px 28px rgba(15,27,45,.08);
}

.driver-mission-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.driver-mission-top strong{
    color:#0f1b2d;
}

.driver-mission-top span{
    background:#fff4d4;
    color:#8a5a0a;
    border:1px solid #efd99a;
    border-radius:999px;
    padding:7px 10px;
    font-size:12px;
    font-weight:950;
}

.driver-mission-card h3{
    margin:12px 0 4px;
    color:#0f1b2d;
}

.driver-mission-card p{
    margin:4px 0;
    color:#737b8c;
}

.driver-mission-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:14px;
}

.driver-mission-footer b{
    color:#0f1b2d;
}

.driver-back{
    border:0;
    background:#fff;
    color:#8a5a0a;
    border-radius:14px;
    padding:10px 12px;
    font-weight:950;
    margin-bottom:12px;
}

.driver-detail-card{
    padding:18px;
}

.driver-detail-card h1{
    color:#0f1b2d;
    margin:14px 0 8px;
}

.driver-detail-card h2{
    color:#0f1b2d;
    margin-top:20px;
}

.driver-detail-card p{
    color:#4b5563;
    line-height:1.5;
}

.driver-call{
    display:flex;
    margin:14px 0;
    justify-content:center;
}

.driver-items{
    display:grid;
    gap:8px;
}

.driver-items div,
.driver-history div{
    background:#fffaf0;
    border:1px solid #eee4d6;
    border-radius:16px;
    padding:12px;
}

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

.driver-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.driver-actions .danger{
    background:#b42318;
    color:#fff;
}

.driver-history{
    display:grid;
    gap:8px;
}

.driver-history strong{
    display:block;
    color:#0f1b2d;
}

.driver-history span{
    display:block;
    color:#737b8c;
    margin-top:4px;
}

.driver-empty,
.driver-error,
.driver-loading{
    padding:18px;
    text-align:center;
    color:#737b8c;
}

.driver-empty strong{
    display:block;
    color:#0f1b2d;
    font-size:20px;
    margin-bottom:6px;
}

.driver-error{
    color:#b42318;
    background:#fdecec;
}

@media(max-width:520px){
    .driver-shell{
        padding:13px;
    }

    .driver-actions{
        grid-template-columns:1fr;
    }

    .driver-mission-footer{
        align-items:stretch;
        flex-direction:column;
    }

    .driver-mission-footer button{
        width:100%;
    }
}

/* PATCH 34.1 — Correction affichage écran livreur */
[hidden],
#loginScreen[hidden],
#dashboardScreen[hidden],
#missionDetailScreen[hidden],
#logoutBtn[hidden]{
    display:none !important;
}

/* PATCH 34.2 — Masquage sûr des écrans livreur */
[hidden],
#loginScreen[hidden],
#dashboardScreen[hidden],
#missionDetailScreen[hidden],
#logoutBtn[hidden]{
    display:none !important;
}

/* PATCH 35 — HMI Driver premium dark */
.driver-v2-body{
    margin:0;
    min-height:100vh;
    background:
        radial-gradient(circle at 80% 8%,rgba(212,175,55,.10),transparent 22%),
        linear-gradient(180deg,#07111f 0%,#0e1b2d 48%,#07111f 100%);
    color:#f8fafc;
    font-family:Inter,Arial,sans-serif;
    padding-bottom:86px;
}

.driver-v2-shell{
    width:min(520px,100%);
    margin:auto;
    padding:16px;
}

.driver-v2-top{
    display:grid;
    grid-template-columns:42px 1fr auto;
    align-items:center;
    gap:10px;
    margin-bottom:18px;
}

.driver-v2-menu{
    width:42px;
    height:42px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#e5e7eb;
    background:rgba(255,255,255,.04);
}

.driver-v2-title{
    text-align:center;
}

.driver-v2-title span{
    display:block;
    color:#d4af37;
    text-transform:uppercase;
    letter-spacing:.14em;
    font-size:11px;
    font-weight:950;
}

.driver-v2-title strong{
    display:block;
    margin-top:3px;
    font-size:18px;
    color:#fff;
}

.driver-v2-logout{
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.06);
    color:#fff;
    border-radius:14px;
    padding:10px 12px;
    font-weight:900;
}

.driver-v2-login-card{
    min-height:calc(100vh - 140px);
    border:1px solid rgba(212,175,55,.14);
    border-radius:30px;
    background:
        radial-gradient(circle at 50% 18%,rgba(212,175,55,.16),transparent 18%),
        linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));
    box-shadow:0 28px 80px rgba(0,0,0,.34);
    padding:28px 20px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:12px;
}

.driver-v2-logo-block{
    text-align:center;
    margin-bottom:22px;
}

.driver-v2-logo{
    width:132px;
    height:92px;
    margin:0 auto 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#d4af37;
    font-size:50px;
    font-weight:950;
    letter-spacing:2px;
    text-shadow:0 2px 0 #6f4f15,0 10px 28px rgba(212,175,55,.28);
}

.driver-v2-logo-block strong{
    display:block;
    color:#d4af37;
    font-size:18px;
    letter-spacing:.06em;
}

.driver-v2-logo-block span{
    display:block;
    margin-top:4px;
    color:#d4af37;
    font-style:italic;
}

.driver-v2-subtitle{
    text-align:center;
    color:#cbd5e1;
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    margin:0 0 18px;
}

.driver-v2-login-card label{
    color:#e5e7eb;
    font-size:13px;
    font-weight:900;
}

.driver-v2-login-card input,
.driver-v2-modal-card input{
    width:100%;
    border:1px solid rgba(255,255,255,.13);
    background:rgba(255,255,255,.07);
    color:#fff;
    border-radius:16px;
    padding:14px;
    outline:none;
}

.driver-v2-login-card input::placeholder,
.driver-v2-modal-card input::placeholder{
    color:#94a3b8;
}

.driver-v2-primary,
.driver-v2-secondary,
.driver-v2-actions-top button,
.driver-v2-mission-bottom button,
.driver-v2-action-grid button{
    border:0;
    border-radius:16px;
    min-height:48px;
    padding:12px 15px;
    font-weight:950;
    cursor:pointer;
}

.driver-v2-primary,
.driver-v2-actions-top button,
.driver-v2-mission-bottom button,
.driver-v2-action-grid button{
    background:linear-gradient(135deg,#f3d47a,#b98720);
    color:#111827;
    box-shadow:0 12px 26px rgba(212,175,55,.18);
}

.driver-v2-secondary{
    border:1px solid rgba(255,255,255,.13);
    background:rgba(255,255,255,.06);
    color:#fff;
}

.driver-v2-help{
    text-align:center;
    color:#94a3b8;
    font-size:12px;
    margin-top:18px;
}

.driver-v2-message{
    min-height:20px;
    color:#f3d47a;
    font-weight:850;
}

.driver-v2-welcome,
.driver-v2-stats,
.driver-v2-mission,
.driver-v2-detail-card,
.driver-v2-empty,
.driver-v2-loading,
.driver-v2-error{
    border:1px solid rgba(255,255,255,.10);
    background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
    box-shadow:0 18px 45px rgba(0,0,0,.28);
    border-radius:26px;
}

.driver-v2-welcome{
    padding:16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.driver-v2-welcome span{
    display:block;
    color:#d4af37;
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:11px;
    font-weight:950;
}

.driver-v2-welcome strong{
    display:block;
    color:#fff;
    font-size:24px;
}

.driver-v2-badge{
    background:rgba(22,163,74,.14);
    color:#86efac;
    border:1px solid rgba(134,239,172,.22);
    padding:8px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:950;
}

.driver-v2-stats{
    margin-top:12px;
    padding:14px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.driver-v2-stats div{
    text-align:center;
    border-right:1px solid rgba(255,255,255,.08);
}

.driver-v2-stats div:last-child{
    border-right:0;
}

.driver-v2-stats strong{
    display:block;
    color:#fff;
    font-size:22px;
}

.driver-v2-stats span{
    display:block;
    color:#94a3b8;
    font-size:11px;
    margin-top:4px;
}

.driver-v2-actions-top{
    display:grid;
    grid-template-columns:1fr 1.4fr;
    gap:10px;
    margin:12px 0;
}

.driver-v2-section-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:22px 0 12px;
}

.driver-v2-section-title strong{
    color:#fff;
    font-size:20px;
}

.driver-v2-section-title span{
    color:#d4af37;
    font-size:13px;
    font-weight:900;
}

.driver-v2-missions{
    display:grid;
    gap:12px;
}

.driver-v2-mission{
    padding:15px;
}

.driver-v2-mission-top,
.driver-v2-detail-head{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
}

.driver-v2-mission-top strong,
.driver-v2-detail-head small{
    color:#e5e7eb;
}

.driver-v2-mission-top span,
.driver-v2-detail-head span{
    display:inline-flex;
    background:rgba(212,175,55,.13);
    color:#f3d47a;
    border:1px solid rgba(212,175,55,.25);
    border-radius:999px;
    padding:7px 10px;
    font-size:12px;
    font-weight:950;
}

.driver-v2-mission h3{
    color:#fff;
    margin:14px 0 4px;
}

.driver-v2-mission p{
    color:#94a3b8;
    margin:4px 0;
}

.driver-v2-mission-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:14px;
    gap:10px;
}

.driver-v2-mission-bottom b{
    color:#fff;
}

.driver-v2-back{
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.06);
    color:#f3d47a;
    border-radius:16px;
    padding:11px 13px;
    margin-bottom:12px;
    font-weight:950;
}

.driver-v2-detail-card{
    padding:16px;
}

.driver-v2-client-box,
.driver-v2-info-box,
.driver-v2-amount-box,
.driver-v2-items div,
.driver-v2-history div{
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.045);
    border-radius:20px;
    padding:14px;
    margin-top:12px;
}

.driver-v2-client-box label,
.driver-v2-info-box label,
.driver-v2-amount-box label{
    display:block;
    color:#94a3b8;
    font-size:12px;
    font-weight:850;
}

.driver-v2-client-box h1{
    color:#fff;
    margin:8px 0 4px;
    font-size:28px;
}

.driver-v2-client-box p,
.driver-v2-info-box p{
    color:#cbd5e1;
    margin:4px 0;
}

.driver-v2-client-box a{
    display:flex;
    justify-content:center;
    margin-top:12px;
    background:linear-gradient(135deg,#f3d47a,#b98720);
    color:#111827;
    border-radius:16px;
    padding:12px;
    font-weight:950;
}

.driver-v2-info-box strong,
.driver-v2-amount-box strong{
    color:#fff;
    display:block;
    margin-top:6px;
}

.driver-v2-amount-box{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}

.driver-v2-amount-box strong{
    font-size:24px;
    color:#f3d47a;
}

.driver-v2-amount-box span{
    border:1px solid rgba(212,175,55,.25);
    color:#f3d47a;
    border-radius:999px;
    padding:8px 10px;
    font-weight:950;
    font-size:12px;
}

.driver-v2-detail-card h2{
    color:#fff;
    margin:22px 0 10px;
    font-size:20px;
}

.driver-v2-items{
    display:grid;
    gap:9px;
}

.driver-v2-items div{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.driver-v2-items span{
    color:#cbd5e1;
}

.driver-v2-items strong{
    color:#fff;
}

.driver-v2-action-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.driver-v2-action-grid .danger{
    background:#b42318;
    color:#fff;
    box-shadow:none;
}

.driver-v2-history{
    display:grid;
    gap:9px;
}

.driver-v2-history strong{
    color:#fff;
    display:block;
}

.driver-v2-history span{
    display:block;
    color:#94a3b8;
    margin-top:4px;
}

.driver-v2-empty,
.driver-v2-loading,
.driver-v2-error{
    padding:18px;
    text-align:center;
    color:#94a3b8;
}

.driver-v2-empty strong{
    display:block;
    color:#fff;
    font-size:18px;
    margin-bottom:6px;
}

.driver-v2-error{
    color:#fecaca;
    background:rgba(180,35,24,.18);
}

.driver-v2-bottom{
    position:fixed;
    left:50%;
    bottom:12px;
    transform:translateX(-50%);
    z-index:60;
    width:min(520px,calc(100% - 24px));
    height:68px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    padding:7px;
    border-radius:24px;
    background:rgba(7,17,31,.92);
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 18px 55px rgba(0,0,0,.36);
    backdrop-filter:blur(16px);
}

.driver-v2-bottom button{
    border:0;
    background:transparent;
    color:#94a3b8;
    border-radius:18px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    font-weight:900;
}

.driver-v2-bottom button span{
    font-size:18px;
}

.driver-v2-bottom button small{
    font-size:10px;
}

.driver-v2-bottom button.active{
    color:#f3d47a;
    background:rgba(212,175,55,.10);
}

.driver-v2-modal{
    position:fixed;
    inset:0;
    z-index:100;
    background:rgba(0,0,0,.62);
    backdrop-filter:blur(8px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
}

.driver-v2-modal-card{
    width:min(420px,100%);
    border:1px solid rgba(212,175,55,.20);
    background:linear-gradient(180deg,#101c2e,#07111f);
    border-radius:28px;
    padding:20px;
    box-shadow:0 30px 90px rgba(0,0,0,.50);
}

.driver-v2-modal-card span{
    color:#d4af37;
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:11px;
    font-weight:950;
}

.driver-v2-modal-card h2{
    color:#fff;
    margin:8px 0;
}

.driver-v2-modal-card p{
    color:#94a3b8;
}

.driver-v2-modal-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:12px;
}

@media(max-width:560px){
    .driver-v2-shell{
        padding:13px;
    }

    .driver-v2-actions-top,
    .driver-v2-action-grid{
        grid-template-columns:1fr;
    }

    .driver-v2-login-card{
        min-height:calc(100vh - 120px);
    }
}

/* PATCH 35.1 — Mode clair HMI Driver */
.driver-v2-right-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
}

.driver-v2-theme-btn{
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.06);
    color:#f3d47a;
    border-radius:14px;
    padding:10px 12px;
    font-weight:900;
    cursor:pointer;
}

.driver-v2-body.driver-theme-light{
    background:
        radial-gradient(circle at 82% 5%,rgba(212,175,55,.18),transparent 20%),
        linear-gradient(180deg,#fffaf0 0%,#ffffff 38%,#f6efe3 100%);
    color:#101827;
}

.driver-theme-light .driver-v2-menu,
.driver-theme-light .driver-v2-logout,
.driver-theme-light .driver-v2-theme-btn{
    border:1px solid #eadfcb;
    background:rgba(255,255,255,.86);
    color:#8a5a0a;
    box-shadow:0 8px 18px rgba(15,27,45,.06);
}

.driver-theme-light .driver-v2-title strong{
    color:#101827;
}

.driver-theme-light .driver-v2-title span{
    color:#b98720;
}

.driver-theme-light .driver-v2-login-card,
.driver-theme-light .driver-v2-welcome,
.driver-theme-light .driver-v2-stats,
.driver-theme-light .driver-v2-mission,
.driver-theme-light .driver-v2-detail-card,
.driver-theme-light .driver-v2-empty,
.driver-theme-light .driver-v2-loading,
.driver-theme-light .driver-v2-error{
    border:1px solid #eadfcb;
    background:linear-gradient(180deg,#ffffff,#fffaf2);
    box-shadow:0 18px 45px rgba(15,27,45,.10);
}

.driver-theme-light .driver-v2-login-card{
    background:
        radial-gradient(circle at 50% 18%,rgba(212,175,55,.16),transparent 18%),
        linear-gradient(180deg,#ffffff,#fffaf2);
}

.driver-theme-light .driver-v2-logo{
    color:#b98720;
    text-shadow:0 2px 0 #f7e6b2,0 10px 26px rgba(212,175,55,.22);
}

.driver-theme-light .driver-v2-logo-block strong,
.driver-theme-light .driver-v2-logo-block span,
.driver-theme-light .driver-v2-section-title span{
    color:#b98720;
}

.driver-theme-light .driver-v2-subtitle,
.driver-theme-light .driver-v2-help,
.driver-theme-light .driver-v2-message{
    color:#8a5a0a;
}

.driver-theme-light .driver-v2-login-card label{
    color:#172033;
}

.driver-theme-light .driver-v2-login-card input,
.driver-theme-light .driver-v2-modal-card input{
    border:1px solid #eadfcb;
    background:#ffffff;
    color:#101827;
}

.driver-theme-light .driver-v2-login-card input::placeholder,
.driver-theme-light .driver-v2-modal-card input::placeholder{
    color:#9aa3b2;
}

.driver-theme-light .driver-v2-welcome strong,
.driver-theme-light .driver-v2-stats strong,
.driver-theme-light .driver-v2-section-title strong,
.driver-theme-light .driver-v2-mission h3,
.driver-theme-light .driver-v2-mission-bottom b,
.driver-theme-light .driver-v2-detail-card h2,
.driver-theme-light .driver-v2-client-box h1,
.driver-theme-light .driver-v2-info-box strong,
.driver-theme-light .driver-v2-items strong,
.driver-theme-light .driver-v2-history strong,
.driver-theme-light .driver-v2-empty strong,
.driver-theme-light .driver-v2-mission-top strong,
.driver-theme-light .driver-v2-detail-head small{
    color:#101827;
}

.driver-theme-light .driver-v2-welcome span{
    color:#b98720;
}

.driver-theme-light .driver-v2-badge{
    background:#eaf8ef;
    color:#15803d;
    border:1px solid #b7ebc9;
}

.driver-theme-light .driver-v2-stats div{
    border-right:1px solid #eadfcb;
}

.driver-theme-light .driver-v2-stats span,
.driver-theme-light .driver-v2-mission p,
.driver-theme-light .driver-v2-client-box p,
.driver-theme-light .driver-v2-info-box p,
.driver-theme-light .driver-v2-items span,
.driver-theme-light .driver-v2-history span,
.driver-theme-light .driver-v2-empty,
.driver-theme-light .driver-v2-loading,
.driver-theme-light .driver-v2-client-box label,
.driver-theme-light .driver-v2-info-box label,
.driver-theme-light .driver-v2-amount-box label{
    color:#657084;
}

.driver-theme-light .driver-v2-mission-top span,
.driver-theme-light .driver-v2-detail-head span{
    background:#fff4d4;
    color:#8a5a0a;
    border:1px solid #efd99a;
}

.driver-theme-light .driver-v2-client-box,
.driver-theme-light .driver-v2-info-box,
.driver-theme-light .driver-v2-amount-box,
.driver-theme-light .driver-v2-items div,
.driver-theme-light .driver-v2-history div{
    border:1px solid #eadfcb;
    background:#fffdf8;
}

.driver-theme-light .driver-v2-amount-box strong{
    color:#b98720;
}

.driver-theme-light .driver-v2-amount-box span{
    border:1px solid #efd99a;
    color:#8a5a0a;
    background:#fff8df;
}

.driver-theme-light .driver-v2-back{
    border:1px solid #eadfcb;
    background:#ffffff;
    color:#8a5a0a;
}

.driver-theme-light .driver-v2-bottom{
    background:rgba(255,255,255,.94);
    border:1px solid #eadfcb;
    box-shadow:0 18px 45px rgba(15,27,45,.14);
}

.driver-theme-light .driver-v2-bottom button{
    color:#7b8494;
}

.driver-theme-light .driver-v2-bottom button.active{
    color:#8a5a0a;
    background:#fff3cc;
}

.driver-theme-light .driver-v2-modal{
    background:rgba(15,27,45,.35);
}

.driver-theme-light .driver-v2-modal-card{
    border:1px solid #eadfcb;
    background:linear-gradient(180deg,#ffffff,#fffaf2);
    box-shadow:0 30px 90px rgba(15,27,45,.22);
}

.driver-theme-light .driver-v2-modal-card span{
    color:#b98720;
}

.driver-theme-light .driver-v2-modal-card h2{
    color:#101827;
}

.driver-theme-light .driver-v2-modal-card p{
    color:#657084;
}

@media(max-width:560px){
    .driver-v2-theme-btn{
        padding:9px 10px;
        font-size:12px;
    }

    .driver-v2-right-actions{
        gap:6px;
    }
}

/* PATCH 36 — Boutique client HMI mode clair/sombre premium */
.hm-shop-actions{
    display:flex;
    align-items:center;
    gap:8px;
}

.hm-shop-theme-btn{
    border:1px solid var(--line);
    background:#fff;
    color:#8a5a0a;
    border-radius:999px;
    padding:9px 11px;
    font-weight:950;
    cursor:pointer;
    box-shadow:0 8px 18px rgba(15,27,45,.06);
}

.hm-product,
.hm-category,
.hm-search,
.hm-app-header,
.hm-detail,
.checkout-summary,
.app-form,
.hm-cart-drawer,
.hm-drawer-summary,
.hm-drawer-item{
    transition:background .25s ease,border-color .25s ease,color .25s ease,box-shadow .25s ease;
}

/* Mode sombre global */
html.shop-theme-dark body.shop-body{
    background:
        radial-gradient(circle at 82% 4%,rgba(212,175,55,.14),transparent 22%),
        linear-gradient(180deg,#07111f 0%,#0e1b2d 48%,#07111f 100%);
    color:#f8fafc;
}

/* Header */
html.shop-theme-dark .hm-app-header{
    background:rgba(7,17,31,.92);
    border-bottom:1px solid rgba(255,255,255,.10);
    backdrop-filter:blur(18px);
}

html.shop-theme-dark .hm-brand-text strong{
    color:#fff;
}

html.shop-theme-dark .hm-brand-text span{
    color:#94a3b8;
}

html.shop-theme-dark .hm-brand-icon{
    background:linear-gradient(135deg,#0b1422,#d4af37);
    color:#fff;
}

html.shop-theme-dark .hm-shop-theme-btn,
html.shop-theme-dark .hm-cart-button{
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.06);
    color:#f3d47a;
    box-shadow:none;
}

html.shop-theme-dark .hm-cart-button b{
    background:linear-gradient(135deg,#f3d47a,#b98720);
    color:#111827;
}

/* Hero */
html.shop-theme-dark .hm-hero{
    background:
        radial-gradient(circle at 82% 22%,rgba(212,175,55,.24),transparent 26%),
        linear-gradient(135deg,#07111f,#101c2e 62%,#382b11 130%);
    border:1px solid rgba(212,175,55,.14);
    box-shadow:0 25px 70px rgba(0,0,0,.28);
}

html.shop-theme-dark .hm-hero h1,
html.shop-theme-dark .hm-section-head h2{
    color:#fff;
}

html.shop-theme-dark .hm-hero p,
html.shop-theme-dark .hm-hero-actions span{
    color:#cbd5e1;
}

/* Recherche */
html.shop-theme-dark .hm-search{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 18px 45px rgba(0,0,0,.22);
}

html.shop-theme-dark .hm-search input{
    color:#fff;
}

html.shop-theme-dark .hm-search input::placeholder{
    color:#94a3b8;
}

/* Sections */
html.shop-theme-dark .hm-section-head span,
html.shop-theme-dark .hm-section-head a{
    color:#f3d47a;
}

/* Catégories */
html.shop-theme-dark .hm-category{
    background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 18px 45px rgba(0,0,0,.24);
}

html.shop-theme-dark .hm-category strong{
    color:#fff;
}

html.shop-theme-dark .hm-category i{
    background:rgba(212,175,55,.12);
    color:#f3d47a;
}

/* Produits */
html.shop-theme-dark .hm-product{
    background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 18px 45px rgba(0,0,0,.25);
}

html.shop-theme-dark .hm-product-image{
    background:
        radial-gradient(circle at 50% 20%,rgba(212,175,55,.20),transparent 30%),
        linear-gradient(135deg,#101c2e,#07111f);
}

html.shop-theme-dark .hm-product-fallback{
    background:linear-gradient(135deg,rgba(212,175,55,.22),rgba(212,175,55,.08));
    border:1px solid rgba(212,175,55,.22);
    color:#f3d47a;
}

html.shop-theme-dark .hm-product h3,
html.shop-theme-dark .hm-product-price strong{
    color:#fff;
}

html.shop-theme-dark .hm-product p{
    color:#94a3b8;
}

html.shop-theme-dark .hm-product-meta span{
    color:#f3d47a;
}

html.shop-theme-dark .hm-product-actions a{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.10);
    color:#f3d47a;
}

/* Détail produit */
html.shop-theme-dark .hm-detail{
    background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 25px 70px rgba(0,0,0,.28);
}

html.shop-theme-dark .hm-detail-image{
    background:
        radial-gradient(circle at 50% 20%,rgba(212,175,55,.18),transparent 30%),
        linear-gradient(135deg,#101c2e,#07111f);
}

html.shop-theme-dark .hm-detail-body h1,
html.shop-theme-dark .hm-info-box strong{
    color:#fff;
}

html.shop-theme-dark .hm-ref,
html.shop-theme-dark .hm-description{
    color:#cbd5e1;
}

html.shop-theme-dark .hm-info-box{
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.10);
}

html.shop-theme-dark .hm-info-box span{
    color:#f3d47a;
}

html.shop-theme-dark .hm-buy input,
html.shop-theme-dark .app-form input,
html.shop-theme-dark .app-form textarea{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    color:#fff;
}

/* Panier / checkout */
html.shop-theme-dark .cart-mobile-item,
html.shop-theme-dark .checkout-summary,
html.shop-theme-dark .app-form,
html.shop-theme-dark .tracking-mobile{
    background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 18px 45px rgba(0,0,0,.24);
}

html.shop-theme-dark .cart-info strong,
html.shop-theme-dark .cart-total,
html.shop-theme-dark .checkout-summary h3{
    color:#fff;
}

html.shop-theme-dark .cart-info span,
html.shop-theme-dark .cart-info small,
html.shop-theme-dark .checkout-summary span,
html.shop-theme-dark .checkout-summary p{
    color:#94a3b8;
}

/* Drawer panier */
html.shop-theme-dark .hm-cart-backdrop{
    background:rgba(0,0,0,.64);
}

html.shop-theme-dark .hm-cart-drawer{
    background:#07111f;
    border-left:1px solid rgba(255,255,255,.10);
    box-shadow:-24px 0 80px rgba(0,0,0,.45);
}

html.shop-theme-dark .hm-cart-drawer-head{
    background:linear-gradient(135deg,#101c2e,#07111f);
    border-bottom:1px solid rgba(255,255,255,.10);
}

html.shop-theme-dark .hm-cart-drawer-head strong{
    color:#fff;
}

html.shop-theme-dark .hm-cart-drawer-head button{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    color:#fff;
}

html.shop-theme-dark .hm-drawer-item,
html.shop-theme-dark .hm-drawer-summary,
html.shop-theme-dark .hm-drawer-loading,
html.shop-theme-dark .hm-drawer-empty{
    background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
    border:1px solid rgba(255,255,255,.10);
    color:#fff;
}

html.shop-theme-dark .hm-drawer-info strong,
html.shop-theme-dark .hm-drawer-line-total,
html.shop-theme-dark .hm-drawer-grand-total strong{
    color:#fff;
}

html.shop-theme-dark .hm-drawer-info span,
html.shop-theme-dark .hm-drawer-info small,
html.shop-theme-dark .hm-drawer-line-total span,
html.shop-theme-dark .hm-drawer-summary span{
    color:#94a3b8;
}

html.shop-theme-dark .hm-drawer-secondary{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.10);
    color:#f3d47a;
}

html.shop-theme-dark .hm-drawer-qty{
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.10);
}

html.shop-theme-dark .hm-drawer-qty input{
    color:#fff;
}

html.shop-theme-dark .hm-drawer-qty-btn{
    background:rgba(255,255,255,.08);
    color:#f3d47a;
}

/* Bottom nav */
html.shop-theme-dark .hm-bottom-nav{
    background:rgba(7,17,31,.92);
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 18px 55px rgba(0,0,0,.36);
}

html.shop-theme-dark .hm-bottom-nav a{
    color:#94a3b8;
}

html.shop-theme-dark .hm-bottom-nav a.active{
    background:rgba(212,175,55,.10);
    color:#f3d47a;
}

@media(max-width:820px){
    .hm-shop-theme-btn{
        padding:8px 9px;
        font-size:12px;
    }

    .hm-shop-actions{
        gap:6px;
    }
}

/* PATCH 37 — Accueil boutique premium type application */
.hm-home-v3{
    display:grid;
    gap:14px;
}

.hm-home-topline{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}

.hm-home-topline span{
    display:block;
    color:#8a5a0a;
    font-size:13px;
    font-weight:850;
}

.hm-home-topline strong{
    display:block;
    margin-top:3px;
    color:#0f1b2d;
    font-size:24px;
}

.hm-home-location{
    display:flex;
    align-items:center;
    gap:7px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:999px;
    padding:9px 11px;
    color:#8a5a0a;
    font-size:13px;
    font-weight:900;
    box-shadow:0 8px 18px rgba(15,27,45,.06);
}

.hm-home-search{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:8px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:8px 9px;
    box-shadow:0 10px 24px rgba(15,27,45,.06);
}

.hm-home-search span{
    padding-left:6px;
}

.hm-home-search input{
    border:0;
    outline:none;
    min-width:0;
    background:transparent;
    padding:12px 6px;
}

.hm-home-search button{
    border:0;
    border-radius:13px;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    font-weight:950;
    padding:11px 13px;
}

.hm-home-banner{
    position:relative;
    overflow:hidden;
    min-height:178px;
    border-radius:28px;
    background:
        radial-gradient(circle at 85% 20%,rgba(255,255,255,.34),transparent 25%),
        linear-gradient(135deg,#fffaf0,#ffffff 56%,#f0dfb8 130%);
    border:1px solid var(--line);
    box-shadow:0 18px 45px rgba(15,27,45,.10);
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:12px;
    align-items:center;
    padding:20px;
}

.hm-home-banner:after{
    content:"";
    position:absolute;
    right:-52px;
    top:-42px;
    width:180px;
    height:180px;
    border-radius:50%;
    border:34px solid rgba(212,175,55,.16);
}

.hm-home-banner-copy{
    position:relative;
    z-index:1;
}

.hm-home-banner-copy span{
    display:block;
    color:#b98720;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:11px;
    font-weight:950;
}

.hm-home-banner-copy h1{
    margin:8px 0 8px;
    color:#0f1b2d;
    font-size:30px;
    line-height:1.05;
    max-width:420px;
}

.hm-home-banner-copy p{
    margin:0;
    color:#667085;
    line-height:1.5;
}

.hm-home-banner-copy a{
    display:inline-flex;
    margin-top:14px;
    border-radius:14px;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    font-weight:950;
    padding:11px 14px;
}

.hm-home-banner-logo{
    position:relative;
    z-index:1;
    min-height:132px;
    border-radius:30px;
    background:
        radial-gradient(circle at 50% 20%,rgba(212,175,55,.22),transparent 35%),
        rgba(255,255,255,.72);
    border:1px solid rgba(212,175,55,.22);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.hm-home-banner-logo img{
    max-width:150px;
    max-height:110px;
    object-fit:contain;
}

.hm-home-banner-logo strong{
    color:#b98720;
    font-size:52px;
    line-height:1;
    letter-spacing:2px;
    text-shadow:0 2px 0 #f9e7af,0 12px 24px rgba(212,175,55,.22);
}

.hm-home-banner-logo small{
    display:block;
    margin-top:6px;
    color:#8a5a0a;
    font-weight:900;
}

.hm-home-section{
    margin-top:22px;
}

.hm-home-section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:12px;
}

.hm-home-section-head h2{
    margin:0;
    color:#0f1b2d;
    font-size:22px;
}

.hm-home-section-head a{
    color:#b98720;
    font-size:13px;
    font-weight:950;
}

.hm-home-categories{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:10px;
}

.hm-home-category{
    min-height:88px;
    border:1px solid var(--line);
    background:#fff;
    border-radius:20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    text-align:center;
    box-shadow:0 10px 24px rgba(15,27,45,.06);
}

.hm-home-category i{
    width:42px;
    height:42px;
    border-radius:16px;
    background:#fff4d4;
    color:#9a6a12;
    display:flex;
    align-items:center;
    justify-content:center;
    font-style:normal;
    font-weight:950;
    font-size:20px;
}

.hm-home-category span{
    color:#172033;
    font-size:12px;
    font-weight:900;
}

.hm-home-products{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
    gap:13px;
}

.hm-home-product-card{
    overflow:hidden;
    border:1px solid var(--line);
    background:#fff;
    border-radius:24px;
    box-shadow:0 14px 34px rgba(15,27,45,.07);
}

.hm-home-product-image{
    position:relative;
    height:150px;
    background:linear-gradient(135deg,#fff,#f5ead6);
    display:flex;
    align-items:center;
    justify-content:center;
}

.hm-home-product-image img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.hm-home-product-image em{
    position:absolute;
    right:10px;
    top:10px;
    width:34px;
    height:34px;
    border-radius:50%;
    background:rgba(255,255,255,.88);
    color:#8a5a0a;
    display:flex;
    align-items:center;
    justify-content:center;
    font-style:normal;
    font-weight:950;
    box-shadow:0 8px 18px rgba(15,27,45,.10);
}

.hm-home-product-fallback{
    width:94px;
    height:94px;
    border-radius:28px;
    background:linear-gradient(135deg,#fff9e8,#ead498);
    color:#9a6a12;
    border:1px solid #ead9aa;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hm-home-product-fallback span{
    font-size:42px;
    font-weight:950;
}

.hm-home-product-body{
    padding:12px;
}

.hm-home-product-body small{
    display:block;
    color:#b98720;
    font-size:11px;
    font-weight:950;
    margin-bottom:5px;
}

.hm-home-product-body h3{
    min-height:38px;
    color:#0f1b2d;
    font-size:15px;
    margin:0 0 8px;
}

.hm-home-product-rating{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-bottom:8px;
}

.hm-home-product-rating span{
    color:#d4af37;
    font-size:11px;
    letter-spacing:-1px;
}

.hm-home-product-rating i{
    color:#15803d;
    font-size:11px;
    font-style:normal;
    font-weight:950;
}

.hm-home-product-body strong{
    display:block;
    color:#b98720;
    font-size:18px;
    margin-bottom:10px;
}

.hm-home-product-body form{
    margin:0;
}

.hm-home-product-body button{
    width:100%;
    border:0;
    border-radius:15px;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    font-weight:950;
    padding:11px;
    cursor:pointer;
}

/* Patch 37 — Compatibilité mode sombre */
html.shop-theme-dark .hm-home-topline strong,
html.shop-theme-dark .hm-home-section-head h2,
html.shop-theme-dark .hm-home-product-body h3,
html.shop-theme-dark .hm-home-category span{
    color:#fff;
}

html.shop-theme-dark .hm-home-topline span,
html.shop-theme-dark .hm-home-section-head a,
html.shop-theme-dark .hm-home-product-body small{
    color:#f3d47a;
}

html.shop-theme-dark .hm-home-location,
html.shop-theme-dark .hm-home-search,
html.shop-theme-dark .hm-home-category,
html.shop-theme-dark .hm-home-product-card{
    background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 18px 45px rgba(0,0,0,.24);
}

html.shop-theme-dark .hm-home-location{
    color:#f3d47a;
}

html.shop-theme-dark .hm-home-search input{
    color:#fff;
}

html.shop-theme-dark .hm-home-search input::placeholder{
    color:#94a3b8;
}

html.shop-theme-dark .hm-home-banner{
    background:
        radial-gradient(circle at 85% 20%,rgba(212,175,55,.20),transparent 26%),
        linear-gradient(135deg,#101c2e,#07111f 58%,#382b11 135%);
    border:1px solid rgba(212,175,55,.14);
    box-shadow:0 25px 70px rgba(0,0,0,.28);
}

html.shop-theme-dark .hm-home-banner-copy h1{
    color:#fff;
}

html.shop-theme-dark .hm-home-banner-copy p{
    color:#cbd5e1;
}

html.shop-theme-dark .hm-home-banner-logo{
    background:rgba(255,255,255,.045);
    border:1px solid rgba(212,175,55,.20);
}

html.shop-theme-dark .hm-home-product-image{
    background:
        radial-gradient(circle at 50% 20%,rgba(212,175,55,.18),transparent 30%),
        linear-gradient(135deg,#101c2e,#07111f);
}

html.shop-theme-dark .hm-home-product-fallback{
    background:linear-gradient(135deg,rgba(212,175,55,.22),rgba(212,175,55,.08));
    border:1px solid rgba(212,175,55,.22);
    color:#f3d47a;
}

html.shop-theme-dark .hm-home-product-image em{
    background:rgba(255,255,255,.08);
    color:#f3d47a;
}

html.shop-theme-dark .hm-home-product-rating i{
    color:#86efac;
}

@media(max-width:820px){
    .hm-home-topline{
        align-items:flex-start;
    }

    .hm-home-location{
        max-width:170px;
        font-size:12px;
    }

    .hm-home-banner{
        grid-template-columns:1fr;
        min-height:210px;
        padding:18px;
    }

    .hm-home-banner-copy h1{
        font-size:25px;
    }

    .hm-home-banner-logo{
        min-height:100px;
    }

    .hm-home-banner-logo strong{
        font-size:42px;
    }

    .hm-home-categories{
        grid-template-columns:repeat(5,86px);
        overflow-x:auto;
        padding-bottom:8px;
        scrollbar-width:none;
    }

    .hm-home-categories::-webkit-scrollbar{
        display:none;
    }

    .hm-home-category{
        min-height:82px;
    }

    .hm-home-products{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:11px;
    }

    .hm-home-product-image{
        height:128px;
    }

    .hm-home-product-body{
        padding:10px;
    }

    .hm-home-product-body h3{
        font-size:14px;
    }

    .hm-home-product-body strong{
        font-size:16px;
    }
}

/* PATCH 38 — Fiche produit premium HMI */
.hm-product-v4-back{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-bottom:14px;
    color:#8a5a0a;
    font-weight:950;
}

.hm-product-v4{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    align-items:stretch;
}

.hm-product-v4-gallery,
.hm-product-v4-info{
    border:1px solid var(--line);
    background:#fff;
    border-radius:30px;
    box-shadow:0 18px 45px rgba(15,27,45,.10);
}

.hm-product-v4-gallery{
    position:relative;
    min-height:520px;
    overflow:hidden;
    background:
        radial-gradient(circle at 50% 18%,rgba(212,175,55,.18),transparent 28%),
        linear-gradient(180deg,#ffffff,#fff7e6);
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.hm-product-v4-top-actions{
    position:absolute;
    top:16px;
    left:16px;
    right:16px;
    z-index:2;
    display:flex;
    justify-content:space-between;
}

.hm-product-v4-top-actions a,
.hm-product-v4-top-actions button{
    width:42px;
    height:42px;
    border-radius:15px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.88);
    color:#8a5a0a;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:950;
    cursor:pointer;
    box-shadow:0 8px 18px rgba(15,27,45,.08);
}

.hm-product-v4-image{
    min-height:380px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:48px 22px 22px;
}

.hm-product-v4-image img{
    max-width:100%;
    max-height:360px;
    object-fit:contain;
}

.hm-product-v4-fallback{
    width:220px;
    height:220px;
    border-radius:56px;
    background:linear-gradient(135deg,#fff9e8,#ead498);
    border:1px solid #ead9aa;
    color:#9a6a12;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 18px 38px rgba(212,175,55,.18);
}

.hm-product-v4-fallback span{
    font-size:86px;
    font-weight:950;
    line-height:1;
}

.hm-product-v4-fallback small{
    margin-top:8px;
    font-size:18px;
    font-weight:950;
}

.hm-product-v4-dots{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    margin-bottom:20px;
}

.hm-product-v4-dots span{
    width:7px;
    height:7px;
    border-radius:999px;
    background:#d8d0c2;
}

.hm-product-v4-dots .active{
    width:20px;
    background:#d4af37;
}

.hm-product-v4-info{
    padding:24px;
}

.hm-product-v4-label-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.hm-product-v4-label-row span{
    color:#b98720;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:11px;
    font-weight:950;
}

.hm-product-v4-label-row em{
    font-style:normal;
    border-radius:999px;
    padding:7px 10px;
    font-size:12px;
    font-weight:950;
}

.hm-product-v4-label-row em.ok{
    background:#eaf8ef;
    color:#15803d;
}

.hm-product-v4-label-row em.ko{
    background:#fdecec;
    color:#b42318;
}

.hm-product-v4-info h1{
    color:#0f1b2d;
    font-size:34px;
    line-height:1.08;
    margin:14px 0 8px;
}

.hm-product-v4-model{
    margin:0;
    color:#667085;
}

.hm-product-v4-rating{
    display:flex;
    align-items:center;
    gap:8px;
    margin:15px 0;
}

.hm-product-v4-rating span{
    color:#d4af37;
    letter-spacing:-1px;
}

.hm-product-v4-rating strong{
    color:#0f1b2d;
}

.hm-product-v4-rating small{
    color:#667085;
}

.hm-product-v4-price-row{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin:16px 0;
}

.hm-product-v4-price-row strong{
    color:#b98720;
    font-size:30px;
    line-height:1;
}

.hm-product-v4-price-row span{
    color:#15803d;
    font-weight:900;
    font-size:13px;
}

.hm-product-v4-description{
    color:#4b5563;
    line-height:1.7;
    margin:0 0 16px;
}

.hm-product-v4-boxes{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin:16px 0;
}

.hm-product-v4-boxes div{
    border:1px solid #efdca6;
    background:#fff8e6;
    border-radius:18px;
    padding:13px;
}

.hm-product-v4-boxes span{
    display:block;
    color:#8a6a25;
    font-size:12px;
    font-weight:850;
}

.hm-product-v4-boxes strong{
    display:block;
    color:#0f1b2d;
    margin-top:5px;
}

.hm-product-v4-qty{
    display:grid;
    gap:9px;
    margin:18px 0;
}

.hm-product-v4-qty label{
    color:#0f1b2d;
    font-weight:950;
}

.hm-product-v4-qty div{
    width:max-content;
    display:grid;
    grid-template-columns:42px 64px 42px;
    align-items:center;
    gap:6px;
    border:1px solid var(--line);
    background:#fffaf0;
    border-radius:17px;
    padding:6px;
}

.hm-product-v4-qty button{
    width:42px;
    height:42px;
    border:0;
    border-radius:13px;
    background:#fff;
    color:#8a5a0a;
    font-size:20px;
    font-weight:950;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(15,27,45,.06);
}

.hm-product-v4-qty input{
    width:64px;
    border:0;
    background:transparent;
    text-align:center;
    font-weight:950;
    color:#0f1b2d;
    outline:none;
}

.hm-product-v4-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:18px;
}

.hm-product-v4-actions form{
    margin:0;
}

.hm-product-v4-actions button{
    width:100%;
    min-height:52px;
    border-radius:17px;
    font-weight:950;
    cursor:pointer;
}

.hm-product-v4-add-form button{
    border:1px solid #d4af37;
    background:#fff;
    color:#8a5a0a;
}

.hm-product-v4-buy-form button{
    border:0;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    box-shadow:0 12px 26px rgba(212,175,55,.18);
}

/* Mode sombre fiche produit */
html.shop-theme-dark .hm-product-v4-back{
    color:#f3d47a;
}

html.shop-theme-dark .hm-product-v4-gallery,
html.shop-theme-dark .hm-product-v4-info{
    border:1px solid rgba(255,255,255,.10);
    background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
    box-shadow:0 25px 70px rgba(0,0,0,.28);
}

html.shop-theme-dark .hm-product-v4-gallery{
    background:
        radial-gradient(circle at 50% 18%,rgba(212,175,55,.18),transparent 28%),
        linear-gradient(180deg,#101c2e,#07111f);
}

html.shop-theme-dark .hm-product-v4-top-actions a,
html.shop-theme-dark .hm-product-v4-top-actions button{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    color:#f3d47a;
}

html.shop-theme-dark .hm-product-v4-fallback{
    background:linear-gradient(135deg,rgba(212,175,55,.22),rgba(212,175,55,.08));
    border:1px solid rgba(212,175,55,.22);
    color:#f3d47a;
}

html.shop-theme-dark .hm-product-v4-info h1,
html.shop-theme-dark .hm-product-v4-rating strong,
html.shop-theme-dark .hm-product-v4-boxes strong,
html.shop-theme-dark .hm-product-v4-qty label,
html.shop-theme-dark .hm-product-v4-qty input{
    color:#fff;
}

html.shop-theme-dark .hm-product-v4-model,
html.shop-theme-dark .hm-product-v4-rating small,
html.shop-theme-dark .hm-product-v4-description{
    color:#cbd5e1;
}

html.shop-theme-dark .hm-product-v4-boxes{
    color:#fff;
}

html.shop-theme-dark .hm-product-v4-boxes div,
html.shop-theme-dark .hm-product-v4-qty div{
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.10);
}

html.shop-theme-dark .hm-product-v4-boxes span{
    color:#f3d47a;
}

html.shop-theme-dark .hm-product-v4-qty button{
    background:rgba(255,255,255,.08);
    color:#f3d47a;
}

html.shop-theme-dark .hm-product-v4-add-form button{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(212,175,55,.42);
    color:#f3d47a;
}

@media(max-width:820px){
    .hm-product-v4{
        grid-template-columns:1fr;
        gap:14px;
    }

    .hm-product-v4-gallery{
        min-height:390px;
        border-radius:28px;
    }

    .hm-product-v4-image{
        min-height:290px;
        padding:48px 16px 18px;
    }

    .hm-product-v4-fallback{
        width:180px;
        height:180px;
        border-radius:46px;
    }

    .hm-product-v4-fallback span{
        font-size:72px;
    }

    .hm-product-v4-info{
        padding:18px;
        border-radius:28px;
    }

    .hm-product-v4-info h1{
        font-size:26px;
    }

    .hm-product-v4-price-row{
        display:grid;
        gap:6px;
    }

    .hm-product-v4-price-row strong{
        font-size:26px;
    }

    .hm-product-v4-boxes{
        grid-template-columns:1fr;
    }

    .hm-product-v4-actions{
        grid-template-columns:1fr 1fr;
        position:sticky;
        bottom:88px;
        z-index:10;
        background:rgba(255,255,255,.86);
        backdrop-filter:blur(14px);
        padding:10px;
        margin-left:-10px;
        margin-right:-10px;
        border-radius:20px;
        border:1px solid rgba(238,228,214,.9);
    }

    html.shop-theme-dark .hm-product-v4-actions{
        background:rgba(7,17,31,.86);
        border:1px solid rgba(255,255,255,.10);
    }
}

@media(max-width:420px){
    .hm-product-v4-actions{
        grid-template-columns:1fr;
    }
}

/* PATCH 39 — Panier premium HMI */
.hm-cart-v4-page{
    display:grid;
    gap:18px;
}

.hm-cart-v4-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:14px;
}

.hm-cart-v4-head span{
    display:block;
    color:#b98720;
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:11px;
    font-weight:950;
}

.hm-cart-v4-head h1{
    margin:4px 0 0;
    color:#0f1b2d;
    font-size:30px;
}

.hm-cart-v4-head a{
    color:#8a5a0a;
    font-weight:950;
}

.hm-cart-v4-empty,
.hm-drawer-v4-empty{
    min-height:360px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:28px;
    box-shadow:0 18px 45px rgba(15,27,45,.10);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:12px;
    padding:24px;
}

.hm-cart-v4-empty div,
.hm-drawer-v4-empty-icon{
    width:86px;
    height:86px;
    border-radius:28px;
    background:linear-gradient(135deg,#0f1b2d,#d4af37);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:36px;
    box-shadow:0 18px 38px rgba(15,27,45,.16);
}

.hm-cart-v4-empty strong,
.hm-drawer-v4-empty strong{
    color:#0f1b2d;
    font-size:24px;
}

.hm-cart-v4-empty p,
.hm-drawer-v4-empty span{
    color:#667085;
    max-width:380px;
    line-height:1.5;
}

.hm-cart-v4-empty a{
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    font-weight:950;
    border-radius:16px;
    padding:13px 16px;
}

.hm-cart-v4-grid{
    display:grid;
    grid-template-columns:1fr 360px;
    gap:18px;
    align-items:start;
}

.hm-cart-v4-list{
    display:grid;
    gap:12px;
}

.hm-cart-v4-item{
    display:grid;
    grid-template-columns:96px 1fr auto;
    gap:14px;
    align-items:center;
    background:#fff;
    border:1px solid var(--line);
    border-radius:26px;
    box-shadow:0 14px 34px rgba(15,27,45,.07);
    padding:13px;
}

.hm-cart-v4-img{
    width:96px;
    height:96px;
    border-radius:22px;
    background:linear-gradient(135deg,#fff,#f5ead6);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.hm-cart-v4-img img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.hm-cart-v4-img span{
    color:#b98720;
    font-weight:950;
    font-size:20px;
}

.hm-cart-v4-info{
    min-width:0;
}

.hm-cart-v4-info small{
    display:block;
    color:#b98720;
    font-weight:950;
    font-size:11px;
    margin-bottom:4px;
}

.hm-cart-v4-info strong{
    display:block;
    color:#0f1b2d;
    font-size:17px;
}

.hm-cart-v4-info p{
    color:#667085;
    margin:5px 0;
    font-size:13px;
}

.hm-cart-v4-info em{
    color:#15803d;
    font-style:normal;
    font-size:12px;
    font-weight:900;
}

.hm-cart-v4-actions{
    margin-top:9px;
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.hm-cart-v4-actions a{
    color:#b42318;
    font-weight:900;
    font-size:13px;
}

.hm-cart-v4-qty{
    display:grid;
    grid-template-columns:34px 54px 34px;
    gap:6px;
    align-items:center;
    border:1px solid var(--line);
    background:#fffaf0;
    border-radius:15px;
    padding:5px;
}

.hm-cart-v4-qty button{
    width:34px;
    height:34px;
    border:0;
    border-radius:11px;
    background:#fff;
    color:#8a5a0a;
    font-weight:950;
    font-size:18px;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(15,27,45,.06);
}

.hm-cart-v4-qty input{
    width:54px;
    border:0;
    outline:none;
    background:transparent;
    text-align:center;
    color:#0f1b2d;
    font-weight:950;
}

.hm-cart-v4-price{
    text-align:right;
    color:#0f1b2d;
}

.hm-cart-v4-price strong{
    display:block;
    font-size:20px;
}

.hm-cart-v4-price span{
    display:block;
    color:#667085;
    font-size:12px;
}

.hm-cart-v4-update{
    justify-self:start;
    border:1px solid #d4af37;
    background:#fff;
    color:#8a5a0a;
    border-radius:16px;
    padding:13px 16px;
    font-weight:950;
    cursor:pointer;
}

.hm-cart-v4-summary{
    position:sticky;
    top:92px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:28px;
    box-shadow:0 18px 45px rgba(15,27,45,.10);
    padding:18px;
    display:grid;
    gap:13px;
}

.hm-cart-v4-summary-title span,
.hm-drawer-v4-summary-head span{
    display:block;
    color:#b98720;
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:11px;
    font-weight:950;
}

.hm-cart-v4-summary-title strong,
.hm-drawer-v4-summary-head strong{
    display:block;
    color:#0f1b2d;
    font-size:22px;
    margin-top:3px;
}

.hm-cart-v4-summary-row,
.hm-cart-v4-grand-total{
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.hm-cart-v4-summary-row span,
.hm-cart-v4-security{
    color:#667085;
}

.hm-cart-v4-summary-row strong{
    color:#0f1b2d;
}

.hm-cart-v4-grand-total{
    border-top:1px solid var(--line);
    padding-top:13px;
    align-items:flex-end;
}

.hm-cart-v4-grand-total span{
    color:#667085;
}

.hm-cart-v4-grand-total strong{
    color:#b98720;
    font-size:24px;
}

.hm-cart-v4-checkout{
    min-height:52px;
    border-radius:17px;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:950;
}

.hm-cart-v4-security{
    display:grid;
    gap:6px;
    font-size:13px;
}

/* Drawer premium */
.hm-drawer-v4-list{
    display:grid;
    gap:12px;
}

.hm-drawer-v4-item{
    display:grid;
    grid-template-columns:66px 1fr auto;
    gap:12px;
    align-items:center;
    padding:12px;
    border:1px solid var(--line);
    border-radius:22px;
    background:#fff;
    box-shadow:0 10px 24px rgba(15,27,45,.05);
}

.hm-drawer-v4-img{
    width:66px;
    height:66px;
    border-radius:18px;
    background:linear-gradient(135deg,#fff,#f5ead6);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.hm-drawer-v4-img img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.hm-drawer-v4-img span{
    color:#b98720;
    font-weight:950;
    font-size:16px;
}

.hm-drawer-v4-info{
    min-width:0;
}

.hm-drawer-v4-info small{
    color:#b98720;
    display:block;
    font-size:10px;
    font-weight:950;
}

.hm-drawer-v4-info strong{
    display:block;
    color:#0f1b2d;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    margin-top:3px;
}

.hm-drawer-v4-info p{
    color:#667085;
    font-size:12px;
    margin:4px 0;
}

.hm-drawer-v4-price{
    text-align:right;
    color:#0f1b2d;
}

.hm-drawer-v4-price strong{
    display:block;
    white-space:nowrap;
}

.hm-drawer-v4-price span{
    color:#667085;
    font-size:11px;
}

.hm-drawer-v4-summary{
    margin-top:16px;
    border:1px solid var(--line);
    border-radius:24px;
    background:#fff;
    padding:16px;
    display:grid;
    gap:12px;
    box-shadow:0 12px 28px rgba(15,27,45,.06);
}

.hm-drawer-v4-summary div{
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.hm-drawer-v4-summary span{
    color:#667085;
}

.hm-drawer-v4-summary strong{
    color:#0f1b2d;
}

.hm-drawer-v4-total{
    border-top:1px solid var(--line);
    padding-top:12px;
}

.hm-drawer-v4-total strong{
    color:#b98720;
    font-size:20px;
}

/* Mode sombre panier */
html.shop-theme-dark .hm-cart-v4-head h1,
html.shop-theme-dark .hm-cart-v4-info strong,
html.shop-theme-dark .hm-cart-v4-price,
html.shop-theme-dark .hm-cart-v4-summary-title strong,
html.shop-theme-dark .hm-cart-v4-summary-row strong,
html.shop-theme-dark .hm-cart-v4-empty strong,
html.shop-theme-dark .hm-drawer-v4-info strong,
html.shop-theme-dark .hm-drawer-v4-price,
html.shop-theme-dark .hm-drawer-v4-summary-head strong,
html.shop-theme-dark .hm-drawer-v4-summary strong,
html.shop-theme-dark .hm-cart-v4-qty input{
    color:#fff;
}

html.shop-theme-dark .hm-cart-v4-head span,
html.shop-theme-dark .hm-cart-v4-head a,
html.shop-theme-dark .hm-cart-v4-info small,
html.shop-theme-dark .hm-cart-v4-summary-title span,
html.shop-theme-dark .hm-drawer-v4-info small,
html.shop-theme-dark .hm-drawer-v4-summary-head span{
    color:#f3d47a;
}

html.shop-theme-dark .hm-cart-v4-empty,
html.shop-theme-dark .hm-cart-v4-item,
html.shop-theme-dark .hm-cart-v4-summary,
html.shop-theme-dark .hm-drawer-v4-item,
html.shop-theme-dark .hm-drawer-v4-summary,
html.shop-theme-dark .hm-drawer-v4-empty{
    background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 18px 45px rgba(0,0,0,.24);
}

html.shop-theme-dark .hm-cart-v4-img,
html.shop-theme-dark .hm-drawer-v4-img{
    background:
        radial-gradient(circle at 50% 20%,rgba(212,175,55,.18),transparent 30%),
        linear-gradient(135deg,#101c2e,#07111f);
}

html.shop-theme-dark .hm-cart-v4-info p,
html.shop-theme-dark .hm-cart-v4-price span,
html.shop-theme-dark .hm-cart-v4-summary-row span,
html.shop-theme-dark .hm-cart-v4-security,
html.shop-theme-dark .hm-cart-v4-empty p,
html.shop-theme-dark .hm-drawer-v4-info p,
html.shop-theme-dark .hm-drawer-v4-price span,
html.shop-theme-dark .hm-drawer-v4-summary span,
html.shop-theme-dark .hm-drawer-v4-empty span{
    color:#94a3b8;
}

html.shop-theme-dark .hm-cart-v4-qty{
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.10);
}

html.shop-theme-dark .hm-cart-v4-qty button,
html.shop-theme-dark .hm-cart-v4-update{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    color:#f3d47a;
}

html.shop-theme-dark .hm-cart-v4-grand-total,
html.shop-theme-dark .hm-drawer-v4-total{
    border-top:1px solid rgba(255,255,255,.10);
}

html.shop-theme-dark .hm-cart-v4-grand-total strong,
html.shop-theme-dark .hm-drawer-v4-total strong{
    color:#f3d47a;
}

@media(max-width:900px){
    .hm-cart-v4-grid{
        grid-template-columns:1fr;
    }

    .hm-cart-v4-summary{
        position:relative;
        top:auto;
    }
}

@media(max-width:620px){
    .hm-cart-v4-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .hm-cart-v4-item{
        grid-template-columns:82px 1fr;
    }

    .hm-cart-v4-img{
        width:82px;
        height:82px;
    }

    .hm-cart-v4-price{
        grid-column:2;
        text-align:left;
    }

    .hm-drawer-v4-item{
        grid-template-columns:60px 1fr;
    }

    .hm-drawer-v4-img{
        width:60px;
        height:60px;
    }

    .hm-drawer-v4-price{
        grid-column:2;
        text-align:left;
    }
}

/* PATCH 40 — Checkout premium HMI */
.hm-checkout-v4{
    display:grid;
    gap:18px;
}

.hm-checkout-v4-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:14px;
}

.hm-checkout-v4-head a{
    color:#8a5a0a;
    font-weight:950;
}

.hm-checkout-v4-head span{
    display:block;
    color:#b98720;
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:11px;
    font-weight:950;
    text-align:right;
}

.hm-checkout-v4-head h1{
    color:#0f1b2d;
    margin:4px 0 0;
    font-size:30px;
    text-align:right;
}

.hm-checkout-v4-grid{
    display:grid;
    grid-template-columns:1fr 380px;
    gap:18px;
    align-items:start;
}

.hm-checkout-v4-form{
    display:grid;
    gap:14px;
}

.hm-checkout-v4-card,
.hm-checkout-v4-summary,
.hm-checkout-v4-empty{
    background:#fff;
    border:1px solid var(--line);
    border-radius:28px;
    box-shadow:0 18px 45px rgba(15,27,45,.10);
}

.hm-checkout-v4-card{
    padding:18px;
}

.hm-checkout-v4-card-head{
    display:flex;
    gap:12px;
    align-items:flex-start;
    margin-bottom:16px;
}

.hm-checkout-v4-card-head > span{
    width:42px;
    height:42px;
    border-radius:16px;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:950;
}

.hm-checkout-v4-card-head strong{
    display:block;
    color:#0f1b2d;
    font-size:20px;
}

.hm-checkout-v4-card-head small{
    display:block;
    color:#667085;
    margin-top:4px;
}

.hm-checkout-v4-fields{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.hm-checkout-v4-fields label{
    display:grid;
    gap:7px;
    color:#0f1b2d;
    font-weight:950;
    font-size:13px;
}

.hm-checkout-v4-fields label.full{
    grid-column:1 / -1;
}

.hm-checkout-v4-fields input,
.hm-checkout-v4-fields textarea{
    width:100%;
    border:1px solid var(--line);
    background:#fffaf0;
    color:#0f1b2d;
    border-radius:16px;
    padding:13px 14px;
    outline:none;
    font-weight:700;
}

.hm-checkout-v4-fields input::placeholder,
.hm-checkout-v4-fields textarea::placeholder{
    color:#98a2b3;
}

.hm-checkout-v4-payment{
    display:grid;
    gap:10px;
}

.hm-checkout-v4-payment label{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:12px;
    border:1px solid #efdca6;
    background:#fff8e6;
    border-radius:20px;
    padding:14px;
    cursor:pointer;
}

.hm-checkout-v4-payment input{
    accent-color:#d4af37;
}

.hm-checkout-v4-payment strong{
    display:block;
    color:#0f1b2d;
}

.hm-checkout-v4-payment span{
    display:block;
    color:#667085;
    margin-top:4px;
    font-size:13px;
}

.hm-checkout-v4-payment em{
    font-style:normal;
    background:#fff;
    color:#8a5a0a;
    border:1px solid #efdca6;
    border-radius:999px;
    padding:8px 10px;
    font-weight:950;
    font-size:12px;
}

.hm-checkout-v4-summary{
    position:sticky;
    top:92px;
    padding:18px;
    display:grid;
    gap:14px;
}

.hm-checkout-v4-summary-head span{
    display:block;
    color:#b98720;
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:11px;
    font-weight:950;
}

.hm-checkout-v4-summary-head strong{
    display:block;
    color:#0f1b2d;
    font-size:24px;
    margin-top:4px;
}

.hm-checkout-v4-items{
    display:grid;
    gap:10px;
    max-height:320px;
    overflow:auto;
    padding-right:4px;
}

.hm-checkout-v4-item{
    display:grid;
    grid-template-columns:54px 1fr auto;
    gap:10px;
    align-items:center;
    border:1px solid var(--line);
    background:#fffaf0;
    border-radius:18px;
    padding:10px;
}

.hm-checkout-v4-item-img{
    width:54px;
    height:54px;
    border-radius:15px;
    background:linear-gradient(135deg,#fff,#f5ead6);
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hm-checkout-v4-item-img img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.hm-checkout-v4-item-img span{
    color:#b98720;
    font-weight:950;
    font-size:14px;
}

.hm-checkout-v4-item strong{
    display:block;
    color:#0f1b2d;
    font-size:13px;
    line-height:1.3;
}

.hm-checkout-v4-item small{
    display:block;
    color:#667085;
    margin-top:4px;
}

.hm-checkout-v4-item b{
    color:#0f1b2d;
    white-space:nowrap;
    font-size:13px;
}

.hm-checkout-v4-totals{
    display:grid;
    gap:10px;
}

.hm-checkout-v4-totals div{
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.hm-checkout-v4-totals span{
    color:#667085;
}

.hm-checkout-v4-totals strong{
    color:#0f1b2d;
}

.hm-checkout-v4-totals .total{
    border-top:1px solid var(--line);
    padding-top:12px;
    align-items:flex-end;
}

.hm-checkout-v4-totals .total strong{
    color:#b98720;
    font-size:24px;
}

.hm-checkout-v4-submit{
    width:100%;
    min-height:54px;
    border:0;
    border-radius:18px;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    font-weight:950;
    cursor:pointer;
    box-shadow:0 12px 26px rgba(212,175,55,.18);
}

.hm-checkout-v4-note{
    display:grid;
    gap:6px;
    color:#667085;
    font-size:13px;
}

.hm-checkout-v4-empty{
    min-height:360px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:12px;
    padding:24px;
}

.hm-checkout-v4-empty div{
    width:86px;
    height:86px;
    border-radius:28px;
    background:linear-gradient(135deg,#0f1b2d,#d4af37);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:36px;
}

.hm-checkout-v4-empty strong{
    color:#0f1b2d;
    font-size:24px;
}

.hm-checkout-v4-empty p{
    color:#667085;
}

.hm-checkout-v4-empty a{
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    font-weight:950;
    border-radius:16px;
    padding:13px 16px;
}

/* Mode sombre checkout */
html.shop-theme-dark .hm-checkout-v4-head h1,
html.shop-theme-dark .hm-checkout-v4-card-head strong,
html.shop-theme-dark .hm-checkout-v4-fields label,
html.shop-theme-dark .hm-checkout-v4-payment strong,
html.shop-theme-dark .hm-checkout-v4-summary-head strong,
html.shop-theme-dark .hm-checkout-v4-item strong,
html.shop-theme-dark .hm-checkout-v4-item b,
html.shop-theme-dark .hm-checkout-v4-totals strong,
html.shop-theme-dark .hm-checkout-v4-empty strong{
    color:#fff;
}

html.shop-theme-dark .hm-checkout-v4-head a,
html.shop-theme-dark .hm-checkout-v4-head span,
html.shop-theme-dark .hm-checkout-v4-summary-head span{
    color:#f3d47a;
}

html.shop-theme-dark .hm-checkout-v4-card,
html.shop-theme-dark .hm-checkout-v4-summary,
html.shop-theme-dark .hm-checkout-v4-empty{
    background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 18px 45px rgba(0,0,0,.24);
}

html.shop-theme-dark .hm-checkout-v4-card-head small,
html.shop-theme-dark .hm-checkout-v4-payment span,
html.shop-theme-dark .hm-checkout-v4-item small,
html.shop-theme-dark .hm-checkout-v4-totals span,
html.shop-theme-dark .hm-checkout-v4-note,
html.shop-theme-dark .hm-checkout-v4-empty p{
    color:#94a3b8;
}

html.shop-theme-dark .hm-checkout-v4-fields input,
html.shop-theme-dark .hm-checkout-v4-fields textarea{
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.10);
    color:#fff;
}

html.shop-theme-dark .hm-checkout-v4-fields input::placeholder,
html.shop-theme-dark .hm-checkout-v4-fields textarea::placeholder{
    color:#94a3b8;
}

html.shop-theme-dark .hm-checkout-v4-payment label,
html.shop-theme-dark .hm-checkout-v4-item{
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.10);
}

html.shop-theme-dark .hm-checkout-v4-payment em{
    background:rgba(255,255,255,.06);
    color:#f3d47a;
    border:1px solid rgba(212,175,55,.28);
}

html.shop-theme-dark .hm-checkout-v4-item-img{
    background:
        radial-gradient(circle at 50% 20%,rgba(212,175,55,.18),transparent 30%),
        linear-gradient(135deg,#101c2e,#07111f);
}

html.shop-theme-dark .hm-checkout-v4-totals .total{
    border-top:1px solid rgba(255,255,255,.10);
}

html.shop-theme-dark .hm-checkout-v4-totals .total strong{
    color:#f3d47a;
}

@media(max-width:900px){
    .hm-checkout-v4-grid{
        grid-template-columns:1fr;
    }

    .hm-checkout-v4-summary{
        position:relative;
        top:auto;
    }
}

@media(max-width:620px){
    .hm-checkout-v4-head{
        flex-direction:column;
        align-items:flex-start;
    }

    .hm-checkout-v4-head div,
    .hm-checkout-v4-head h1,
    .hm-checkout-v4-head span{
        text-align:left;
    }

    .hm-checkout-v4-fields{
        grid-template-columns:1fr;
    }

    .hm-checkout-v4-item{
        grid-template-columns:50px 1fr;
    }

    .hm-checkout-v4-item b{
        grid-column:2;
    }

    .hm-checkout-v4-summary{
        margin-bottom:20px;
    }
}

/* PATCH 41 — Suivi commande premium HMI */
.hm-track-v4{
    display:grid;
    gap:18px;
}

.hm-track-v4-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:14px;
}

.hm-track-v4-head a{
    color:#8a5a0a;
    font-weight:950;
}

.hm-track-v4-head span{
    display:block;
    color:#b98720;
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:11px;
    font-weight:950;
    text-align:right;
}

.hm-track-v4-head h1{
    margin:4px 0 0;
    color:#0f1b2d;
    font-size:30px;
    text-align:right;
}

.hm-track-v4-grid{
    display:grid;
    grid-template-columns:1fr 360px;
    gap:18px;
    align-items:start;
}

.hm-track-v4-main,
.hm-track-v4-side{
    display:grid;
    gap:14px;
}

.hm-track-v4-card,
.hm-track-v4-status-card,
.hm-track-v4-timeline-card,
.hm-track-v4-empty{
    background:#fff;
    border:1px solid var(--line);
    border-radius:28px;
    box-shadow:0 18px 45px rgba(15,27,45,.10);
}

.hm-track-v4-status-card{
    padding:18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    background:
        radial-gradient(circle at 90% 10%,rgba(212,175,55,.18),transparent 25%),
        linear-gradient(135deg,#fff,#fff8e6);
}

.hm-track-v4-status-card span{
    color:#b98720;
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:11px;
    font-weight:950;
}

.hm-track-v4-status-card strong{
    display:block;
    color:#0f1b2d;
    font-size:26px;
    margin-top:5px;
}

.hm-track-v4-status-card p{
    margin:6px 0 0;
    color:#667085;
}

.hm-track-v4-status-card em{
    width:58px;
    height:58px;
    border-radius:20px;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    display:flex;
    align-items:center;
    justify-content:center;
    font-style:normal;
    font-size:28px;
    font-weight:950;
}

.hm-track-v4-status-card.bad em{
    background:#b42318;
    color:#fff;
}

.hm-track-v4-timeline-card,
.hm-track-v4-card{
    padding:18px;
}

.hm-track-v4-section-head{
    margin-bottom:14px;
}

.hm-track-v4-section-head span{
    display:block;
    color:#b98720;
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:11px;
    font-weight:950;
}

.hm-track-v4-section-head strong{
    display:block;
    color:#0f1b2d;
    font-size:22px;
    margin-top:4px;
}

.hm-track-v4-timeline{
    display:grid;
    gap:0;
}

.hm-track-v4-step{
    position:relative;
    display:grid;
    grid-template-columns:46px 1fr;
    gap:12px;
    padding-bottom:18px;
}

.hm-track-v4-step:last-child{
    padding-bottom:0;
}

.hm-track-v4-step:before{
    content:"";
    position:absolute;
    left:22px;
    top:46px;
    bottom:0;
    width:2px;
    background:#eadfcb;
}

.hm-track-v4-step:last-child:before{
    display:none;
}

.hm-track-v4-step-icon{
    width:46px;
    height:46px;
    border-radius:17px;
    background:#f4efe6;
    color:#8a5a0a;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:950;
}

.hm-track-v4-step.done .hm-track-v4-step-icon{
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
}

.hm-track-v4-step.current .hm-track-v4-step-icon{
    box-shadow:0 0 0 6px rgba(212,175,55,.15);
}

.hm-track-v4-step strong{
    display:block;
    color:#0f1b2d;
    margin-top:3px;
}

.hm-track-v4-step span{
    display:block;
    color:#667085;
    margin-top:4px;
}

.hm-track-v4-info-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.hm-track-v4-info-grid div,
.hm-track-v4-otp,
.hm-track-v4-driver,
.hm-track-v4-location,
.hm-track-v4-history div,
.hm-track-v4-item{
    border:1px solid var(--line);
    background:#fffaf0;
    border-radius:20px;
    padding:13px;
}

.hm-track-v4-info-grid span,
.hm-track-v4-otp span,
.hm-track-v4-location span{
    display:block;
    color:#8a5a0a;
    font-size:12px;
    font-weight:950;
}

.hm-track-v4-info-grid strong,
.hm-track-v4-driver strong,
.hm-track-v4-location strong,
.hm-track-v4-history strong,
.hm-track-v4-item strong{
    display:block;
    color:#0f1b2d;
    margin-top:4px;
}

.hm-track-v4-info-grid small,
.hm-track-v4-driver span,
.hm-track-v4-driver small,
.hm-track-v4-location small,
.hm-track-v4-history span,
.hm-track-v4-history small,
.hm-track-v4-item span{
    display:block;
    color:#667085;
    margin-top:4px;
}

.hm-track-v4-otp{
    margin-top:12px;
    display:grid;
    gap:8px;
    background:linear-gradient(135deg,#fff8e6,#ffffff);
    border-color:#efdca6;
}

.hm-track-v4-otp strong{
    color:#b98720;
    font-size:34px;
    letter-spacing:.16em;
}

.hm-track-v4-otp p{
    margin:0;
    color:#667085;
    line-height:1.5;
}

.hm-track-v4-items{
    display:grid;
    gap:9px;
}

.hm-track-v4-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.hm-track-v4-item b{
    color:#b98720;
    white-space:nowrap;
}

.hm-track-v4-side{
    position:sticky;
    top:92px;
}

.hm-track-v4-driver{
    display:flex;
    gap:12px;
    align-items:center;
}

.hm-track-v4-driver .avatar{
    width:52px;
    height:52px;
    border-radius:18px;
    background:linear-gradient(135deg,#0f1b2d,#d4af37);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:950;
    font-size:20px;
}

.hm-track-v4-call{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    margin-top:12px;
    border-radius:16px;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    font-weight:950;
}

.hm-track-v4-location{
    margin-top:12px;
}

.hm-track-v4-total-row{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-bottom:10px;
}

.hm-track-v4-total-row span{
    color:#667085;
}

.hm-track-v4-total-row strong{
    color:#0f1b2d;
}

.hm-track-v4-total-row.grand{
    border-top:1px solid var(--line);
    padding-top:12px;
    align-items:flex-end;
}

.hm-track-v4-total-row.grand strong{
    color:#b98720;
    font-size:24px;
}

.hm-track-v4-history{
    display:grid;
    gap:9px;
}

.hm-track-v4-muted,
.hm-track-v4-noitem{
    color:#667085;
    line-height:1.5;
}

.hm-track-v4-empty{
    min-height:360px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:12px;
    padding:24px;
}

.hm-track-v4-empty div{
    width:86px;
    height:86px;
    border-radius:28px;
    background:linear-gradient(135deg,#0f1b2d,#d4af37);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:36px;
}

.hm-track-v4-empty strong{
    color:#0f1b2d;
    font-size:24px;
}

.hm-track-v4-empty p{
    color:#667085;
}

.hm-track-v4-empty a{
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    font-weight:950;
    border-radius:16px;
    padding:13px 16px;
}

/* Mode sombre suivi commande */
html.shop-theme-dark .hm-track-v4-head h1,
html.shop-theme-dark .hm-track-v4-status-card strong,
html.shop-theme-dark .hm-track-v4-section-head strong,
html.shop-theme-dark .hm-track-v4-step strong,
html.shop-theme-dark .hm-track-v4-info-grid strong,
html.shop-theme-dark .hm-track-v4-driver strong,
html.shop-theme-dark .hm-track-v4-location strong,
html.shop-theme-dark .hm-track-v4-history strong,
html.shop-theme-dark .hm-track-v4-item strong,
html.shop-theme-dark .hm-track-v4-total-row strong,
html.shop-theme-dark .hm-track-v4-empty strong{
    color:#fff;
}

html.shop-theme-dark .hm-track-v4-head a,
html.shop-theme-dark .hm-track-v4-head span,
html.shop-theme-dark .hm-track-v4-status-card span,
html.shop-theme-dark .hm-track-v4-section-head span,
html.shop-theme-dark .hm-track-v4-info-grid span,
html.shop-theme-dark .hm-track-v4-otp span,
html.shop-theme-dark .hm-track-v4-location span{
    color:#f3d47a;
}

html.shop-theme-dark .hm-track-v4-card,
html.shop-theme-dark .hm-track-v4-status-card,
html.shop-theme-dark .hm-track-v4-timeline-card,
html.shop-theme-dark .hm-track-v4-empty{
    background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 18px 45px rgba(0,0,0,.24);
}

html.shop-theme-dark .hm-track-v4-status-card{
    background:
        radial-gradient(circle at 90% 10%,rgba(212,175,55,.18),transparent 25%),
        linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
}

html.shop-theme-dark .hm-track-v4-status-card p,
html.shop-theme-dark .hm-track-v4-step span,
html.shop-theme-dark .hm-track-v4-info-grid small,
html.shop-theme-dark .hm-track-v4-driver span,
html.shop-theme-dark .hm-track-v4-driver small,
html.shop-theme-dark .hm-track-v4-location small,
html.shop-theme-dark .hm-track-v4-history span,
html.shop-theme-dark .hm-track-v4-history small,
html.shop-theme-dark .hm-track-v4-item span,
html.shop-theme-dark .hm-track-v4-total-row span,
html.shop-theme-dark .hm-track-v4-muted,
html.shop-theme-dark .hm-track-v4-noitem,
html.shop-theme-dark .hm-track-v4-empty p{
    color:#94a3b8;
}

html.shop-theme-dark .hm-track-v4-step:before{
    background:rgba(255,255,255,.10);
}

html.shop-theme-dark .hm-track-v4-step-icon{
    background:rgba(255,255,255,.06);
    color:#f3d47a;
}

html.shop-theme-dark .hm-track-v4-info-grid div,
html.shop-theme-dark .hm-track-v4-otp,
html.shop-theme-dark .hm-track-v4-driver,
html.shop-theme-dark .hm-track-v4-location,
html.shop-theme-dark .hm-track-v4-history div,
html.shop-theme-dark .hm-track-v4-item{
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.10);
}

html.shop-theme-dark .hm-track-v4-otp strong,
html.shop-theme-dark .hm-track-v4-item b,
html.shop-theme-dark .hm-track-v4-total-row.grand strong{
    color:#f3d47a;
}

html.shop-theme-dark .hm-track-v4-otp p{
    color:#94a3b8;
}

html.shop-theme-dark .hm-track-v4-total-row.grand{
    border-top:1px solid rgba(255,255,255,.10);
}

@media(max-width:940px){
    .hm-track-v4-grid{
        grid-template-columns:1fr;
    }

    .hm-track-v4-side{
        position:relative;
        top:auto;
    }
}

@media(max-width:620px){
    .hm-track-v4-head{
        flex-direction:column;
        align-items:flex-start;
    }

    .hm-track-v4-head div,
    .hm-track-v4-head h1,
    .hm-track-v4-head span{
        text-align:left;
    }

    .hm-track-v4-status-card{
        align-items:flex-start;
    }

    .hm-track-v4-info-grid{
        grid-template-columns:1fr;
    }

    .hm-track-v4-item{
        align-items:flex-start;
        flex-direction:column;
    }
}

/* PATCH 42 — Menu client + pages catégories, commandes, profil */
.hm-bottom-nav{
    grid-template-columns:repeat(5,1fr);
}

.hm-bottom-nav a{
    position:relative;
}

.hm-bottom-cart-count{
    position:absolute;
    top:4px;
    right:12px;
    min-width:18px;
    height:18px;
    border-radius:999px;
    background:#d4af37;
    color:#111827;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
    font-weight:950;
    border:2px solid #fff;
}

.hm-client-v5{
    display:grid;
    gap:18px;
}

.hm-client-v5-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:14px;
}

.hm-client-v5-head span{
    display:block;
    color:#b98720;
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:11px;
    font-weight:950;
}

.hm-client-v5-head h1{
    margin:4px 0 0;
    color:#0f1b2d;
    font-size:30px;
}

.hm-client-v5-head a{
    color:#8a5a0a;
    font-weight:950;
}

.hm-client-v5-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
    gap:13px;
}

.hm-client-v5-category,
.hm-client-v5-empty,
.hm-client-v5-search-card,
.hm-client-v5-order,
.hm-client-v5-profile-card,
.hm-client-v5-profile-form{
    background:#fff;
    border:1px solid var(--line);
    border-radius:26px;
    box-shadow:0 14px 34px rgba(15,27,45,.07);
}

.hm-client-v5-category{
    min-height:150px;
    padding:18px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:10px;
}

.hm-client-v5-category i{
    width:54px;
    height:54px;
    border-radius:20px;
    background:#fff4d4;
    color:#9a6a12;
    display:flex;
    align-items:center;
    justify-content:center;
    font-style:normal;
    font-size:24px;
    font-weight:950;
}

.hm-client-v5-category strong{
    color:#0f1b2d;
    font-size:17px;
}

.hm-client-v5-category span{
    color:#667085;
    font-size:13px;
    font-weight:850;
}

.hm-client-v5-empty{
    min-height:280px;
    padding:24px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:8px;
    color:#667085;
}

.hm-client-v5-empty strong{
    color:#0f1b2d;
    font-size:22px;
}

.hm-client-v5-search-card{
    padding:16px;
    display:grid;
    grid-template-columns:1fr 1fr auto;
    gap:12px;
    align-items:end;
}

.hm-client-v5-search-card label,
.hm-client-v5-profile-form label{
    display:grid;
    gap:7px;
    color:#0f1b2d;
    font-size:13px;
    font-weight:950;
}

.hm-client-v5-search-card input,
.hm-client-v5-profile-form input,
.hm-client-v5-profile-form textarea{
    width:100%;
    border:1px solid var(--line);
    background:#fffaf0;
    color:#0f1b2d;
    border-radius:16px;
    padding:13px 14px;
    outline:none;
    font-weight:700;
}

.hm-client-v5-search-card button,
.hm-client-v5-profile-form button{
    min-height:48px;
    border:0;
    border-radius:16px;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    font-weight:950;
    padding:0 16px;
    cursor:pointer;
}

.hm-client-v5-orders{
    display:grid;
    gap:12px;
}

.hm-client-v5-order{
    padding:14px;
    display:grid;
    grid-template-columns:1fr auto auto;
    gap:14px;
    align-items:center;
}

.hm-client-v5-order small{
    color:#667085;
}

.hm-client-v5-order strong{
    display:block;
    color:#0f1b2d;
    margin-top:4px;
}

.hm-client-v5-order span{
    display:block;
    color:#667085;
    margin-top:4px;
}

.hm-client-v5-order em{
    display:inline-flex;
    border-radius:999px;
    background:#fff4d4;
    color:#8a5a0a;
    padding:7px 10px;
    font-style:normal;
    font-size:12px;
    font-weight:950;
}

.hm-client-v5-order b{
    display:block;
    margin-top:6px;
    color:#b98720;
    text-align:right;
}

.hm-client-v5-order a{
    border-radius:15px;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    font-weight:950;
    padding:12px 14px;
}

.hm-client-v5-profile{
    display:grid;
    grid-template-columns:320px 1fr;
    gap:18px;
    align-items:start;
}

.hm-client-v5-profile-card{
    padding:20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:8px;
}

.hm-client-v5-avatar{
    width:96px;
    height:96px;
    border-radius:32px;
    background:linear-gradient(135deg,#0f1b2d,#d4af37);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:950;
    font-size:28px;
    box-shadow:0 18px 38px rgba(15,27,45,.16);
}

.hm-client-v5-profile-card strong{
    color:#0f1b2d;
    font-size:22px;
}

.hm-client-v5-profile-card span,
.hm-client-v5-profile-card p{
    color:#667085;
    line-height:1.5;
}

.hm-client-v5-profile-form{
    padding:18px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.hm-client-v5-profile-form label.full,
.hm-client-v5-profile-form button,
.hm-client-v5-message{
    grid-column:1 / -1;
}

.hm-client-v5-message{
    color:#8a5a0a;
    font-weight:950;
}

/* Mode sombre patch 42 */
html.shop-theme-dark .hm-bottom-cart-count{
    border-color:#07111f;
}

html.shop-theme-dark .hm-client-v5-head h1,
html.shop-theme-dark .hm-client-v5-category strong,
html.shop-theme-dark .hm-client-v5-empty strong,
html.shop-theme-dark .hm-client-v5-search-card label,
html.shop-theme-dark .hm-client-v5-profile-form label,
html.shop-theme-dark .hm-client-v5-order strong,
html.shop-theme-dark .hm-client-v5-profile-card strong{
    color:#fff;
}

html.shop-theme-dark .hm-client-v5-head span,
html.shop-theme-dark .hm-client-v5-head a,
html.shop-theme-dark .hm-client-v5-message{
    color:#f3d47a;
}

html.shop-theme-dark .hm-client-v5-category,
html.shop-theme-dark .hm-client-v5-empty,
html.shop-theme-dark .hm-client-v5-search-card,
html.shop-theme-dark .hm-client-v5-order,
html.shop-theme-dark .hm-client-v5-profile-card,
html.shop-theme-dark .hm-client-v5-profile-form{
    background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 18px 45px rgba(0,0,0,.24);
}

html.shop-theme-dark .hm-client-v5-category i{
    background:rgba(212,175,55,.12);
    color:#f3d47a;
}

html.shop-theme-dark .hm-client-v5-category span,
html.shop-theme-dark .hm-client-v5-empty,
html.shop-theme-dark .hm-client-v5-order small,
html.shop-theme-dark .hm-client-v5-order span,
html.shop-theme-dark .hm-client-v5-profile-card span,
html.shop-theme-dark .hm-client-v5-profile-card p{
    color:#94a3b8;
}

html.shop-theme-dark .hm-client-v5-search-card input,
html.shop-theme-dark .hm-client-v5-profile-form input,
html.shop-theme-dark .hm-client-v5-profile-form textarea{
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.10);
    color:#fff;
}

html.shop-theme-dark .hm-client-v5-search-card input::placeholder,
html.shop-theme-dark .hm-client-v5-profile-form input::placeholder,
html.shop-theme-dark .hm-client-v5-profile-form textarea::placeholder{
    color:#94a3b8;
}

html.shop-theme-dark .hm-client-v5-order em{
    background:rgba(212,175,55,.13);
    color:#f3d47a;
    border:1px solid rgba(212,175,55,.24);
}

html.shop-theme-dark .hm-client-v5-order b{
    color:#f3d47a;
}

@media(max-width:820px){
    .hm-bottom-nav a small{
        font-size:9px;
    }

    .hm-bottom-nav a span{
        font-size:17px;
    }

    .hm-client-v5-search-card,
    .hm-client-v5-profile{
        grid-template-columns:1fr;
    }

    .hm-client-v5-profile-form{
        grid-template-columns:1fr;
    }
}

@media(max-width:620px){
    .hm-client-v5-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .hm-client-v5-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .hm-client-v5-order{
        grid-template-columns:1fr;
    }

    .hm-client-v5-order b{
        text-align:left;
    }

    .hm-client-v5-order a{
        text-align:center;
    }
}

/* PATCH 43 — Profil client connecté au checkout */
.hm-checkout-v4-profile-tools{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:-4px 0 16px;
    padding:12px;
    border:1px solid #efdca6;
    background:#fff8e6;
    border-radius:18px;
}

.hm-checkout-v4-profile-tools button{
    border:0;
    border-radius:14px;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    font-weight:950;
    padding:11px 13px;
    cursor:pointer;
}

.hm-checkout-v4-profile-tools a{
    color:#8a5a0a;
    font-weight:950;
    font-size:13px;
}

html.shop-theme-dark .hm-checkout-v4-profile-tools{
    background:rgba(255,255,255,.045);
    border:1px solid rgba(212,175,55,.24);
}

html.shop-theme-dark .hm-checkout-v4-profile-tools a{
    color:#f3d47a;
}

@media(max-width:620px){
    .hm-checkout-v4-profile-tools{
        align-items:stretch;
        flex-direction:column;
    }

    .hm-checkout-v4-profile-tools a{
        text-align:center;
    }
}

/* PATCH 44 — Admin commandes premium HMI */
.hm-admin-v5{
    display:grid;
    gap:18px;
}

.hm-admin-v5-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
}

.hm-admin-v5-head span,
.hm-admin-v5-card-head span{
    display:block;
    color:#b98720;
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:11px;
    font-weight:950;
}

.hm-admin-v5-head h1{
    margin:4px 0 4px;
    color:#0f1b2d;
    font-size:32px;
}

.hm-admin-v5-head p{
    margin:0;
    color:#667085;
}

.hm-admin-v5-head-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.hm-admin-v5-back,
.hm-admin-v5-track,
.hm-admin-v5-action{
    border-radius:16px;
    padding:12px 14px;
    font-weight:950;
}

.hm-admin-v5-back{
    background:#fff;
    border:1px solid var(--line);
    color:#8a5a0a;
}

.hm-admin-v5-track,
.hm-admin-v5-action{
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
}

.hm-admin-v5-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.hm-admin-v5-stats div,
.hm-admin-v5-card,
.hm-admin-v5-status-panel{
    background:#fff;
    border:1px solid var(--line);
    border-radius:26px;
    box-shadow:0 14px 34px rgba(15,27,45,.07);
}

.hm-admin-v5-stats div{
    padding:16px;
}

.hm-admin-v5-stats span{
    display:block;
    color:#667085;
    font-size:13px;
    font-weight:850;
}

.hm-admin-v5-stats strong{
    display:block;
    color:#0f1b2d;
    font-size:28px;
    margin-top:5px;
}

.hm-admin-v5-card{
    padding:18px;
}

.hm-admin-v5-card-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}

.hm-admin-v5-card-head strong{
    display:block;
    color:#0f1b2d;
    font-size:22px;
    margin-top:4px;
}

.hm-admin-v5-empty{
    min-height:220px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:6px;
    color:#667085;
}

.hm-admin-v5-empty.small{
    min-height:auto;
    align-items:flex-start;
    text-align:left;
    padding:12px;
    border:1px solid var(--line);
    border-radius:18px;
    background:#fffaf0;
}

.hm-admin-v5-empty strong{
    color:#0f1b2d;
}

.hm-admin-v5-orders{
    display:grid;
    gap:12px;
}

.hm-admin-v5-order{
    display:grid;
    grid-template-columns:1fr auto auto auto;
    gap:14px;
    align-items:center;
    border:1px solid var(--line);
    background:#fffaf0;
    border-radius:22px;
    padding:13px;
}

.hm-admin-v5-order-main{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.hm-admin-v5-order-icon{
    width:54px;
    height:54px;
    border-radius:18px;
    background:linear-gradient(135deg,#0f1b2d,#d4af37);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:950;
}

.hm-admin-v5-order small,
.hm-admin-v5-order span,
.hm-admin-v5-order em,
.hm-admin-v5-muted{
    color:#667085;
}

.hm-admin-v5-order strong{
    display:block;
    color:#0f1b2d;
    margin-top:4px;
}

.hm-admin-v5-order em{
    display:block;
    margin-top:4px;
    font-style:normal;
}

.hm-admin-v5-order-status{
    display:grid;
    gap:5px;
}

.hm-admin-v5-order-status .status{
    display:inline-flex;
    justify-content:center;
    border-radius:999px;
    padding:8px 10px;
    background:#fff4d4;
    color:#8a5a0a;
    font-size:12px;
    font-weight:950;
}

.hm-admin-v5-order-status .status.delivered{
    background:#eaf8ef;
    color:#15803d;
}

.hm-admin-v5-order-status .status.cancelled,
.hm-admin-v5-order-status .status.failed_delivery{
    background:#fdecec;
    color:#b42318;
}

.hm-admin-v5-order-price{
    text-align:right;
}

.hm-admin-v5-order-price strong{
    color:#b98720;
    font-size:20px;
}

.hm-admin-v5-order-price span{
    color:#667085;
    font-size:12px;
}

.hm-admin-v5-detail-grid{
    display:grid;
    grid-template-columns:1fr 370px;
    gap:18px;
    align-items:start;
}

.hm-admin-v5-main,
.hm-admin-v5-side{
    display:grid;
    gap:14px;
}

.hm-admin-v5-side{
    position:sticky;
    top:90px;
}

.hm-admin-v5-status-panel{
    padding:18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    background:
        radial-gradient(circle at 90% 10%,rgba(212,175,55,.18),transparent 25%),
        linear-gradient(135deg,#fff,#fff8e6);
}

.hm-admin-v5-status-panel span{
    color:#b98720;
    text-transform:uppercase;
    letter-spacing:.13em;
    font-size:11px;
    font-weight:950;
}

.hm-admin-v5-status-panel strong{
    display:block;
    color:#0f1b2d;
    font-size:26px;
    margin-top:5px;
}

.hm-admin-v5-status-panel p{
    color:#667085;
    margin:6px 0 0;
}

.hm-admin-v5-status-panel em{
    color:#b98720;
    font-style:normal;
    font-size:24px;
    font-weight:950;
    white-space:nowrap;
}

.hm-admin-v5-info-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.hm-admin-v5-info-grid div,
.hm-admin-v5-item,
.hm-admin-v5-history div,
.hm-admin-v5-delivery-box,
.hm-admin-v5-driver-box{
    border:1px solid var(--line);
    background:#fffaf0;
    border-radius:20px;
    padding:13px;
}

.hm-admin-v5-info-grid span,
.hm-admin-v5-delivery-box span{
    display:block;
    color:#8a5a0a;
    font-size:12px;
    font-weight:950;
}

.hm-admin-v5-info-grid strong,
.hm-admin-v5-item strong,
.hm-admin-v5-history strong,
.hm-admin-v5-delivery-box strong,
.hm-admin-v5-driver-box strong{
    display:block;
    color:#0f1b2d;
    margin-top:4px;
}

.hm-admin-v5-info-grid small,
.hm-admin-v5-item span,
.hm-admin-v5-history span,
.hm-admin-v5-history small,
.hm-admin-v5-driver-box span,
.hm-admin-v5-driver-box small{
    display:block;
    color:#667085;
    margin-top:4px;
}

.hm-admin-v5-items,
.hm-admin-v5-history{
    display:grid;
    gap:9px;
}

.hm-admin-v5-item{
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.hm-admin-v5-item b{
    color:#b98720;
    white-space:nowrap;
}

.hm-admin-v5-form{
    display:grid;
    gap:12px;
}

.hm-admin-v5-form.mt{
    margin-top:12px;
}

.hm-admin-v5-form label{
    display:grid;
    gap:7px;
    color:#0f1b2d;
    font-size:13px;
    font-weight:950;
}

.hm-admin-v5-form select,
.hm-admin-v5-form input{
    width:100%;
    border:1px solid var(--line);
    background:#fffaf0;
    color:#0f1b2d;
    border-radius:16px;
    padding:13px 14px;
    outline:none;
    font-weight:700;
}

.hm-admin-v5-form button{
    min-height:48px;
    border:0;
    border-radius:16px;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#111827;
    font-weight:950;
    cursor:pointer;
}

.hm-admin-v5-delivery-box{
    display:grid;
    gap:10px;
}

.hm-admin-v5-delivery-box .otp{
    color:#b98720;
    font-size:28px;
    letter-spacing:.12em;
}

.hm-admin-v5-driver-box{
    display:flex;
    gap:12px;
    align-items:center;
    margin-top:12px;
}

.hm-admin-v5-driver-box .avatar{
    width:52px;
    height:52px;
    border-radius:18px;
    background:linear-gradient(135deg,#0f1b2d,#d4af37);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:950;
}

.hm-admin-v5-total-row{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-bottom:10px;
}

.hm-admin-v5-total-row span{
    color:#667085;
}

.hm-admin-v5-total-row strong{
    color:#0f1b2d;
}

.hm-admin-v5-total-row.grand{
    border-top:1px solid var(--line);
    padding-top:12px;
}

.hm-admin-v5-total-row.grand strong{
    color:#b98720;
    font-size:24px;
}

.hm-admin-v5-pagination{
    margin-top:14px;
}

/* Dark mode admin premium */
html.shop-theme-dark .hm-admin-v5-head h1,
html.shop-theme-dark .hm-admin-v5-stats strong,
html.shop-theme-dark .hm-admin-v5-card-head strong,
html.shop-theme-dark .hm-admin-v5-empty strong,
html.shop-theme-dark .hm-admin-v5-order strong,
html.shop-theme-dark .hm-admin-v5-status-panel strong,
html.shop-theme-dark .hm-admin-v5-info-grid strong,
html.shop-theme-dark .hm-admin-v5-item strong,
html.shop-theme-dark .hm-admin-v5-history strong,
html.shop-theme-dark .hm-admin-v5-delivery-box strong,
html.shop-theme-dark .hm-admin-v5-driver-box strong,
html.shop-theme-dark .hm-admin-v5-form label,
html.shop-theme-dark .hm-admin-v5-total-row strong{
    color:#fff;
}

html.shop-theme-dark .hm-admin-v5-head span,
html.shop-theme-dark .hm-admin-v5-card-head span,
html.shop-theme-dark .hm-admin-v5-status-panel span,
html.shop-theme-dark .hm-admin-v5-info-grid span,
html.shop-theme-dark .hm-admin-v5-delivery-box span,
html.shop-theme-dark .hm-admin-v5-back{
    color:#f3d47a;
}

html.shop-theme-dark .hm-admin-v5-stats div,
html.shop-theme-dark .hm-admin-v5-card,
html.shop-theme-dark .hm-admin-v5-status-panel{
    background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 18px 45px rgba(0,0,0,.24);
}

html.shop-theme-dark .hm-admin-v5-order,
html.shop-theme-dark .hm-admin-v5-info-grid div,
html.shop-theme-dark .hm-admin-v5-item,
html.shop-theme-dark .hm-admin-v5-history div,
html.shop-theme-dark .hm-admin-v5-delivery-box,
html.shop-theme-dark .hm-admin-v5-driver-box,
html.shop-theme-dark .hm-admin-v5-empty.small{
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.10);
}

html.shop-theme-dark .hm-admin-v5-head p,
html.shop-theme-dark .hm-admin-v5-stats span,
html.shop-theme-dark .hm-admin-v5-order small,
html.shop-theme-dark .hm-admin-v5-order span,
html.shop-theme-dark .hm-admin-v5-order em,
html.shop-theme-dark .hm-admin-v5-order-price span,
html.shop-theme-dark .hm-admin-v5-status-panel p,
html.shop-theme-dark .hm-admin-v5-info-grid small,
html.shop-theme-dark .hm-admin-v5-item span,
html.shop-theme-dark .hm-admin-v5-history span,
html.shop-theme-dark .hm-admin-v5-history small,
html.shop-theme-dark .hm-admin-v5-driver-box span,
html.shop-theme-dark .hm-admin-v5-driver-box small,
html.shop-theme-dark .hm-admin-v5-muted,
html.shop-theme-dark .hm-admin-v5-total-row span{
    color:#94a3b8;
}

html.shop-theme-dark .hm-admin-v5-back{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
}

html.shop-theme-dark .hm-admin-v5-form select,
html.shop-theme-dark .hm-admin-v5-form input{
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.10);
    color:#fff;
}

html.shop-theme-dark .hm-admin-v5-status-panel em,
html.shop-theme-dark .hm-admin-v5-order-price strong,
html.shop-theme-dark .hm-admin-v5-item b,
html.shop-theme-dark .hm-admin-v5-delivery-box .otp,
html.shop-theme-dark .hm-admin-v5-total-row.grand strong{
    color:#f3d47a;
}

html.shop-theme-dark .hm-admin-v5-total-row.grand{
    border-top:1px solid rgba(255,255,255,.10);
}

@media(max-width:980px){
    .hm-admin-v5-detail-grid,
    .hm-admin-v5-orders{
        grid-template-columns:1fr;
    }

    .hm-admin-v5-side{
        position:relative;
        top:auto;
    }

    .hm-admin-v5-order{
        grid-template-columns:1fr;
    }

    .hm-admin-v5-order-price{
        text-align:left;
    }

    .hm-admin-v5-action{
        text-align:center;
    }
}

@media(max-width:720px){
    .hm-admin-v5-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .hm-admin-v5-head-actions{
        justify-content:flex-start;
    }

    .hm-admin-v5-stats{
        grid-template-columns:repeat(2,1fr);
    }

    .hm-admin-v5-info-grid{
        grid-template-columns:1fr;
    }

    .hm-admin-v5-status-panel,
    .hm-admin-v5-item{
        align-items:flex-start;
        flex-direction:column;
    }
}

/* PATCH 44.2 — Admin action disabled */
.hm-admin-v5-action.disabled{
    opacity:.55;
    cursor:not-allowed;
    background:#e5e7eb;
    color:#667085;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
