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

:root {
  /* Agilitest brand colors */
  --primary:       #faba00;   /* gold Agilitest */
  --primary-dark:  #d9a500;   /* gold foncé (hover) */
  --primary-light: #fffbeb;   /* or très clair */
  --navy:          #1a2e35;   /* bleu marine Agilitest */
  --navy-dark:     #0d1e24;   /* marine encore plus foncé */
  --accent:        #e85612;   /* orange-rouge Agilitest */
  --accent-light:  #fdeee6;
  --success:       #2e7d32;
  --success-light: #e8f5e9;
  --danger:        #c62828;
  --danger-light:  #ffebee;
  --warning:       #f57f17;
  --text:          #141414;   /* quasi-noir Agilitest */
  --text-light:    #889099;   /* alias for --text-muted */
  --text-muted:    #889099;   /* gris ardoise Agilitest */
  --border:        #e1e6ea;   /* bleu-gris pâle Agilitest */
  --bg:            #f5f7f9;
  --white:         #ffffff;
  /* Always-dark surfaces (hero, footer, etc.) — same as navy in light mode */
  --surface-deep:  #1a2e35;
  --surface-deep2: #0d1e24;
  --radius:        6px;
  --radius-lg:     10px;
  --shadow:        0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:     0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'IBM Plex Mono', 'Courier New', monospace;
  --transition:    0.18s ease;
}

/* ── Dark theme ─────────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  /* Brand colors — primary gold stays the same */
  --primary-light: #2a2418;
  --navy:          #e8eef5;   /* navy reused as bright text emphasis on dark */
  --navy-dark:     #f8fafc;
  --accent-light:  #2a1812;
  --success-light: #0a2a17;
  --danger-light:  #2a1015;
  /* Text hierarchy */
  --text:          #e8eef5;
  --text-light:    #94a3b8;
  --text-muted:    #94a3b8;
  /* Surfaces — three levels of depth for visual hierarchy */
  --bg:            #0b1a20;   /* page bg (deepest) */
  --white:         #15242c;   /* card / panel surface */
  --border:        #2c3e4a;   /* visible but soft */
  /* Always-dark surfaces (hero, footer, badges) — even deeper for contrast */
  --surface-deep:  #050d12;
  --surface-deep2: #0a1419;
  /* Shadows — softer in dark mode (the depth comes from contrast, not blur) */
  --shadow:        0 1px 2px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.02);
  --shadow-md:     0 4px 14px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03);
  --shadow-lg:     0 16px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
}
/* Page surfaces */
[data-theme="dark"] body { background: var(--bg); color: var(--text); }

