/* Watt Spot - full stylesheet */
:root {
  --accent: #E8652A;
  --accent-2: #F5A962;
  --accent-soft: rgba(232, 101, 42, 0.1);
  --navy: #1E3A5F;
  --navy-dark: #14263F;
  --navy-soft: rgba(30, 58, 95, 0.08);

  --bg: #F7F8FA;
  --bg-2: #FFFFFF;
  --bg-3: #EEF1F5;
  --fg: #0F1B2D;
  --muted: #6B7A8F;
  --border: #E2E7EE;
  --border-strong: #C9D1DC;

  --ok: #159F6A;
  --warn: #D08E28;
  --danger: #D8443A;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(20,38,63,0.06);
  --shadow: 0 6px 20px rgba(20,38,63,0.08);
  --shadow-lg: 0 20px 50px rgba(20,38,63,0.15);

  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

[data-theme="dark"] {
  --bg: #0B1420;
  --bg-2: #121E2D;
  --bg-3: #1A2638;
  --fg: #E8EEF5;
  --muted: #8595AC;
  --border: #253447;
  --border-strong: #354659;
  --navy: #5A8CC0;
  --navy-soft: rgba(90, 140, 192, 0.12);
}

[data-radius="sharp"] { --radius: 2px; --radius-sm: 2px; --radius-lg: 2px; }
[data-radius="pill"]  { --radius: 20px; --radius-sm: 12px; --radius-lg: 28px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100vw; }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; }
a { color: inherit; cursor: pointer; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.ws-muted { color: var(--muted); font-size: 13px; }
.ws-link { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.ws-link:hover { text-decoration: underline; }
.ws-link-sm { color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; background: none; border: 0; padding: 0; }

/* ======= BUTTONS ======= */
.ws-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; transition: all 0.15s; border: 1px solid transparent; white-space: nowrap; }
.ws-btn-primary { background: var(--accent); color: white; }
.ws-btn-primary:hover { background: #D55A23; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(232,101,42,0.3); }
.ws-btn-secondary { background: var(--navy); color: white; }
.ws-btn-secondary:hover { background: var(--navy-dark); }
.ws-btn-ghost { background: var(--bg-2); color: var(--fg); border: 1px solid var(--border); }
.ws-btn-ghost:hover { background: var(--bg-3); border-color: var(--border-strong); }
.ws-btn-outline { background: transparent; color: var(--fg); border: 1px solid var(--border-strong); }
.ws-btn-outline-light { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); }
.ws-btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.ws-btn-lg { padding: 14px 24px; font-size: 15px; }
.ws-btn-sm { padding: 6px 12px; font-size: 12px; }
.ws-btn-full { width: 100%; justify-content: center; }

.ws-icon-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--fg); font-size: 11px; transition: background 0.15s; }
.ws-icon-btn:hover { background: var(--bg-3); }
.ws-icon-btn-lg { padding: 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); }
.ws-icon-btn-lg:hover { border-color: var(--accent); color: var(--accent); }
.ws-icon-btn-sm { padding: 6px; border-radius: var(--radius-sm); color: var(--muted); }
.ws-icon-btn-sm:hover { background: var(--bg-3); color: var(--danger); }
.ws-ico-label { font-size: 11px; color: var(--muted); }

