﻿/* ============================================================
   APÉRO GOURMAND — Design System
   Blanc épuré · Accent doré · Typographie premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F8F8F8;
    --gray-100: #F0F0F0;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --black: #1A1A1A;
    
    --gold: #C4956A;
    --gold-light: #D4A97A;
    --gold-dark: #A67B52;
    --gold-bg: #FDF8F3;

    --danger: #DC3545;
    --success: #28A745;
    --warning: #F59E0B;
    --info: #3B82F6;

    --font-body: 'Fira Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Fira Sans', Georgia, 'Times New Roman', serif;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --header-height: 72px;
    --promo-height: 40px;
    --cart-sidebar-width: min(300px, calc(100vw - 24px));
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    padding-top: calc(var(--header-height) + var(--promo-height));
    overflow-x: hidden;
    --cart-layout-offset: 0px;
}

body.no-promo {
    padding-top: var(--header-height);
}

.promo-banner,
.header {
    transition: right var(--transition);
}

main,
.footer,
body > .container {
    transition: margin-right var(--transition);
}

body.cart-open {
    --cart-layout-offset: var(--cart-sidebar-width);
    overflow-x: hidden;
}

body.cart-open .promo-banner,
body.cart-open .header {
    right: 0;
}

body.cart-open main,
body.cart-open .footer,
body.cart-open > .container {
    margin-right: var(--cart-layout-offset);
}

a {
    text-decoration: none;
    color: var(--gold);
    transition: color var(--transition);
}

a:hover {
    color: var(--gold-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--black);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ── Container ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 700px;
}

/* ── Bandeau Promo ─────────────────────────────────────────── */
.promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--promo-height);
    background: var(--black);
    color: var(--gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 1001;
    overflow: hidden;
    padding: 4px 12px;
}

.promo-banner--single .promo-banner__text {
    animation: promo-slide 20s linear infinite;
    white-space: nowrap;
    width: 60%;
    text-align: center;
    display: inline-block;
}

@keyframes promo-slide {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.promo-banner__viewport {
    width: min(840px, 95vw);
    overflow: hidden;
    position: relative;
}

.promo-banner__carousel {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    transition: transform var(--transition);
}

.promo-banner__slide {
    list-style: none;
    flex: 0 0 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.promo-banner__slide.is-active {
    opacity: 1;
}

.promo-banner__dots {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.promo-banner__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--gold-light);
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.promo-banner__dot.is-active {
    background: var(--gold);
    border-color: var(--gold);
}

/* ── Header ────────────────────────────────────────────────── */
.header {
    position: fixed;
    top: var(--promo-height);
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

body.no-promo .header {
    top: 0;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 16px;
}

.header__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.5px;
}

.header__logo span {
    color: var(--gold);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header__link {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

.header__link:hover,
.header__link.active {
    color: var(--black);
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.header__link:hover::after,
.header__link.active::after {
    width: 100%;
}

.header__nav__admin {
    position: relative;
}

.header__admin-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__li {
    list-style: none;
    position: relative;
}

.header__li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

.header__admin-toggle {
    color: inherit;
}

.header__li > a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.header__li > a::after {
    content: '\25BE';
    font-size: 11px;
    color: var(--gray-500);
    transition: transform var(--transition), color var(--transition);
}

.header__li:hover > a,
.header__li:focus-within > a,
.header__nav.active .header__li > a {
    color: var(--black);
}

.header__li:hover > a::before,
.header__li:focus-within > a::before,
.header__nav.active .header__li > a::before {
    width: 100%;
}

.header__li:hover > a::after,
.header__li:focus-within > a::after {
    color: var(--black);
    transform: rotate(180deg);
}

.header__ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 8px;
    z-index: 1200;
}

.header__li:hover > .header__ul,
.header__li:focus-within > .header__ul {
    display: block;
}

.header__ul li {
    list-style: none;
}

.header__dropdown {
    position: relative;
}

.header__dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    padding: 4px 0;
    cursor: pointer;
    transition: color var(--transition);
}

.header__dropdown-toggle:hover,
.header__dropdown-toggle.active,
.header__dropdown.open .header__dropdown-toggle {
    color: var(--black);
}

.header__dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.header__dropdown-toggle:hover::after,
.header__dropdown-toggle.active::after,
.header__dropdown.open .header__dropdown-toggle::after {
    width: 100%;
}

.header__dropdown-caret {
    transition: transform var(--transition);
}

.header__dropdown.open .header__dropdown-caret {
    transform: rotate(180deg);
}

.header__dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 8px;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.header__dropdown:hover .header__dropdown-menu,
.header__dropdown.open .header__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__dropdown-link {
    display: block;
    width: 100%;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: background-color var(--transition), color var(--transition);
}

.header__dropdown-link:hover,
.header__dropdown-link.active {
    background: var(--gold-bg);
    color: var(--gold-dark);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header__cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 38px;
    height: 38px;
    color: var(--black);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: color var(--transition), background var(--transition);
}

.header__cart-btn:focus-visible,
.header__cart-btn.is-active,
body.cart-open .header__cart-btn {
    color: var(--gold);
    background: var(--gold-bg);
    outline: none;
}

@media (hover: hover) and (pointer: fine) {
    .header__cart-btn:hover {
        color: var(--gold);
        background: var(--gold-bg);
    }
}

.header__cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    padding: 8px;
    transition: color var(--transition);
    white-space: nowrap;
}

.header__user-btn:hover {
    color: var(--black);
}

/* Mobile hamburger */
.header__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.header__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    transition: var(--transition);
}

/* ── Sidebar Panier (push) ─────────────────────────────────── */

.cart-sidebar {
    position: fixed;
    top: calc(var(--promo-height) + var(--header-height));
    right: 0;
    width: var(--cart-sidebar-width);
    max-height: calc(100vh - var(--promo-height) - var(--header-height));
    height: calc(100vh - var(--promo-height) - var(--header-height));
    background: var(--white);
    z-index: 999;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform var(--transition);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--gray-200);
    border-radius: 0;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

body.no-promo .cart-sidebar {
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    max-height: calc(100vh - var(--header-height));
}

.cart-sidebar.active {
    pointer-events: auto;
    transform: translateX(0);
}

.cart-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-100);
}