/* Header & nav — slightly elevated above body */
[data-theme="dark"] .header { background: #142229; border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(255,255,255,.03); }
[data-theme="dark"] .topbar { background: var(--surface-deep); color: rgba(255,255,255,.7); border-bottom: 1px solid rgba(255,255,255,.05); }
[data-theme="dark"] .nav-categories { background: var(--surface-deep); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 3px solid var(--primary); }
[data-theme="dark"] .nav-link { color: #cbd5e1; }
[data-theme="dark"] .nav-link:hover { background: rgba(250,186,0,.1); color: var(--primary); }
[data-theme="dark"] .nav-link.active { color: var(--primary); background: rgba(250,186,0,.08); }

/* Search */
[data-theme="dark"] .search-input { background: #1e2e38; color: var(--text); border-color: var(--border); }
[data-theme="dark"] .search-input::placeholder { color: #64748b; }
[data-theme="dark"] .search-input:focus { border-color: var(--primary); background: #21323c; }
[data-theme="dark"] .search-btn { background: var(--primary); color: var(--surface-deep); }
[data-theme="dark"] .search-btn:hover { background: #ffd23f; }

/* Header tools */
[data-theme="dark"] .header-tool-select { background: #1e2e38; color: var(--text); border-color: var(--border); }
[data-theme="dark"] .header-tool-select:hover { border-color: var(--primary); }
[data-theme="dark"] .header-account__btn { background: #1e2e38; color: var(--text); border: 1px solid var(--border); }
[data-theme="dark"] .header-account__btn:hover { border-color: var(--primary); }
[data-theme="dark"] .header-account__dropdown { background: #1a2a32; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
[data-theme="dark"] .account-dropdown__link { color: var(--text); }
[data-theme="dark"] .account-dropdown__link:hover { background: rgba(250,186,0,.08); color: var(--primary); }
[data-theme="dark"] .header-login-btn { color: var(--text); background: #1e2e38; border: 1px solid var(--border); }
[data-theme="dark"] .header-login-btn:hover { background: var(--primary); color: var(--surface-deep); border-color: var(--primary); }

/* Hero & section banners */
[data-theme="dark"] .hero { background: linear-gradient(135deg, var(--surface-deep) 0%, #02080c 100%); border-bottom: 1px solid rgba(250,186,0,.15); color: #f8fafc; }
[data-theme="dark"] .hero__title { color: #f8fafc; }
[data-theme="dark"] .hero__title span { color: var(--primary); }
[data-theme="dark"] .hero__subtitle { color: #cbd5e1; opacity: 1; }
[data-theme="dark"] .hero__tag { background: rgba(250,186,0,.12); color: var(--primary); border-color: rgba(250,186,0,.3); }
[data-theme="dark"] .hero__actions .btn--primary { background: var(--primary); color: var(--surface-deep); }
[data-theme="dark"] .hero__actions .btn--primary:hover { background: #ffd23f; }
[data-theme="dark"] .hero__actions .btn--outline { color: #f8fafc; border-color: rgba(255,255,255,.4); }
[data-theme="dark"] .hero__actions .btn--outline:hover { background: rgba(250,186,0,.12); border-color: var(--primary); color: var(--primary); }

[data-theme="dark"] .contact-hero, [data-theme="dark"] .aide-hero { background: linear-gradient(180deg, var(--surface-deep), var(--surface-deep2)); border-bottom: 3px solid var(--primary); color: #f8fafc; }
[data-theme="dark"] .contact-hero h1, [data-theme="dark"] .aide-hero h1, [data-theme="dark"] .contact-hero h2, [data-theme="dark"] .aide-hero h2 { color: #f8fafc; }
[data-theme="dark"] .contact-hero p, [data-theme="dark"] .aide-hero p { color: #cbd5e1; }
[data-theme="dark"] .section--alt { background: #0e1c23; }

/* Cards — better elevation */
[data-theme="dark"] .product-card, [data-theme="dark"] .card { background: var(--white); border: 1px solid var(--border); }
[data-theme="dark"] .product-card:hover { border-color: var(--primary); box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(250,186,0,.2); transform: translateY(-5px); }
[data-theme="dark"] .product-card__img-link { background: #0d1c23; }
[data-theme="dark"] .product-card__img { background: #f5f7f9; } /* keep image bg light for visibility of products */
[data-theme="dark"] .product-card__name a { color: var(--text); }
[data-theme="dark"] .product-card__name a:hover { color: var(--primary); }
[data-theme="dark"] .product-card__desc { color: var(--text-light); }

/* Footer */
[data-theme="dark"] .footer { background: var(--surface-deep); color: rgba(255,255,255,.75); border-top: 1px solid var(--border); }
[data-theme="dark"] .footer__newsletter { background: #08151a; border-bottom: 1px solid rgba(255,255,255,.05); }
[data-theme="dark"] .footer__newsletter-text h3 { color: #f8fafc; }
[data-theme="dark"] .footer__newsletter-text p { color: rgba(255,255,255,.65); }
[data-theme="dark"] .footer__newsletter-input { background: rgba(255,255,255,.06); color: #f8fafc; border-color: rgba(255,255,255,.18); }
[data-theme="dark"] .footer__newsletter-input::placeholder { color: rgba(255,255,255,.4); }
[data-theme="dark"] .footer__newsletter-input:focus { border-color: var(--primary); background: rgba(255,255,255,.09); }
[data-theme="dark"] .footer__newsletter-btn { background: var(--primary); color: var(--surface-deep); }
[data-theme="dark"] .footer__newsletter-btn:hover { background: #ffd23f; }
[data-theme="dark"] .footer__social-btn { background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
[data-theme="dark"] .footer__social-btn:hover { background: var(--primary); color: var(--surface-deep); }

/* Form controls */
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select { background: #1e2e38; color: var(--text); border-color: var(--border); }
[data-theme="dark"] input::placeholder, [data-theme="dark"] textarea::placeholder { color: #64748b; }
[data-theme="dark"] input:focus, [data-theme="dark"] textarea:focus, [data-theme="dark"] select:focus { border-color: var(--primary); background: #21323c; }
[data-theme="dark"] .form-input, [data-theme="dark"] .form-control { background: #1e2e38; color: var(--text); border-color: var(--border); }
[data-theme="dark"] .form-input:focus { border-color: var(--primary); }

/* Tables */
[data-theme="dark"] table { color: var(--text); }
[data-theme="dark"] .orders-table { border-radius: var(--radius); overflow: hidden; }
[data-theme="dark"] .orders-table thead th { background: var(--surface-deep); color: rgba(255,255,255,.85); border-bottom: 1px solid var(--border); }
[data-theme="dark"] .orders-table tbody tr { border-bottom: 1px solid var(--border); }
[data-theme="dark"] .orders-table tbody tr:nth-child(even) { background: #182832; }
[data-theme="dark"] .orders-table tbody tr:hover { background: #1e3140; }

/* Badges & pills */
[data-theme="dark"] .product-badge--new { background: var(--primary); color: var(--surface-deep); }
[data-theme="dark"] .config-pill.active { background: var(--primary); color: var(--surface-deep); border-color: var(--primary); }
[data-theme="dark"] .delivery-slot { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .delivery-slot:hover { border-color: var(--primary); }
[data-theme="dark"] .delivery-slot.selected { background: var(--primary); border-color: var(--primary); color: var(--surface-deep); }

/* Other surfaces */
[data-theme="dark"] .demo-banner { background: linear-gradient(90deg, #e85612 0%, #c2410c 100%); color: #fff; border-bottom: 1px solid rgba(0,0,0,.4); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset; font-weight: 600; }
[data-theme="dark"] .demo-banner strong { color: var(--primary); }

/* ── Logo light/dark variants ─────────────────────────────────────────────── */
.logo-img.logo-img--dark { display: none; }
[data-theme="dark"] .logo-img.logo-img--light { display: none; }
[data-theme="dark"] .logo-img.logo-img--dark  { display: block; }
[data-theme="dark"] .logo-text { color: var(--text); }
[data-theme="dark"] .logo-divider { background: rgba(255,255,255,.18); }
[data-theme="dark"] .toast { background: #1a2a32; color: var(--text); border: 1px solid var(--border); }
[data-theme="dark"] .review-toast { background: #1a2a32; color: var(--text); border: 1px solid var(--border); }
[data-theme="dark"] code, [data-theme="dark"] .code-inline { background: var(--surface-deep); color: var(--primary); }
[data-theme="dark"] hr { border-color: var(--border); }
[data-theme="dark"] .cookie-banner { background: var(--white); color: var(--text); border-top: 1px solid var(--border); }

/* API docs page */
[data-theme="dark"] .endpoint { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .endpoint__bar { background: linear-gradient(180deg, #1a2a32, #15242c); border-bottom-color: var(--border); }
[data-theme="dark"] .endpoint__url-preview { background: var(--surface-deep); color: var(--primary); }
[data-theme="dark"] .param-row { background: #0f1c22; border: 1px solid var(--border); }
[data-theme="dark"] .param-row__input { background: #1e2e38; color: var(--text); border-color: var(--border); }
[data-theme="dark"] .endpoint__body-editor { background: var(--surface-deep); border: 1px solid var(--border); }
[data-theme="dark"] .apidoc-sidebar, [data-theme="dark"] .apidoc-overview__card { background: #0f1c22; border-color: var(--border); }
[data-theme="dark"] .apidoc-sidebar a { color: var(--text); }
[data-theme="dark"] .apidoc-sidebar a:hover { background: rgba(250,186,0,.08); color: var(--primary); }
[data-theme="dark"] .apidoc-sidebar a.is-active { background: var(--primary); color: var(--surface-deep); }
[data-theme="dark"] .errors-table tr:nth-child(even) td { background: #182832; }
[data-theme="dark"] .errors-table thead th { background: var(--surface-deep); }
[data-theme="dark"] .response-body { background: var(--surface-deep); }

/* Admin order controls */
[data-theme="dark"] .order-status-select { background: #1e2e38; color: var(--text); border-color: var(--border); }
[data-theme="dark"] .btn-order-cancel { background: rgba(217, 119, 6, .15); color: #fcd34d; border-color: rgba(217, 119, 6, .3); }
[data-theme="dark"] .btn-order-delete { background: rgba(220, 38, 38, .15); color: #fca5a5; border-color: rgba(220, 38, 38, .3); }

/* Pagination */
[data-theme="dark"] .orders-pagination__btn, [data-theme="dark"] .orders-pagination__page { background: var(--white); color: var(--text); border-color: var(--border); }
[data-theme="dark"] .orders-pagination__btn:hover:not(:disabled), [data-theme="dark"] .orders-pagination__page:hover { border-color: var(--primary); background: #1e2e38; }
[data-theme="dark"] .orders-pagination__page.is-active { background: var(--primary); color: var(--surface-deep); border-color: var(--primary); }
[data-theme="dark"] .page-btn.active { background: var(--primary); color: var(--surface-deep); border-color: var(--primary); }
[data-theme="dark"] .promo-carousel__dot.is-active { background: var(--primary); border-color: var(--primary); }

/* Buttons & misc */
[data-theme="dark"] .btn--outline { color: var(--text); border-color: var(--border); background: transparent; }
[data-theme="dark"] .btn--outline:hover { border-color: var(--primary); background: rgba(250,186,0,.08); color: var(--primary); }
[data-theme="dark"] .btn-reset, [data-theme="dark"] .btn-copy-curl { background: #1e2e38; color: var(--text); border-color: var(--border); }
[data-theme="dark"] .btn-reset:hover, [data-theme="dark"] .btn-copy-curl:hover { border-color: var(--primary); color: var(--primary); }
[data-theme="dark"] .breadcrumb { color: var(--text-muted); }
[data-theme="dark"] .breadcrumb a { color: var(--text-light); }
[data-theme="dark"] .breadcrumb a:hover { color: var(--primary); }
[data-theme="dark"] .account-sidebar__avatar { background: var(--primary); color: var(--surface-deep); }
[data-theme="dark"] .footer__contact a { color: rgba(255,255,255,.75); }
[data-theme="dark"] .footer__contact a:hover { color: var(--primary); }
[data-theme="dark"] .footer__links a { color: rgba(255,255,255,.7); }
[data-theme="dark"] .footer__links a:hover { color: var(--primary); }
[data-theme="dark"] .footer__heading { color: rgba(255,255,255,.95); }

/* Light theme — small refinements */
.product-card { border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.product-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.12); transform: translateY(-5px); border-color: var(--primary); }

/* Theme toggle button */
.header-theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--white); color: var(--navy); cursor: pointer; font-size: 16px; transition: all .25s ease; padding: 0; }
.header-theme-toggle:hover { border-color: var(--primary); background: var(--primary); transform: rotate(20deg) scale(1.08); }
[data-theme="dark"] .header-theme-toggle { background: #1e2e38; }
[data-theme="dark"] .header-theme-toggle:hover { background: var(--primary); border-color: var(--primary); }

/* Smooth color transitions */
body, .header, .footer, .nav-categories, .product-card, .endpoint, .apidoc-sidebar, .orders-table, input, textarea, select { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }

/* ── Accessibility: focus visible + skip-to-content ───────────────────────── */
.skip-to-content { position: absolute; top: -100px; left: 12px; background: var(--primary); color: var(--navy); padding: 10px 18px; border-radius: 6px; font-weight: 700; z-index: 99999; text-decoration: none; transition: top .2s ease; }
.skip-to-content:focus { top: 12px; outline: 3px solid var(--navy); }
*:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
[data-theme="dark"] *:focus-visible { outline-color: var(--primary); box-shadow: 0 0 0 4px rgba(250,186,0,.18); }
.header-theme-toggle:focus-visible { outline-offset: 3px; }

/* Disable smooth transitions on theme toggle (avoids flash during animation) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Admin stats dashboard ────────────────────────────────────────────────── */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-stats__card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.admin-stats__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.admin-stats__card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--primary); }
.admin-stats__icon { font-size: 22px; margin-bottom: 6px; }
.admin-stats__label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-light); margin-bottom: 4px; }
.admin-stats__value { font-size: 1.45rem; font-weight: 800; color: var(--navy); font-family: var(--font-mono); line-height: 1.1; }
.admin-stats__sub { font-size: .78rem; color: var(--text-light); margin-top: 4px; }
[data-theme="dark"] .admin-stats__card { background: var(--white); }

.admin-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
@media (max-width: 800px) { .admin-breakdown { grid-template-columns: 1fr; } }
.admin-breakdown__card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; }
.admin-breakdown__title { font-size: .85rem; font-weight: 700; color: var(--navy); margin: 0 0 12px; text-transform: uppercase; letter-spacing: .04em; }
.admin-breakdown__bars { display: flex; flex-direction: column; gap: 10px; }
.status-bar-row { display: grid; grid-template-columns: 120px 1fr 90px; gap: 10px; align-items: center; font-size: .85rem; }
.status-bar-row__label { color: var(--text); font-weight: 500; }
.status-bar-row__bar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.status-bar-row__bar span { display: block; height: 100%; border-radius: 4px; transition: width .4s ease; }
.status-bar-row__count { font-family: var(--font-mono); font-weight: 700; color: var(--navy); text-align: right; font-size: .82rem; }
.status-bar-row__count small { color: var(--text-light); font-weight: 500; }
[data-theme="dark"] .status-bar-row__bar { background: #0f1c22; }

.admin-breakdown__top { list-style: none; padding: 0; margin: 0; }
.admin-breakdown__top li { display: grid; grid-template-columns: 32px 1fr 60px 80px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.admin-breakdown__top li:last-child { border-bottom: none; }
.top-rank { font-family: var(--font-mono); font-weight: 800; color: var(--primary); font-size: .9rem; }
.top-name { font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-units { font-size: .78rem; color: var(--text-light); text-align: right; }
.top-revenue { font-family: var(--font-mono); font-weight: 700; color: var(--navy); text-align: right; font-size: .82rem; }

.admin-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }

/* Monthly chart */
.admin-chart-card { margin-bottom: 14px; padding: 16px 18px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); }
.monthly-chart { width: 100%; padding-top: 8px; }
.monthly-chart .bar-group rect { transition: opacity .15s ease; cursor: pointer; }
.monthly-chart .bar-group:hover rect { opacity: 1; }

/* Audit log */
.admin-audit-wrapper { margin-bottom: 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.admin-audit-summary { padding: 12px 18px; font-weight: 700; color: var(--navy); cursor: pointer; font-size: .9rem; user-select: none; list-style: none; }
.admin-audit-summary::-webkit-details-marker { display: none; }
.admin-audit-summary::before { content: '▶'; display: inline-block; margin-right: 8px; font-size: .7rem; transition: transform .2s ease; }
details[open] .admin-audit-summary::before { transform: rotate(90deg); }
.admin-audit-summary:hover { background: var(--bg); }
.admin-audit-card { padding: 0 18px 16px; max-height: 320px; overflow-y: auto; }
.audit-log { list-style: none; padding: 0; margin: 0; }
.audit-row { display: grid; grid-template-columns: 24px 110px 100px 1fr 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .82rem; color: var(--text); }
.audit-row:last-child { border-bottom: none; }
.audit-row__icon { font-size: 14px; }
.audit-row__when { font-family: var(--font-mono); font-size: .76rem; color: var(--text-light); }
.audit-row__actor { font-size: .82rem; color: var(--navy); }
.audit-row__action { color: var(--text-light); text-transform: capitalize; }
.audit-row__target code { background: var(--bg); padding: 1px 6px; border-radius: 3px; font-size: .76rem; color: var(--primary); }
.audit-row__detail { color: var(--text-light); font-size: .74rem; font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .audit-row { grid-template-columns: 24px 1fr; gap: 6px; } .audit-row > *:not(:first-child):not(:nth-child(2)) { grid-column: 2; } }
[data-theme="dark"] .admin-audit-summary:hover { background: #0f1c22; }
[data-theme="dark"] .audit-row__target code { background: var(--surface-deep); }

/* Modal edit form */
.modal-edit-form { background: var(--bg); border: 1.5px dashed var(--primary); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
[data-theme="dark"] .modal-edit-form { background: #0f1c22; }
.modal-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
@media (max-width: 600px) { .modal-edit-grid { grid-template-columns: 1fr; } }
.modal-edit-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--text-light); font-weight: 600; }
.modal-edit-grid input, .modal-edit-grid select { padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 5px; font-size: .88rem; background: var(--white); color: var(--text); }
.modal-edit-grid input:focus, .modal-edit-grid select:focus { outline: none; border-color: var(--primary); }
.modal-edit-actions { display: flex; gap: 10px; }

/* ── Admin order detail modal ─────────────────────────────────────────────── */
.admin-modal-overlay { position: fixed; inset: 0; background: rgba(13, 30, 36, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 9990; display: flex; align-items: flex-start; justify-content: center; padding: 32px 20px; opacity: 1; pointer-events: all; overflow-y: auto; }
.admin-modal-overlay[hidden] { display: none; }
.admin-modal { background: var(--white); border-radius: var(--radius-lg); max-width: 720px; width: 100%; padding: 28px; position: relative; box-shadow: 0 25px 60px rgba(0,0,0,.4); animation: adminModalIn .25s cubic-bezier(.16,1,.3,1); transform: none; margin: 0 0 32px; flex-shrink: 0; }
@keyframes adminModalIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.admin-modal__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: none; background: var(--bg); color: var(--text); border-radius: 50%; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.admin-modal__close:hover { background: var(--danger-light); color: var(--danger); }
.admin-modal__title { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 0 0 18px; padding-right: 40px; }
.admin-modal__loading { padding: 40px; text-align: center; color: var(--text-light); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-bottom: 20px; padding: 18px; background: var(--bg); border-radius: var(--radius); }
@media (max-width: 600px) { .modal-grid { grid-template-columns: 1fr; } }
.modal-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-light); margin-bottom: 4px; }
.modal-value { font-size: 1rem; font-weight: 600; color: var(--navy); }
.modal-sub { font-size: .82rem; color: var(--text-light); }
.modal-section-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-light); margin: 8px 0 10px; }
.modal-items { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 18px; }
.modal-items th { background: var(--navy); color: #fff; padding: 8px 12px; text-align: left; font-size: .74rem; font-weight: 600; }
.modal-items td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.modal-items tr:nth-child(even) td { background: var(--bg); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
[data-theme="dark"] .admin-modal { background: #1a2a32; }
[data-theme="dark"] .admin-modal__close { background: #0f1c22; color: var(--text); }
[data-theme="dark"] .modal-grid { background: #0f1c22; }
[data-theme="dark"] .modal-items th { background: var(--surface-deep); }
[data-theme="dark"] .modal-items tr:nth-child(even) td { background: #18272f; }

/* ── Admin bulk action toolbar ────────────────────────────────────────────── */
.bulk-toolbar { display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg, rgba(250,186,0,.12), rgba(250,186,0,.04)); border: 1.5px solid var(--primary); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; flex-wrap: wrap; animation: bulkSlide .25s ease; }
@keyframes bulkSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.bulk-toolbar__count { font-size: .9rem; color: var(--navy); }
.bulk-toolbar__count strong { color: var(--primary); font-family: var(--font-mono); font-weight: 800; font-size: 1rem; }
[data-theme="dark"] .bulk-toolbar { background: linear-gradient(90deg, rgba(250,186,0,.15), rgba(250,186,0,.04)); }
.agt-order-check { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
#agt-orders-check-all { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }

/* ── Dark mode polish for remaining pages ─────────────────────────────────── */
/* Cookie banner buttons */
[data-theme="dark"] .cookie-banner__actions button,
[data-theme="dark"] .cookie-banner button { background: var(--primary); color: var(--surface-deep); border: none; }
[data-theme="dark"] .cookie-banner button[id*="refuse"], [data-theme="dark"] .cookie-banner button.cookie-banner__refuse { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
[data-theme="dark"] .cookie-banner a { color: var(--primary); }

/* Login page */
[data-theme="dark"] .login-page, [data-theme="dark"] .login-form { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .login-demo-accounts, [data-theme="dark"] .demo-account { background: #0f1c22; border-color: var(--border); color: var(--text); }

/* Product page */
[data-theme="dark"] .product-detail, [data-theme="dark"] .product-gallery, [data-theme="dark"] .product-info { background: transparent; }
[data-theme="dark"] .product-tabs__nav button { color: var(--text-light); }
[data-theme="dark"] .product-tabs__nav button.active { color: var(--primary); border-bottom-color: var(--primary); }
[data-theme="dark"] .specs-list li, [data-theme="dark"] .product-specs li { border-bottom-color: var(--border); }
[data-theme="dark"] .review-card, [data-theme="dark"] .review { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .product-detail__image, [data-theme="dark"] .product-gallery__main { background: #f5f7f9; border-radius: var(--radius); }

/* Cart page */
[data-theme="dark"] .cart-table thead th, [data-theme="dark"] .cart__summary { background: var(--white); }
[data-theme="dark"] .cart-item { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .coupon-card { background: #0f1c22; border-color: var(--border); }
[data-theme="dark"] .coupon-card:hover { border-color: var(--primary); background: #1a2a32; }
[data-theme="dark"] .coupon-card--active { background: var(--primary); color: var(--surface-deep); border-color: var(--primary); }
[data-theme="dark"] .coupon-card__code { color: inherit; }

/* Checkout pages */
[data-theme="dark"] .checkout-step, [data-theme="dark"] .checkout-summary { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .checkout-summary__row { border-bottom-color: var(--border); }
[data-theme="dark"] .payment-methods label { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .payment-methods label:hover, [data-theme="dark"] .payment-methods input:checked + * { border-color: var(--primary); }

/* Contact page */
[data-theme="dark"] .contact-form { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .contact-info-card { background: var(--white); border-color: var(--border); }

/* Aide/FAQ page */
[data-theme="dark"] .faq-item, [data-theme="dark"] .faq-question { background: var(--white); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .faq-question:hover { background: #1a2a32; }
[data-theme="dark"] .faq-answer { background: #0f1c22; color: var(--text-light); }

/* 404 page */
[data-theme="dark"] .not-found__code { color: rgba(250,186,0,.15); }
[data-theme="dark"] .not-found__title { color: var(--text); }
[data-theme="dark"] .not-found__desc { color: var(--text-light); }

/* Order confirmation */
[data-theme="dark"] .order-confirmation { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .order-confirmation__header { background: linear-gradient(135deg, var(--surface-deep), var(--surface-deep2)); }

/* Mon-compte profile/security/documents sections */
[data-theme="dark"] .account-section { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .account-section__header { background: linear-gradient(180deg, #1a2a32, var(--white)); border-bottom-color: var(--border); }
[data-theme="dark"] .account-field__value { color: var(--text); }
[data-theme="dark"] .account-sidebar { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .account-nav-link { color: var(--text); }
[data-theme="dark"] .account-nav-link:hover { background: #1a2a32; color: var(--primary); }
[data-theme="dark"] .account-nav-link--active { background: rgba(250,186,0,.1); color: var(--primary); }
[data-theme="dark"] .file-upload-zone { background: #0f1c22; border-color: var(--border); }
[data-theme="dark"] .file-upload-zone:hover { border-color: var(--primary); }
[data-theme="dark"] .file-upload-preview { background: #0f1c22; }

/* Search results */
[data-theme="dark"] .search-suggestions, [data-theme="dark"] .search-suggestion-item { background: var(--white); color: var(--text); border-color: var(--border); }
[data-theme="dark"] .search-suggestion-item:hover, [data-theme="dark"] .search-suggestion-item.is-focused { background: #1a2a32; }
[data-theme="dark"] .search-suggestion-item__brand { color: var(--text-light); }
[data-theme="dark"] .search-suggestions__header, [data-theme="dark"] .search-suggestions__footer { background: #0f1c22; color: var(--text-light); }
[data-theme="dark"] mark { background: rgba(250,186,0,.25); color: var(--primary); }

/* Order tracking page */
[data-theme="dark"] #agt-tracking-form { background: var(--white); border-color: var(--border); }
[data-theme="dark"] #agt-tracking-form input { background: #1e2e38; color: var(--text); border-color: var(--border); }
[data-theme="dark"] #agt-tracking-result { background: var(--white); border-color: var(--primary); }

.btn-order-view { background: rgba(37, 99, 235, .1); color: #1d4ed8; border: 1.5px solid #93c5fd; border-radius: 6px; cursor: pointer; padding: 5px 9px; font-size: 13px; line-height: 1; margin: 0 2px; transition: all .15s ease; }
.btn-order-view:hover { background: #bfdbfe; border-color: #2563eb; }
[data-theme="dark"] .btn-order-view { background: rgba(59, 130, 246, .15); color: #93c5fd; border-color: rgba(59, 130, 246, .3); }

/* ── Responsive admin table (cards below 900px) ───────────────────────────── */
@media (max-width: 900px) {
  .orders-table thead { display: none; }
  .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display: block; width: 100%; }
  .orders-table tr { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; padding: 12px 14px; }
  [data-theme="dark"] .orders-table tr { background: var(--white); }
  .orders-table td { padding: 6px 0; border: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .orders-table td::before { content: attr(data-label); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-light); flex-shrink: 0; }
  .orders-table td[data-label="Actions"] { justify-content: flex-end; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 6px; }
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; font-size: 15px; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-mono); }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--primary); text-decoration: none; }

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

/* ── Container ─────────────────────────────────────────────────────────────── */
.container         { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 960px;  margin: 0 auto; padding: 0 20px; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-mono); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all var(--transition); white-space: nowrap; text-decoration: none;
  letter-spacing: .2px;
}
/* Or doré : texte sombre pour lisibilité (WCAG AA) */
.btn--primary       { background: var(--primary); color: var(--text); }
.btn--primary:hover { background: var(--primary-dark); color: var(--text); text-decoration: none; }
.btn--outline       { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--primary-light); border-color: var(--primary); color: var(--text); text-decoration: none; }
.btn--danger        { background: var(--danger); color: var(--white); }
.btn--danger:hover  { background: #b71c1c; }
.btn--disabled      { background: var(--border); color: var(--text-muted); cursor: not-allowed; }
.btn--sm  { padding: 6px 14px; font-size: 13px; }
.btn--lg  { padding: 13px 28px; font-size: 15px; border-radius: var(--radius-lg); }
.btn--full { width: 100%; }

/* ── Demo banner ───────────────────────────────────────────────────────────── */
.demo-banner { background: #dc2626; color: #ffffff; font-size: 11px; font-family: var(--font-mono); font-weight: 500; padding: 5px 0; }
.demo-banner__inner { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; flex-wrap: wrap; }
.demo-banner__icon { font-size: 13px; flex-shrink: 0; }
.demo-banner strong { font-weight: 800; }

/* ── Topbar ────────────────────────────────────────────────────────────────── */
.topbar { background: var(--navy); color: rgba(255,255,255,.85); font-size: 12.5px; padding: 8px 0; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.header { background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,.08); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header__inner { display: flex; align-items: center; gap: 20px; padding: 12px 20px; }

.header__logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.header__logo:hover { text-decoration: none; }
.logo-img { height: 52px; width: auto; display: block; object-fit: contain; }
.logo-divider { display: block; width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }
.logo-text { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; }
.footer__logo-img { height: 38px; width: auto; object-fit: contain; margin-bottom: 6px; filter: brightness(0) invert(1); }

.header__search { margin-left: auto; display: flex; width: 380px; flex-shrink: 0; }
.search-input {
  flex: 1; padding: 9px 14px; border: 2px solid var(--border); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius); font-family: var(--font);
  font-size: 14px; outline: none; transition: border-color var(--transition);
  background: var(--white); color: var(--text);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--navy); }
.search-btn {
  padding: 9px 16px; background: var(--navy); color: var(--white); border: none;
  border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer;
  display: flex; align-items: center; transition: background var(--transition);
}
.search-btn:hover { background: var(--navy-dark); }

/* Header tools (lang, currency, auth) */
.header__tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-tool-select {
  appearance: none; -webkit-appearance: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 10px; font-size: 12px; font-family: var(--font-mono); font-weight: 600;
  color: var(--text); cursor: pointer; outline: none; transition: all var(--transition);
}
.header-tool-select:hover { border-color: var(--navy); }
.header-tool-select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(250,186,0,.2); }

.header-login-btn {
  display: flex; align-items: center; gap: 6px; padding: 7px 14px;
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  font-size: 13px; font-weight: 600; font-family: var(--font-mono); text-decoration: none;
  transition: background var(--transition); white-space: nowrap;
}
.header-login-btn:hover { background: var(--navy-dark); color: var(--white); text-decoration: none; }

/* Account dropdown */
.header-account { position: relative; }
.header-account__btn {
  display: flex; align-items: center; gap: 7px; padding: 6px 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; font-weight: 600; font-family: var(--font-mono); cursor: pointer;
  transition: all var(--transition); color: var(--text);
}
.header-account__btn:hover { border-color: var(--navy); background: var(--white); }
.header-account__btn[aria-expanded="true"] { border-color: var(--primary); }
.header-account__avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--navy);
  color: var(--white); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.header-account__name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-account__dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); min-width: 180px; z-index: 200;
  overflow: hidden;
}
.account-dropdown__info { padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg); }
.account-dropdown__fullname { font-weight: 700; font-size: 13px; color: var(--text); font-family: var(--font-mono); }
.account-dropdown__role { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.account-dropdown__link {
  display: block; padding: 10px 16px; font-size: 13px; font-weight: 500; color: var(--text);
  text-decoration: none; transition: background var(--transition);
}
.account-dropdown__link:hover { background: var(--bg); color: var(--navy); text-decoration: none; }
.account-dropdown__link--danger { color: var(--danger); }
.account-dropdown__link--danger:hover { background: var(--danger-light); color: var(--danger); }

.header__cart { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex-shrink: 0; padding: 6px 8px; border-radius: var(--radius); transition: color var(--transition), background var(--transition); }
.header__cart:hover { color: var(--primary); background: rgba(0,0,0,.05); text-decoration: none; }
.cart-icon { position: relative; }
.cart-badge {
  position: absolute; top: -8px; right: -10px;
  background: var(--primary); color: var(--text);
  font-size: 11px; font-weight: 800; border-radius: 50%;
  min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; font-family: var(--font-mono);
}
.cart-info { display: flex; flex-direction: column; }
.cart-label { font-size: 11px; color: var(--text-muted); }
.cart-total { font-size: 15px; font-weight: 700; font-family: var(--font-mono); color: var(--text); }

/* ── Nav categories ────────────────────────────────────────────────────────── */
.nav-categories { background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,.07); border-bottom: 3px solid var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,.22); position: sticky; top: 80px; z-index: 99; }
.nav-list { display: flex; flex-wrap: wrap; list-style: none; justify-content: center; }
.nav-item { flex-shrink: 0; }
.nav-link {
  display: flex; align-items: center; gap: 5px; padding: 20px 6px; color: rgba(255,255,255,.72); font-size: 14.5px;
  font-weight: 600; white-space: nowrap; transition: all var(--transition); letter-spacing: 0.2px;
}
.nav-link:hover { background: rgba(250,186,0,.1); color: var(--primary); text-decoration: none; }
.nav-link.active { color: var(--primary); background: rgba(250,186,0,.12); box-shadow: inset 0 -3px 0 var(--primary); }
.nav-link--game { color: var(--primary); }
.nav-link--game:hover { background: rgba(250,186,0,.15); color: var(--primary); }

/* ── Main ──────────────────────────────────────────────────────────────────── */
@keyframes fadeInPage { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.main { min-height: calc(100vh - 200px); padding-bottom: 40px; animation: fadeInPage .28s ease forwards; }

/* ── Toast ─────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--navy); color: var(--white);
  padding: 12px 20px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500;
  transform: translateY(80px); opacity: 0; transition: all .3s ease;
  max-width: 320px; font-family: var(--font-mono);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast--success { background: var(--success); }
.toast--error   { background: var(--danger); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white); padding: 64px 0; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero__tag {
  display: inline-block; background: var(--primary); color: var(--text);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; padding: 4px 10px;
  border-radius: 3px; margin-bottom: 20px;
}
.hero__title { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero__title span { color: var(--primary); }
.hero__subtitle { font-size: 1.05rem; opacity: .85; margin-bottom: 32px; line-height: 1.65; font-family: var(--font); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__actions .btn--primary { background: var(--primary); color: var(--text); }
.hero__actions .btn--primary:hover { background: var(--primary-dark); }
.hero__actions .btn--outline { border-color: rgba(255,255,255,.5); color: var(--white); }
.hero__actions .btn--outline:hover { background: rgba(250,186,0,.15); border-color: var(--primary); color: var(--primary); }
.hero__visual { display: flex; justify-content: center; }
.hero__illustration {
  width: 360px; height: 340px; max-width: 100%;
  filter: drop-shadow(0 8px 32px rgba(250,186,0,0.18));
}

/* ── Sections ──────────────────────────────────────────────────────────────── */
.section { padding: 48px 0; }
.section--alt { background: var(--white); }
.section__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section__title { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; color: var(--text); }
.section__link { font-size: 13px; font-weight: 600; color: var(--navy); font-family: var(--font-mono); }
.section__link:hover { color: var(--primary); }

/* ── Category grid ─────────────────────────────────────────────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.category-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px; background: var(--white); border: 2px solid var(--border);
  border-radius: var(--radius-lg); text-align: center; text-decoration: none; color: var(--text);
  transition: all var(--transition); cursor: pointer;
}
.category-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.category-card__icon { font-size: 32px; }
.category-card__name { font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.category-card__count { font-size: 11px; color: var(--text-muted); }

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

/* ── Product card ──────────────────────────────────────────────────────────── */
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: 0 14px 36px rgba(0,0,0,.15); transform: translateY(-5px); border-color: var(--primary); }
.product-card__img-link { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f0f4f8; }
.product-card__img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .3s ease; background: #fff; }
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
}
.product-card__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__brand { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); font-weight: 600; }
.product-card__name { font-family: var(--font-mono); font-size: 13px; font-weight: 700; line-height: 1.4; }
.product-card__name a { color: var(--text); }
.product-card__name a:hover { color: var(--navy); }
.product-card__desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; flex: 1; font-family: var(--font); }
.product-card__footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }

/* ── Prices ────────────────────────────────────────────────────────────────── */
.price-current { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--accent); }
.price-current--lg { font-size: 26px; }
.price-old { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); text-decoration: line-through; margin-left: 4px; }
.price-discount { font-family: var(--font-mono); font-size: 12px; background: var(--danger); color: var(--white); padding: 2px 6px; border-radius: 4px; font-weight: 700; margin-left: 4px; }
.product-card__price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.product-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 4px; font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
}
.product-badge--new        { background: var(--navy); color: var(--white); }
.product-badge--promo      { background: var(--accent); color: var(--white); }
.product-badge--bestseller { background: var(--primary); color: var(--text); }
.product-badge--lg { position: static; font-size: 12px; padding: 5px 12px; margin-bottom: 10px; display: inline-block; border-radius: 4px; }

/* ── Promo banner ──────────────────────────────────────────────────────────── */
.promo-banner { background: var(--primary-light); border-top: 2px solid rgba(250,186,0,.3); border-bottom: 2px solid rgba(250,186,0,.3); padding: 24px 0; }
.promo-banner__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promo-banner__item { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.promo-banner__icon { font-size: 28px; flex-shrink: 0; }
.promo-banner__item div { display: flex; flex-direction: column; }
.promo-banner__item strong { font-family: var(--font-mono); font-weight: 700; color: var(--text); font-size: 13px; }
.promo-banner__item span  { color: var(--text-muted); font-size: 12px; }

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); padding: 16px 0 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb__sep { color: var(--border); }

/* ── Page layout (category) ────────────────────────────────────────────────── */
.page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin-top: 8px; }
.page-title { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.sidebar__block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 16px; }
.sidebar__title { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; }
.sidebar__links { list-style: none; }
.sidebar__link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; border-radius: var(--radius); font-size: 13px; color: var(--text);
  transition: all var(--transition); text-decoration: none;
}
.sidebar__link:hover { background: var(--primary-light); color: var(--navy); text-decoration: none; }
.sidebar__link.is-active { background: var(--primary-light); color: var(--navy); font-weight: 700; border-left: 3px solid var(--primary); padding-left: 7px; }
.sidebar__count { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); background: var(--bg); padding: 1px 6px; border-radius: 20px; }

.price-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.price-filter__field label { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.price-filter__field input { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; }
.price-filter__field input:focus { outline: none; border-color: var(--primary); }

/* ── Products area ─────────────────────────────────────────────────────────── */
.products-area__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.products-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.sort-select { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-mono); font-size: 12px; background: var(--white); cursor: pointer; }

/* ── Empty state ───────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state__icon { font-size: 56px; margin-bottom: 16px; }
.empty-state__text { font-size: 16px; color: var(--text-muted); margin-bottom: 8px; }
.empty-state__hint { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.search-results-count { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.search-hint { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }

/* ── Product detail ────────────────────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 24px 0 40px; background: var(--white); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border); }
.product-detail__gallery { }
.product-detail__main-img { aspect-ratio: 4/3; background: #f8f9fa; border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.product-detail__main-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-detail__thumbs { display: flex; gap: 8px; }
.product-detail__thumb { width: 72px; height: 54px; object-fit: contain; padding: 4px; border-radius: var(--radius); cursor: pointer; border: 2px solid var(--border); transition: border-color var(--transition); background: var(--white); }
.product-detail__thumb.active, .product-detail__thumb:hover { border-color: var(--primary); }
.product-detail__brand { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; }
.product-detail__name { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.product-detail__short-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }
.product-detail__price-block { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.product-detail__stock { margin-bottom: 20px; }

.stock-indicator { font-family: var(--font-mono); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; display: inline-block; }
.stock-indicator--ok  { background: var(--success-light); color: var(--success); }
.stock-indicator--low { background: var(--accent-light); color: var(--accent); }
.stock-indicator--out { background: var(--danger-light); color: var(--danger); }

.product-detail__add { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }

.qty-selector { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 36px; height: 42px; background: var(--bg); border: none; font-size: 18px; cursor: pointer; transition: background var(--transition); display: flex; align-items: center; justify-content: center; color: var(--text); }
.qty-btn:hover { background: var(--primary-light); color: var(--navy); }
.qty-input { width: 52px; height: 42px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-family: var(--font-mono); font-size: 16px; font-weight: 700; background: var(--white); color: var(--text); }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty-selector--sm .qty-btn   { width: 30px; height: 34px; font-size: 16px; }
.qty-selector--sm .qty-input { width: 44px; height: 34px; font-size: 14px; }

.delivery-info { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.delivery-info__item { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: var(--white); border-bottom: 1px solid var(--border); }
.delivery-info__item:last-child { border-bottom: none; }
.delivery-info__icon { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--navy); }
.delivery-info__text { display: flex; flex-direction: column; gap: 2px; }
.delivery-info__text strong { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text); }
.delivery-info__text span { font-size: 11px; color: var(--text-muted); }

/* Tabs */
.product-tabs { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 32px; }
.tabs { display: flex; border-bottom: 1px solid var(--border); }
.tab-btn { padding: 14px 24px; background: none; border: none; font-family: var(--font-mono); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-muted); border-bottom: 3px solid transparent; transition: all var(--transition); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--primary); }
.tab-btn:hover { color: var(--navy); }
.tab-panel { display: none; padding: 24px; }
.tab-panel.active { display: block; }
.product-description { font-size: 15px; line-height: 1.75; color: var(--text-muted); }
.specs-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.specs-list__item { display: flex; gap: 8px; font-size: 14px; align-items: flex-start; }
.specs-list__check { color: var(--primary); font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── Cart ──────────────────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 16px; }
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto auto auto;
  gap: 16px; align-items: center; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; margin-bottom: 12px;
}
.cart-item__img { width: 80px; height: 60px; object-fit: contain; border-radius: var(--radius); overflow: hidden; background: #f8f9fa; display: flex; align-items: center; justify-content: center; padding: 4px; }
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item__name a { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--text); }
.cart-item__name a:hover { color: var(--navy); }
.cart-item__config { font-size: 11px; color: var(--navy); font-family: var(--font-mono); margin-top: 3px; margin-bottom: 2px; background: #eef2ff; border-radius: 4px; padding: 2px 7px; display: inline-block; }
.cart-item__price-unit { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.cart-summary__config { display: block; font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.cart-item__subtotal { text-align: right; }
.cart-item__total { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--accent); }
.btn-remove { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 6px; border-radius: var(--radius); transition: all var(--transition); display: flex; align-items: center; }
.btn-remove:hover { color: var(--danger); background: var(--danger-light); }
.cart-actions { display: flex; justify-content: space-between; margin-top: 16px; }

/* Cart summary */
.cart-summary { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; height: fit-content; position: sticky; top: 100px; }
.cart-summary__title { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.cart-summary__lines { margin-bottom: 12px; }
.cart-summary__line { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); padding: 3px 0; }
.cart-summary__divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.cart-summary__subtotal, .cart-summary__shipping { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.cart-summary__total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; padding: 12px 0 16px; border-top: 2px solid var(--border); margin-top: 8px; font-family: var(--font-mono); }
.cart-summary__total-amount { color: var(--accent); }
.cart-summary__secure { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.checkout-btn { background: var(--primary) !important; color: var(--text) !important; }
.checkout-btn:hover { background: var(--primary-dark) !important; }

/* ── Checkout ──────────────────────────────────────────────────────────────── */
.checkout-steps { display: flex; align-items: center; justify-content: center; padding: 28px 0 20px; gap: 0; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step__num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--border); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 14px;
}
.step__label { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); font-weight: 600; }
.step--active .step__num   { background: var(--primary); color: var(--text); }
.step--active .step__label { color: var(--navy); }
.step--done .step__num     { background: #22c55e; color: transparent; font-size: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); background-size: 17px; background-repeat: no-repeat; background-position: center; }
.step--done .step__label   { color: #22c55e; }
.step--error .step__num    { background: var(--danger); color: transparent; font-size: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E"); background-size: 16px; background-repeat: no-repeat; background-position: center; }
.step__connector { width: 80px; height: 2px; background: var(--border); margin-bottom: 22px; }
.step__connector--done { background: var(--success); }

.checkout-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 20px; }
.checkout-card__title { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.checkout-card__subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

/* Forms */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group--sm { max-width: 120px; }
.form-label { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.form-input {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: 14px; transition: border-color var(--transition); background: var(--white);
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(250,186,0,.15); }
.form-input--mono { font-family: var(--font-mono); letter-spacing: .5px; }
.form-error { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--danger); margin-top: 4px; }
.form-hint { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-hint code { background: var(--primary-light); padding: 1px 6px; border-radius: 3px; color: var(--navy); font-family: var(--font-mono); font-weight: 800; border: 1px solid rgba(250,186,0,.3); }
.has-error .form-input { border-color: var(--danger); }
.required { color: var(--danger); }
.optional { color: var(--text-muted); font-weight: 400; }
.checkout-form__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; flex-wrap: wrap; gap: 12px; }

/* Payment methods */
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.payment-method-option { border: 2px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all var(--transition); overflow: hidden; }
.payment-method-option input { display: none; }
.payment-method-option__content { display: flex; align-items: center; gap: 12px; padding: 16px; }
.payment-method-option__icon { font-size: 24px; }
.payment-method-option__content strong { display: block; font-family: var(--font-mono); font-size: 13px; }
.payment-method-option__content span  { font-size: 12px; color: var(--text-muted); }
.payment-method-option.is-selected { border-color: var(--primary); background: var(--primary-light); }
.payment-subform { background: var(--bg); border-radius: var(--radius); padding: 18px; margin-bottom: 8px; border: 1px solid var(--border); }

/* Checkout layout */
.checkout-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.order-recap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; height: fit-content; position: sticky; top: 100px; font-size: 14px; }
.order-recap__title { font-family: var(--font-mono); font-size: .95rem; font-weight: 800; margin-bottom: 14px; }
.order-recap__identity { color: var(--text-muted); font-size: 13px; }
.order-recap__identity p { margin-bottom: 3px; }
.order-recap__edit { font-family: var(--font-mono); font-size: 11px; color: var(--navy); }
.order-recap__divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.order-recap__item { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: var(--text-muted); }
.order-recap__shipping { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--text-muted); }
.order-recap__total { display: flex; justify-content: space-between; padding: 12px 0 0; border-top: 2px solid var(--border); margin-top: 8px; font-family: var(--font-mono); font-size: 15px; }
.order-recap__total-amount { color: var(--accent); }

/* ── Payment result ────────────────────────────────────────────────────────── */
.result-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px 40px; text-align: center; margin-top: 8px; }
.result-card--success { border-top: 4px solid var(--primary); }
.result-card--failure { border-top: 4px solid var(--danger); }
.result-card__icon { width: 80px; height: 80px; margin: 0 auto 20px; }
.result-card__icon svg { width: 80px; height: 80px; display: block; }
.result-card__title { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.result-card--success .result-card__title { color: var(--navy); }
.result-card--failure .result-card__title { color: var(--danger); }
.result-card__message { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; }
.result-card__ref { background: var(--primary-light); border: 2px solid rgba(250,186,0,.4); border-radius: var(--radius-lg); padding: 16px 24px; display: inline-block; margin-bottom: 24px; }
.result-card__ref-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; }
.result-card__ref-value { font-family: var(--font-mono); font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: 2px; }
.result-card__hint { background: var(--primary-light); border: 1px solid rgba(250,186,0,.4); border-radius: var(--radius); padding: 14px 18px; font-size: 14px; color: var(--text); margin-bottom: 24px; text-align: left; display: inline-block; }
.result-card__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Order confirmation ────────────────────────────────────────────────────── */
.confirmation-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin: 20px 0; }
.confirmation-card__header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white); text-align: center; padding: 40px 24px; }
.confirmation-card__check { width: 80px; height: 80px; margin: 0 auto 20px; }
.confirmation-card__check svg { width: 80px; height: 80px; display: block; }
.confirmation-card__title { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.confirmation-card__subtitle { font-size: 15px; opacity: .85; }
.confirmation-card__ref-block { background: var(--primary-light); text-align: center; padding: 24px; border-bottom: 1px solid rgba(250,186,0,.3); }
.confirmation-card__ref-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; }
.confirmation-card__ref { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 800; color: var(--navy); letter-spacing: 2px; margin-bottom: 8px; }
.confirmation-card__date { font-size: 13px; color: var(--text-muted); }
.confirmation-section { padding: 24px; border-bottom: 1px solid var(--border); }
.confirmation-section__title { font-family: var(--font-mono); font-size: .95rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.confirmation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.info-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; }
.info-value { font-size: 14px; font-weight: 500; }
.order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-table th { font-family: var(--font-mono); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); padding: 8px 0; border-bottom: 2px solid var(--border); }
.order-table td { padding: 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.order-table__name a { color: var(--text); font-weight: 500; }
.order-table__name a:hover { color: var(--navy); }
.order-table tfoot td { border-bottom: none; padding: 6px 0; font-family: var(--font-mono); }
.order-table__subtotal td { border-top: 2px solid var(--border); padding-top: 12px; }
.order-table__total td { border-top: 2px solid var(--text); padding-top: 12px; font-size: 16px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.confirmation-status { padding: 16px 24px; display: flex; justify-content: center; border-bottom: 1px solid var(--border); }
.status-badge { font-family: var(--font-mono); padding: 8px 20px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.status-badge--confirmed { background: var(--primary-light); color: var(--navy); border: 1px solid rgba(250,186,0,.4); }
.confirmation-actions { display: flex; justify-content: center; gap: 12px; padding: 24px; flex-wrap: wrap; }

/* ── Contact page ──────────────────────────────────────────────────────────── */
.contact-hero { background: var(--navy); color: var(--white); padding: 48px 0 40px; text-align: center; }
.contact-hero h1 { font-family: var(--font-mono); color: var(--white); margin-bottom: 10px; }
.contact-hero__sub { color: rgba(255,255,255,.7); font-size: 1rem; max-width: 560px; margin: 0 auto; }
.contact-layout { display: flex; flex-direction: column; gap: 48px; margin: 40px auto; align-items: center; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(280px, 360px)); gap: 24px; width: max-content; margin: 0 auto; }
.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; align-items: flex-start; }
.contact-card__icon { width: 52px; height: 52px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--navy); }
.contact-card__title { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.contact-card__text { font-size: 14px; line-height: 1.65; color: var(--text-muted); }
.contact-card__text a { color: var(--navy); font-weight: 600; }
.contact-card__note { font-size: 12px; color: var(--text-muted); margin-top: 8px; font-style: italic; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-info-item__icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-info-item__label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-item__value { font-size: 14px; font-weight: 500; line-height: 1.5; }
.contact-social-section { text-align: center; }
.contact-social-title { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.contact-social-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.contact-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text); transition: all var(--transition); text-decoration: none; }
.social-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--navy); text-decoration: none; }
.social-btn--linkedin:hover { background: #e8f0fe; border-color: #0077b5; color: #0077b5; }
.social-btn--twitter:hover { background: #f0f8ff; border-color: #1da1f2; color: #1a1a1a; }
.social-btn--youtube:hover { background: #fff0f0; border-color: #ff0000; color: #cc0000; }
.social-btn--instagram:hover { background: #fff0f8; border-color: #c13584; color: #c13584; }
.social-btn--facebook:hover { background: #e8eeff; border-color: #1877f2; color: #1877f2; }
.contact-demo-notice { background: var(--primary-light); border: 1px solid rgba(250,186,0,.4); border-radius: var(--radius-lg); padding: 20px 24px; display: flex; gap: 14px; align-items: flex-start; }
.contact-demo-notice svg { flex-shrink: 0; color: var(--navy); margin-top: 2px; }
.contact-demo-notice p { font-size: 13px; line-height: 1.6; color: var(--text); margin: 0; }
.contact-demo-notice a { color: var(--navy); font-weight: 600; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,.8); margin-top: 40px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 48px 20px 32px; }
.footer__title { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer__desc { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.55); }
.footer__heading { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { font-size: 13px; color: rgba(255,255,255,.65); text-decoration: none; transition: color var(--transition); }
.footer__links a:hover { color: var(--primary); }
.footer__contact { margin-top: 4px; }
.footer__contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer__contact-item svg { flex-shrink: 0; margin-top: 2px; opacity: .6; }
.footer__contact-item span, .footer__contact-item a { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.55; }
.footer__contact-item a { color: var(--primary); }
.footer__contact-item a:hover { color: var(--primary-dark); }
.footer__social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.footer__social-btn { padding: 5px 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: rgba(255,255,255,.7); transition: all var(--transition); text-decoration: none; }
.footer__social-btn:hover { background: rgba(250,186,0,.15); border-color: rgba(250,186,0,.4); color: var(--primary); text-decoration: none; }
.payment-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.badge-payment { font-family: var(--font-mono); background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.footer__secure { font-size: 12px; color: rgba(255,255,255,.5); }

/* ── Footer newsletter ────────────────────────────────────────────────────── */
.footer__newsletter { background: var(--navy-dark); border-bottom: 1px solid rgba(255,255,255,.08); padding: 28px 0; }
.footer__newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__newsletter-text h3 { font-family: var(--font-mono); font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.footer__newsletter-text p { font-size: 13px; color: rgba(255,255,255,.48); }
.footer__newsletter-form { display: flex; flex-shrink: 0; }
.footer__newsletter-input { padding: 10px 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-right: none; border-radius: var(--radius) 0 0 var(--radius); color: var(--white); font-size: 13px; font-family: var(--font); width: 240px; outline: none; transition: border-color var(--transition); }
.footer__newsletter-input::placeholder { color: rgba(255,255,255,.32); }
.footer__newsletter-input:focus { border-color: var(--primary); }
.footer__newsletter-btn { padding: 10px 18px; background: var(--primary); color: var(--text); font-family: var(--font-mono); font-weight: 700; font-size: 13px; border: none; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; transition: background var(--transition); white-space: nowrap; }
.footer__newsletter-btn:hover { background: var(--primary-dark); }

/* ── Footer bottom ────────────────────────────────────────────────────────── */
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 20px; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.35); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__payment-logos { display: flex; gap: 5px; align-items: center; }
.footer__payment-logo { background: var(--white); border-radius: 3px; padding: 2px 7px; font-family: var(--font-mono); font-size: 9px; font-weight: 800; letter-spacing: .4px; line-height: 18px; }
.footer__payment-logo--visa    { color: #1a1f71; }
.footer__payment-logo--mc      { color: #eb001b; }
.footer__payment-logo--paypal  { color: #003087; }
.footer__payment-logo--amex    { color: #007bc1; }
.footer__payment-logo--stripe  { color: #635bff; }

/* ── Scroll Rocket ──────────────────────────────────────────────────────────── */
.scroll-rocket {
  position: fixed;
  right: 28px;
  bottom: 32px;
  width: 44px;
  z-index: 200;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  --flame-intensity: 0.5;
}
.scroll-rocket--visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-rocket__svg {
  width: 36px;
  height: 54px;
  display: block;
  transform-origin: bottom center;
  transition: transform 0.1s ease, filter 0.2s ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7)) drop-shadow(0 0 3px rgba(0,0,0,0.5));
}
.scroll-rocket:hover .scroll-rocket__svg {
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.8)) drop-shadow(0 0 10px rgba(250,186,0,0.6));
}

/* Flammes */
.scroll-rocket__flames {
  display: flex;
  gap: 3px;
  margin-top: -2px;
  height: 22px;
  align-items: flex-start;
  justify-content: center;
}
.flame {
  display: block;
  border-radius: 50% 50% 30% 30%;
  animation: flicker 0.15s infinite alternate;
  transform-origin: top center;
}
.flame--1 { width: 8px; height: 18px; background: linear-gradient(to bottom, #fff7a0, #faba00, #ff6600); animation-delay: 0s; }
.flame--2 { width: 12px; height: 22px; background: linear-gradient(to bottom, #fffde0, #faba00, #ff4400); animation-delay: 0.05s; }
.flame--3 { width: 8px; height: 16px; background: linear-gradient(to bottom, #fff7a0, #faba00, #ff6600); animation-delay: 0.1s; }

@keyframes flicker {
  0%   { transform: scaleX(1)   scaleY(1)   skewX(0deg); opacity: calc(var(--flame-intensity) * 0.85); }
  100% { transform: scaleX(0.8) scaleY(1.1) skewX(4deg); opacity: calc(var(--flame-intensity) * 1); }
}

/* ── Auth pages (login / mon-compte) ───────────────────────────────────────── */
.auth-page { display: flex; justify-content: center; align-items: flex-start; padding: 48px 20px; }
.auth-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; overflow: hidden;
}
.auth-card__header { text-align: center; padding: 32px 32px 24px; background: var(--bg); border-bottom: 1px solid var(--border); }
.auth-card__icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.auth-card__title { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.auth-card__subtitle { font-size: 13px; color: var(--text-muted); font-family: var(--font); font-weight: 400; }
.auth-alert {
  display: flex; align-items: center; gap: 8px; margin: 16px 24px 0;
  padding: 10px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 500;
}
.auth-alert--error { background: var(--danger-light); color: var(--danger); }
.auth-form { padding: 24px 32px; display: flex; flex-direction: column; gap: 16px; }
.auth-hint {
  margin: 0 32px 24px; padding: 14px; background: var(--primary-light);
  border: 1px solid rgba(250,186,0,.3); border-radius: var(--radius);
}
.auth-hint__title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 10px; font-family: var(--font-mono); }
.auth-hint__accounts { display: flex; flex-direction: column; gap: 8px; }
.auth-hint__account {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition);
}
.auth-hint__account:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(250,186,0,.2); }
.auth-hint__account div { display: flex; flex-direction: column; }
.auth-hint__account strong { font-size: 13px; color: var(--text); font-family: var(--font-mono); }
.auth-hint__account span { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.auth-hint__avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy);
  color: var(--white); font-size: 11px; font-weight: 700; font-family: var(--font-mono);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.auth-hint__avatar--admin { background: var(--accent); }

/* Account page */
.account-page { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 36px 0 60px; }
.account-sidebar { flex-shrink: 0; }
.account-sidebar__profile {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 8px;
}
.account-sidebar__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy);
  color: var(--white); font-size: 14px; font-weight: 700; font-family: var(--font-mono);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.account-sidebar__info { display: flex; flex-direction: column; overflow: hidden; }
.account-sidebar__info strong { font-size: 13px; color: var(--text); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-sidebar__info span { font-size: 11px; color: var(--text-muted); }
.account-sidebar__nav { display: flex; flex-direction: column; gap: 2px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px; overflow: hidden; }
.account-nav-link { display: block; padding: 9px 14px; font-size: 13px; font-weight: 500; color: var(--text); border-radius: var(--radius); text-decoration: none; transition: all var(--transition); }
.account-nav-link:hover { background: var(--bg); color: var(--navy); text-decoration: none; }
.account-nav-link--active { background: var(--primary-light); color: var(--navy); font-weight: 700; }
.account-nav-link--danger { color: var(--danger); }
.account-nav-link--danger:hover { background: var(--danger-light); }

.account-content { display: flex; flex-direction: column; gap: 24px; }
.account-section {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.account-section__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border); background: var(--bg);
}
.account-section__header h2 { font-size: 1rem; color: var(--text); }
.account-section__badge, .account-section__count {
  font-size: 11px; font-weight: 600; font-family: var(--font-mono);
  background: var(--primary-light); color: var(--navy); padding: 3px 8px; border-radius: 20px;
}
.account-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.account-field { padding: 14px 24px; border-bottom: 1px solid var(--border); }
.account-field:nth-last-child(-n+2) { border-bottom: none; }
.account-field label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.account-field__value { font-size: 14px; color: var(--text); font-weight: 500; }
.account-field__value--mono { font-family: var(--font-mono); }
.account-demo-note { padding: 12px 24px; font-size: 12px; color: var(--text-muted); background: var(--bg); border-top: 1px solid var(--border); font-style: italic; }

.account-orders { display: flex; flex-direction: column; }
.account-order { padding: 18px 24px; border-bottom: 1px solid var(--border); }
.account-order:last-child { border-bottom: none; }
.account-order__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.account-order__ref { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--navy); display: block; }
.account-order__date { font-size: 12px; color: var(--text-muted); }
.account-order__status { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; font-family: var(--font-mono); }
.account-order__status--delivered { background: var(--success-light); color: var(--success); }
.account-order__status--pending   { background: #fff8e1; color: var(--warning); }
.account-order__items { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; display: flex; flex-direction: column; gap: 2px; }
.account-order__footer { display: flex; justify-content: space-between; font-size: 13px; }
.account-order__footer strong { color: var(--text); font-family: var(--font-mono); }
.account-order__footer span { color: var(--text-muted); }

.account-security { display: flex; flex-direction: column; }
.account-security__item { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
.account-security__item > div strong { font-size: 14px; display: block; margin-bottom: 2px; }
.account-security__item > div p { font-size: 12px; color: var(--text-muted); }

/* ── Configurateur produit ─────────────────────────────────────────────────── */
.product-config { margin: 20px 0; display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--border); padding-top: 18px; }
.config-barebones-notice { padding: 10px 14px; background: #fff8e1; border: 1px solid #ffe082; border-radius: var(--radius); font-size: 13px; color: #7c5700; }
.config-group { display: flex; flex-direction: column; gap: 8px; }
.config-group__label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; font-family: var(--font-mono); color: var(--text); }
.config-group__value { font-weight: 400; color: var(--text-muted); }

.config-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.config-color-swatch { width: 28px; height: 28px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: all .15s ease; outline: none; }
.config-color-swatch:hover { transform: scale(1.15); }
.config-color-swatch.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--navy); }

.config-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.config-pill { padding: 7px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--white); font-size: 13px; font-family: var(--font-mono); cursor: pointer; transition: all .15s ease; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.config-pill:hover { border-color: var(--navy); }
.config-pill.active { border-color: var(--navy); background: var(--navy); color: var(--white); }
.config-pill__delta { font-size: 11px; opacity: .8; }
.config-pill__delta--neg { color: var(--success); }
.config-pill.active .config-pill__delta { color: rgba(255,255,255,.75); }

.config-price-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--primary-light, #fffbe6); border: 1px solid rgba(250,186,0,.35); border-radius: var(--radius); }
.config-price-bar__label { font-size: 13px; font-weight: 600; font-family: var(--font-mono); color: var(--text-muted); }
.config-price-bar__price { font-size: 22px; font-weight: 800; font-family: var(--font-mono); color: var(--text); }

/* ── Accessoires suggérés ──────────────────────────────────────────────────── */
.accessories-bundle { padding: 36px 0; border-top: 1px solid var(--border); margin-top: 36px; }
.accessories-bundle__header { margin-bottom: 18px; }
.accessories-bundle__header h2 { font-size: 1.15rem; }
.accessories-bundle__header p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.accessories-bundle__list { display: flex; flex-direction: column; gap: 12px; }

.bundle-acc { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; padding: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg, var(--radius)); transition: box-shadow .15s ease; }
.bundle-acc:hover { box-shadow: var(--shadow-md); }
.bundle-acc__img-link img { width: 80px; height: 80px; object-fit: contain; border-radius: var(--radius); background: var(--bg); padding: 4px; display: block; }
.bundle-acc__brand { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 2px; }
.bundle-acc__name { font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; display: block; margin-bottom: 4px; }
.bundle-acc__name:hover { color: var(--primary); }
.bundle-acc__desc { font-size: 12px; color: var(--text-muted); }
.bundle-acc__action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.bundle-acc__price { font-size: 15px; font-weight: 700; font-family: var(--font-mono); white-space: nowrap; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { display: flex; gap: 12px; flex-wrap: wrap; }
  .sidebar__block { flex: 1; min-width: 200px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .promo-banner__inner { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 36px 0; }
  .hero__title { font-size: 1.8rem; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-recap { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 60px 1fr; grid-template-rows: auto auto; }
  .cart-item__qty, .cart-item__subtotal, .cart-item__remove { grid-column: 2; }
  .cart-item__remove { grid-column: 1; grid-row: 1; }
  .form-row { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: 1fr; }
  .header__search { display: none; }
  .promo-banner__inner { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .topbar__inner { flex-direction: column; text-align: center; gap: 4px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .account-page { grid-template-columns: 1fr; }
  .account-sidebar__nav { flex-direction: row; flex-wrap: wrap; }
  .account-profile-grid { grid-template-columns: 1fr; }
  .auth-form, .auth-hint { padding-left: 20px; padding-right: 20px; }
}

/* ========================================
   Spinner / Processing overlay
   ======================================== */
.spinner-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.spinner-overlay.is-visible { display: flex; }

.spinner-card {
  background: var(--white);
  border-radius: 20px;
  padding: 44px 52px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 32px 64px rgba(0,0,0,0.35);
}

.spinner-ring {
  width: 60px;
  height: 60px;
  border: 5px solid #e8eaf0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin: 0 auto 22px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.spinner-card__icon {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1;
}
.spinner-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.spinner-card__sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.spinner-progress {
  margin-top: 24px;
  height: 5px;
  background: #e8eaf0;
  border-radius: 3px;
  overflow: hidden;
}
.spinner-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #f59e0b);
  border-radius: 3px;
  width: 0%;
}

/* ========================================
   Address field + map
   ======================================== */
.address-section-title {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 24px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.address-input-wrapper { position: relative; }
.address-input-wrapper .form-input { padding-right: 44px; }
.address-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-top: none;
}
.address-suggestion-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.12s ease;
}
.address-suggestion-item:last-child { border-bottom: none; }
.address-suggestion-item:hover,
.address-suggestion-item.is-highlighted { background: #f5f5f5; }
.suggestion-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
}
.suggestion-content { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.suggestion-main {
  font-size: 14px;
  font-weight: 400;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-main strong { font-weight: 600; }
.suggestion-sub {
  font-size: 12px;
  color: #70757a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.address-status {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}
.address-map-container {
  margin-top: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.address-verified-badge {
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 6px;
}
.address-verified-text {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.address-map { height: 450px; }

/* ── Cookie banner GDPR ────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--navy); color: #fff;
  padding: 18px 24px; display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  transform: translateY(100%); transition: transform 0.35s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__text { flex: 1; min-width: 200px; font-size: 13px; line-height: 1.5; }
.cookie-banner__text a { color: var(--primary); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner__accept { padding: 9px 20px; background: var(--primary); color: var(--navy); border: none; border-radius: var(--radius); font-weight: 700; font-size: 13px; cursor: pointer; transition: opacity .15s; }
.cookie-banner__accept:hover { opacity: .85; }
.cookie-banner__decline { padding: 9px 20px; background: transparent; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); font-size: 13px; cursor: pointer; transition: all .15s; }
.cookie-banner__decline:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* ── Wishlist button ────────────────────────────────────────────────────────── */
.btn-wishlist {
  position: absolute; top: 8px; right: 8px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease; z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.btn-wishlist:hover { transform: scale(1.15); background: #fff; }
.btn-wishlist svg { transition: all .2s ease; }
.btn-wishlist.is-active svg { fill: #e53e3e; stroke: #e53e3e; }
.product-card { position: relative; }
.wishlist-btn-product {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--white);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .2s ease; color: var(--text);
}
.wishlist-btn-product:hover { border-color: #e53e3e; color: #e53e3e; }
.wishlist-btn-product.is-active { border-color: #e53e3e; color: #e53e3e; }
.wishlist-btn-product.is-active svg { fill: #e53e3e; stroke: #e53e3e; }

/* ── Product reviews / ratings ─────────────────────────────────────────────── */
.reviews-section { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 32px; }
.reviews-section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.reviews-section__title { font-size: 1.1rem; font-weight: 700; font-family: var(--font-mono); }
.reviews-avg { display: flex; align-items: center; gap: 10px; }
.reviews-avg__score { font-size: 2rem; font-weight: 800; font-family: var(--font-mono); }
.stars { display: inline-flex; gap: 2px; }
.star { font-size: 16px; color: #d1d5db; }
.star.filled { color: #f59e0b; }
.star.half { color: #f59e0b; opacity: .5; }
.reviews-avg__count { font-size: 12px; color: var(--text-muted); }
.review-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 28px; }
.review-form__title { font-size: 14px; font-weight: 700; font-family: var(--font-mono); margin-bottom: 14px; }
.review-stars-picker { display: flex; gap: 6px; margin-bottom: 14px; }
.review-star-btn { font-size: 24px; background: none; border: none; cursor: pointer; color: #d1d5db; transition: color .15s, transform .15s; padding: 2px; }
.review-star-btn:hover, .review-star-btn.selected { color: #f59e0b; transform: scale(1.2); }
.review-form input, .review-form textarea { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 13px; font-family: inherit; margin-bottom: 10px; background: var(--white); box-sizing: border-box; }
.review-form textarea { min-height: 90px; resize: vertical; }
.review-form input:focus, .review-form textarea:focus { outline: none; border-color: var(--navy); }
.review-form__actions { display: flex; justify-content: flex-end; }
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; }
.review-item__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.review-item__author { font-weight: 600; font-size: 13px; }
.review-item__date { font-size: 11px; color: var(--text-muted); }
.review-item__body { font-size: 13px; color: var(--text); line-height: 1.6; }
.review-item__title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.review-toast { position: fixed; bottom: 80px; right: 24px; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--radius); font-size: 13px; z-index: 9000; opacity: 0; transform: translateY(12px); transition: all .3s ease; pointer-events: none; }
.review-toast.show { opacity: 1; transform: translateY(0); }

/* ── Confirm modal ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,0.5); display: flex;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px 32px; max-width: 420px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(-20px); transition: transform .2s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal__icon { font-size: 2.5rem; text-align: center; margin-bottom: 12px; }
.modal__title { font-size: 1.1rem; font-weight: 800; font-family: var(--font-mono); text-align: center; margin-bottom: 8px; }
.modal__body { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 24px; line-height: 1.6; }
.modal__actions { display: flex; gap: 12px; }
.modal__actions .btn { flex: 1; justify-content: center; }

/* ── Skeleton screens ───────────────────────────────────────────────────────── */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.skeleton { background: #e5e7eb; border-radius: var(--radius); animation: skeleton-pulse 1.5s ease-in-out infinite; }
.product-card-skeleton { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.product-card-skeleton__img { height: 200px; }
.product-card-skeleton__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.product-card-skeleton__brand { height: 12px; width: 60px; }
.product-card-skeleton__name { height: 16px; width: 80%; }
.product-card-skeleton__name2 { height: 16px; width: 55%; }
.product-card-skeleton__price { height: 20px; width: 80px; margin-top: 4px; }
.product-card-skeleton__btn { height: 34px; border-radius: var(--radius); }

/* ── Enhanced sort/filter select ───────────────────────────────────────────── */
.custom-select-wrapper { position: relative; display: inline-block; }
.custom-select-wrapper select { appearance: none; -webkit-appearance: none; padding-right: 32px; }
.custom-select-wrapper::after {
  content: ''; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
  pointer-events: none;
}

/* ── File upload ────────────────────────────────────────────────────────────── */
.file-upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 32px 20px; text-align: center; cursor: pointer;
  transition: all .2s ease; background: var(--bg);
}
.file-upload-zone:hover, .file-upload-zone.drag-over { border-color: var(--navy); background: var(--primary-light); }
.file-upload-zone__icon { font-size: 2rem; margin-bottom: 8px; }
.file-upload-zone__text { font-size: 14px; font-weight: 500; color: var(--text); }
.file-upload-zone__sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.file-upload-zone input[type="file"] { display: none; }
.file-upload-preview { margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; }
.file-upload-preview__icon { font-size: 1.4rem; }
.file-upload-preview__name { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-upload-preview__size { font-size: 11px; color: var(--text-muted); }
.file-upload-preview__remove { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 18px; line-height: 1; }

/* ── Order history table ────────────────────────────────────────────────────── */
.orders-table-wrapper { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.orders-table th { padding: 10px 14px; text-align: left; font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); background: var(--bg); border-bottom: 2px solid var(--border); white-space: nowrap; cursor: pointer; user-select: none; }
.orders-table th:hover { color: var(--navy); }
.orders-table th .sort-arrow { margin-left: 4px; opacity: .4; }
.orders-table th.sorted-asc .sort-arrow::after { content: ' ↑'; opacity: 1; }
.orders-table th.sorted-desc .sort-arrow::after { content: ' ↓'; opacity: 1; }
.orders-table td { padding: 12px 14px; border-bottom: 1px solid var(--bg); vertical-align: middle; }
.orders-table tr:hover td { background: var(--bg); }
.orders-table tr:last-child td { border-bottom: none; }
.order-status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.order-status-badge--delivered { background: #d1fae5; color: #065f46; }
.order-status-badge--shipped { background: #dbeafe; color: #1e40af; }
.order-status-badge--pending { background: #fef9c3; color: #854d0e; }
.order-status-badge--cancelled { background: #fee2e2; color: #991b1b; }
.order-status-badge--confirmed { background: #d1fae5; color: #065f46; }

/* ── Admin order controls ──────────────────────────────────────────────────── */
.order-status-select { padding: 5px 8px; border: 1.5px solid var(--border); border-radius: 6px; background: var(--white); color: var(--navy); font-size: 12px; font-weight: 600; cursor: pointer; min-width: 165px; }
.order-status-select:hover { border-color: var(--navy); }
.order-status-select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.btn-order-cancel, .btn-order-delete { border: 1.5px solid; border-radius: 6px; cursor: pointer; font-weight: 600; transition: all .15s ease; padding: 5px 10px; font-size: 11.5px; margin: 0 2px; }
.btn-order-cancel { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.btn-order-cancel:hover { background: #fed7aa; border-color: #f97316; }
.btn-order-delete { background: #fff1f2; color: #991b1b; border-color: #fca5a5; padding: 5px 9px; font-size: 13px; line-height: 1; }
.btn-order-delete:hover { background: #fecaca; border-color: #dc2626; }
.review-toast--error { background: #991b1b !important; }

/* ── Orders pagination ─────────────────────────────────────────────────────── */
.orders-pagination { display: flex; align-items: center; gap: 6px; margin: 20px 0 8px; flex-wrap: wrap; }
.orders-pagination__btn { width: 34px; height: 34px; border: 1.5px solid var(--border); border-radius: 6px; background: var(--white); color: var(--navy); cursor: pointer; font-weight: 700; transition: all .15s ease; display: inline-flex; align-items: center; justify-content: center; }
.orders-pagination__btn:hover:not(:disabled) { border-color: var(--navy); background: var(--bg); }
.orders-pagination__btn:disabled { opacity: .35; cursor: not-allowed; }
.orders-pagination__pages { display: flex; gap: 4px; }
.orders-pagination__page { min-width: 34px; height: 34px; padding: 0 10px; border: 1.5px solid var(--border); border-radius: 6px; background: var(--white); color: var(--navy); cursor: pointer; font-weight: 600; font-size: 13px; transition: all .15s ease; }
.orders-pagination__page:hover { border-color: var(--navy); background: var(--bg); }
.orders-pagination__page.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.orders-pagination__ellipsis { display: inline-flex; align-items: center; padding: 0 4px; color: var(--text-muted); font-weight: 600; }
.orders-pagination__info { margin-left: auto; font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }

.orders-filter-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.orders-filter-bar select, .orders-filter-bar input { padding: 7px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 13px; background: var(--white); }
.orders-filter-bar input { flex: 1; min-width: 140px; }

/* ── Delivery date picker ───────────────────────────────────────────────────── */
.delivery-date-group { margin-bottom: 18px; }
.delivery-date-group .form-label { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.delivery-date-slots { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.delivery-slot { flex: 1; min-width: 120px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--white); cursor: pointer; text-align: center; transition: all .15s ease; }
.delivery-slot:hover { border-color: var(--navy); }
.delivery-slot.selected { border-color: var(--navy); background: var(--navy); color: var(--white); }
.delivery-slot__day { font-size: 11px; font-weight: 700; font-family: var(--font-mono); text-transform: uppercase; }
.delivery-slot__date { font-size: 14px; font-weight: 600; }
.delivery-slot__range { font-size: 11px; opacity: .75; }

/* ── Pagination ─────────────────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; padding: 8px 0; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; cursor: pointer; background: var(--white); transition: all .15s ease; }
.page-btn:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.page-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.page-btn.disabled { opacity: .35; pointer-events: none; cursor: default; }
.page-btn--wide { width: auto; padding: 0 14px; }

/* ── Delivery slot picker ──────────────────────────────────────────────────── */
.delivery-slots { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.delivery-slot__time { width: 100%; margin-top: 6px; font-size: 12px; border: none; background: transparent; text-align: center; cursor: pointer; color: inherit; }
.delivery-slot.selected .delivery-slot__time { color: rgba(255,255,255,0.9); }
.delivery-slot__time option { color: var(--navy); background: var(--white); font-weight: 500; }

/* ── Reviews section extras ────────────────────────────────────────────────── */
.reviews-section__avg { display: flex; align-items: center; gap: 8px; }
.reviews-section__avg-score { font-size: 1.3rem; font-weight: 800; font-family: var(--font-mono); }
.reviews-section__avg-count { font-size: 13px; color: var(--text-muted); }
.review-star-btn.hovered { color: #f59e0b; }
.review-form__author { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 13px; font-family: inherit; margin-bottom: 10px; background: var(--white); box-sizing: border-box; }
.review-form__author:focus { outline: none; border-color: var(--navy); }
.review-form h3 { font-size: 14px; font-weight: 700; font-family: var(--font-mono); margin-bottom: 14px; }
.review-star-picker { display: flex; gap: 4px; margin-bottom: 12px; }

/* ── Skeleton extras ───────────────────────────────────────────────────────── */
.product-card-skeleton__desc { height: 12px; width: 90%; }
.product-card-skeleton__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.product-card-skeleton__btn { height: 34px; width: 80px; border-radius: var(--radius); }

/* ── Wishlist button product page ──────────────────────────────────────────── */
.wishlist-btn-product span { font-size: 13px; }

/* ── Promo Carousel ─────────────────────────────────────────────────────────── */
.promo-carousel { position: relative; overflow: hidden; }
.promo-carousel__wrapper { overflow: hidden; }
.promo-carousel__track { display: flex; transition: transform 0.55s cubic-bezier(0.4,0,0.2,1); }

/* Slides — design clair et moderne avec accent coloré */
.promo-carousel__slide {
  flex: 0 0 100%; min-height: 220px; display: flex; align-items: center;
  padding: 48px max(80px, 8vw); position: relative; overflow: hidden;
  background: #f8f9fb;
}
/* Barre accent verticale à gauche */
.promo-carousel__slide::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
}
/* Cercle décoratif en arrière-plan */
.promo-carousel__slide::after {
  content: ''; position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 340px; height: 340px; border-radius: 50%;
  opacity: 0.06; pointer-events: none;
}
.promo-carousel__slide--1 { background: linear-gradient(110deg, #f8f9fb 0%, #fff9e6 100%); }
.promo-carousel__slide--1::before { background: var(--primary); }
.promo-carousel__slide--1::after { background: var(--primary); }
.promo-carousel__slide--2 { background: linear-gradient(110deg, #f8f9fb 0%, #eef1ff 100%); }
.promo-carousel__slide--2::before { background: #6366f1; }
.promo-carousel__slide--2::after { background: #6366f1; }
.promo-carousel__slide--3 { background: linear-gradient(110deg, #f8f9fb 0%, #eafaf2 100%); }
.promo-carousel__slide--3::before { background: #10b981; }
.promo-carousel__slide--3::after { background: #10b981; }
.promo-carousel__slide--4 { background: linear-gradient(110deg, #f8f9fb 0%, #fdf2f8 100%); }
.promo-carousel__slide--4::before { background: #ec4899; }
.promo-carousel__slide--4::after { background: #ec4899; }

.promo-carousel__content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }

.promo-carousel__tag {
  font-size: 11px; font-weight: 700; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 4px 12px; border-radius: 20px; width: fit-content;
  border: 1.5px solid currentColor;
}
.promo-carousel__slide--1 .promo-carousel__tag { color: #92610a; background: rgba(250,186,0,0.12); border-color: rgba(250,186,0,0.4); }
.promo-carousel__slide--2 .promo-carousel__tag { color: #4338ca; background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.3); }
.promo-carousel__slide--3 .promo-carousel__tag { color: #065f46; background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.3); }
.promo-carousel__slide--4 .promo-carousel__tag { color: #9d174d; background: rgba(236,72,153,0.08); border-color: rgba(236,72,153,0.3); }

.promo-carousel__title { font-size: clamp(1.5rem,3.5vw,2.2rem); font-weight: 800; font-family: var(--font-mono); color: var(--navy); margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
.promo-carousel__slide--1 .promo-carousel__title strong { color: #b45309; }
.promo-carousel__slide--2 .promo-carousel__title strong { color: #4338ca; }
.promo-carousel__slide--3 .promo-carousel__title strong { color: #059669; }
.promo-carousel__slide--4 .promo-carousel__title strong { color: #db2777; }

.promo-carousel__sub { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.promo-carousel__slide .btn--primary { align-self: flex-start; }

/* Nav arrows */
.promo-carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--navy); font-size: 1.5rem; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s ease; z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.promo-carousel__nav:hover { border-color: var(--navy); box-shadow: 0 4px 16px rgba(0,0,0,0.14); }
.promo-carousel__nav--prev { left: 16px; }
.promo-carousel__nav--next { right: 16px; }

/* Dots */
.promo-carousel__dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 10; }
.promo-carousel__dot { width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--border); background: transparent; cursor: pointer; padding: 0; transition: all .25s ease; }
.promo-carousel__dot.is-active { background: var(--navy); border-color: var(--navy); width: 22px; border-radius: 4px; }

/* Counter */
.promo-carousel__counter { position: absolute; top: 14px; right: 18px; font-size: 11px; font-family: var(--font-mono); color: var(--text-muted); z-index: 10; background: rgba(255,255,255,0.7); padding: 2px 8px; border-radius: 10px; }

@media (max-width: 600px) {
  .promo-carousel__slide { padding: 36px 52px 48px; min-height: 200px; }
  .promo-carousel__nav { width: 34px; height: 34px; font-size: 1.2rem; }
  .promo-carousel__slide::after { display: none; }
}

/* ── Promo carousel dark mode ─────────────────────────────────────────────── */
[data-theme="dark"] .promo-carousel__slide--1 { background: linear-gradient(110deg, #15242c 0%, #2a2418 100%); }
[data-theme="dark"] .promo-carousel__slide--2 { background: linear-gradient(110deg, #15242c 0%, #1c1c3a 100%); }
[data-theme="dark"] .promo-carousel__slide--3 { background: linear-gradient(110deg, #15242c 0%, #0e2a1e 100%); }
[data-theme="dark"] .promo-carousel__slide--4 { background: linear-gradient(110deg, #15242c 0%, #2a131d 100%); }

[data-theme="dark"] .promo-carousel__title { color: var(--text); }
[data-theme="dark"] .promo-carousel__slide--1 .promo-carousel__title strong { color: #faba00; }
[data-theme="dark"] .promo-carousel__slide--2 .promo-carousel__title strong { color: #a5b4fc; }
[data-theme="dark"] .promo-carousel__slide--3 .promo-carousel__title strong { color: #34d399; }
[data-theme="dark"] .promo-carousel__slide--4 .promo-carousel__title strong { color: #f9a8d4; }

[data-theme="dark"] .promo-carousel__sub { color: var(--text-light); }

[data-theme="dark"] .promo-carousel__slide--1 .promo-carousel__tag { color: #fcd34d; background: rgba(250,186,0,0.12); border-color: rgba(250,186,0,0.35); }
[data-theme="dark"] .promo-carousel__slide--2 .promo-carousel__tag { color: #a5b4fc; background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.4); }
[data-theme="dark"] .promo-carousel__slide--3 .promo-carousel__tag { color: #6ee7b7; background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.4); }
[data-theme="dark"] .promo-carousel__slide--4 .promo-carousel__tag { color: #f9a8d4; background: rgba(236,72,153,0.15); border-color: rgba(236,72,153,0.4); }

[data-theme="dark"] .promo-carousel__nav { background: #1e2e38; color: var(--text); border-color: var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
[data-theme="dark"] .promo-carousel__nav:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,.5); }
[data-theme="dark"] .promo-carousel__dot { border-color: rgba(255,255,255,.25); }
[data-theme="dark"] .promo-carousel__counter { background: rgba(15,28,34,0.85); color: var(--text-light); border: 1px solid var(--border); }

/* ── Tooltips ───────────────────────────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--navy); color: #fff;
  padding: 6px 10px; border-radius: var(--radius);
  font-size: 12px; font-family: var(--font-mono);
  white-space: normal; text-align: center; line-height: 1.4;
  max-width: 200px; min-width: 100px;
  pointer-events: none; opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 9999; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
[data-tooltip]::after {
  content: '';
  position: absolute; bottom: calc(100% + 4px);
  left: 50%; transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent; border-top-color: var(--navy);
  pointer-events: none; opacity: 0;
  transition: opacity .18s ease, transform .18s ease; z-index: 9999;
}
[data-tooltip]:hover::before,[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

[data-tooltip][data-tooltip-pos=bottom]::before { bottom: auto; top: calc(100% + 9px); transform: translateX(-50%) translateY(-4px); }
[data-tooltip][data-tooltip-pos=bottom]::after { bottom: auto; top: calc(100% + 4px); border-top-color: transparent; border-bottom-color: var(--navy); transform: translateX(-50%) translateY(-4px); }
[data-tooltip][data-tooltip-pos=bottom]:hover::before,[data-tooltip][data-tooltip-pos=bottom]:hover::after { transform: translateX(-50%) translateY(0); }

[data-tooltip][data-tooltip-pos=right]::before { bottom: auto; left: calc(100% + 9px); top: 50%; transform: translateY(-50%) translateX(-4px); white-space: nowrap; min-width: unset; }
[data-tooltip][data-tooltip-pos=right]::after { bottom: auto; left: calc(100% + 4px); top: 50%; transform: translateY(-50%) translateX(-4px); border-top-color: transparent; border-right-color: var(--navy); }
[data-tooltip][data-tooltip-pos=right]:hover::before,[data-tooltip][data-tooltip-pos=right]:hover::after { transform: translateY(-50%) translateX(0); }

[data-tooltip][data-tooltip-pos=left]::before { bottom: auto; right: calc(100% + 9px); left: auto; top: 50%; transform: translateY(-50%) translateX(4px); white-space: nowrap; min-width: unset; }
[data-tooltip][data-tooltip-pos=left]::after { bottom: auto; right: calc(100% + 4px); left: auto; top: 50%; transform: translateY(-50%) translateX(4px); border-top-color: transparent; border-left-color: var(--navy); }
[data-tooltip][data-tooltip-pos=left]:hover::before,[data-tooltip][data-tooltip-pos=left]:hover::after { transform: translateY(-50%) translateX(0); }

/* ── Delivery iframe section ────────────────────────────────────────────────── */
.delivery-iframe-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.delivery-iframe-section__header { margin-bottom: 16px; }
.delivery-iframe-section__title { font-size: 1.1rem; font-weight: 700; font-family: var(--font-mono); margin-bottom: 4px; }
.delivery-iframe-section__sub { font-size: 13px; color: var(--text-muted); }
.delivery-iframe-wrapper { border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #f8f9fb; max-width: 560px; }
.delivery-iframe { display: block; width: 100%; border: none; transition: height .3s ease; }

/* ── Live search suggestions ────────────────────────────────────────────────── */
.search-wrapper { position: relative; flex: 1; display: flex; }
.search-wrapper .header__search { width: 100%; }
.search-suggestions { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 8px 32px rgba(0,0,0,0.14); z-index: 7000; overflow: hidden; max-height: 460px; overflow-y: auto; }
.search-suggestion-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; text-decoration: none; color: var(--text); transition: background .12s; border-bottom: 1px solid var(--border); outline: none; }
.search-suggestion-item:last-of-type { border-bottom: none; }
.search-suggestion-item:hover, .search-suggestion-item.is-focused { background: var(--bg); text-decoration: none; }
.search-suggestion-item__img { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; background: var(--bg); border-radius: var(--radius); padding: 2px; }
.search-suggestion-item__body { flex: 1; min-width: 0; }
.search-suggestion-item__brand { font-size: 10px; font-weight: 700; text-transform: uppercase; font-family: var(--font-mono); color: var(--text-muted); margin-bottom: 2px; }
.search-suggestion-item__name { font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggestion-item__name mark { background: rgba(250,186,0,0.35); border-radius: 2px; padding: 0 1px; font-style: normal; color: inherit; }
.search-suggestion-item__price { font-size: 13px; font-weight: 700; font-family: var(--font-mono); white-space: nowrap; color: var(--text); flex-shrink: 0; }
.search-suggestions__header { padding: 7px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-family: var(--font-mono); background: var(--bg); border-bottom: 1px solid var(--border); }
.search-suggestions__footer { padding: 10px 14px; text-align: center; border-top: 1px solid var(--border); background: var(--bg); }
.search-suggestions__footer a { font-size: 13px; color: var(--navy); font-weight: 600; text-decoration: none; }
.search-suggestions__footer a:hover { color: var(--primary); }
.search-suggestions__empty { padding: 24px 14px; text-align: center; color: var(--text-muted); font-size: 13px; }
.search-suggestions__loading { padding: 16px 14px; text-align: center; color: var(--text-muted); font-size: 13px; font-family: var(--font-mono); }

@media print {
  .header, .nav-categories, .footer, .topbar, .demo-banner, .confirmation-actions { display: none; }
  .main { padding-bottom: 0; }
}

/* ── Header wishlist ─────────────────────────────────────────────────────────── */
.header__wishlist { position: relative; display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; padding: 6px 8px; border-radius: var(--radius); transition: color var(--transition), background var(--transition); }
.header__wishlist:hover { color: var(--primary); background: rgba(0,0,0,.05); }
.header__wishlist svg { flex-shrink: 0; transition: fill var(--transition); }
.header__wishlist:hover svg, .header__wishlist.has-items svg { fill: var(--primary); stroke: var(--primary); }
.header__wishlist-label { font-size: 12px; font-weight: 600; white-space: nowrap; }
.wishlist-icon { position: relative; }
.header__wishlist-badge { position: absolute; top: -8px; right: -10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; font-family: var(--font-mono); min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1; }
@media (max-width: 768px) { .header__wishlist-label { display: none; } }

/* ── Cart promo code ─────────────────────────────────────────────────────────── */
.cart-promo-form { margin: 12px 0; }
.cart-promo-input-row { display: flex; gap: 8px; }
.cart-promo-input { flex: 1; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.5px; transition: border-color var(--transition); }
.cart-promo-input:focus { outline: none; border-color: var(--primary); }
.cart-promo-error { color: var(--danger); font-size: 12px; margin-top: 6px; }
.coupon-list { margin-top: 10px; }
.coupon-list__title { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.coupon-list__items { display: flex; flex-wrap: wrap; gap: 6px; }
.coupon-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; background: #fff; border: 1.5px dashed var(--primary); border-radius: 6px; cursor: pointer; transition: background var(--transition), border-color var(--transition); font-family: var(--font-mono); }
.coupon-card:hover { background: rgba(255,193,7,.08); border-color: var(--navy); }
.coupon-card--active { background: rgba(255,193,7,.15); border-color: var(--navy); border-style: solid; }
.coupon-card__percent { font-size: 13px; font-weight: 800; color: var(--navy); }
.coupon-card__code { font-size: 10px; font-weight: 600; color: var(--text-muted); letter-spacing: .04em; }
.cart-summary__promo-applied { display: flex; justify-content: space-between; align-items: center; background: var(--success-light); border: 1px solid #a5d6a7; border-radius: var(--radius); padding: 8px 10px; margin: 12px 0 4px; font-size: 13px; color: var(--success); }
.btn-promo-remove { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--success); font-weight: 700; line-height: 1; padding: 0 4px; }
.btn-promo-remove:hover { color: var(--danger); }
.cart-summary__discount { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0 8px; }
.cart-summary__discount-amount { color: var(--success); font-weight: 700; }

/* ── Category advanced filters ───────────────────────────────────────────────── */
.sidebar__title--mt { margin-top: 20px; }
.brand-filter { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.brand-filter__item { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.brand-filter__item input { accent-color: var(--primary); width: 14px; height: 14px; cursor: pointer; }
.badge-filter { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.badge-filter__item { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.badge-filter__item input { accent-color: var(--primary); cursor: pointer; }

/* ── Orders date filter ──────────────────────────────────────────────────────── */
.orders-date-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.orders-date-filter label { font-weight: 500; }
.form-input--sm { height: 34px; padding: 4px 8px; font-size: 13px; border: 1.5px solid var(--border); border-radius: var(--radius); }
.form-input--sm:focus { outline: none; border-color: var(--primary); }

/* ── Newsletter success state ────────────────────────────────────────────────── */
.newsletter-btn--success { background: var(--success) !important; border-color: var(--success) !important; color: #fff !important; }

/* ── Favoris page ────────────────────────────────────────────────────────────── */
.page-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; margin-bottom: 24px; }

/* ── FAQ / Aide page ─────────────────────────────────────────────────────────── */
.aide-hero { background: var(--navy); color: var(--white); padding: 48px 0 40px; text-align: center; }
.aide-hero__title { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.aide-hero__sub { color: rgba(255,255,255,.7); font-size: 1rem; }
.faq-layout { display: flex; gap: 48px; margin: 32px 0 64px; align-items: flex-start; }
.faq-sidebar { width: 200px; flex-shrink: 0; position: sticky; top: 80px; }
.faq-nav { display: flex; flex-direction: column; gap: 4px; }
.faq-nav__link { display: block; padding: 8px 12px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: all var(--transition); }
.faq-nav__link:hover { background: var(--bg); color: var(--navy); }
.faq-nav__link--active { background: var(--primary-light); color: var(--navy); font-weight: 700; }
.faq-content { flex: 1; min-width: 0; }
.faq-section { margin-bottom: 48px; }
.faq-section__title { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.faq-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item__question { width: 100%; background: none; border: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; text-align: left; transition: background var(--transition); gap: 12px; }
.faq-item__question:hover { background: var(--bg); }
.faq-item.is-open .faq-item__question { background: var(--primary-light); color: var(--navy); }
.faq-item__icon { font-size: 20px; font-weight: 400; line-height: 1; flex-shrink: 0; color: var(--primary-dark); transition: transform var(--transition); }
.faq-item__answer { padding: 4px 20px 16px; font-size: 14px; color: var(--text); line-height: 1.7; }
.faq-item__answer p { margin-bottom: 8px; }
.faq-item__answer ul { padding-left: 20px; margin: 6px 0; }
.faq-item__answer li { margin-bottom: 4px; }
.faq-item__answer code { font-family: var(--font-mono); background: var(--bg); border: 1px solid var(--border); border-radius: 3px; padding: 1px 5px; font-size: 13px; }
.faq-item__answer a { color: var(--navy); font-weight: 600; }
.faq-item__answer a:hover { color: var(--primary-dark); }

/* ── 404 page ─────────────────────────────────────────────────────────────── */
.not-found { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 80px 24px; gap: 16px; }
.not-found__code { font-size: 96px; font-weight: 800; font-family: var(--font-mono); color: var(--navy); line-height: 1; opacity: .12; }
.not-found__title { font-size: 28px; font-weight: 700; color: var(--navy); margin-top: -48px; }
.not-found__desc { color: var(--text-muted); font-size: 16px; max-width: 400px; }
.not-found__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.not-found__links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.not-found__links a { color: var(--navy); font-weight: 600; text-decoration: none; }
.not-found__links a:hover { color: var(--primary); text-decoration: underline; }

/* ── Nav aide link ────────────────────────────────────────────────────────── */
.nav-link--aide { display: flex; align-items: center; gap: 5px; }
@media (max-width: 768px) {
  .faq-layout { flex-direction: column; gap: 24px; }
  .faq-sidebar { width: 100%; position: static; }
  .faq-nav { flex-direction: row; flex-wrap: wrap; }
}