.ws-badge { position: absolute; top: -6px; right: -8px; background: var(--accent); color: white; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ======= HEADER ======= */
.ws-header { background: var(--bg-2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.ws-header-main { max-width: 1400px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.ws-header-searchwrap { position: relative; flex: 1; max-width: 520px; }
.ws-header-info { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; text-align: right; }
.ws-header-info a { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; text-decoration: none; transition: color 0.15s; }
.ws-header-info a:hover { color: var(--accent); }
.ws-header-info span { display: inline-flex; align-items: center; gap: 4px; }
.ws-header-info-sep { opacity: 0.4; }
.ws-header-lang { font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border: 1px solid var(--border); }
@media (max-width: 1100px) { .ws-header-info { display: none; } }
.ws-search { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 10px 14px; transition: border-color 0.15s; }
.ws-search:focus-within { border-color: var(--accent); }
.ws-search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 14px; }
.ws-search-tag { font-size: 11px; color: var(--muted); background: var(--bg-2); padding: 3px 8px; border-radius: 10px; font-weight: 600; }
.ws-header-actions { display: flex; gap: 4px; }
.ws-nav { max-width: 1400px; margin: 0 auto; padding: 0 32px; display: flex; gap: 4px; border-top: 1px solid var(--border); position: relative; justify-content: space-between; align-items: stretch; }
.ws-nav > * { flex: 1 1 0; display: flex; }
.ws-nav a { flex: 1 1 0; justify-content: center; padding: 14px 14px; font-size: 13px; font-weight: 500; color: var(--fg); display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; transition: all 0.15s; cursor: pointer; }
.ws-nav a:hover { color: var(--accent); }
.ws-nav a.active { border-bottom-color: var(--accent); color: var(--accent); }

/* ======= TOP-LEVEL CATEGORY DROPDOWNS ======= */
/* Each L1 sits inline in `.ws-nav` and opens a 2-column flyout (L2 + L3). */
.ws-megamenu-wrap { display: inline-flex; position: relative; }
.ws-megamenu-trigger { background: transparent; border: 0; cursor: pointer; }
.ws-megamenu { position: absolute; left: 0; top: 100%; z-index: 100; display: flex; background: var(--bg-2); border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
/* Right-anchor the megamenu (and its L3 flyout) for the last two L1
   categories — otherwise their dropdown content extends past the right
   edge of the viewport on standard 1280–1400px screens. */
.ws-megamenu-wrap:nth-last-of-type(1) > .ws-megamenu,
.ws-megamenu-wrap:nth-last-of-type(2) > .ws-megamenu {
  left: auto;
  right: 0;
  flex-direction: row-reverse;
}
.ws-megamenu-wrap:nth-last-of-type(1) > .ws-megamenu .ws-mm-col,
.ws-megamenu-wrap:nth-last-of-type(2) > .ws-megamenu .ws-mm-col {
  border-right: 0;
  border-left: 1px solid var(--border);
}
.ws-megamenu-wrap:nth-last-of-type(1) > .ws-megamenu .ws-mm-col:last-child,
.ws-megamenu-wrap:nth-last-of-type(2) > .ws-megamenu .ws-mm-col:last-child {
  border-left: 0;
}
.ws-mm-col { display: flex; flex-direction: column; min-width: 260px; max-height: 70vh; overflow-y: auto; border-right: 1px solid var(--border); }
.ws-mm-col:last-child { border-right: 0; }
.ws-mm-col-2 { background: var(--bg-2); }
.ws-mm-col-3 { background: var(--bg); min-width: 230px; }
.ws-mm-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; font-size: 12.5px; font-weight: 500; color: var(--fg); background: transparent; border: 0; cursor: pointer; text-align: left; transition: background 0.1s, color 0.1s; }
.ws-mm-item:hover, .ws-mm-item.active { background: var(--accent); color: #fff; }
.ws-mm-item.active svg { color: #fff; }
.ws-mm-leaf { font-weight: 400; padding-left: 18px; }
.ws-mm-leaf:hover { background: var(--accent-soft); color: var(--accent); }
.ws-nav-promo { margin-left: auto; color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 6px; padding: 12px 14px; font-size: 12.5px; }
.ws-subcat-row { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 16px; }
.ws-subcat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--bg-2); border: 1px solid var(--border); color: var(--fg); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background 0.1s, color 0.1s, border-color 0.1s; }
.ws-subcat-chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ======= NOS MARQUES ======= */
.ws-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.ws-brand-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px; background: var(--bg-2); border: 1px solid var(--border); cursor: pointer; transition: border-color 0.15s, transform 0.15s; text-align: center; }
.ws-brand-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ws-brand-logo { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; background: white; padding: 10px; border-radius: var(--radius-sm); }
.ws-brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ws-brand-logo svg { color: var(--muted); }
.ws-brand-name { font-weight: 700; font-size: 14px; color: var(--fg); }
.ws-brand-count { font-size: 11px; color: var(--muted); }
.ws-brand-head { display: flex; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); margin-bottom: 8px; flex-wrap: wrap; }
.ws-brand-head-logo { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; background: white; padding: 12px; border: 1px solid var(--border); flex-shrink: 0; }
.ws-brand-head-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ws-brand-head-logo svg { color: var(--muted); }

/* ======= HERO ======= */
.ws-home { max-width: 1400px; margin: 0 auto; padding: 32px; display: flex; flex-direction: column; gap: 48px; }
.ws-hero { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: white; border-radius: var(--radius-lg); padding: 64px 56px; overflow: hidden; }
.ws-hero-bg { position: absolute; inset: 0; }
.ws-hero-content, .ws-hero-visual { position: relative; z-index: 1; }
.ws-hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: rgba(232,101,42,0.15); border: 1px solid rgba(232,101,42,0.4); color: var(--accent-2); padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.ws-hero h1 { font-size: 52px; line-height: 1.05; margin: 20px 0 16px; font-weight: 700; }
.ws-hero p { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 480px; line-height: 1.55; }
.ws-hero-cta { display: flex; gap: 12px; margin-bottom: 40px; }
.ws-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15); }
.ws-hero-stats strong { font-family: var(--font-display); font-size: 26px; font-weight: 700; display: block; color: var(--accent-2); }
.ws-hero-stats span { font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.ws-hero-visual { display: flex; align-items: center; justify-content: center; }
/* Hero card has a fixed white background, so its text needs a fixed dark
   color too — otherwise in dark mode `var(--fg)` resolves to white and the
   product name disappears against the white card. */
.ws-hero-card { background: white; color: #1a1a1a; border-radius: var(--radius-lg); padding: 20px; width: 280px; box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.ws-hero-card * { color: inherit; }
.ws-hero-card .ws-hero-card-body > div:first-child { color: #6b6b6b !important; }
.ws-hero-card-tag { background: var(--accent); color: white !important; display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; margin-bottom: 12px; }
.ws-hero-card-body { margin-top: 12px; }

/* ======= SECTIONS ======= */
.ws-section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.ws-section-head h2 { display: inline-block; }

/* Categories grid */
.ws-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ws-cat-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; align-items: center; gap: 14px; transition: all 0.15s; cursor: pointer; }
.ws-cat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.ws-cat-icon { width: 48px; height: 48px; background: var(--accent-soft); color: var(--accent); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ws-cat-nom { font-weight: 600; font-size: 14px; }
.ws-cat-count { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ws-cat-arrow { margin-left: auto; color: var(--muted); }
.ws-cat-card:hover .ws-cat-arrow { color: var(--accent); }

/* Product grid */
.ws-prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ws-prod-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.2s; cursor: pointer; display: flex; flex-direction: column; }
.ws-prod-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.ws-prod-thumb { aspect-ratio: 1; background: var(--bg-3); position: relative; overflow: hidden; }
.ws-prod-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ws-prod-thumb .ws-chip { position: absolute; top: 10px; left: 10px; z-index: 2; }
.ws-fav { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.9); color: var(--muted); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.ws-fav:hover { color: var(--accent); }
.ws-prod-body { padding: 14px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.ws-prod-meta { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.ws-prod-nom { font-size: 14px; font-weight: 600; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 38px; }
.ws-prod-note { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.ws-stock { font-weight: 600; font-size: 11px; }
.ws-prod-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.ws-prod-price strong { font-size: 16px; font-family: var(--font-display); font-weight: 700; color: var(--fg); }
.ws-prod-price-old { text-decoration: line-through; color: var(--muted); font-size: 12px; margin-left: 6px; }
.ws-btn-add { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.ws-btn-add:hover { background: var(--navy); transform: scale(1.1); }

/* Chips */
.ws-chip { display: inline-block; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: var(--radius-sm); letter-spacing: 0.04em; text-transform: uppercase; }
.ws-chip-promo { background: var(--accent); color: white; }
.ws-chip-bestseller { background: var(--navy); color: white; }
.ws-chip-nouveau { background: var(--ok); color: white; }
.ws-chip-pro { background: #7A4AE8; color: white; }
.ws-chip-default { background: var(--accent-soft); color: var(--accent); }
.ws-chip-vip { background: #D4AF37; color: white; }
.ws-chip-actif { background: rgba(21,159,106,0.12); color: var(--ok); }
.ws-chip-nouveau { background: rgba(30,58,95,0.12); color: var(--navy); }
.ws-chip-nav { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; font-size: 12px; font-weight: 500; }
.ws-chip-nav:hover { border-color: var(--accent); color: var(--accent); }

/* Banner */
.ws-banner { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%); border-radius: var(--radius-lg); padding: 48px; color: white; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.ws-banner::before { content: ''; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; background: var(--accent); border-radius: 50%; opacity: 0.15; filter: blur(80px); }
.ws-banner-eyebrow { font-size: 11px; letter-spacing: 0.15em; color: var(--accent-2); font-weight: 600; margin-bottom: 12px; }
.ws-banner-text h3 { font-size: 32px; line-height: 1.15; margin-bottom: 12px; }
.ws-banner-text p { color: rgba(255,255,255,0.75); margin-bottom: 24px; max-width: 420px; }
.ws-banner-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; z-index: 1; }
.ws-banner-stat { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 18px; text-align: center; }
.ws-banner-stat strong { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--accent-2); }
.ws-banner-stat span { color: rgba(255,255,255,0.7); font-size: 12px; }

/* Trust strip */
.ws-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ws-trust > div { display: flex; align-items: center; gap: 14px; }
.ws-trust > div > svg { color: var(--accent); flex-shrink: 0; }
.ws-trust strong { display: block; font-size: 14px; font-weight: 600; }
.ws-trust span { display: block; color: var(--muted); font-size: 12px; }

/* ======= CATEGORY PAGE ======= */
.ws-cat-page { max-width: 1400px; margin: 0 auto; padding: 24px 32px; }
.ws-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.ws-breadcrumb a { cursor: pointer; color: var(--muted); }
.ws-breadcrumb a:hover { color: var(--accent); }
.ws-breadcrumb span:last-child { color: var(--fg); font-weight: 600; }
.ws-cat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.ws-cat-head h1 { font-size: 34px; margin-bottom: 6px; }
.ws-cat-badges { display: flex; gap: 8px; flex-wrap: wrap; max-width: 50%; justify-content: flex-end; }
.ws-cat-body { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }

.ws-filters { position: sticky; top: 180px; align-self: start; }
.ws-filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ws-filter-head h3 { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.ws-filter-block { padding: 16px 0; border-top: 1px solid var(--border); }
.ws-filter-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 10px; }
.ws-filter-block input[type="range"] { width: 100%; accent-color: var(--accent); }
.ws-filter-range { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.ws-filter-range strong { color: var(--accent); }
.ws-check { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; cursor: pointer; }
.ws-check input { accent-color: var(--accent); }
.ws-count { margin-left: auto; font-size: 11px; }
.ws-star-row { display: flex; align-items: center; gap: 2px; padding: 4px 0; font-size: 12px; color: var(--muted); cursor: pointer; }

.ws-cat-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 13px; }
.ws-toolbar-actions { display: flex; gap: 8px; align-items: center; }
.ws-select { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); font-size: 13px; }
.ws-view-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.ws-view-toggle button { padding: 8px 10px; background: var(--bg-2); }
.ws-view-toggle button.active { background: var(--accent); color: white; }

.ws-prod-list { display: flex; flex-direction: column; gap: 12px; }
.ws-prod-row { display: flex; gap: 16px; padding: 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all 0.15s; }
.ws-prod-row:hover { border-color: var(--accent); transform: translateX(2px); }
.ws-prod-row-thumb { width: 120px; height: 120px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-3); }

.ws-empty { text-align: center; padding: 80px 20px; }
.ws-empty h3 { margin: 16px 0 6px; }

/* ======= PRODUCT DETAIL ======= */
.ws-pd { max-width: 1400px; margin: 0 auto; padding: 24px 32px; }
.ws-pd-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-bottom: 40px; }
.ws-pd-gallery { position: relative; }
.ws-pd-main { position: relative; background: var(--bg-3); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.ws-pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.ws-pd-thumb { aspect-ratio: 1; background: var(--bg-3); border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; }
.ws-pd-thumb.active { border-color: var(--accent); }

/* Fullscreen image lightbox */
.ws-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10,14,20,0.92); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.ws-lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; cursor: default; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.ws-lightbox-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s; }
.ws-lightbox-close:hover { background: rgba(255,255,255,0.2); }
.ws-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s; }
.ws-lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.ws-lightbox-prev { left: 20px; }
.ws-lightbox-next { right: 20px; }
.ws-lightbox-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 500; background: rgba(255,255,255,0.1); padding: 6px 14px; border-radius: 20px; }
.ws-pd-meta { display: flex; gap: 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; margin-bottom: 8px; }
.ws-pd-info h1 { font-size: 30px; line-height: 1.2; margin-bottom: 4px; }
.ws-pd-price { display: flex; align-items: baseline; gap: 12px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 20px 0; flex-wrap: wrap; }
.ws-pd-price strong { font-size: 36px; font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.ws-pd-price-old { text-decoration: line-through; color: var(--muted); font-size: 17px; }
.ws-pd-tax { width: 100%; font-size: 12px; color: var(--muted); }

.ws-pd-options { margin-bottom: 20px; }
.ws-pd-opt-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; font-size: 14px; }
.ws-pd-opt-row label { font-weight: 600; min-width: 80px; }
.ws-qte { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.ws-qte button { width: 32px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg-2); color: var(--fg); }
.ws-qte button:hover { background: var(--bg-3); }
.ws-qte span { min-width: 40px; text-align: center; font-weight: 600; }

.ws-pd-cta { display: flex; gap: 10px; margin-bottom: 24px; }
.ws-pd-cta .ws-btn-lg { flex: 1; justify-content: center; }

.ws-pd-assurance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); }
.ws-pd-assurance > div { display: flex; gap: 10px; align-items: center; }
.ws-pd-assurance svg { color: var(--accent); flex-shrink: 0; }
.ws-pd-assurance strong { display: block; font-size: 12px; }
.ws-pd-assurance span { display: block; font-size: 11px; color: var(--muted); }