.cart-sidebar__header h3 {
    font-family: var(--font-heading);
}

.cart-sidebar__close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--gray-500);
    padding: 0;
    transition: color var(--transition);
}

.cart-sidebar__close:hover {
    color: var(--black);
}

.cart-sidebar__promo-bar {
    padding: 8px 14px;
    background: var(--gold-bg);
    text-align: center;
    font-size: 12px;
    color: var(--gold-dark);
    font-weight: 500;
}

.cart-sidebar__promo-progress {
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.cart-sidebar__promo-progress-bar {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width var(--transition);
}

#panierShippingPromoName .cart-sidebar__promo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

#panierShippingPromoName .cart-sidebar__promo-amount {
    white-space: nowrap;
}

.cart-sidebar__items {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
}

.cart-sidebar__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.cart-sidebar__item-img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--gray-50);
}

.cart-sidebar__item-main {
    min-width: 0;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 8px 10px;
}

.cart-sidebar__item-name {
    grid-column: 1;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--black);
    min-width: 0;
    align-self: center;
}

.cart-sidebar__item-details {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.cart-sidebar__item-price {
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

.cart-sidebar__item-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    flex-shrink: 0;
}

.cart-sidebar__item-qty-btn {
    width: 22px;
    height: 22px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-sidebar__item-qty-btn:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.cart-sidebar__item-qty-value {
    min-width: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
}

.cart-sidebar__item-subtotal {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-dark);
}

.cart-sidebar__empty {
    text-align: center;
    padding: 24px 0;
    color: var(--gray-400);
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item__image {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--gray-50);
}

.cart-item__qty-controls {
    display:flex; 
    align-items:center; 
    gap:8px; 
    margin-top:12px;
}

.cart-item__info {
    flex: 1;
}

.cart-item__name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.cart-item__price {
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 14px;
}

.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.cart-item__qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.cart-item__qty-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.cart-item__remove {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color var(--transition);
}

.cart-sidebar__item-remove {
    grid-column: 2;
    justify-self: end;
    align-self: start;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    line-height: 1;
    transition: color var(--transition);
}

.cart-sidebar__item-remove:hover {
    color: var(--danger);
}

.cart-item__remove:hover {
    color: var(--danger);
}

.cart-sidebar__footer {
    padding: 12px 14px;
    border-top: 1px solid var(--gray-100);
}

.cart-sidebar__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.cart-sidebar__total span:last-child {
    color: var(--gold-dark);
    font-family: var(--font-heading);
    font-size: 18px;
}

.cart-sidebar .btn {
    padding: 10px 14px;
    font-size: 13px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn--primary {
    background: var(--gold);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: var(--black);
    color: var(--white);
}

.btn--secondary:hover {
    background: var(--gray-800);
    color: var(--white);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--black);
    border: 1.5px solid var(--gray-300);
}

.btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn--danger {
    background: var(--danger);
    color: var(--white);
}

.btn--danger:hover {
    background: #c82333;
    color: var(--white);
}

.btn--sm {
    padding: 8px 16px;
    font-size: 13px;
    height: 40px;
}

.btn--lg {
    padding: 16px 36px;
    font-size: 16px;
}

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

.product-detail__info > .btn--full {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.product-detail__info > .card__cart-controls {
    align-self: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--black);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196,149,106,0.15);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input--error {
    border-color: var(--danger);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23737373' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196,149,106,0.15);
}

/* ── Alerts / Flash Messages ───────────────────────────────── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert--warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert--info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: transform var(--transition), box-shadow var(--transition);
    margin-bottom: 16px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--gray-50);
}

.card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card__image {
    transform: scale(1.05);
}

.card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card__badge--rupture {
    background: var(--danger);
    color: var(--white);
}

.card__badge--low-stock {
    background: #fff3cd;
    color: #856404;
}

.card__badge--promo {
    background: var(--info);
    color: var(--white);
}

.card__badge--top-right {
    left: auto;
    right: 12px;
}

.card__body {
    padding: 20px;
}

.card__category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 8px;
}

.card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--black);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card__title a {
    display: block;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card__title a:hover {
    color: var(--gold);
}

.card__allergene {
    margin-bottom: 0;
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-content: flex-start;
}

.card__allergene--overlay {
    position: absolute;
    left: 8px;
    right: auto;
    bottom: 8px;
    z-index: 2;
    margin: 0;
    max-width: calc(100% - 16px);
    min-height: 0;
    align-content: flex-end;
    pointer-events: none;
}

.card__allergene--overlay .status-badge {
    background: #f5ceaa;
    border: none;
    color: #c4956a;
    box-shadow: none;
    backdrop-filter: none;
    font-size: 10px;
    line-height: 1.2;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card__desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-500);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(13px * 1.6 * 2);
}

.card__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.card__price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    min-width: 0;
}

.card__cart-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: center;
}

.card__qty-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: var(--gold);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 18px;
}

.card__qty-btn:hover {
    background: var(--gold-dark);
    transform: scale(1.1);
}

.card__qty-count {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--black);
}

.card__qty-input {
    width: 35px;
    height: 35px;
    padding: 8px 6px;
    text-align: center;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.card__qty-input[readonly] {
    pointer-events: none;
    background: var(--gray-50);
}

.card__qty-input::-webkit-outer-spin-button,
.card__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.card__qty-input {
    -moz-appearance: textfield;
}

.card__add-btn {
    position: relative;
    z-index: 2;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: var(--gold);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 18px;
}

.card__add-btn:hover {
    background: var(--gold-dark);
    transform: scale(1.1);
}

.card__add-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

/* ── Tags allergènes ──────────────────────────────────────── */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: var(--gold-bg);
    color: var(--gold-dark);
    margin: 2px 4px 2px 0;
}

