/* ════════════════════════════════════════════════════════════
   AUST MACHINERY — V2 RETAIL DESIGN SYSTEM
   Inspired by big-box Australian tool retail (Sydney Tools / Total Tools):
   white canvas, black utility strip, bold red mega-nav, signature
   yellow add-to-cart, high-density product grids, loud savings.
   ════════════════════════════════════════════════════════════ */
:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-2: #f3f4f6;        /* light grey section */
  --bg-3: #e9ebee;        /* deeper grey */
  --paper: #ffffff;
  --line: #e2e5ea;
  --line-2: #eef0f3;

  /* Ink */
  --ink: #16181c;         /* near-black header / text */
  --ink-2: #23272e;
  --charcoal: #2b2f37;
  --text: #1b1e24;
  --muted: #6c7480;
  --muted-2: #9aa1ac;

  /* Brand */
  --red: #e4002b;         /* vivid retail red */
  --red-deep: #b00020;
  --red-ink: #8a0019;
  --yellow: #ffd200;      /* signature add-to-cart */
  --yellow-deep: #f4be00;
  --yellow-ink: #5c4a00;
  --green: #128a3a;       /* in stock */
  --green-soft: #e6f4ea;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(16,18,22,0.06);
  --shadow-card: 0 1px 3px rgba(16,18,22,0.06), 0 8px 24px -14px rgba(16,18,22,0.22);
  --shadow-pop: 0 24px 60px -18px rgba(16,18,22,0.30);
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  /* Type */
  --f-display: 'Archivo', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-2); color: var(--text); font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Typography helpers ─────────────────────────── */
.display { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; line-height: 0.96; }
.display-900 { font-weight: 900; }
.mono { font-family: var(--f-mono); font-feature-settings: 'tnum' 1; }
.eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.eyebrow-red { color: var(--red); }

/* ── Layout ─────────────────────────────────────── */
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.row { display: flex; align-items: center; }
.gap-sm { gap: 8px; } .gap-md { gap: 16px; } .gap-lg { gap: 24px; }

/* ── Buttons ────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: var(--r-md); font-weight: 700; font-size: 14px; border: 2px solid transparent; transition: background .12s ease, color .12s ease, border-color .12s ease, transform .08s ease; white-space: nowrap; letter-spacing: 0.01em; }
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-deep); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--charcoal); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-line { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 12.5px; border-radius: var(--r-sm); border-width: 1.5px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ── Chip / Badge ───────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: var(--r-sm); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.04em; font-weight: 600; line-height: 1; }
.chip-line { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.chip-grey { background: var(--bg-2); color: var(--charcoal); }
.chip-ink { background: var(--ink); color: #fff; }
.chip-red { background: var(--red); color: #fff; }
.chip-yellow { background: var(--yellow); color: var(--ink); }
.chip-green { background: var(--green); color: #fff; }
.chip-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Surfaces ───────────────────────────────────── */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.hr { height: 1px; background: var(--line); width: 100%; }

/* ════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════ */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }

/* utility strip */
.util-strip { background: var(--ink); color: #d7dae0; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.03em; }
.util-inner { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.util-left { display: flex; align-items: center; gap: 8px; }
.util-left .dot { width: 7px; height: 7px; border-radius: 50%; background: #36d06a; box-shadow: 0 0 0 3px rgba(54,208,106,0.2); }
.util-right { display: flex; align-items: center; gap: 22px; }
.util-right a { color: #d7dae0; display: inline-flex; align-items: center; gap: 6px; }
.util-right a:hover { color: #fff; }
.util-right .sep { width: 1px; height: 14px; background: rgba(255,255,255,0.16); }

/* main bar */
.main-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; height: 84px; }
.logo-mark { display: flex; align-items: center; }
.logo-img { height: 50px; width: auto; }

.searchbar { display: flex; align-items: stretch; height: 50px; border: 2px solid var(--ink); border-radius: var(--r-md); overflow: hidden; background: #fff; max-width: 680px; }
.searchbar select { border: 0; background: var(--bg-2); padding: 0 16px; font-family: var(--f-body); font-size: 13px; font-weight: 600; color: var(--charcoal); cursor: pointer; border-right: 1px solid var(--line); outline: none; }
.searchbar input { flex: 1; border: 0; outline: none; padding: 0 16px; font-size: 14.5px; color: var(--ink); font-family: inherit; min-width: 0; }
.searchbar input::placeholder { color: var(--muted-2); }
.searchbar .go { border: 0; background: var(--red); color: #fff; padding: 0 22px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.searchbar .go:hover { background: var(--red-deep); }

.bar-actions { display: flex; align-items: center; gap: 6px; }
.act-btn { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-md); background: transparent; border: 0; position: relative; transition: background .12s; }
.act-btn:hover { background: var(--bg-2); }
.act-ico { position: relative; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.act-ico .badge { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--f-mono); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid #fff; }
.act-txt { text-align: left; line-height: 1.15; }
.act-txt .t1 { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.act-txt .t2 { font-size: 13px; font-weight: 700; color: var(--ink); }
.cart-btn { background: var(--yellow); }
.cart-btn:hover { background: var(--yellow-deep); }
.cart-btn .act-txt .t1 { color: var(--yellow-ink); }

/* mega-nav red bar */
.nav-bar { background: var(--red); color: #fff; position: relative; z-index: 40; }
.nav-inner { display: flex; align-items: stretch; height: 50px; gap: 2px; }
.nav-shopall { display: flex; align-items: center; gap: 12px; background: var(--red-deep); color: #fff; padding: 0 22px; font-weight: 800; font-size: 14px; letter-spacing: 0.01em; cursor: pointer; }
.nav-shopall .burger { display: flex; flex-direction: column; gap: 3px; }
.nav-shopall .burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.nav-links2 { display: flex; align-items: stretch; }
.nav-links2 > a { display: flex; align-items: center; padding: 0 17px; font-size: 13.5px; font-weight: 700; color: #fff; letter-spacing: 0.01em; cursor: pointer; position: relative; transition: background .12s; }
.nav-links2 > a:hover, .nav-links2 > a.active { background: var(--red-deep); }
.nav-spacer { flex: 1; }
.nav-promo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 13px; }
.nav-promo .tag { background: var(--yellow); color: var(--ink); padding: 3px 8px; border-radius: var(--r-sm); font-family: var(--f-mono); font-size: 11px; font-weight: 700; }

/* mega dropdown */
.mega { position: absolute; top: 100%; left: 0; right: 0; background: #fff; color: var(--text); box-shadow: var(--shadow-pop); border-top: 3px solid var(--yellow); z-index: 45; }
.mega-inner { display: grid; grid-template-columns: 260px 1fr; gap: 0; min-height: 360px; }
.mega-cats { background: var(--bg-2); padding: 12px; border-right: 1px solid var(--line); }
.mega-cat { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: var(--r-md); font-size: 13.5px; font-weight: 600; color: var(--charcoal); cursor: pointer; }
.mega-cat:hover, .mega-cat.active { background: #fff; color: var(--red); box-shadow: var(--shadow-sm); }
.mega-cat .cnt { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.mega-panel { padding: 26px 30px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.mega-sub h5 { font-family: var(--f-display); font-weight: 800; font-size: 16px; margin: 0 0 12px; letter-spacing: -0.01em; }
.mega-sub ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.mega-sub ul a { font-size: 13px; color: var(--charcoal); display: flex; justify-content: space-between; padding: 3px 0; }
.mega-sub ul a:hover { color: var(--red); }
.mega-feature { background: var(--ink); border-radius: var(--r-lg); padding: 22px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.mega-feature .ff-img { position: absolute; inset: 0; opacity: 0.35; }

/* ════════════════════════════════════════════════
   HERO / PROMO
   ════════════════════════════════════════════════ */
.hero-wrap { background: var(--bg-2); padding: 20px 0 8px; }
.hero-grid2 { display: grid; grid-template-columns: 1fr 360px; gap: 16px; }
.hero-main { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: #fff; min-height: 420px; display: flex; }
.hero-main .hero-bg { position: absolute; inset: 0; opacity: 0.5; }
.hero-main .hero-content { position: relative; padding: 48px 52px; display: flex; flex-direction: column; justify-content: center; max-width: 640px; }
.hero-flag { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; padding: 7px 14px; border-radius: var(--r-sm); font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; width: fit-content; text-transform: uppercase; }
.hero-h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 5.2vw, 76px); line-height: 0.92; letter-spacing: -0.03em; margin: 20px 0 0; text-transform: uppercase; }
.hero-h1 .yellow { color: var(--yellow); }
.hero-sub2 { font-size: 16px; color: #c7ccd4; max-width: 460px; margin-top: 18px; line-height: 1.5; }
.hero-cta2 { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-pricetag { position: absolute; right: 44px; bottom: 44px; background: var(--yellow); color: var(--ink); border-radius: var(--r-md); padding: 16px 22px; text-align: center; transform: rotate(-3deg); box-shadow: var(--shadow-pop); }
.hero-pricetag .tt { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-pricetag .pp { font-family: var(--f-display); font-weight: 900; font-size: 38px; letter-spacing: -0.02em; line-height: 1; margin-top: 2px; }

.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.promo-tile { border-radius: var(--r-lg); overflow: hidden; position: relative; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; min-height: 196px; transition: transform .12s; }
.promo-tile:hover { transform: translateY(-2px); }
.promo-tile.red { background: var(--red); color: #fff; }
.promo-tile.ink { background: var(--ink); color: #fff; }
.promo-tile.yellow { background: var(--yellow); color: var(--ink); }
.promo-tile .pt-eyebrow { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.promo-tile .pt-title { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1.0; letter-spacing: -0.015em; margin-top: auto; }
.promo-tile .pt-link { margin-top: 10px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* ── Trust strip (icons row under hero) ─────────── */
.trust-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-ico { width: 38px; height: 38px; flex-shrink: 0; color: var(--red); display: flex; align-items: center; justify-content: center; }
.trust-item .tt { font-weight: 800; font-size: 14px; font-family: var(--f-display); letter-spacing: -0.01em; }
.trust-item .ts { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ════════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════════ */
.sect { padding: 40px 0; }
.sect-tight { padding: 24px 0; }
.sect-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 24px; }
.sect-head .lhs { display: flex; align-items: baseline; gap: 16px; }
.sect-title { font-family: var(--f-display); font-weight: 900; font-size: 28px; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; }
.sect-title .red { color: var(--red); }
.sect-rule { height: 4px; background: var(--red); flex: 1; max-width: 0; }
.viewall { font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; letter-spacing: 0.04em; }
.viewall:hover { color: var(--red); }

/* ── Category icon strip ────────────────────────── */
.catstrip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.catstrip-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 10px 14px; text-align: center; cursor: pointer; transition: border-color .12s, transform .12s, box-shadow .12s; }
.catstrip-item:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.catstrip-ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.catstrip-item:hover .catstrip-ico { background: var(--red); color: #fff; }
.catstrip-name { font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.catstrip-cnt { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); margin-top: 4px; }

/* ── Product grid + card (retail) ───────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prod-grid-5 { grid-template-columns: var(--rail-cols, repeat(5, 1fr)); }
.prod-grid-3 { grid-template-columns: repeat(3, 1fr); }

.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: border-color .12s, box-shadow .12s; position: relative; }
.pcard:hover { border-color: #c3c8d0; box-shadow: var(--shadow-card); z-index: 2; }
.pcard-img { aspect-ratio: 1/1; position: relative; background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.pcard-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; z-index: 2; }
.pcard-save { background: var(--red); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 12px; padding: 5px 8px; border-radius: var(--r-sm); line-height: 1; letter-spacing: 0.01em; }
.pcard-fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--ink); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); z-index: 2; }
.pcard-fav:hover { color: var(--red); }
.pcard-body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pcard-brandrow { display: flex; align-items: center; justify-content: space-between; }
.pcard-brand { font-family: var(--f-display); font-weight: 800; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); }
.pcard-sku { font-family: var(--f-mono); font-size: 10px; color: var(--muted-2); }
.pcard-title { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--charcoal); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.pcard-specs { display: flex; flex-wrap: wrap; gap: 4px; }
.pcard-stock { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: 10.5px; color: var(--green); font-weight: 600; }
.pcard-stock .d { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.pcard-pricewrap { margin-top: auto; padding-top: 8px; }
.pcard-wasrow { display: flex; align-items: center; gap: 8px; height: 16px; }
.pcard-was { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); text-decoration: line-through; }
.pcard-saveamt { font-family: var(--f-mono); font-size: 11px; color: var(--red); font-weight: 700; }
.pcard-price { font-family: var(--f-display); font-weight: 900; font-size: 26px; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.pcard-price .ex { font-family: var(--f-mono); font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; margin-left: 4px; }
.pcard-finance { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.pcard-finance b { color: var(--charcoal); }
.pcard-add { margin-top: 10px; width: 100%; background: var(--yellow); color: var(--ink); border: 0; border-radius: var(--r-sm); padding: 11px; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: 0.01em; transition: background .12s; }
.pcard-add:hover { background: var(--yellow-deep); }

/* ── Promo band ─────────────────────────────────── */
.band { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.band-red { background: var(--red); color: #fff; }
.band-ink { background: var(--ink); color: #fff; }
.band-split { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 36px; padding: 44px 48px; }
.band-title { font-family: var(--f-display); font-weight: 900; font-size: 44px; letter-spacing: -0.025em; line-height: 0.98; text-transform: uppercase; }
.band-title .yellow { color: var(--yellow); }
.band-sub { margin-top: 16px; max-width: 460px; line-height: 1.5; opacity: 0.92; font-size: 15px; }
.band-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.band-stat { padding: 18px; border-radius: var(--r-md); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); }
.band-stat .n { font-family: var(--f-display); font-weight: 900; font-size: 34px; letter-spacing: -0.02em; line-height: 1; }
.band-stat .l { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.78; margin-top: 6px; }

/* ── Brand strip ────────────────────────────────── */
.brandstrip { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 32px; }
.brandstrip-track { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; }
.brandstrip-name { font-family: var(--f-display); font-weight: 900; font-size: 20px; color: var(--charcoal); letter-spacing: -0.01em; opacity: 0.75; }
.brandstrip-name:hover { opacity: 1; color: var(--red); }

/* ════════════════════════════════════════════════
   BROWSE
   ════════════════════════════════════════════════ */
.browse-top { background: #fff; border-bottom: 1px solid var(--line); }
.crumbs { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.crumbs a { cursor: pointer; }
.crumbs a:hover { color: var(--red); }
.crumbs span { color: var(--ink); }
.browse-title { font-family: var(--f-display); font-weight: 900; font-size: 40px; letter-spacing: -0.025em; line-height: 1; margin-top: 8px; text-transform: uppercase; }
.browse-count { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-top: 8px; }

.browse-layout { display: grid; grid-template-columns: 268px 1fr; gap: 24px; padding: 24px 0 64px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); position: sticky; top: 180px; overflow: hidden; }
.filter-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.filter-head .ft { font-family: var(--f-display); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: -0.01em; }
.filter-head .clr { font-family: var(--f-mono); font-size: 11px; color: var(--red); cursor: pointer; font-weight: 600; }
.filter-group { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group-title { font-family: var(--f-display); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); margin-bottom: 10px; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; cursor: pointer; color: var(--charcoal); }
.filter-opt input { accent-color: var(--red); width: 15px; height: 15px; }
.filter-opt:hover { color: var(--red); }
.filter-opt .cnt { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--muted-2); }
.range-row { display: flex; gap: 8px; }
.range-row input { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); font-family: var(--f-mono); font-size: 12px; background: #fff; }

.browse-toolbar { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; margin-bottom: 14px; }
.browse-toolbar .lhs { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.browse-toolbar .lhs b { color: var(--ink); }
.toolbar-r { display: flex; gap: 8px; align-items: center; }
.select-pill { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; background: #fff; cursor: pointer; }
.select-pill:hover { border-color: var(--ink); }
.select-pill b { font-weight: 800; }

/* ════════════════════════════════════════════════
   DETAIL
   ════════════════════════════════════════════════ */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr 320px; gap: 28px; padding: 24px 0 0; align-items: start; }
.detail-gallery { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; }
.thumb-col { display: flex; flex-direction: column; gap: 8px; }
.thumb { width: 72px; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; border: 2px solid var(--line); background: var(--bg-2); }
.thumb.active { border-color: var(--red); }
.detail-hero-img { aspect-ratio: 1/1; border-radius: var(--r-lg); overflow: hidden; position: relative; background: var(--bg-2); border: 1px solid var(--line); }
.detail-img-badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.detail-360 { position: absolute; bottom: 14px; right: 14px; padding: 7px 12px; background: rgba(22,24,28,0.78); color: #fff; border-radius: var(--r-sm); font-family: var(--f-mono); font-size: 11px; }

.detail-mid { display: flex; flex-direction: column; gap: 16px; }
.detail-brandrow { display: flex; align-items: center; justify-content: space-between; }
.detail-brandtag { font-family: var(--f-display); font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: 0.02em; }
.detail-sku { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.detail-title { font-family: var(--f-display); font-weight: 900; font-size: 32px; letter-spacing: -0.02em; line-height: 1.02; }
.detail-stars { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.detail-stars .stars { color: var(--yellow-deep); letter-spacing: 1px; }
.spec-table { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 1fr 1.2fr; }
.spec-row:nth-child(odd) { background: var(--bg-2); }
.spec-row .k { padding: 11px 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.spec-row .v { padding: 11px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); }

/* buy box */
.buybox { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; position: sticky; top: 180px; box-shadow: var(--shadow-card); }
.buybox-price { font-family: var(--f-display); font-weight: 900; font-size: 42px; letter-spacing: -0.025em; line-height: 1; color: var(--ink); }
.buybox-price .ex { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0.03em; }
.buybox-wasrow { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.buybox-was { font-family: var(--f-mono); font-size: 13px; color: var(--muted); text-decoration: line-through; }
.buybox-savepill { background: var(--red); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 12.5px; padding: 4px 9px; border-radius: var(--r-sm); }
.buybox-finance { background: var(--bg-2); border-radius: var(--r-md); padding: 12px 14px; margin-top: 14px; font-size: 12.5px; color: var(--charcoal); display: flex; align-items: center; gap: 10px; }
.buybox-finance b { font-family: var(--f-display); font-size: 15px; }
.buybox-stockline { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--f-mono); font-size: 12px; color: var(--green); font-weight: 600; }
.buybox-stockline .d { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.buybox-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.buybox-assure { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; }
.assure-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--charcoal); }
.assure-row .ico { color: var(--green); flex-shrink: 0; }

.condition-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 22px; }
.condition-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-family: var(--f-mono); font-size: 12px; }
.condition-row:last-child { border-bottom: 0; }
.condition-row .vv { color: #fff; font-weight: 600; }
.condition-meter { display: flex; gap: 3px; }
.condition-meter .seg { width: 16px; height: 9px; border-radius: 2px; background: rgba(255,255,255,0.16); }
.condition-meter .seg.on { background: var(--yellow); }

/* tabs */
.dtabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-top: 8px; }
.dtab { padding: 12px 20px; font-family: var(--f-display); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 0.01em; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.dtab.active { color: var(--ink); border-color: var(--red); }

/* ════════════════════════════════════════════════
   CART / CHECKOUT / ACCOUNT (reused class names, retail skin)
   ════════════════════════════════════════════════ */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 24px 0; }

.checkout-layout { display: grid; grid-template-columns: 1.4fr 380px; gap: 24px; padding: 24px 0 80px; align-items: start; }
.checkout-section { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 14px; }
.checkout-section h3 { font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; text-transform: uppercase; }
.checkout-section h3 .num { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--f-mono); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.field-row.full { grid-template-columns: 1fr; }
.field-input { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-family: inherit; font-size: 14px; background: #fff; width: 100%; }
.field-input:focus { outline: none; border-color: var(--ink); }
.pay-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-opt { padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; text-align: center; background: #fff; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; font-weight: 600; }
.pay-opt.active { border-color: var(--red); background: #fff5f6; color: var(--red); }

.summary-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; position: sticky; top: 180px; }
.summary-box .sb-head { background: var(--ink); color: #fff; padding: 16px 20px; font-family: var(--f-display); font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: -0.01em; }
.summary-box .sb-body { padding: 20px; }
.summary-box .item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-box .item .ti { font-weight: 700; font-size: 13px; line-height: 1.2; }
.summary-box .item .me { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.summary-box .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; }
.summary-box .row .mono { font-family: var(--f-mono); }
.summary-box .total { padding-top: 14px; margin-top: 8px; border-top: 2px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.summary-box .total .lbl { font-family: var(--f-display); font-weight: 800; font-size: 16px; text-transform: uppercase; }
.summary-box .total .amt { font-family: var(--f-display); font-weight: 900; font-size: 26px; letter-spacing: -0.02em; }

/* cart line */
.cart-line { display: grid; grid-template-columns: 96px 1fr 130px 120px; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line-img { width: 96px; height: 96px; border-radius: var(--r-sm); overflow: hidden; position: relative; background: var(--bg-2); border: 1px solid var(--line); }
.qty-step { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.qty-step button { width: 30px; height: 32px; border: 0; background: #fff; cursor: pointer; font-weight: 800; font-size: 15px; color: var(--ink); }
.qty-step button:hover { background: var(--bg-2); }
.qty-step .num { font-family: var(--f-mono); font-size: 13px; padding: 0 12px; min-width: 30px; text-align: center; }

/* drawer */
.drawer-veil { position: fixed; inset: 0; background: rgba(16,18,22,0.45); z-index: 150; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100vw; background: var(--bg-2); z-index: 151; display: flex; flex-direction: column; box-shadow: -20px 0 60px -10px rgba(0,0,0,0.3); }
.drawer-head { padding: 18px 22px; background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { font-family: var(--f-display); font-weight: 800; font-size: 20px; margin: 0; text-transform: uppercase; letter-spacing: -0.01em; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 18px; }
.dcart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dcart-img { width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; position: relative; background: #fff; border: 1px solid var(--line); }
.dcart-title { font-weight: 700; font-size: 13px; line-height: 1.25; }
.dcart-meta { font-family: var(--f-mono); font-size: 10px; color: var(--muted); margin-top: 3px; letter-spacing: 0.03em; }
.dcart-price { font-family: var(--f-display); font-weight: 800; font-size: 16px; }
.drawer-foot { padding: 18px 22px; background: #fff; border-top: 1px solid var(--line); }
.drawer-line { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; }
.drawer-line.total { padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--line); font-family: var(--f-display); font-weight: 900; font-size: 22px; letter-spacing: -0.02em; }
.drawer-empty { padding: 64px 28px; text-align: center; color: var(--muted); }

/* icon button (generic round) */
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .12s; flex-shrink: 0; }
.icon-btn:hover { background: var(--bg-2); }

/* user menu */
.user-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 280px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); padding: 14px; z-index: 60; }
.user-menu-head { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.user-menu-head .av { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.user-menu a { display: flex; align-items: center; justify-content: space-between; padding: 9px 8px; border-radius: var(--r-sm); font-size: 13.5px; cursor: pointer; }
.user-menu a:hover { background: var(--bg-2); }
.user-menu a .cnt { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.user-menu .sep { height: 1px; background: var(--line); margin: 8px -14px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 11px; display: flex; align-items: center; justify-content: center; }

/* modal */
.modal-veil { position: fixed; inset: 0; background: rgba(16,18,22,0.6); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: 100%; max-width: 440px; background: #fff; border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-pop); }
.modal h3 { font-family: var(--f-display); font-weight: 900; font-size: 28px; letter-spacing: -0.02em; line-height: 1; margin: 0 0 8px; text-transform: uppercase; }
.modal-x { float: right; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; }
.modal label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.modal input { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-family: inherit; font-size: 14px; background: #fff; }
.modal input:focus { outline: none; border-color: var(--ink); }

/* account */
.account-layout { display: grid; grid-template-columns: 248px 1fr; gap: 28px; padding: 24px 0 80px; align-items: start; }
.account-side { position: sticky; top: 180px; }
.account-side .who { padding: 18px; background: var(--ink); color: #fff; border-radius: var(--r-lg); margin-bottom: 14px; }
.account-side .who-name { font-family: var(--f-display); font-weight: 800; font-size: 18px; }
.account-side .who-meta { font-family: var(--f-mono); font-size: 10.5px; color: #aab0ba; letter-spacing: 0.04em; margin-top: 3px; }
.account-side ul { list-style: none; padding: 6px; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 1px; }
.account-side ul a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; color: var(--charcoal); cursor: pointer; }
.account-side ul a:hover { background: var(--bg-2); }
.account-side ul a.active { background: var(--red); color: #fff; }
.account-side ul a .cnt { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.account-side ul a.active .cnt { color: rgba(255,255,255,0.8); }

.account-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.stat-card .n { font-family: var(--f-display); font-weight: 900; font-size: 30px; letter-spacing: -0.02em; line-height: 1; }
.stat-card .l { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.stat-card.red { background: var(--red); color: #fff; border: 0; }
.stat-card.red .l { color: rgba(255,255,255,0.85); }
.stat-card.ink { background: var(--ink); color: #fff; border: 0; }
.stat-card.ink .l { color: #aab0ba; }

.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 12px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.order-head .ord-id { font-family: var(--f-display); font-weight: 900; font-size: 19px; letter-spacing: -0.01em; }
.order-head .ord-meta { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: 0.03em; }
.order-body { display: grid; grid-template-columns: 1fr 240px; gap: 24px; padding-top: 16px; }
.order-line { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
.order-line-img { width: 58px; height: 58px; border-radius: var(--r-sm); overflow: hidden; position: relative; background: var(--bg-2); border: 1px solid var(--line); }
.order-totals { font-family: var(--f-mono); font-size: 12px; }
.order-totals .row { display: flex; justify-content: space-between; padding: 4px 0; }
.order-totals .row.total { padding-top: 10px; margin-top: 8px; border-top: 1px solid var(--line); font-family: var(--f-display); font-size: 17px; font-weight: 900; }

/* confirmation */
.confirm-hero { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px; margin: 24px 0; }
.confirm-tick { width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }

/* map */
.map-section { background: var(--ink); color: #fff; border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 0.85fr 1.15fr; min-height: 440px; }
.map-info { padding: 44px; display: flex; flex-direction: column; gap: 26px; justify-content: space-between; }
.map-info .display { font-size: 40px; letter-spacing: -0.025em; line-height: 1; text-transform: uppercase; }
.map-info-rows { display: flex; flex-direction: column; gap: 14px; }
.map-info-row { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.map-info-row .k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #aab0ba; }
.map-info-row .v { font-size: 14px; }
.map-frame { position: relative; min-height: 440px; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* placeholder */
.placeholder-stripe { position: absolute; inset: 0; }
.placeholder-tag { position: absolute; bottom: 10px; left: 10px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); padding: 3px 7px; background: rgba(0,0,0,0.4); border-radius: var(--r-sm); }

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.footer-cta { background: var(--red); color: #fff; }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; gap: 24px; }
.footer-cta .fc-title { font-family: var(--f-display); font-weight: 900; font-size: 30px; text-transform: uppercase; letter-spacing: -0.02em; }
.footer-cta .fc-form { display: flex; gap: 8px; }
.footer-cta input { border: 0; border-radius: var(--r-sm); padding: 14px 18px; font-size: 14px; font-family: inherit; width: 320px; }

.footer { background: var(--ink); color: #c7ccd4; padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--f-display); font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; font-weight: 800; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer ul a:hover { color: var(--red); }
.footer ul a { opacity: 0.92; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; margin-top: 44px; border-top: 1px solid rgba(255,255,255,0.1); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; color: #8b929d; }
.footer-bottom .pay { display: flex; gap: 8px; }
.footer-bottom .pay span { background: rgba(255,255,255,0.08); padding: 4px 8px; border-radius: var(--r-sm); }

/* ── Responsive guard ───────────────────────────── */
@media (max-width: 1320px) {
  .prod-grid-5 { grid-template-columns: repeat(4, 1fr); }
  .util-right .util-hide { display: none; }
}
@media (max-width: 1180px) {
  .act-txt { display: none; }
  .act-btn { padding: 8px; gap: 0; }
  .searchbar { max-width: none; }
}
@media (max-width: 1080px) {
  .catstrip { grid-template-columns: repeat(4, 1fr); }
  .prod-grid, .prod-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .prod-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 1fr 1fr; }
  .buybox { grid-column: span 2; position: static; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-promo { display: none; }
}
@media (max-width: 880px) {
  .hero-grid2 { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .browse-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .prod-grid, .prod-grid-5, .prod-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .buybox { grid-column: auto; position: static; }
  .detail-gallery { grid-template-columns: 60px 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .band-split { grid-template-columns: 1fr; padding: 32px; }
  .map-section { grid-template-columns: 1fr; }
  .account-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links2 { overflow-x: auto; }
  .summary-box { position: static; }
  .cart-line { grid-template-columns: 80px 1fr; grid-auto-rows: auto; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-cta input { width: 100%; }
}
@media (max-width: 560px) {
  .catstrip, .prod-grid, .prod-grid-5, .prod-grid-3 { grid-template-columns: 1fr 1fr; }
  .util-strip { display: none; }
  .main-bar { grid-template-columns: auto 1fr; height: auto; padding: 12px 0; gap: 12px; }
  .searchbar { grid-column: 1 / -1; height: 44px; }
}

/* ───────────────── Ported from v1: AI chat widget (workshop-chat-*) ───────────────── */
.workshop-chat-fab {
  position: fixed;
  right: 24px;
  z-index: 91;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px -8px rgba(13, 14, 16, 0.45);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.workshop-chat-fab:hover {
  transform: translateY(-2px);
  background: var(--brand-deep);
  box-shadow: 0 12px 36px -8px rgba(13, 14, 16, 0.55);
}

.workshop-chat-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 5px;
  border-radius: 6px;
  line-height: 1;
  border: 2px solid var(--paper);
}

.workshop-chat-panel {
  position: fixed;
  right: 24px;
  z-index: 92;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 160px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 60px -12px rgba(13, 14, 16, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--f-body);
  animation: workshop-chat-in 0.18s ease-out;
}

@keyframes workshop-chat-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workshop-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--ink-2);
}

.workshop-chat-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workshop-chat-badge {
  background: var(--brand);
  color: white;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 7px;
  border-radius: 5px;
  line-height: 1;
}

.workshop-chat-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
}

.workshop-chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--concrete-2);
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.workshop-chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
}

.workshop-chat-close {
  background: transparent;
  border: none;
  color: var(--paper);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease;
}

.workshop-chat-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.workshop-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bone);
}

.workshop-chat-msg-user,
.workshop-chat-msg-bot {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.workshop-chat-msg-user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 4px;
}

.workshop-chat-msg-bot {
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.workshop-chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.workshop-chat-input-row input {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--bone);
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: var(--f-body);
  outline: none;
  transition: border-color 0.12s ease;
}

.workshop-chat-input-row input:focus {
  border-color: var(--brand);
}

.workshop-chat-input-row button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.12s ease,
    opacity 0.12s ease;
  flex-shrink: 0;
}

.workshop-chat-input-row button:hover:not(:disabled) {
  background: var(--brand-deep);
}

.workshop-chat-input-row button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .workshop-chat-fab {
    right: 16px;
  }
  .workshop-chat-panel {
    right: 16px;
    width: calc(100vw - 32px);
    height: 70vh;
  }
}

/* ──────────────────────────────────────────────────────
   MOBILE POLISH — 768px / 480px / touch tuning

/* ───────────────── Initial loading screen ───────────────── */
.initial-loader{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#f4f0e8;z-index:9999;}
.initial-loader-inner{display:flex;flex-direction:column;align-items:center;gap:20px;padding:32px;}
.initial-loader-logo{width:96px;height:96px;border-radius:16px;object-fit:cover;box-shadow:0 8px 24px rgba(0,0,0,.08);animation:initialLoaderPulse 1.8s ease-in-out infinite;}
@keyframes initialLoaderPulse{0%,100%{transform:scale(1);opacity:1;}50%{transform:scale(1.04);opacity:.85;}}
.initial-loader-bar{width:180px;height:3px;background:rgba(0,0,0,.08);border-radius:2px;overflow:hidden;}
.initial-loader-bar-fill{width:40%;height:100%;background:#d72028;border-radius:2px;animation:initialLoaderSlide 1.4s ease-in-out infinite;}
@keyframes initialLoaderSlide{0%{transform:translateX(-100%);}100%{transform:translateX(350%);}}
.initial-loader-text{font-family:ui-monospace,"JetBrains Mono",monospace;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:rgba(0,0,0,.5);}