.ws-pd-tabs { border-top: 1px solid var(--border); padding-top: 32px; margin-bottom: 48px; }
.ws-tab-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.ws-tab-nav button { padding: 12px 20px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ws-tab-nav button.active { color: var(--accent); border-bottom-color: var(--accent); }

.ws-pd-desc p { line-height: 1.7; margin: 0 0 14px; max-width: 720px; }
.ws-pd-desc ul { line-height: 1.9; padding-left: 20px; max-width: 720px; }
.ws-spec-table { width: 100%; max-width: 720px; border-collapse: collapse; }
.ws-spec-table tr:nth-child(even) { background: var(--bg-2); }
.ws-spec-table th, .ws-spec-table td { padding: 12px 16px; text-align: left; font-size: 14px; }
.ws-spec-table th { color: var(--muted); font-weight: 500; width: 40%; }

.ws-avis { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.ws-avis-summary { padding: 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); }
.ws-avis-big strong { font-size: 48px; font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.ws-avis-big span { color: var(--muted); font-size: 20px; }
.ws-avis-bars { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.ws-avis-bar { display: grid; grid-template-columns: 24px 1fr 40px; gap: 8px; align-items: center; }
.ws-avis-track { height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.ws-avis-track > div { height: 100%; background: var(--accent); }
.ws-avis-list { display: flex; flex-direction: column; gap: 16px; }
.ws-avis-item { padding: 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); }
.ws-avis-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ws-avatar { width: 40px; height: 40px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ws-avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.ws-avis-item p { margin: 0; line-height: 1.6; font-size: 14px; }

.ws-doc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 720px; }
.ws-doc-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.ws-doc-item:hover { border-color: var(--accent); }
.ws-doc-item span:first-of-type { flex: 1; font-weight: 600; font-size: 13px; }
.ws-doc-item span:last-child { font-size: 11px; background: var(--accent-soft); color: var(--accent); padding: 2px 6px; border-radius: var(--radius-sm); font-weight: 700; }

/* ======= CART ======= */
.ws-cart { max-width: 1400px; margin: 0 auto; padding: 24px 32px; }
.ws-cart h1 { margin-bottom: 24px; }
.ws-cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.ws-cart-items { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ws-cart-head { display: grid; grid-template-columns: 1fr 140px 100px 40px; gap: 16px; padding: 14px 20px; background: var(--bg-3); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.ws-cart-row { display: grid; grid-template-columns: 1fr 140px 100px 40px; gap: 16px; padding: 20px; border-top: 1px solid var(--border); align-items: center; }
.ws-cart-prod { display: flex; gap: 14px; align-items: center; min-width: 0; }
.ws-cart-thumb { width: 72px; height: 72px; background: var(--bg-3); border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; position: relative; }
.ws-cart-thumb.ws-sm { width: 44px; height: 44px; }
.ws-cart-actions { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-top: 1px solid var(--border); background: var(--bg-3); }

.ws-cart-summary { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: 180px; }
.ws-cart-summary h3 { margin-bottom: 16px; }
.ws-sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.ws-sum-quote { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--accent-soft); border: 1px solid var(--accent); margin-bottom: 12px; }
.ws-sum-quote svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.ws-pd-quote { padding: 14px 16px; background: var(--accent-soft); border: 1px solid var(--accent); margin-bottom: 16px; }
.ws-pd-quote .ws-pd-tax { color: var(--muted); font-size: 12px; margin-top: 4px; }
.ws-sum-total { display: flex; justify-content: space-between; padding: 16px 0; margin-top: 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 16px; font-weight: 600; }
.ws-sum-total strong { font-size: 22px; color: var(--accent); font-family: var(--font-display); }
.ws-sum-hint { margin: 10px 0; padding: 10px 12px; background: var(--accent-soft); border-radius: var(--radius-sm); font-size: 12px; color: var(--fg); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ws-sum-hint svg { color: var(--accent); flex-shrink: 0; }
.ws-progress { width: 100%; height: 4px; background: white; border-radius: 2px; overflow: hidden; margin-top: 6px; }
.ws-progress > div { height: 100%; background: var(--accent); transition: width 0.3s; }
.ws-promo-input { display: flex; margin: 16px 0; }
.ws-promo-input input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--bg); outline: none; }
.ws-promo-input button { padding: 10px 16px; background: var(--navy); color: white; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 600; font-size: 13px; }
.ws-cart-pay { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; }
.ws-pay-logos { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.ws-pay-logos > div { padding: 4px 8px; background: var(--bg-3); border-radius: var(--radius-sm); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; }

.ws-cart-empty { max-width: 480px; margin: 80px auto; text-align: center; padding: 40px 20px; }
.ws-cart-empty h2 { margin: 20px 0 6px; }
.ws-cart-empty p { color: var(--muted); margin-bottom: 24px; }

/* ======= CHECKOUT ======= */
.ws-checkout { max-width: 1400px; margin: 0 auto; padding: 24px 32px; }
.ws-steps { display: flex; justify-content: center; gap: 48px; margin: 24px 0 32px; }
.ws-step { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 14px; position: relative; }
.ws-step:not(:last-child)::after { content: ''; position: absolute; left: calc(100% + 8px); top: 50%; width: 32px; height: 1px; background: var(--border); }
.ws-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.ws-step.active { color: var(--accent); }
.ws-step.active .ws-step-num { background: var(--accent); color: white; border-color: var(--accent); }
.ws-step.done { color: var(--ok); }
.ws-step.done .ws-step-num { background: var(--ok); color: white; border-color: var(--ok); }

.ws-checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }

.ws-form-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.ws-form-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.ws-form-card h3 svg { color: var(--accent); }
.ws-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ws-form-grid .ws-span-2 { grid-column: span 2; }
.ws-form-grid label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ws-form-grid input, .ws-form-grid select, .ws-form-grid textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); outline: none; transition: border-color 0.15s; }
.ws-form-grid input:focus, .ws-form-grid select:focus, .ws-form-grid textarea:focus { border-color: var(--accent); }

.ws-radio { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); margin-top: 10px; cursor: pointer; transition: all 0.15s; }
.ws-radio:hover { border-color: var(--border-strong); }
.ws-radio.active { border-color: var(--accent); background: var(--accent-soft); }
.ws-radio input { accent-color: var(--accent); }
.ws-radio > div { flex: 1; }
.ws-radio > div strong { display: block; font-size: 14px; }
.ws-radio > div span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ws-radio svg { color: var(--accent); }

.ws-card-form { margin-top: 20px; padding: 20px; background: var(--bg); border-radius: var(--radius-sm); border: 1px dashed var(--border); }
.ws-form-cta { display: flex; justify-content: space-between; margin-top: 24px; }

.ws-recap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.ws-recap strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; }
.ws-recap p { margin: 0; line-height: 1.7; font-size: 14px; }
.ws-recap-items { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.ws-recap-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); }