/* ── Product Grid ──────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

.product-grid > a {
    display: block;
    color: inherit;
    min-width: 0;
}

.product-grid [data-product-card][hidden] {
    display: none !important;
}

.product-grid__sentinel {
    width: 100%;
    height: 1px;
}

/* ── Home Carousel ────────────────────────────────────────── */
.home-carousel {
    position: relative;
    overflow: hidden;
    background: var(--gray-50);
}

.home-carousel__viewport {
    overflow: hidden;
}

.home-carousel__track {
    display: flex;
    align-items: stretch;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-carousel__slide {
    min-width: 100%;
    position: relative;
}

/* Image slides have no intrinsic height: their <img> is absolutely positioned,
   so the slide doesn't contribute its own height to the flex container.
   With align-items: stretch, every image slide stretches to the height of
   the first slide (.home-carousel__slide--base), whose hero content drives
   the track height. */
.home-carousel__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-carousel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(10, 10, 10, 0.65) 15%, rgba(10, 10, 10, 0.28) 55%, rgba(10, 10, 10, 0.14) 100%);
    display: flex;
    align-items: center;
}

.home-carousel__caption {
    max-width: 560px;
    color: #fff;
    padding: 72px 0;
}

.home-carousel__subtitle {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #f0d5b9;
    margin-bottom: 14px;
}

.home-carousel__title {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 14px;
}

.home-carousel__desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 26px;
}

.home-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--black);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    box-shadow: var(--shadow-sm);
}

.home-carousel__arrow:hover {
    background: #fff;
    color: var(--gold-dark);
}

.home-carousel__arrow--prev {
    left: 18px;
}

.home-carousel__arrow--next {
    right: 18px;
}

.home-carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.home-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.home-carousel__dot.is-active {
    background: #fff;
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero__content {
    max-width: 560px;
    z-index: 1;
}

.hero__subtitle {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 16px;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero__title span {
    color: var(--gold);
    font-style: italic;
}

.hero__desc {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero__image {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    max-width: 600px;
    opacity: 0.9;
}

/* ── Section ───────────────────────────────────────────────── */
.section {
    padding: 80px 0;
}

.section--gray {
    background: var(--gray-50);
}

.section__header {
    text-align: center;
    margin-bottom: 48px;
}

.section__subtitle {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 12px;
}

.section__title {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.section__desc {
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
}

/* ── Categories nav ────────────────────────────────────────── */
.cat-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    min-height: 40px;
    height: auto;
}

.cat-nav__item {
    padding: 8px 20px;
    border-radius: 24px;
    border: 1.5px solid var(--gray-200);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
}

.cat-nav__item:hover,
.cat-nav__item.active {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
}

/* ── Product Detail ────────────────────────────────────────── */
.product-detail {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding: 48px 0;
    justify-content: center;
}

.product-detail__image-wrap {
    position: relative;
    flex: 0 0 var(--product-detail-image-width, var(--product-detail-info-height, 420px));
    align-self: flex-start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-50);
    width: var(--product-detail-image-width, var(--product-detail-info-height, 420px));
    height: var(--product-detail-info-height, 420px);
}

.product-detail__image {
    display: block;
    width: 100%;
    height: var(--product-detail-info-height, 100%);
    object-fit: cover;
}

.product-detail__info {
    flex: 0 1 620px;
    align-self: flex-start;
    width: 620px;
    max-width: 100%;
    height: auto;
    min-width: 0;
}

.product-detail__info h1 {
    margin-bottom: 8px;
}

@media (min-width: 1025px) {
    .product-detail__info {
        display: flex;
        flex-direction: column;
        height: 420px;
    }

    .product-detail__info > .card__cart-controls {
        margin-top: auto;
    }
}

@media (max-width: 1024px) {
    .product-detail__info {
        flex: 0 0 auto;
        height: auto;
    }
}

.product-detail__category {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 16px;
}

.product-detail__price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
}

.product-detail__desc {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 24px;
}

.product-detail__allergenes {
    margin-bottom: 24px;
}

.product-detail__allergenes h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.product-detail__allergenes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-detail__stock {
    font-size: 14px;
    margin-bottom: 24px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
}

.product-detail__stock--ok {
    background: #d4edda;
    color: #155724;
}

.product-detail__stock--low {
    background: #fff3cd;
    color: #856404;
}

.product-detail__stock--out {
    background: #f8d7da;
    color: #721c24;
}

.product-detail__qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.product-detail__qty label {
    font-weight: 500;
    margin-right: auto;
}

.product-detail__cart-controls {
    gap: 10px;
}

.product-detail__qty .product-detail__qty-input {
    width: 70px;
}

.product-detail__inPanier {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--gold-bg);
    border: 1px solid rgba(196, 149, 106, 0.35);
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-xs);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    background: var(--black);
    color: var(--gray-400);
    padding: 64px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__brand h3 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer__brand h3 span {
    color: var(--gold);
}

.footer__brand p {
    font-size: 14px;
    line-height: 1.7;
}

.footer__title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 20px;
}

.footer__link {
    display: block;
    color: var(--gray-400);
    font-size: 14px;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--gold);
}

.footer__bottom {
    padding-top: 32px;
    border-top: 1px solid var(--gray-700);
    text-align: center;
    font-size: 13px;
}

/* ── Page Header (inner pages) ─────────────────────────────── */
.page-header {
    background: var(--gray-50);
    padding: 48px 0;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
}

.page-header h1 {
    font-size: 2.25rem;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--gray-500);
}

/* ── Tables (Admin) ────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table thead {
    background: var(--gray-50);
}

.table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    border-bottom: 2px solid var(--gray-200);
}

.table td {
    padding: 14px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.table tbody tr {
    transition: background var(--transition);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* ── Status Badges ─────────────────────────────────────────── */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-top: 4px;
    margin-bottom: 4px;
    width: max-content;
}

.status-badge--rupture {
    background: #f5ceaa;
    color: #c4956a;
}

.status-badge--preparation {
    background: #FFF3CD;
    color: #856404;
}

.status-badge--livraison {
    background: #D1ECF1;
    color: #0C5460;
}

.status-badge--livre {
    background: #D4EDDA;
    color: #155724;
}


/* ── Commande livraison ───────────────────────────────────── */
.order-delivery {
    display: grid;
    gap: 3px;
    min-width: 190px;
    max-width: 320px;
    font-size: 13px;
    line-height: 1.35;
}

.order-delivery strong {
    color: var(--black);
    font-weight: 700;
}

.order-delivery span,
.order-delivery small {
    color: var(--gray-600);
}

.order-delivery-summary {
    background: var(--gold-bg);
    border: 1px solid rgba(196,149,106,0.22);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin: 12px 0;
    display: grid;
    gap: 4px;
    font-size: 13px;
    color: var(--gray-700);
}

.order-delivery-summary--compact {
    text-align: left;
    margin-bottom: 0;
}

.order-delivery-summary__title {
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 2px;
}

.order-delivery-summary p {
    margin: 0;
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.modal__header h3 {
    font-family: var(--font-heading);
}

.modal__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-400);
    padding: 4px;
}

.modal__close:hover {
    color: var(--black);
}

.modal__body {
    padding: 24px;
}

.modal__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ── Account Page ──────────────────────────────────────────── */
.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding: 48px 0;
}

.account-sidebar {
    border-right: 1px solid var(--gray-100);
    padding-right: 32px;
}

.account-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition);
    margin-bottom: 4px;
}

.account-sidebar__link:hover,
.account-sidebar__link.active {
    background: var(--gold-bg);
    color: var(--gold-dark);
}

/* ── Checkout ──────────────────────────────────────────────── */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    padding: 48px 0;
}

.checkout-summary {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 32px;
    position: sticky;
    top: calc(var(--header-height) + var(--promo-height) + 24px);
    align-self: start;
    width: 100%;
}

/* ── Admin Panel ───────────────────────────────────────────── */
.admin-header {
    background: var(--black);
    padding: 12px 0;
}