.ws-mini-items { max-height: 280px; overflow-y: auto; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.ws-mini-item { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.ws-mini-qte { position: absolute; top: -6px; right: -6px; background: var(--navy); color: white; border-radius: 50%; min-width: 20px; height: 20px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.ws-confirm { max-width: 640px; margin: 60px auto; text-align: center; padding: 40px; }
.ws-confirm-icon { width: 88px; height: 88px; background: var(--ok); color: white; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.ws-confirm h1 { margin-bottom: 8px; }
.ws-confirm > p { color: var(--muted); margin-bottom: 28px; font-size: 15px; }
.ws-confirm-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: left; margin-bottom: 28px; }
.ws-confirm-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.ws-confirm-row + .ws-confirm-row { border-top: 1px solid var(--border); }

/* ======= AUTH ======= */
.ws-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.ws-auth-card { padding: 48px 64px; display: flex; flex-direction: column; justify-content: center; max-width: 520px; margin: 0 auto; width: 100%; }
.ws-auth-card h2 { margin: 32px 0 6px; font-size: 28px; }
.ws-auth-card > p { color: var(--muted); margin-bottom: 28px; }
.ws-field { margin-bottom: 14px; }
.ws-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ws-field input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); outline: none; }
.ws-field input:focus { border-color: var(--accent); }
.ws-sep { position: relative; text-align: center; margin: 20px 0; color: var(--muted); font-size: 12px; }
.ws-sep::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.ws-sep span { position: relative; background: var(--bg); padding: 0 12px; }
.ws-auth-swap { text-align: center; margin-top: 24px; color: var(--muted); font-size: 13px; }
.ws-auth-swap a { color: var(--accent); font-weight: 600; cursor: pointer; }

.ws-auth-visual { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: white; padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; overflow: hidden; }
.ws-auth-bolt { margin-bottom: 32px; animation: pulse 2.5s infinite ease-in-out; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.ws-auth-visual h3 { font-size: 24px; line-height: 1.3; margin-bottom: 24px; max-width: 400px; }
.ws-auth-visual ul { list-style: none; padding: 0; margin: 0; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.ws-auth-visual li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 14px; }
.ws-auth-visual li svg { color: var(--accent-2); }

/* ======= ACCOUNT ======= */
.ws-account { max-width: 1400px; margin: 0 auto; padding: 24px 32px; }
.ws-account-head { display: flex; align-items: center; gap: 20px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.ws-account-head h1 { margin-bottom: 4px; }
.ws-account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.ws-account-nav { display: flex; flex-direction: column; gap: 2px; }
.ws-account-nav button { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; text-align: left; color: var(--fg); transition: all 0.15s; }
.ws-account-nav button:hover { background: var(--bg-2); }
.ws-account-nav button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.ws-cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.ws-stat-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.ws-stat-card > span:first-child { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.ws-stat-card strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; margin: 6px 0 4px; color: var(--fg); }
.ws-stat-card > span:last-child { font-size: 12px; }

.ws-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ws-addr-card, .ws-pay-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.ws-addr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ws-addr-card p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 0 14px; }
.ws-addr-actions { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.ws-addr-actions button { display: flex; align-items: center; gap: 4px; padding: 6px 10px; font-size: 12px; color: var(--muted); border-radius: var(--radius-sm); }
.ws-addr-actions button:hover { background: var(--bg-3); color: var(--accent); }
.ws-addr-add { border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.ws-addr-add:hover { border-color: var(--accent); color: var(--accent); }
.ws-pay-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }

.ws-toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.ws-toggle-row:last-child { border-bottom: 0; }
.ws-toggle { position: relative; width: 40px; height: 22px; }
.ws-toggle input { opacity: 0; width: 0; height: 0; }
.ws-toggle span { position: absolute; inset: 0; background: var(--border-strong); border-radius: 11px; cursor: pointer; transition: 0.2s; }
.ws-toggle span::before { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: white; border-radius: 50%; transition: 0.2s; }
.ws-toggle input:checked + span { background: var(--accent); }
.ws-toggle input:checked + span::before { transform: translateX(18px); }

/* ======= TABLE ======= */
.ws-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ws-table thead th { text-align: left; padding: 12px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; background: var(--bg-3); border-bottom: 1px solid var(--border); }
.ws-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ws-table tr:hover td { background: var(--bg); }
.ws-table tr:last-child td { border-bottom: 0; }

.ws-status { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.ws-status-enattente { background: rgba(208,142,40,0.12); color: var(--warn); }
.ws-status-preparation { background: rgba(30,58,95,0.12); color: var(--navy); }
.ws-status-enpreparation { background: rgba(30,58,95,0.12); color: var(--navy); }
.ws-status-expediee { background: rgba(232,101,42,0.12); color: var(--accent); }
.ws-status-livree { background: rgba(21,159,106,0.12); color: var(--ok); }
.ws-status-annulee { background: rgba(216,68,58,0.12); color: var(--danger); }

.adm-stock-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; white-space: nowrap; }

.adm-stock-choice { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-stock-choice button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; border: 1px solid var(--border); background: var(--bg-2); color: var(--muted); cursor: pointer; transition: all 0.15s; }
.adm-stock-choice button:hover { border-color: var(--accent); color: var(--text); }
.adm-stock-choice button.active { border-color: transparent; }

.ws-stock-badge { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.ws-stock-badge-ok { background: rgba(21,159,106,0.12); color: var(--ok); }
.ws-stock-badge-warn { background: rgba(208,142,40,0.12); color: var(--warn); }
.ws-stock-badge-danger { background: rgba(216,68,58,0.12); color: var(--danger); }

/* ======= ADMIN SHELL ======= */
.adm-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--bg); }
.adm-sidebar { background: var(--bg-2); border-right: 1px solid var(--border); padding: 20px 14px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100vh; }
.adm-logo { display: flex; align-items: center; gap: 10px; padding: 0 6px 16px; border-bottom: 1px solid var(--border); }
.adm-logo strong { display: block; font-family: var(--font-display); font-size: 15px; }
.adm-logo span { display: block; font-size: 11px; color: var(--muted); }
.adm-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.adm-nav-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 8px 10px 6px; }
.adm-nav button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--fg); text-align: left; font-size: 13px; font-weight: 500; width: 100%; transition: all 0.15s; }
.adm-nav button:hover { background: var(--bg-3); }
.adm-nav button.active { background: var(--accent); color: white; box-shadow: 0 4px 12px rgba(232,101,42,0.3); }
.adm-nav button span:first-of-type { flex: 1; }
.adm-badge { background: var(--accent); color: white; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.adm-nav button.active .adm-badge { background: white; color: var(--accent); }
.adm-admin-card { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--bg-3); border-radius: var(--radius); }
.adm-admin-card strong { display: block; font-size: 13px; }
.adm-admin-card span { display: block; font-size: 11px; color: var(--muted); }

.adm-main { display: flex; flex-direction: column; min-width: 0; }
.adm-topbar { display: flex; align-items: center; gap: 16px; padding: 14px 28px; background: var(--bg-2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.adm-search { flex: 1; max-width: 480px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.adm-search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 13px; }
.adm-topbar-actions { margin-left: auto; display: flex; gap: 8px; }
.adm-ico { position: relative; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--fg); cursor: pointer; border: 0; }
.adm-ico:hover { background: var(--bg-3); }
.adm-content { padding: 24px 28px; flex: 1; }

/* Admin top-bar search dropdown */
.adm-search-drop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(0,0,0,.35); max-height: 420px; overflow-y: auto; z-index: 100; }
.adm-search-section + .adm-search-section { border-top: 1px solid var(--border); }
.adm-search-head { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 14px 6px; }
.adm-search-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; background: transparent; border: 0; color: var(--fg); text-align: left; cursor: pointer; }
.adm-search-item:hover { background: var(--bg-3); }
.adm-search-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-search-sub { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.adm-search-empty { padding: 20px; text-align: center; color: var(--muted); font-size: 13px; }

/* Admin notification bell */
.adm-notif-dot { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--accent); color: #fff; border-radius: 9px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg-2); }
.adm-notif-drop { position: absolute; top: calc(100% + 8px); right: 0; width: 360px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(0,0,0,.35); max-height: 440px; overflow-y: auto; z-index: 100; }
.adm-notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.adm-notif-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.adm-notif-item { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.adm-notif-item:last-of-type { border-bottom: 0; }
.adm-notif-foot { width: 100%; padding: 10px 14px; background: var(--bg-3); border: 0; border-top: 1px solid var(--border); color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.adm-notif-foot:hover { background: var(--bg); }

/* Page head / cards */
.adm-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.adm-page-head h1 { font-size: 26px; }

.adm-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.adm-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.adm-card-head h3 { margin: 0; }
.adm-card-head span.ws-muted { font-size: 12px; }

.adm-row { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.adm-row .adm-wide { grid-column: span 1; }
.adm-row:has(> :nth-child(3)) { grid-template-columns: 1fr 2fr; }

/* KPI cards */
.adm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.adm-kpi { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.adm-kpi-top { display: flex; justify-content: space-between; align-items: flex-start; }
.adm-kpi-icon { width: 36px; height: 36px; background: var(--accent-soft); color: var(--accent); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.adm-delta { display: inline-flex; align-items: center; gap: 2px; padding: 3px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.adm-delta.up { background: rgba(21,159,106,0.12); color: var(--ok); }
.adm-delta.down { background: rgba(216,68,58,0.12); color: var(--danger); }
.adm-kpi-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-top: 6px; }
.adm-kpi-label { color: var(--muted); font-size: 13px; }
.adm-spark { width: 100%; height: 36px; margin-top: 8px; }

/* Chart */
.adm-chart-card { min-height: 340px; }
.adm-tabs-sm { display: flex; gap: 4px; background: var(--bg-3); padding: 3px; border-radius: var(--radius-sm); }
.adm-tabs-sm button { padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--muted); border-radius: var(--radius-sm); }
.adm-tabs-sm button.active { background: var(--bg-2); color: var(--fg); box-shadow: var(--shadow-sm); }

.adm-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; height: 240px; align-items: flex-end; padding: 16px 0 28px; }
.adm-bar-col { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 4px; position: relative; }
.adm-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.adm-bar { width: 100%; background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%); border-radius: 4px 4px 0 0; position: relative; min-height: 4px; cursor: pointer; transition: filter 0.15s; }
.adm-bar:hover { filter: brightness(1.1); }
.adm-bar-tip { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--navy); color: white; padding: 3px 8px; border-radius: var(--radius-sm); font-size: 10px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 0.15s; pointer-events: none; margin-bottom: 4px; }
.adm-bar:hover .adm-bar-tip { opacity: 1; }
.adm-bar-label { font-size: 10px; color: var(--muted); }

/* Donut legend */
.adm-donut-wrap { display: flex; justify-content: center; padding: 12px; }
.adm-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.adm-legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.adm-legend-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.adm-legend-item span:nth-child(2) { flex: 1; }
.adm-legend-item strong { font-weight: 700; }

/* Table */
.adm-table td, .adm-table th { font-size: 12px; padding: 10px 14px; }
.adm-table .adm-mono { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.adm-row-btn { width: 28px; height: 28px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.adm-row-btn:hover { background: var(--bg-3); color: var(--accent); }

.adm-pagination { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid var(--border); margin: 16px -20px -20px; background: var(--bg); }
.adm-pages { display: flex; gap: 4px; }
.adm-pages button { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; color: var(--muted); }
.adm-pages button:hover:not(:disabled) { background: var(--bg-3); color: var(--fg); }
.adm-pages button.active { background: var(--accent); color: white; }

/* Alerts */
.adm-alerts, .adm-top-list { display: flex; flex-direction: column; gap: 10px; }
.adm-alert, .adm-top-row { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.adm-alert-thumb { width: 40px; height: 40px; background: var(--bg-3); border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.adm-rank { width: 24px; height: 24px; background: var(--accent); color: white; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }

/* Activity */
.adm-live { display: flex; align-items: center; gap: 6px; color: var(--ok); font-size: 11px; font-weight: 600; }
.adm-live-dot { width: 8px; height: 8px; background: var(--ok); border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.adm-activity { display: flex; flex-direction: column; gap: 0; }
.adm-act-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.adm-act-row:last-child { border-bottom: 0; }
.adm-act-row > div:nth-child(2) { font-size: 13px; }
.adm-act-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.adm-act-accent { background: var(--accent-soft); color: var(--accent); }
.adm-act-ok { background: rgba(21,159,106,0.12); color: var(--ok); }
.adm-act-navy { background: rgba(30,58,95,0.12); color: var(--navy); }
.adm-act-warn { background: rgba(208,142,40,0.12); color: var(--warn); }

/* Pills */
.adm-pills { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; }
.adm-pills button { padding: 8px 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.adm-pills button span { background: var(--bg-3); padding: 2px 6px; border-radius: 8px; font-size: 10px; }
.adm-pills button.active { background: var(--accent); color: white; border-color: var(--accent); }
.adm-pills button.active span { background: rgba(255,255,255,0.2); }

.adm-toolbar { display: flex; gap: 10px; align-items: center; margin: -4px 0 14px; }
.adm-search-inline { flex: 1; max-width: 360px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.adm-search-inline input { flex: 1; background: transparent; border: 0; outline: none; font-size: 13px; }

/* Order detail */
.adm-timeline { display: flex; justify-content: space-between; gap: 8px; padding: 20px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; position: relative; }
.adm-timeline::before { content: ''; position: absolute; top: 50%; left: 60px; right: 60px; height: 2px; background: var(--border); z-index: 0; }
.adm-step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; flex: 1; }
.adm-step-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.adm-step.done .adm-step-dot { background: var(--ok); color: white; border-color: var(--ok); }
.adm-step span { font-size: 12px; color: var(--muted); font-weight: 600; }
.adm-step.done span { color: var(--ok); }

.adm-order-totals { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); max-width: 320px; margin-left: auto; }

.adm-client-card { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.adm-mini-rows { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.adm-mini-rows > div { display: flex; align-items: center; gap: 6px; }

/* Stock bar */
.adm-stock-bar { width: 100%; height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.adm-stock-fill { height: 100%; background: var(--ok); transition: width 0.3s; }
.adm-stock-fill.warn { background: var(--warn); }
.adm-stock-fill.danger { background: var(--danger); }

/* Editor */
.adm-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.adm-img-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.adm-img-slot { aspect-ratio: 1; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.adm-img-slot.primary { border-color: var(--accent); border-width: 2px; }
.adm-img-empty { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); cursor: pointer; font-size: 11px; }
.adm-img-empty:hover { color: var(--accent); background: var(--accent-soft); }
.adm-tags-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); min-height: 40px; }
.adm-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; background: var(--accent-soft); color: var(--accent); border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; }
.adm-tags-input input { flex: 1; min-width: 100px; background: transparent; border: 0; outline: none; padding: 2px; }

/* Admin cat grid */
.adm-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.adm-cat-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; }
.adm-cat-icon { width: 48px; height: 48px; background: var(--accent-soft); color: var(--accent); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.adm-cat-stats { display: flex; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ======= TWEAKS PANEL ======= */
.tw-toggle-btn { position: fixed; bottom: 20px; right: 20px; width: 48px; height: 48px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); z-index: 999; }
.wa-fab { position: fixed; bottom: 80px; right: 20px; width: 56px; height: 56px; background: #25D366; color: white; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(37,211,102,0.45); z-index: 999; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.wa-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 14px 30px rgba(37,211,102,0.55); }
.wa-fab svg { display: block; }

/* WhatsApp click-to-chat widget (in-page preview → opens WA app on send) */
.wa-panel { position: fixed; bottom: 150px; right: 20px; width: 340px; max-width: calc(100vw - 40px); background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); z-index: 999; display: flex; flex-direction: column; overflow: hidden; animation: wa-pop 0.18s ease-out; }
@keyframes wa-pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.wa-panel-head { background: #075E54; color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.wa-avatar { width: 36px; height: 36px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-status { font-size: 11px; opacity: 0.85; display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.wa-dot { width: 7px; height: 7px; background: #4ADE80; border-radius: 50%; display: inline-block; }
.wa-close { background: transparent; border: 0; color: rgba(255,255,255,0.85); cursor: pointer; padding: 6px; border-radius: 50%; display: flex; }
.wa-close:hover { background: rgba(255,255,255,0.12); }
.wa-body { padding: 16px 14px; background: #0b141a; min-height: 110px; max-height: 220px; overflow-y: auto; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 8px); }
.wa-bubble { background: #1f2c33; color: #e8ecef; padding: 10px 12px; border-radius: 0 12px 12px 12px; font-size: 13px; line-height: 1.5; max-width: 85%; box-shadow: 0 1px 1px rgba(0,0,0,0.2); }
.wa-form { display: flex; gap: 8px; padding: 10px; background: var(--bg); border-top: 1px solid var(--border); }
.wa-form input { flex: 1; background: var(--bg-2); border: 1px solid var(--border); color: var(--fg); padding: 9px 12px; border-radius: 20px; font-size: 13px; font-family: inherit; outline: none; }
.wa-form input:focus { border-color: #25D366; }
.wa-form button { width: 36px; height: 36px; background: #25D366; color: #fff; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: transform 0.1s; }
.wa-form button:hover { transform: scale(1.06); }
.wa-foot { font-size: 10.5px; color: var(--muted); text-align: center; padding: 6px 12px 10px; display: flex; align-items: center; justify-content: center; gap: 4px; background: var(--bg); }
.tw-panel { position: fixed; bottom: 80px; right: 20px; width: 300px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 999; padding: 18px; }
.tw-panel h4 { font-family: var(--font-display); margin: 0 0 14px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.tw-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tw-row > label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
.tw-seg { display: flex; gap: 4px; background: var(--bg-3); padding: 3px; border-radius: var(--radius-sm); }
.tw-seg button { flex: 1; padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--muted); border-radius: var(--radius-sm); }
.tw-seg button.active { background: var(--bg-2); color: var(--accent); box-shadow: var(--shadow-sm); }
.tw-colors { display: flex; gap: 6px; }
.tw-color { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.tw-color.active { border-color: var(--fg); transform: scale(1.1); }

/* Footer */
.ws-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 48px 32px 24px; margin-top: 64px; }
.ws-footer-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.ws-footer h5 { color: white; font-size: 13px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.05em; text-transform: uppercase; }
.ws-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ws-footer a:hover { color: var(--accent-2); }
.ws-footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.5); }

/* ==================================================================
   Phase 2: admin toasts, modals, and supporting chips/buttons
   ================================================================== */
.ws-toast-host { position: fixed; top: 72px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.ws-toast { pointer-events: auto; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg); color: var(--fg); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.15); font-size: 13px; font-weight: 500; min-width: 240px; animation: ws-toast-in 0.2s ease-out; }
.ws-toast-ok { border-left: 3px solid var(--ok, #22a36b); }
.ws-toast-err { border-left: 3px solid var(--danger, #dc3c3c); background: rgba(220,60,60,0.06); }
@keyframes ws-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.ws-modal-back { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 20px; animation: ws-fade-in 0.15s ease-out; }
.ws-modal { background: var(--bg); color: var(--fg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; min-width: 360px; max-width: 90vw; box-shadow: 0 30px 80px rgba(0,0,0,0.3); }
@keyframes ws-fade-in { from { opacity: 0; } to { opacity: 1; } }

.ws-btn-danger { background: var(--danger, #dc3c3c); color: white; border-color: var(--danger, #dc3c3c); }
.ws-btn-danger:hover { background: #b52f2f; border-color: #b52f2f; }
.ws-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.ws-chip-muted { background: var(--bg-3, #e5e7eb); color: var(--muted, #6b7280); }

/* ==================================================================
   Phase 3: active favorite state, search form reset
   ================================================================== */
.ws-fav.active { background: var(--accent-soft); color: var(--accent); }
.ws-icon-btn-lg.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Make search a <form> display the same as the div did */
.ws-search { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--border); padding: 0 14px; flex: 1; max-width: 640px; }
.ws-search input { border: 0; outline: none; background: transparent; flex: 1; padding: 14px 0; font-size: 14px; color: var(--fg); font-family: inherit; }

/* ==================================================================
   Phase 4: admin gallery grid (multi-image editor)
   ================================================================== */
.adm-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.adm-gallery-item { position: relative; aspect-ratio: 1; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; border-radius: var(--radius-sm); }
.adm-gallery-item.primary { border: 2px solid var(--accent); }
.adm-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-gallery-badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: white; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase; }
.adm-gallery-actions { position: absolute; inset: auto 0 0 0; display: flex; justify-content: center; gap: 4px; padding: 6px; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent); opacity: 0; transition: opacity 0.15s; }
.adm-gallery-item:hover .adm-gallery-actions { opacity: 1; }
.adm-gallery-actions button { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.95); color: var(--fg-dark, #111); border: 0; border-radius: var(--radius-sm); cursor: pointer; }
.adm-gallery-actions button:hover { background: var(--accent); color: white; }
.adm-gallery-actions button:disabled { opacity: 0.4; cursor: not-allowed; }
.adm-gallery-add { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--bg-2); border: 2px dashed var(--border); color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; border-radius: var(--radius-sm); transition: all 0.15s; }
.adm-gallery-add:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.adm-gallery-add:disabled { opacity: 0.6; cursor: not-allowed; }

/* ==================================================================
   User order detail: delivery progress timeline
   ================================================================== */
.ws-order-timeline { display: flex; justify-content: space-between; align-items: flex-start; padding: 28px 20px; background: var(--bg-2); border: 1px solid var(--border); position: relative; margin-top: 20px; }
.ws-order-timeline::before { content: ''; position: absolute; top: 42px; left: 60px; right: 60px; height: 2px; background: var(--border); z-index: 0; }
.ws-order-step { position: relative; flex: 1; text-align: center; z-index: 1; }
.ws-order-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); transition: all 0.2s; }
.ws-order-step.done .ws-order-dot { background: var(--accent); border-color: var(--accent); color: white; }
.ws-order-step.current .ws-order-dot { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: ws-pulse 1.6s ease-in-out infinite; }
.ws-order-step.current .ws-order-label { color: var(--accent); font-weight: 700; }
.ws-order-label { margin-top: 10px; font-size: 12px; color: var(--muted); font-weight: 500; }
.ws-order-step.done .ws-order-label { color: var(--fg); }
@keyframes ws-pulse { 0%,100% { box-shadow: 0 0 0 4px var(--accent-soft); } 50% { box-shadow: 0 0 0 8px rgba(232,101,42,0.08); } }

/* Print styles — remove nav chrome for order detail printing */
@media print {
  .ws-header, .ws-footer, .ws-account-nav, .tw-toggle-btn, .wa-fab, .ws-btn { display: none !important; }
  .ws-account-main, .ws-account-grid { display: block !important; }
}

/* ==================================================================
   Search autocomplete dropdown
   ================================================================== */
.ws-search-dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--bg); border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(0,0,0,0.25); z-index: 100; max-height: 480px; overflow-y: auto; border-radius: var(--radius-sm); }
.ws-search-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 32px 20px; color: var(--muted); font-size: 13px; text-align: center; }
.ws-search-results { display: flex; flex-direction: column; }
.ws-search-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.1s; }
.ws-search-item:last-child { border-bottom: 0; }
.ws-search-item:hover, .ws-search-item.active { background: var(--accent-soft); }
.ws-search-thumb { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--border); overflow: hidden; }
.ws-search-nom { font-weight: 600; font-size: 14px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-search-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.ws-search-price { font-size: 14px; color: var(--accent); flex-shrink: 0; }
.ws-search-footer { padding: 12px 14px; border-top: 1px solid var(--border); background: var(--bg-2); color: var(--accent); font-weight: 600; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.ws-search-footer:hover { background: var(--accent-soft); }

/* Logo image sizing */
.ws-logo img { transition: opacity 0.15s; }
.ws-logo:hover img { opacity: 0.85; }

/* ==================================================================
   Mobile burger button + slide-in nav drawer
   ================================================================== */
.ws-burger { display: none; background: transparent; border: 0; color: var(--fg); padding: 8px; cursor: pointer; border-radius: var(--radius-sm); }
.ws-burger:hover { background: var(--bg-3); color: var(--accent); }

.ws-drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 998; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.ws-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.ws-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(88%, 360px); background: var(--bg-2);
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 24px rgba(0,0,0,0.25);
  z-index: 999; display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.ws-drawer.open { transform: translateX(0); }

.ws-drawer-head {
  padding: 14px 16px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ws-drawer-close {
  background: transparent; border: 0; color: var(--fg);
  padding: 6px; cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.ws-drawer-close:hover { background: var(--bg-3); color: var(--accent); }

.ws-drawer-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.ws-drawer-item {
  width: 100%; background: transparent; border: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; color: var(--fg); font-size: 14px;
  font-weight: 500; font-family: inherit; text-align: left;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.ws-drawer-item:hover, .ws-drawer-item:focus { background: var(--bg-3); color: var(--accent); outline: none; }
.ws-drawer-item > svg:first-child { color: var(--accent); flex-shrink: 0; }
.ws-drawer-item > span { flex: 1; }
.ws-drawer-chev { color: var(--muted); transition: transform 0.2s; }

.ws-drawer-l1 { font-weight: 600; font-size: 14.5px; }
.ws-drawer-group.open > .ws-drawer-l1 { color: var(--accent); background: var(--bg-3); }

.ws-drawer-sub {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0,0,0,0.18);
}
.ws-drawer-group.open .ws-drawer-sub { max-height: 600px; }
.ws-drawer-l2 {
  padding: 10px 18px 10px 46px; font-size: 13.5px;
  font-weight: 500; color: var(--fg);
}
.ws-drawer-l2:hover { background: var(--accent-soft); color: var(--accent); }
.ws-drawer-all { font-weight: 700; color: var(--accent) !important; }
.ws-drawer-all svg { margin-left: auto; }

.ws-drawer-foot {
  padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px; flex-shrink: 0;
  background: var(--bg);
}
.ws-drawer-contact {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px; text-decoration: none;
  padding: 6px 0; transition: color 0.15s;
}
.ws-drawer-contact:hover { color: var(--accent); }
.ws-drawer-contact svg { color: var(--accent); }

/* Show burger / hide horizontal nav on mobile */
@media (max-width: 768px) {
  .ws-burger { display: inline-flex; align-items: center; justify-content: center; }
  .ws-nav { display: none !important; }
}

/* ==================================================================
   RESPONSIVE — tablet, mobile, small mobile
   ================================================================== */

/* ---- TABLET (≤1024px) ---- */
@media (max-width: 1024px) {
  .ws-home,
  .ws-cat-page,
  .ws-pd,
  .ws-cart,
  .ws-checkout,
  .ws-account { padding: 24px 20px; }
  .ws-header-main { padding: 12px 20px; gap: 14px; }
  .ws-nav { padding: 0 20px; }

  .ws-hero { grid-template-columns: 1fr; gap: 28px; padding: 40px 32px; }
  .ws-hero h1 { font-size: 36px; }
  .ws-hero p { font-size: 15px; }
  .ws-hero-visual { display: none; }

  .ws-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .ws-prod-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .ws-brand-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .ws-banner { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
  .ws-banner-text h3 { font-size: 26px; }

  .ws-trust { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .ws-cat-body { grid-template-columns: 200px 1fr; gap: 20px; }
  .ws-pd-grid { grid-template-columns: 1fr; gap: 28px; }
  .ws-pd-info h1 { font-size: 26px; }

  .ws-avis { grid-template-columns: 1fr; gap: 18px; }

  .ws-cart-grid,
  .ws-checkout-grid,
  .ws-account-grid { grid-template-columns: 1fr; gap: 20px; }

  .ws-footer-inner { grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
}

/* ---- MOBILE (≤768px) ---- */
@media (max-width: 768px) {
  body { font-size: 14px; }
  /* Anything that grows wider than its parent on mobile = bug. Forbid it. */
  .ws-home, .ws-cat-page, .ws-pd, .ws-cart, .ws-checkout,
  .ws-account, .ws-section, .ws-hero, .ws-banner, .ws-prod-grid,
  .ws-cat-grid, .ws-brand-grid, .ws-trust, .ws-footer-inner,
  .ws-cat-body, .ws-pd-grid, .ws-pd-info, .ws-avis, .ws-hero-stats,
  .ws-prod-card, .ws-cat-card, .ws-prod-row, .ws-section-head {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .ws-prod-nom, .ws-cat-nom, .ws-prod-meta, .ws-hero h1, .ws-hero p,
  .ws-hero-eyebrow, .ws-pd-info h1, .ws-section-head h1, .ws-section-head h2 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .ws-hero-eyebrow { font-size: 11px; padding: 5px 10px; line-height: 1.3; }

  /* HEADER — burger + logo + brands on top row, search full-width below */
  .ws-header-main {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 10px;
    align-items: center;
  }
  .ws-burger { order: 0; }
  .ws-header-main > .ws-logo { order: 1; }
  .ws-header-main > .ws-header-actions { order: 2; margin-left: auto; }
  .ws-header-main > .ws-header-searchwrap {
    order: 3;
    flex: 1 0 100%;
    max-width: 100%;
  }
  .ws-header-info { display: none; }
  .ws-logo img { height: 32px !important; }
  .ws-logo > div > div:first-child { font-size: 14px !important; }
  .ws-logo > div > div:last-child { font-size: 8px !important; letter-spacing: 0.3em !important; }
  .ws-ico-label { display: none; }
  .ws-icon-btn { padding: 6px 8px; }

  /* NAV — horizontal scroll, no megamenu */
  .ws-nav {
    padding: 0 14px;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ws-nav::-webkit-scrollbar { display: none; }
  .ws-nav > * { flex: 0 0 auto; }
  .ws-nav a { flex: 0 0 auto; padding: 12px 10px; font-size: 12.5px; white-space: nowrap; }
  .ws-megamenu-trigger { padding: 12px 10px !important; }
  .ws-megamenu { display: none !important; }

  /* PAGE CONTAINERS */
  .ws-home,
  .ws-cat-page,
  .ws-pd,
  .ws-cart,
  .ws-checkout,
  .ws-account { padding: 16px 14px; gap: 32px; }
  .ws-home { gap: 32px; }

  /* HERO */
  .ws-hero { padding: 28px 20px; border-radius: var(--radius); }
  .ws-hero h1 { font-size: 28px; margin: 12px 0 10px; }
  .ws-hero p { font-size: 14px; margin-bottom: 20px; }
  .ws-hero-cta { flex-direction: column; gap: 10px; margin-bottom: 24px; }
  .ws-hero-cta .ws-btn { width: 100%; justify-content: center; }
  .ws-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 20px; }
  .ws-hero-stats strong { font-size: 22px; }

  /* SECTION HEADS */
  .ws-section-head { flex-wrap: wrap; gap: 6px 12px; align-items: center; }
  .ws-section-head > * { min-width: 0; }
  .ws-section-head h1 { font-size: 22px; }
  .ws-section-head h2 { font-size: 18px; }
  .ws-section-head .ws-link, .ws-section-head .ws-muted { font-size: 12px; white-space: nowrap; }

  /* GRIDS — 2 columns on mobile */
  .ws-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ws-cat-card { padding: 14px; gap: 10px; }
  .ws-cat-icon { width: 40px; height: 40px; }
  .ws-cat-nom { font-size: 13px; }
  .ws-cat-count { font-size: 11px; }
  .ws-cat-arrow { display: none; }

  .ws-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ws-prod-body { padding: 10px; gap: 4px; }
  .ws-prod-nom { font-size: 13px; min-height: 36px; }
  .ws-prod-meta { font-size: 10px; }

  .ws-brand-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ws-brand-card { padding: 14px; }

  /* PRODUCT ROW (list view) — stack the thumb + info */
  .ws-prod-row { padding: 12px; gap: 12px; }
  .ws-prod-row-thumb { width: 84px; height: 84px; }
  .ws-prod-nom { font-size: 14px; }

  /* CATEGORY PAGE */
  .ws-cat-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; }
  .ws-cat-head h1 { font-size: 24px; }
  .ws-cat-badges { max-width: 100%; justify-content: flex-start; }

  /* Filters become a collapsible block above the grid */
  .ws-cat-body { grid-template-columns: 1fr; gap: 14px; }
  .ws-filters {
    position: static;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
  }
  .ws-filter-block { padding: 10px 0; }

  .ws-cat-toolbar { flex-wrap: wrap; gap: 8px; }
  .ws-toolbar-actions { width: 100%; justify-content: space-between; }

  /* SUB-CATEGORIES CHIPS */
  .ws-subcat-row { gap: 6px; margin: 0 0 14px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .ws-subcat-row::-webkit-scrollbar { display: none; }
  .ws-subcat-chip { flex-shrink: 0; padding: 6px 10px; font-size: 11.5px; white-space: nowrap; }

  /* BANNER */
  .ws-banner { padding: 24px 18px; gap: 18px; }
  .ws-banner-text h3 { font-size: 22px; }
  .ws-banner-visual { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ws-banner-stat { padding: 12px 8px; }
  .ws-banner-stat strong { font-size: 22px; }

  /* TRUST STRIP */
  .ws-trust { grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 0; }
  .ws-trust > div { gap: 10px; }
  .ws-trust strong { font-size: 13px; }
  .ws-trust span { font-size: 11px; }

  /* PRODUCT DETAIL */
  .ws-pd-thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .ws-pd-meta { font-size: 11px; gap: 4px; flex-wrap: wrap; }
  .ws-pd-info h1 { font-size: 22px; }
  .ws-pd-price { padding: 14px 0; margin: 14px 0; }
  .ws-pd-price strong { font-size: 28px; }
  .ws-pd-assurance { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  .ws-pd-assurance > div { gap: 8px; }
  .ws-pd-tabs { padding-top: 20px; margin-bottom: 28px; }
  .ws-tab-nav { overflow-x: auto; gap: 0; -webkit-overflow-scrolling: touch; }
  .ws-tab-nav::-webkit-scrollbar { display: none; }
  .ws-tab-nav button { padding: 10px 14px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }

  /* AVIS / REVIEWS */
  .ws-avis-summary { padding: 12px; }
  .ws-avis-big strong { font-size: 36px; }

  /* SPEC TABLE — let it wrap, smaller padding */
  .ws-spec-table th, .ws-spec-table td { padding: 8px 10px; font-size: 13px; }

  /* DOC LIST */
  .ws-doc { grid-template-columns: 1fr; }

  /* CART */
  .ws-cart-head { display: none; }
  .ws-cart-row { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .ws-cart-prod { gap: 10px; }
  .ws-cart-thumb { width: 60px; height: 60px; }

  /* FORMS */
  .ws-form-grid { grid-template-columns: 1fr; gap: 12px; }
  .ws-form-grid .ws-span-2 { grid-column: span 1; }
  .ws-form-card { padding: 18px; }

  /* AUTH PAGE */
  .ws-auth { grid-template-columns: 1fr; }
  .ws-auth-card { padding: 24px 18px; }

  /* RECAP */
  .ws-recap { grid-template-columns: 1fr; gap: 14px; }

  /* CARDS ROWS (account) */
  .ws-cards-row { grid-template-columns: 1fr; gap: 12px; }
  .ws-cards-grid { grid-template-columns: 1fr; }

  /* FOOTER */
  .ws-footer { padding: 32px 18px 18px; }
  .ws-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 24px; }
  .ws-footer-inner > div:first-child { grid-column: span 2; }
  .ws-footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding-top: 18px; }

  /* WHATSAPP WIDGET — full mobile width */
  .wa-panel { right: 12px; left: 12px; width: auto; bottom: 140px; }
  .wa-fab { right: 14px; bottom: 70px; }
  .tw-toggle-btn { right: 14px; bottom: 14px; width: 44px; height: 44px; }

  /* BREADCRUMB */
  .ws-breadcrumb { font-size: 12px; gap: 4px; flex-wrap: wrap; }

  /* SEARCH AUTOCOMPLETE */
  .ws-search-dropdown { left: -14px; right: -14px; max-height: 360px; }
  .ws-search-item { padding: 8px 12px; }
  .ws-search-thumb { width: 36px; height: 36px; }

  /* STEPS (checkout) */
  .ws-steps { gap: 12px; flex-wrap: wrap; }
  .ws-step:not(:last-child)::after { display: none; }
  .ws-step-num { width: 24px; height: 24px; font-size: 11px; }
  .ws-step { font-size: 12px; }

  /* TOPBAR (was a separate row) hidden via .ws-header-info above */
  .ws-topbar { display: none; }
}

/* ==================================================================
   ADMIN DASHBOARD — responsive
   ================================================================== */
.adm-burger { display: none; background: transparent; border: 0; color: var(--fg); padding: 8px; cursor: pointer; border-radius: var(--radius-sm); margin-right: 4px; }
.adm-burger:hover { background: var(--bg-3); color: var(--accent); }
.adm-side-close { display: none; background: transparent; border: 0; color: var(--muted); padding: 4px; margin-left: auto; cursor: pointer; border-radius: 50%; align-items: center; justify-content: center; }
.adm-side-close:hover { background: var(--bg-3); color: var(--accent); }
.adm-side-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 199; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }

@media (max-width: 900px) {
  .adm-kpis { grid-template-columns: repeat(2, 1fr); }
  .adm-row { grid-template-columns: 1fr; }
  .adm-row:has(> :nth-child(3)) { grid-template-columns: 1fr; }
  .adm-editor { grid-template-columns: 1fr !important; }
  .adm-bars { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 768px) {
  /* Shell: sidebar becomes a slide-in drawer */
  .adm-shell { grid-template-columns: 1fr; }
  .adm-side-overlay { display: block; }
  .adm-shell.side-open .adm-side-overlay { opacity: 1; pointer-events: auto; }

  .adm-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(85%, 300px); height: 100vh;
    transform: translateX(-100%); transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200; box-shadow: 8px 0 24px rgba(0,0,0,0.25);
  }
  .adm-shell.side-open .adm-sidebar { transform: translateX(0); }

  .adm-side-close { display: inline-flex; }
  .adm-burger { display: inline-flex; align-items: center; justify-content: center; }

  /* Top bar */
  .adm-topbar { padding: 10px 14px; gap: 8px; }
  .adm-conn-chip { display: none; }
  .adm-topbar-actions { gap: 6px; }
  .adm-search { padding: 6px 10px; font-size: 12px; }
  .adm-content { padding: 16px 14px; }

  /* Page head */
  .adm-page-head { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 16px; }
  .adm-page-head h1 { font-size: 20px; }
  .adm-page-head > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
  .adm-page-head .ws-btn { flex: 1; justify-content: center; padding: 8px 10px; font-size: 12px; }

  /* KPIs */
  .adm-kpis { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .adm-kpi { padding: 14px; }
  .adm-kpi-value { font-size: 20px; }
  .adm-kpi-label { font-size: 11px; }

  /* Cards */
  .adm-card { padding: 14px; }
  .adm-card-head { flex-wrap: wrap; gap: 8px; }
  .adm-card-head h3 { font-size: 16px; }

  /* Tables — let them scroll horizontally inside their card */
  .adm-card > .ws-table,
  .adm-card .ws-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .adm-card .ws-table thead, .adm-card .ws-table tbody, .adm-card .ws-table tr { display: table; width: max-content; min-width: 100%; table-layout: auto; }
  .adm-card .ws-table th, .adm-card .ws-table td { white-space: nowrap; padding: 8px 10px; font-size: 11.5px; }
  .adm-card .adm-table th, .adm-card .adm-table td { font-size: 11px; padding: 8px 10px; }
  .adm-mono { font-size: 10px; }

  /* Pagination */
  .adm-pagination { flex-wrap: wrap; gap: 8px; padding: 10px 12px; margin: 12px -14px -14px; }

  /* Toolbar (search + filters) */
  .adm-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .adm-search-inline { width: 100%; }

  /* Bars chart */
  .adm-bars { grid-template-columns: repeat(6, 1fr); height: 180px; gap: 4px; }
  .adm-bar-label { font-size: 9px; }
  .adm-bars .adm-bar-col:nth-child(odd) .adm-bar-label { display: none; }

  /* Tabs / pills */
  .adm-pills, .adm-tabs-sm { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .adm-pills::-webkit-scrollbar, .adm-tabs-sm::-webkit-scrollbar { display: none; }

  /* Editor (Produit editor + similar) */
  .adm-editor { grid-template-columns: 1fr !important; gap: 14px; }
  .adm-gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Notif drop — full-width on mobile */
  .adm-notif-drop { width: calc(100vw - 28px); right: -14px; }

  /* KPI in card row layouts shouldn't blow up */
  .adm-alerts, .adm-top-list { gap: 8px; }
  .adm-alert, .adm-top-row { padding: 8px; }
}

@media (max-width: 480px) {
  .adm-kpis { grid-template-columns: 1fr; }
  .adm-bars { grid-template-columns: repeat(4, 1fr); }
  .adm-bars .adm-bar-col:nth-child(n+5):nth-child(-n+12) { display: none; }
  .adm-page-head h1 { font-size: 18px; }
  .adm-gallery-grid { grid-template-columns: 1fr !important; }
}

/* ---- SMALL MOBILE (≤480px) ---- */
@media (max-width: 480px) {
  .ws-hero h1 { font-size: 24px; }
  .ws-hero p { font-size: 13px; }
  .ws-hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ws-hero-stats strong { font-size: 18px; }

  .ws-banner-visual { grid-template-columns: 1fr; }
  .ws-banner-stat { padding: 10px; }

  .ws-prod-grid { gap: 10px; }
  .ws-prod-body { padding: 8px; }
  .ws-prod-nom { font-size: 12.5px; min-height: 34px; }

  .ws-cat-card { padding: 12px; }
  .ws-cat-icon { width: 36px; height: 36px; }

  .ws-footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .ws-footer-inner > div:first-child { grid-column: span 1; }

  .wa-panel { bottom: 130px; }
  .wa-body { min-height: 90px; max-height: 160px; }
}