.admin-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header__link {
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.admin-header__link:hover,
.admin-header__link.active {
    color: var(--white);
    background: var(--gray-800);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 24px;
}

.admin-stat__label {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.admin-stat__value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
}

.promotion-type-fields {
    border: 1px dashed var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 14px;
    background: #fff;
}

.promotion-type-badge {
    display: inline-flex;
    text-align: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}

.promotion-type-badge--livraison {
    background: #dff2ea;
    color: #0a6a4a;
}

.promotion-type-badge--achat {
    background: #fff0dc;
    color: #915400;
}

.promotion-type-badge--code {
    background: #e7ecff;
    color: #2f43a7;
}

.promotion-details {
    font-size: 13px;
    line-height: 1.45;
    color: var(--gray-700);
}

.promotion-pick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.promotion-pick-label {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.promotion-pick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.promotion-pick-tag {
    border: 1px solid #d9c1a7;
    background: #fff;
    color: #2b2b2b;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.promotion-pick-tag:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
}

.promotion-pick-tag.active {
    border-color: var(--gold);
    background: #fff3df;
    color: #7c4a00;
    font-weight: 600;
}

.promotion-edit-row td {
    padding: 0 14px 14px;
    background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
}

.promotion-edit-form {
    margin-top: 8px;
    padding: 16px;
    border: 1px solid #ead7c3;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-xs);
}

.promotion-edit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.promotion-edit-field {
    margin-bottom: 0;
    min-width: 0;
}

.promotion-edit-field--wide {
    grid-column: span 2;
}

.promotion-edit-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.promotion-edit-readonly {
    background: var(--gray-50);
    border-color: var(--gray-200);
    color: var(--gray-700);
}

.promotion-edit-achat-error {
    display: none;
    margin: 2px 0 0;
    color: var(--danger);
    font-size: 13px;
    grid-column: span 4;
}

.promotion-edit-actions {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.promotion-edit-active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    color: var(--gray-700);
    font-size: 14px;
}

.promotion-edit-submit {
    min-width: 150px;
}

@media (max-width: 1080px) {
    .promotion-edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promotion-edit-field--wide {
        grid-column: span 2;
    }

    .promotion-edit-achat-error {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .promotion-edit-row td {
        padding: 0 10px 12px;
    }

    .promotion-edit-form {
        padding: 14px;
    }

    .promotion-edit-grid {
        grid-template-columns: 1fr;
    }

    .promotion-edit-field--wide {
        grid-column: span 1;
    }

    .promotion-edit-achat-error {
        grid-column: span 1;
    }

    .promotion-edit-actions {
        align-items: stretch;
    }

    .promotion-edit-submit {
        width: 100%;
    }
}

.accueil-admin-grid {
		display: grid;
		grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
		gap: 20px;
	}

	.accueil-upload-preview {
		margin-top: 10px;
		border: 1px dashed var(--gray-300);
		border-radius: var(--radius-md);
		background: var(--gray-50);
		min-height: 200px;
		display: flex;
		align-items: center;
		justify-content: center;
		overflow: hidden;
		padding: 8px;
	}

	.accueil-upload-preview img {
		width: 100%;
		max-height: 260px;
		object-fit: cover;
		border-radius: var(--radius-sm);
	}

	.accueil-upload-preview p {
		color: var(--gray-500);
		font-size: 0.95rem;
		text-align: center;
		padding: 0 12px;
	}

	.accueil-preview-carousel {
		border-radius: var(--radius-md);
		overflow: hidden;
		border: 1px solid var(--gray-200);
		position: relative;
		min-height: 240px;
		background: var(--gray-50);
	}

	.accueil-preview-track {
		display: flex;
		transition: transform 0.45s ease;
	}

	.accueil-preview-slide {
		min-width: 100%;
		min-height: 240px;
		position: relative;
	}

	.accueil-preview-slide img {
		width: 100%;
		height: 240px;
		object-fit: cover;
		display: block;
	}

	.accueil-preview-slide--base {
		background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 60%, var(--gold-bg) 100%);
		display: flex;
		align-items: center;
	}

	.accueil-preview-base-content {
		padding: 24px;
	}

	.accueil-preview-base-content h4 {
		margin: 12px 0 8px;
	}

	.accueil-preview-base-content p {
		color: var(--gray-600);
		max-width: 420px;
	}

	.accueil-preview-pill {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		font-size: 0.8rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: var(--gold-dark);
		background: #fff;
		border: 1px solid #efdcc8;
		border-radius: 999px;
		padding: 4px 10px;
	}

	.accueil-preview-overlay {
		position: absolute;
		inset: auto 0 0 0;
		background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.65) 100%);
		color: #fff;
		padding: 26px 16px 12px;
		font-size: 0.9rem;
	}

	.accueil-preview-controls {
		margin-top: 14px;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
	}

	.accueil-preview-arrow {
		width: 34px;
		height: 34px;
		border-radius: 999px;
		border: 1px solid var(--gray-300);
		background: #fff;
		cursor: pointer;
		font-size: 1.1rem;
		line-height: 1;
	}

	.accueil-preview-arrow:hover {
		border-color: var(--gold);
		color: var(--gold-dark);
	}

	.accueil-preview-dots {
		display: flex;
		gap: 8px;
	}

	.accueil-preview-dot {
		width: 10px;
		height: 10px;
		border-radius: 999px;
		border: none;
		background: var(--gray-300);
		cursor: pointer;
	}

	.accueil-preview-dot.is-active {
		background: var(--gold);
	}

	.accueil-thumb {
		width: 90px;
		height: 56px;
		border-radius: var(--radius-sm);
		object-fit: cover;
		border: 1px solid var(--gray-200);
		background: var(--gray-50);
	}

	@media (max-width: 900px) {
        .promotion-pick-grid {
            grid-template-columns: 1fr;
        }

		.accueil-admin-grid {
			grid-template-columns: 1fr;
		}
	}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .header__nav {
        display: none;
    }

    .header__hamburger {
        display: flex;
    }

    .header__nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--gray-100);
        box-shadow: var(--shadow-md);
    }

    .header__nav.mobile-open .header__link {
        padding: 12px 16px;
        font-size: 16px;
    }

    .header__nav.mobile-open .header__nav__admin {
        width: 100%;
    }

    .header__nav.mobile-open .header__admin-list {
        width: 100%;
    }

    .header__nav.mobile-open .header__li {
        width: 100%;
    }

    .header__nav.mobile-open .header__li > a {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: var(--radius-sm);
        text-align: center;
    }

    .header__nav.mobile-open .header__ul {
        display: block;
        position: static;
        min-width: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        margin-top: 4px;
        padding: 0;
    }

    .header__nav.mobile-open .header__ul li {
        width: 100%;
    }

    .header__nav.mobile-open .header__ul .header__dropdown-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 16px;
        font-size: 15px;
        text-align: center;
    }

    .header__nav.mobile-open .header__dropdown {
        width: 100%;
    }

    .header__nav.mobile-open .header__dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: var(--radius-sm);
    }

    .header__nav.mobile-open .header__dropdown-menu {
        position: static;
        min-width: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        margin-top: 4px;
        padding: 0 0 0 12px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .header__nav.mobile-open .header__dropdown.open .header__dropdown-menu {
        display: block;
    }

    .header__nav.mobile-open .header__dropdown-link {
        padding: 10px 16px;
        font-size: 15px;
    }

    .hero__image {
        width: 40%;
        opacity: 0.3;
    }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-detail {
        flex-direction: column;
        align-items: start;
        gap: 32px;
    }

    .product-detail__image-wrap {
        flex: 0 1 auto;
        width: min(420px, 100%);
        align-self: center;
        height: var(--product-detail-info-height, auto);
        justify-self: center;
    }

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

    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--gray-100);
        padding-right: 0;
        padding-bottom: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .section { padding: 0; }

    .hero {
        min-height: 50vh;
    }

    .home-carousel__caption {
        padding: 46px 0;
    }

    .home-carousel__title {
        font-size: 2rem;
    }

    .home-carousel__desc {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .home-carousel__arrow {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .home-carousel__arrow--prev {
        left: 10px;
    }

    .home-carousel__arrow--next {
        right: 10px;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__image {
        display: none;
    }

    .header__nav {
        display: none;
    }

    .header__hamburger {
        display: flex;
    }

    .header__nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--gray-100);
        box-shadow: var(--shadow-md);
    }

    .header__nav.mobile-open .header__link {
        padding: 12px 16px;
        font-size: 16px;
    }

    .header__nav.mobile-open .header__nav__admin {
        width: 100%;
    }

    .header__nav.mobile-open .header__admin-list {
        width: 100%;
    }

    .header__nav.mobile-open .header__li {
        width: 100%;
    }

    .header__nav.mobile-open .header__li > a {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: var(--radius-sm);
        text-align: center;
    }

    .header__nav.mobile-open .header__ul {
        display: block;
        position: static;
        min-width: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        margin-top: 4px;
        padding: 0;
    }

    .header__nav.mobile-open .header__ul li {
        width: 100%;
    }

    .header__nav.mobile-open .header__ul .header__dropdown-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 16px;
        font-size: 15px;
        text-align: center;
    }

    .header__nav.mobile-open .header__dropdown {
        width: 100%;
    }

    .header__nav.mobile-open .header__dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: var(--radius-sm);
    }

    .header__nav.mobile-open .header__dropdown-menu {
        position: static;
        min-width: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        margin-top: 4px;
        padding: 0 0 0 12px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .header__nav.mobile-open .header__dropdown.open .header__dropdown-menu {
        display: block;
    }

    .header__nav.mobile-open .header__dropdown-link {
        padding: 10px 16px;
        font-size: 15px;
    }

    .header__actions {
        gap: 6px;
        flex-wrap: nowrap;
        align-items: center;
    }

    .header__logo {
        font-size: 1.1rem;
        min-width: 0;
        flex-shrink: 1;
    }

    .header__user-btn {
        padding: 8px 4px;
        max-width: 34vw;
        min-width: 0;
    }

    .header__user-name {
        display: none;
    }

    .header__cart-btn,
    .header__hamburger {
        flex-shrink: 0;
    }

    body.cart-open {
        --cart-layout-offset: 0px;
        overflow-x: hidden;
    }

    body.cart-open .promo-banner,
    body.cart-open .header {
        right: 0;
    }

    body.cart-open main,
    body.cart-open .footer,
    body.cart-open > .container {
        margin-right: 0;
    }

    .cart-sidebar {
        top: calc(var(--promo-height) + var(--header-height));
        height: calc(100vh - var(--promo-height) - var(--header-height));
        max-height: calc(100vh - var(--promo-height) - var(--header-height));
    }

    body.no-promo .cart-sidebar {
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        max-height: calc(100vh - var(--header-height));
    }

    .header__inner {
        padding: 0 16px;
        gap: 0;
    }

    .header__logo {
        font-size: 1.2rem;
    }

    .header__actions {
        gap: 8px;
        margin-left: auto;
    }

    .header__user-btn {
        padding: 8px 6px;
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header__user-btn svg {
        flex-shrink: 0;
    }

    .header__cart-btn {
        padding: 8px;
    }

    .header__nav.mobile-open {
        padding: 18px 16px 20px;
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .home-carousel__caption {
        padding: 34px 0 40px;
        max-width: 100%;
    }

    .home-carousel__title {
        font-size: 2rem;
    }

    .hero {
        min-height: 48vh;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__desc {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero__image {
        display: none;
    }

    .hero__content > div {
        width: 100%;
    }

    .hero__content > div .btn {
        width: 100%;
    }

    .section {
        padding: 56px 0;
    }

    .section__header {
        margin-bottom: 32px;
    }

    .section__title {
        font-size: 1.75rem;
    }

    .flex-between.mb-3 {
        align-items: stretch;
        gap: 12px !important;
    }

    .flex-between.mb-3 > * {
        width: 100%;
    }

    .flex-between.mb-3 > form {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100%;
        height: auto !important;
        margin-bottom: 0 !important;
    }

    .flex-between.mb-3 > form .form-input {
        width: 100% !important;
        max-width: 100% !important;
    }

    .flex-between.mb-3 > form .btn {
        width: 100%;
    }

    .cat-nav {
        margin-bottom: 0;
        gap: 8px;
    }

    .cat-nav__item {
        padding: 7px 14px;
        font-size: 13px;
    }

    .product-grid {
        gap: 14px;
    }

    .card__body {
        padding: 16px;
    }

    .card__allergene {
        min-height: 0;
    }

    .card__desc {
        min-height: calc(13px * 1.6 * 2);
        -webkit-line-clamp: 2;
    }

    .card__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .card__price {
        font-size: 1.1rem;
    }

    .card__cart-controls {
        width: auto;
        flex-wrap: nowrap;
    }

    .card__qty-btn,
    .card__add-btn {
        width: 38px;
        height: 38px;
    }

    .product-detail__allergenes-list .status-badge,
    .card__allergene .status-badge {
        padding: 2px 8px;
        font-size: 10px;
        line-height: 1.2;
        margin: 1px 2px 1px 0;
        border-radius: 14px;
    }

    .product-detail {
        gap: 28px;
        padding: 32px 0;
    }

    .product-detail__price {
        font-size: 1.5rem;
    }

    .product-detail__qty {
        justify-content: flex-start;
    }

    .product-detail__qty .product-detail__qty-input {
        width: 64px;
    }

    .checkout-grid {
        gap: 28px;
        padding: 32px 0;
    }

    .checkout-summary {
        position: static;
        padding: 24px;
    }

    .footer {
        padding: 48px 0 24px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }

    .section {
        padding: 56px 0;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-header {
        padding: 32px 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px;
    }

    .product-grid .card {
        margin-bottom: 0;
    }

    .product-grid .card__body {
        padding: 8px;
    }

    .product-grid .card__category {
        margin-bottom: 4px;
        font-size: 9px;
        letter-spacing: 0.4px;
    }

    .product-grid .card__title {
        margin-bottom: 4px;
        font-size: 0.8rem;
        line-height: 1.15;
    }

    .product-grid .card__desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: calc(11px * 1.35 * 2);
        font-size: 11px;
        line-height: 1.35;
        margin-bottom: 6px;
    }

    .product-grid .card__footer {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .product-grid .card__price {
        font-size: 0.9rem;
    }

    .product-grid .card__cart-controls {
        width: auto;
        justify-content: flex-end;
        gap: 4px;
        flex-wrap: nowrap;
    }

    .product-grid .card__qty-btn,
    .product-grid .card__add-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .product-grid .card__qty-input {
        width: 30px;
        height: 30px;
        padding: 4px 2px;
        font-size: 11px;
    }

    .product-detail__allergenes-list {
        gap: 4px;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {
    .product-detail {
        max-width: 720px;
        margin: 0 auto;
        padding: 36px 0 44px;
        gap: 24px;
    }

    .product-detail__image-wrap {
        width: min(360px, 72vw);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .product-detail__image {
        height: 100%;
        aspect-ratio: 1 / 1;
    }

    .product-detail__info {
        width: fit-content;
        max-width: 100%;
        align-self: center;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-detail__info h1 {
        max-width: 620px;
        margin-bottom: 10px;
    }

    .product-detail__price {
        margin-bottom: 14px;
    }

    .product-detail__desc {
        max-width: 620px;
        margin-bottom: 20px;
    }

    .product-detail__allergenes {
        margin-bottom: 20px;
    }

    .product-detail__allergenes-list {
        justify-content: center;
    }

    .product-detail__info .card__cart-controls {
        justify-content: center;
        align-self: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.05rem; }

    .container {
        padding: 0 16px;
    }

    .header__logo {
        font-size: 1.05rem;
    }

    .header__user-btn {
        max-width: 38vw;
        font-size: 13px;
    }

    .home-carousel__caption {
        padding: 26px 0 34px;
    }

    .home-carousel__title {
        font-size: 1.65rem;
    }

    .home-carousel__desc {
        font-size: 14px;
    }

    .home-carousel__arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .home-carousel__arrow--prev {
        left: 8px;
    }

    .home-carousel__arrow--next {
        right: 8px;
    }

    .product-detail__image-wrap {
        width: min(250px, 100%);
        height: auto;
        aspect-ratio: 1 / 1;
        align-self: center;
        justify-self: center;
    }

    .product-detail__image {
        height: 100%;
        aspect-ratio: 1 / 1;
    }

    .section__header {
        margin-bottom: 24px;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .page-header {
        padding: 28px 0;
        margin-bottom: 28px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .page-header + .section {
        padding: 0;
    }

    .checkout-grid {
        padding: 0;
    }

    .product-detail {
        padding: 0;
    }

    .product-detail__info {
        width: fit-content;
        max-width: 100%;
        align-self: center;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 4px;
    }

    .product-grid .card__body {
        padding: 6px;
    }

    .product-grid .card__category {
        margin-bottom: 2px;
        font-size: 8px;
    }

    .product-grid .card__title {
        margin-bottom: 3px;
        font-size: 0.7rem;
    }

    .product-grid .card__desc {
        min-height: calc(9px * 1.3 * 2);
        font-size: 9px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .product-grid .card__price {
        font-size: 0.78rem;
    }

    .product-grid .card__qty-btn,
    .product-grid .card__add-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .product-grid .card__qty-input {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    .card__allergene {
        min-height: 0;
    }

    .product-detail__allergenes-list .status-badge,
    .card__allergene .status-badge {
        padding: 2px 6px;
        font-size: 9px;
        margin: 1px 2px 1px 0;
    }

    .card__footer {
        gap: 10px;
    }

    .checkout-summary {
        padding: 20px 16px;
    }

    .checkout-summary #promoCode {
        width: 100% !important;
        box-sizing: border-box;
        padding-right: 42px !important;
    }

    .checkout-summary #promoCodeValidIcon {
        right: 10px !important;
    }

    .cart-sidebar {
        width: 100vw !important;
        max-width: 100vw !important;
        border-left: none;
    }

    .cart-sidebar .btn {
        width: 100%;
    }

    .cart-item__qty-controls {
        margin-top:22px;
    }

    .hero__content > div .btn {
        width: 100%;
    }
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slideUp {
    animation: slideUp 0.6s ease forwards;
}

/* Staggered animation for grids */
.product-grid .card:nth-child(1) { animation-delay: 0.05s; }
.product-grid .card:nth-child(2) { animation-delay: 0.1s; }
.product-grid .card:nth-child(3) { animation-delay: 0.15s; }
.product-grid .card:nth-child(4) { animation-delay: 0.2s; }
.product-grid .card:nth-child(5) { animation-delay: 0.25s; }
.product-grid .card:nth-child(6) { animation-delay: 0.3s; }
.product-grid .card:nth-child(7) { animation-delay: 0.35s; }
.product-grid .card:nth-child(8) { animation-delay: 0.4s; }

/* ── Loading Spinner ───────────────────────────────────────── */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Utilities ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.hidden { display: none !important; }

/* ── Privacy Popup ─────────────────────────────────────────── */
.privacy-popup {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition), transform var(--transition);
    display: flex;
}

.privacy-popup.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.privacy-popup__content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.privacy-popup__text {
    flex: 1 1 300px;
}

.privacy-popup__text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--black);
}

.privacy-popup__text p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray-600);
    margin: 0;
}

.privacy-popup__actions {
    display: flex;
    gap: 12px;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.privacy-popup__actions .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .privacy-popup {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }

    .privacy-popup__content {
        padding: 18px;
        gap: 16px;
    }

    .privacy-popup__actions {
        width: 100%;
        justify-content: stretch;
    }

    .privacy-popup__actions .btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .cart-sidebar {
        width: 100vw;
        max-width: 100vw;
    }

    .cart-sidebar .btn {
        width: 100%;
    }

    .checkout-summary #promoCode {
        width: 100% !important;
        box-sizing: border-box;
        padding-right: 42px !important;
    }

    .checkout-summary #promoCodeValidIcon {
        right: 10px !important;
    }

    .checkout-summary > div[style*="max-width:200px"] {
        max-width: 100% !important;
    }

    .checkout-summary > div[style*="display:flex; justify-content:space-between"] {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .checkout-summary > div[style*="display:flex; justify-content:space-between"] > * {
        width: 100%;
    }

    .checkout-summary > div[style*="display:flex; justify-content:space-between"] > span:last-child {
        text-align: right;
    }
}
