/* =========================================================================
   FABJUNCTION — "the trade counter, engineered"
   Design tokens
   ========================================================================= */
:root {
  /* surfaces */
  --paper:        #f6f4ee;
  --card:         #fbfaf7;
  --card-raised:  #ffffff;
  --ink:          #13262f;
  --ink-2:        #1c3641;
  --ink-3:        #26434f;
  --steel:        #e3dfd5;
  --steel-2:      #d6d0c3;
  --graphite:     #55605d;
  --graphite-2:   #7a837f;

  /* accents */
  --copper:       #bf5b2b;
  --copper-deep:  #94401c;
  --copper-tint:  #f4e2d7;
  --copper-tint2: #faece2;
  --pine:         #2f5d46;
  --pine-tint:    #e3ece7;
  --amber:        #d98c1f;
  --amber-tint:   #f6ecd8;
  --red:          #b33a3a;
  --red-tint:     #f6e2e2;

  /* type */
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* metrics */
  --radius: 3px;
  --radius-lg: 6px;
  --hairline: 1px solid var(--steel);
  --shadow-1: 0 1px 2px rgba(19, 38, 47, 0.06), 0 2px 8px rgba(19, 38, 47, 0.05);
  --shadow-2: 0 6px 24px rgba(19, 38, 47, 0.12);
  --shadow-3: 0 18px 50px rgba(19, 38, 47, 0.22);

  --maxw: 1240px;
  --header-h: 64px;
  --util-h: 34px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================================
   Reset / base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

::selection { background: var(--copper); color: #fff; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
  z-index: 2000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* type scale */
.display {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.h1 { font-size: clamp(2.1rem, 5.5vw, 3.7rem); }
.h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
.h3 { font-size: 1.25rem; font-weight: 700; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--graphite-2); }
.lead { font-size: 1.05rem; color: var(--graphite); max-width: 62ch; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid transparent;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.12s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-deep); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }

.btn-pine { background: var(--pine); color: #fff; }
.btn-pine:hover { background: #244b39; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--steel-2); }
.btn-outline:hover { border-color: var(--ink); }

.btn-ghost { color: var(--graphite); }
.btn-ghost:hover { background: rgba(19, 38, 47, 0.05); color: var(--ink); }

.btn-sm { padding: 8px 12px; font-size: 0.82rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #932c2c; }

/* =========================================================================
   Forms
   ========================================================================= */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .hint { font-size: 0.78rem; color: var(--graphite-2); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--steel-2);
  border-radius: var(--radius);
  background: var(--card-raised);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-tint);
}
.textarea { resize: vertical; min-height: 100px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2355605d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track {
  width: 40px; height: 22px; border-radius: 22px; background: var(--steel-2);
  position: relative; transition: background 0.18s var(--ease); flex: none;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform 0.18s var(--ease);
}
.switch input:checked + .track { background: var(--copper); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch .lbl { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--copper); }

/* rating stars */
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--copper); }
.stars svg { width: 15px; height: 15px; }
.stars .off { color: var(--steel-2); }
.stars .num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--graphite-2); margin-left: 6px; }

/* =========================================================================
   Header (public)
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--card-raised);
  border-bottom: var(--hairline);
}
.util-bar {
  background: var(--ink);
  color: #cfd9d4;
  font-size: 0.78rem;
  height: var(--util-h);
}
.util-bar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.util-bar .left { display: flex; gap: 20px; align-items: center; }
.util-bar .ct { display: inline-flex; align-items: center; gap: 7px; color: #cfd9d4; }
.util-bar .ct svg { width: 13px; height: 13px; flex: none; color: var(--copper); }
.util-bar .ct:hover { color: #fff; }
.util-bar .ct:hover svg { color: #fff; }
.util-bar a:hover { color: #fff; }
.util-bar .mono { color: #9fb3ad; }

.header-main { height: var(--header-h); }
.header-main .container {
  display: flex; align-items: center; gap: 24px; height: 100%;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; min-width: 0; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand-logo {
  height: 40px; width: auto; max-width: 200px;
  object-fit: contain; object-position: left center;
  display: block;
}
.brand .wordmark {
  display: flex; flex-direction: column; line-height: 1;
}
.brand .wordmark .name {
  font-weight: 900; font-size: 1.14rem; letter-spacing: 0.01em; color: var(--ink);
}
.brand .wordmark .sub {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--copper); margin-top: 3px;
}

.search {
  position: relative;
  flex: 1;
  max-width: 560px;
}
.search .input {
  padding-left: 40px;
  background: var(--paper);
}
.search .search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--graphite-2); width: 18px; height: 18px; pointer-events: none;
}
.search .dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--card-raised);
  border: var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  z-index: 200;
}
.search .dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--steel);
}
.search .dropdown a:last-child { border-bottom: none; }
.search .dropdown a:hover { background: var(--paper); }
.search .dropdown img { width: 40px; height: 40px; object-fit: cover; border-radius: 2px; }
.search .dropdown .name { font-size: 0.88rem; color: var(--ink); font-weight: 600; }
.search .dropdown .meta { font-size: 0.75rem; color: var(--graphite-2); }
.search .dropdown .empty { padding: 14px; font-size: 0.85rem; color: var(--graphite-2); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius);
  color: var(--ink);
  transition: background 0.15s var(--ease);
}
.icon-btn:hover { background: var(--paper); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .count {
  position: absolute; top: 4px; right: 4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--copper); color: #fff;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  border-radius: 17px; display: grid; place-items: center;
  border: 2px solid var(--card-raised);
}

/* nav rail */
.nav-rail { border-top: var(--hairline); }
.nav-rail .container { display: flex; align-items: center; gap: 4px; height: 46px; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { background: var(--paper); }
.nav-link.active { color: var(--copper); }
.nav-link .caret { width: 14px; height: 14px; color: var(--graphite-2); transition: transform 0.15s var(--ease); }
.nav-item { position: relative; }
.nav-item:hover .nav-mega { visibility: visible; opacity: 1; transform: translateY(0); }
.nav-mega {
  position: absolute; top: 100%; left: 0;
  min-width: 460px;
  background: var(--card-raised);
  border: var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  padding: 16px;
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: all 0.18s var(--ease);
  z-index: 150;
}
.nav-mega .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nav-mega a.cat-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: var(--radius);
}
.nav-mega a.cat-link:hover { background: var(--paper); }
.nav-mega a.cat-link img { width: 34px; height: 34px; object-fit: cover; border-radius: 2px; }
.nav-mega a.cat-link .t { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.nav-mega .mega-foot {
  margin-top: 12px; padding-top: 12px; border-top: var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
}
.nav-mega .mega-foot a { font-family: var(--font-mono); font-size: 0.74rem; color: var(--copper); }

/* mobile menu button */
.menu-toggle { display: none; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  min-height: min(64vh, 560px);
}
.hero .slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
  background: var(--ink);
}
.hero .slide.active { opacity: 1; visibility: visible; z-index: 1; }
/* brand-palette slide backgrounds (no server image) */
.hero .slide.tone-0 { background: linear-gradient(120deg, #0c1a16 0%, #143324 48%, #2f5d46 100%); }
.hero .slide.tone-1 { background: linear-gradient(120deg, #1c120c 0%, #3a2113 48%, #bf5b2b 100%); }
.hero .slide.tone-2 { background: linear-gradient(120deg, #0b161b 0%, #1a2f3a 52%, #31586a 100%); }
/* blueprint grid texture */
.hero .slide::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
/* copper junction watermark */
.hero .slide .orn {
  position: absolute; right: -70px; top: 50%; transform: translateY(-50%);
  opacity: 0.18; pointer-events: none;
}
.hero .slide .orn svg { display: block; }
.hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 72px 24px;
  min-height: min(64vh, 560px);
  display: flex; align-items: center;
}
.hero .hero-copy { max-width: 560px; }
.hero .hero-copy .rule {
  width: 56px; height: 3px; background: var(--copper);
  margin-bottom: 22px;
  animation: conductor 1s var(--ease) both;
}
.hero .hero-copy .t {
  font-weight: 800; line-height: 1.02; letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 4.6vw, 3.4rem);
  color: #fff; margin-bottom: 14px;
}
.hero .hero-copy .s {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600; color: #fff; margin-bottom: 12px;
}
.hero .hero-copy .txt {
  font-size: 0.98rem; color: rgba(255, 255, 255, 0.82); max-width: 46ch; margin-bottom: 26px;
}
.hero .hero-cta { display: inline-flex; }
.hero .controls {
  position: absolute; z-index: 3; bottom: 26px; right: 24px;
  display: flex; gap: 8px;
}
.hero .controls button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.hero .controls button:hover { background: var(--copper); border-color: var(--copper); }
.hero .dots {
  position: absolute; z-index: 3; bottom: 38px; left: 24px;
  display: flex; gap: 7px;
}
.hero .dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.2s var(--ease);
}
.hero .dots button.active { background: var(--copper); width: 26px; border-radius: 8px; }

@keyframes conductor { from { width: 0; opacity: 0; } to { width: 56px; opacity: 1; } }

/* default hero (no data) */
.hero-default {
  background:
    linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 55%, #31586a 100%);
  position: relative;
}
.hero-default::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}

/* =========================================================================
   Sections
   ========================================================================= */
.section { padding: 56px 0; }
.section.tight { padding: 36px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 26px; flex-wrap: wrap;
}
.section-head .rule { width: 40px; height: 3px; background: var(--copper); margin-bottom: 14px; }
.section-head .more { font-family: var(--font-mono); font-size: 0.78rem; color: var(--copper); }

/* category chips */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.cat-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border: var(--hairline); border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.cat-chip:hover { border-color: var(--copper); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.cat-chip img { width: 44px; height: 44px; object-fit: cover; border-radius: 2px; background: var(--steel); }
.cat-chip .t { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.cat-chip .c { font-family: var(--font-mono); font-size: 0.72rem; color: var(--graphite-2); }

/* =========================================================================
   Product grid & card
   ========================================================================= */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(232px, 100%), 1fr)); gap: 20px; }

.pcard {
  position: relative;
  background: var(--card);
  border: var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--steel-2); }
.pcard .media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--steel);
}
.pcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.pcard:hover .media img { transform: scale(1.05); }
.pcard .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge {
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 7px; border-radius: 2px;
}
.badge.sale { background: var(--amber); color: #fff; }
.badge.new { background: var(--pine); color: #fff; }
.pcard .quick {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.pcard:hover .quick, .pcard:focus-within .quick { opacity: 1; transform: translateY(0); }
.pcard .quick button {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card-raised); box-shadow: var(--shadow-1);
  display: grid; place-items: center; color: var(--ink);
  border: var(--hairline);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.pcard .quick button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pcard .quick button.on { background: var(--copper); color: #fff; border-color: var(--copper); }
.pcard .quick svg { width: 18px; height: 18px; }
.pcard .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .sku { font-family: var(--font-mono); font-size: 0.64rem; color: var(--graphite-2); letter-spacing: 0.05em; }
.pcard .cat { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--copper); }
.pcard .name {
  font-weight: 700; font-size: 0.96rem; color: var(--ink); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.4em;
}
.pcard .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.pcard .price { font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.pcard .price.del { font-size: 0.82rem; color: var(--graphite-2); text-decoration: line-through; }
.pcard .avail { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 0.68rem; }
.pcard .avail .dot { width: 7px; height: 7px; border-radius: 50%; }
.pcard .avail.in { color: var(--pine); } .pcard .avail.in .dot { background: var(--pine); }
.pcard .avail.out { color: var(--graphite-2); } .pcard .avail.out .dot { background: var(--steel-2); }
.pcard .add-btn {
  margin-top: 8px; width: 100%; padding: 10px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  font-weight: 700; font-size: 0.86rem; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.15s var(--ease);
}
.pcard .add-btn:hover { background: var(--ink); color: #fff; }
.pcard .add-btn.added { background: var(--pine); border-color: var(--pine); color: #fff; }
.pcard .add-btn svg { width: 17px; height: 17px; }

/* =========================================================================
   Layout with sidebar
   ========================================================================= */
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + var(--util-h) + 58px); }
.sidebar .side-block { border: var(--hairline); border-radius: var(--radius); background: var(--card); margin-bottom: 16px; overflow: hidden; }
.sidebar .side-head {
  padding: 13px 16px; border-bottom: var(--hairline);
  font-weight: 800; font-size: 0.86rem; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.sidebar .side-head .mono { color: var(--copper); }
.sidebar .side-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; font-size: 0.88rem; color: var(--graphite);
  border-bottom: 1px solid var(--steel);
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.sidebar .side-list a:last-child { border-bottom: none; }
.sidebar .side-list a:hover { background: var(--paper); color: var(--ink); }
.sidebar .side-list a.active { color: var(--copper); font-weight: 700; }
.sidebar .side-list .cnt { font-family: var(--font-mono); font-size: 0.7rem; color: var(--graphite-2); }
.sidebar .mini { display: flex; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--steel); }
.sidebar .mini:last-child { border-bottom: none; }
.sidebar .mini img { width: 48px; height: 48px; object-fit: cover; border-radius: 2px; flex: none; }
.sidebar .mini .n { font-size: 0.82rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.sidebar .mini .p { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink); }

/* =========================================================================
   Product detail
   ========================================================================= */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.pdp .gallery { display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.pdp .thumbs { display: flex; flex-direction: column; gap: 10px; }
.pdp .thumbs button {
  width: 84px; height: 70px; border-radius: var(--radius); overflow: hidden;
  border: 2px solid transparent; padding: 0; background: var(--steel);
}
.pdp .thumbs button.active { border-color: var(--copper); }
.pdp .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp .main-img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--steel); }
.pdp .main-img img { width: 100%; height: 100%; object-fit: cover; }
.pdp .info .cat { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--copper); }
.pdp .info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--ink); line-height: 1.05; margin: 10px 0 8px; }
.pdp .info .sku { font-family: var(--font-mono); font-size: 0.74rem; color: var(--graphite-2); margin-bottom: 16px; }
.pdp .price-block { display: flex; align-items: baseline; gap: 12px; margin: 14px 0; }
.pdp .price-block .now { font-family: var(--font-mono); font-weight: 600; font-size: 1.9rem; color: var(--ink); }
.pdp .price-block .was { font-family: var(--font-mono); font-size: 1rem; color: var(--graphite-2); text-decoration: line-through; }
.pdp .desc { color: var(--graphite); line-height: 1.65; margin: 14px 0; max-width: 56ch; }
.pdp .meta-list { border-top: var(--hairline); margin: 20px 0; }
.pdp .meta-list li {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: var(--hairline); font-size: 0.88rem;
}
.pdp .meta-list li .k { color: var(--graphite-2); }
.pdp .meta-list li .v { color: var(--ink); font-weight: 600; }
.pdp .meta-list li .v.mono { font-weight: 500; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pdp .buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--steel-2);
  border-radius: var(--radius); overflow: hidden;
}
.qty button { width: 40px; height: 46px; display: grid; place-items: center; color: var(--ink); }
.qty button:hover { background: var(--paper); }
.qty .val { width: 44px; text-align: center; font-family: var(--font-mono); font-weight: 600; color: var(--ink); }

/* =========================================================================
   Deal of the day / feature
   ========================================================================= */
.deal {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: var(--hairline); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card);
}
.deal .deal-media { position: relative; min-height: 360px; }
.deal .deal-media img { width: 100%; height: 100%; object-fit: cover; }
.deal .deal-media .tag {
  position: absolute; top: 16px; left: 16px; background: var(--copper); color: #fff;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; padding: 6px 10px; border-radius: 2px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.deal .deal-body { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.deal .deal-body .n { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.deal .deal-body .d { color: var(--graphite); max-width: 52ch; }
.countdown { display: flex; gap: 10px; margin: 6px 0 12px; }
.countdown .unit {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 8px 10px; text-align: center; min-width: 52px;
}
.countdown .unit .n { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; line-height: 1; }
.countdown .unit .l { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: #9fb3ad; margin-top: 4px; }

/* =========================================================================
   Services / testimonials / CTA
   ========================================================================= */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.service-item {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border: var(--hairline); border-radius: var(--radius); background: var(--card);
}
.service-item .ic {
  width: 46px; height: 46px; border-radius: var(--radius); flex: none;
  background: var(--ink); color: var(--copper); display: grid; place-items: center;
}
.service-item .ic svg { width: 22px; height: 22px; }
.service-item .t { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.service-item .d { font-size: 0.8rem; color: var(--graphite-2); }

.quote-band {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.quote-band .t { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.quote-band .s { color: #9fb3ad; margin-top: 6px; }

/* =========================================================================
   Blog cards
   ========================================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.blog-card {
  background: var(--card); border: var(--hairline); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.blog-card .media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--steel); }
.blog-card .media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card .cat { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--copper); }
.blog-card .t { font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.3; }
.blog-card .meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--graphite-2); }

/* =========================================================================
   Cart
   ========================================================================= */
.cart-lines { display: flex; flex-direction: column; gap: 12px; }
.cart-line {
  display: grid; grid-template-columns: 84px 1fr auto auto; gap: 16px; align-items: center;
  padding: 12px; border: var(--hairline); border-radius: var(--radius); background: var(--card);
}
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: 2px; }
.cart-line .n { font-weight: 700; color: var(--ink); }
.cart-line .c { font-family: var(--font-mono); font-size: 0.7rem; color: var(--graphite-2); text-transform: uppercase; letter-spacing: 0.06em; }
.cart-line .p { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.cart-line .remove { color: var(--graphite-2); }
.cart-line .remove:hover { color: var(--red); }

.summary {
  border: var(--hairline); border-radius: var(--radius); background: var(--card);
  padding: 22px; position: sticky; top: calc(var(--header-h) + var(--util-h) + 58px);
}
.summary .row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 0.92rem; }
.summary .row.total { border-top: var(--hairline); margin-top: 8px; padding-top: 14px; font-weight: 800; color: var(--ink); }
.summary .row .v { font-family: var(--font-mono); }

/* =========================================================================
   Empty / error / skeleton
   ========================================================================= */
.empty {
  text-align: center; padding: 60px 24px; border: var(--hairline); border-radius: var(--radius);
  background: var(--card);
}
.ic svg { width: 20px; height: 20px; }
.empty .ic { width: 54px; height: 54px; margin: 0 auto 16px; color: var(--steel-2); }
.empty .t { font-weight: 800; color: var(--ink); font-size: 1.2rem; }
.empty .s { color: var(--graphite-2); margin-top: 6px; }
.empty .btn { margin-top: 18px; }

.skeleton { background: linear-gradient(90deg, var(--steel) 25%, var(--paper) 50%, var(--steel) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* skeleton cards (loading / offline placeholders) */
.sk-card { pointer-events: none; }
.sk-card .media { position: relative; }
.sk-media { position: absolute; inset: 0; border-radius: 0; }
.sk-card .body { min-height: 110px; }

/* offline banner */
.offline-banner {
  position: fixed; top: 14px; left: 50%;
  transform: translate(-50%, -18px);
  z-index: 1000; display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; padding: 10px 14px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  font-size: 0.86rem; max-width: calc(100vw - 24px);
}
.offline-banner.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.offline-banner .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; animation: pulse 1.4s infinite; }
.offline-banner .t { font-weight: 800; white-space: nowrap; }
.offline-banner .s { color: #c7d1cd; }
.offline-banner button { background: none; border: none; color: #c7d1cd; cursor: pointer; display: grid; place-items: center; padding: 2px; }
.offline-banner button:hover { color: #fff; }
.offline-banner button svg { width: 15px; height: 15px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--ink); color: #c7d1cd; margin-top: 64px; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding: 56px 0 40px;
}
.footer-top .fhead { color: #fff; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-top a { display: block; padding: 5px 0; font-size: 0.88rem; }
.footer-top a:hover { color: #fff; }
.footer-top .brand .name { color: #fff; font-weight: 900; font-size: 1.2rem; }
.footer-top .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.footer-top .logo-badge {
  display: inline-flex; align-items: center;
  background: #fff; padding: 10px 14px; border-radius: var(--radius-lg);
}
.footer-top .logo-badge .brand-logo { height: 30px; max-width: 180px; }
.footer-top .brand p { font-size: 0.86rem; margin-top: 14px; max-width: 34ch; }
.footer-top .addr { font-size: 0.86rem; line-height: 1.6; }
.footer-top .addr strong { color: #fff; display: block; margin-top: 12px; }
.footer-brand-dir { border-top: 1px solid rgba(255,255,255,0.1); padding: 26px 0; }
.footer-brand-dir .fhead { color: #fff; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.footer-brand-dir .cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 18px; }
.footer-brand-dir .cat { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; color: var(--copper); letter-spacing: 0.06em; margin-bottom: 6px; }
.footer-brand-dir .cat-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer-brand-dir .cat-links a { font-size: 0.82rem; color: #c7d1cd; }
.footer-brand-dir .cat-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom .copy { font-size: 0.8rem; }
.footer-bottom .copy a { color: #fff; }
.footer-bottom .mono { font-size: 0.72rem; color: #7c8a85; }

/* =========================================================================
   Admin
   ========================================================================= */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - var(--util-h)); }
.admin-side {
  background: var(--ink); color: #c7d1cd; padding: 20px 14px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { margin-bottom: 22px; padding: 0 8px; }
.admin-side .brand .name { color: #fff; }
.admin-side .brand .sub { color: var(--copper); }
.admin-side .group-label { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em; color: #7c8a85; padding: 14px 10px 6px; }
.admin-side a.nav,
.admin-side button.nav {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px; border-radius: var(--radius); font-size: 0.88rem; font-weight: 600;
  background: transparent; border: none; color: #c7d1cd; cursor: pointer; font-family: inherit; text-align: left;
}
.admin-side a.nav:hover,
.admin-side button.nav:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-side a.nav.active { background: var(--copper); color: #fff; }
.admin-side a.nav svg,
.admin-side button.nav svg { width: 18px; height: 18px; flex: none; }
.admin-side .foot { margin-top: 22px; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.admin-main { padding: 28px 32px 80px; min-width: 0; }
.admin-topbar {
  background: var(--ink); color: #fff; height: var(--util-h);
}
.admin-topbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.admin-topbar a { font-size: 0.8rem; }
.admin-topbar .mono { color: #9fb3ad; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; margin-bottom: 24px; }
.stat {
  border: var(--hairline); border-radius: var(--radius); background: var(--card);
  padding: 18px;
}
.stat .lbl { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--graphite-2); }
.stat .val { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: var(--ink); margin-top: 6px; }
.stat .sub { font-size: 0.78rem; color: var(--graphite-2); margin-top: 4px; }

.panel {
  border: var(--hairline); border-radius: var(--radius); background: var(--card); padding: 22px; margin-bottom: 22px;
}

/* Store locator */
.locator-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; }
.locator-card { display: flex; gap: 16px; align-items: flex-start; }
.map-panel { padding: 0; overflow: hidden; }
.store-map { width: 100%; height: 520px; }
.store-map-fallback { display: flex; flex-direction: column; gap: 18px; min-height: 320px; justify-content: center; padding: 24px; }
.store-map-links { display: flex; flex-direction: column; gap: 10px; }
.store-map-fallback .btn span { white-space: normal; }
.fj-pin { background: transparent; border: none; }
.fj-pin-dot { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--copper); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(19, 38, 47, 0.28); }
.panel .panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel .panel-title { font-weight: 800; color: var(--ink); font-size: 1.05rem; }

.table-wrap { overflow-x: auto; border: var(--hairline); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
table.data th {
  text-align: left; padding: 11px 14px; background: var(--paper);
  font-weight: 700; color: var(--ink); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: var(--hairline); white-space: nowrap;
}
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--steel); white-space: nowrap; }
table.data tbody tr:hover { background: var(--paper); }
table.data .mono { font-size: 0.76rem; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 2px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; }
.tag.green { background: var(--pine-tint); color: var(--pine); }
.tag.red { background: var(--red-tint); color: var(--red); }
.tag.amber { background: var(--amber-tint); color: var(--amber); }
.tag.grey { background: var(--steel); color: var(--graphite); }

.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.upload-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-tile { position: relative; width: 96px; height: 96px; border-radius: var(--radius); overflow: hidden; border: var(--hairline); }
.upload-tile img { width: 100%; height: 100%; object-fit: cover; }
.upload-tile .del,
.upload-tile .delNew {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; display: grid; place-items: center;
}
.upload-tile .del svg,
.upload-tile .delNew svg { width: 14px; height: 14px; }
.upload-add {
  width: 96px; height: 96px; border: 1px dashed var(--steel-2); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--graphite-2); font-family: var(--font-mono); font-size: 0.66rem; text-align: center;
}
.upload-add:hover { border-color: var(--copper); color: var(--copper); }

/* =========================================================================
   Auth
   ========================================================================= */
.auth-wrap {
  min-height: calc(100vh - var(--util-h));
  display: grid; place-items: center;
  padding: 48px 24px; background: var(--paper);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--card-raised); border: var(--hairline);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-1);
}
.seg { display: flex; gap: 4px; background: var(--steel); border-radius: var(--radius); padding: 4px; margin-bottom: 20px; }
.seg-btn {
  flex: 1; padding: 9px 12px; border-radius: 2px; border: none;
  font-weight: 700; font-size: 0.86rem; color: var(--graphite-2);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }

/* mobile menu accordion (rendered inside the header) */
.mobile-menu { border-top: var(--hairline); }
.mobile-menu .nav-link { border-bottom: var(--hairline); }

/* =========================================================================
   Chat widget
   ========================================================================= */
.chat-launcher {
  position: fixed; bottom: 22px; right: 22px; z-index: 500;
  display: flex; align-items: center; gap: 9px;
  background: var(--pine); color: #fff; padding: 13px 18px; border-radius: 30px;
  font-weight: 700; font-size: 0.9rem; box-shadow: var(--shadow-3);
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}
.chat-launcher:hover { background: #244b39; transform: translateY(-2px); }
.chat-launcher svg { width: 20px; height: 20px; }
.chat-window {
  position: fixed; bottom: 84px; right: 22px; z-index: 500;
  width: 380px; max-width: calc(100vw - 32px); height: min(600px, 72vh);
  background: var(--card-raised); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-3); display: flex; flex-direction: column;
}
.chat-window .cw-head {
  background: var(--ink); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.chat-window .cw-head .t { font-weight: 800; }
.chat-window .cw-head .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6fcf97; margin-right: 8px; }
.chat-window .cw-head button { color: #c7d1cd; }
.chat-window .cw-head button:hover { color: #fff; }
.chat-window .cw-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { max-width: 82%; padding: 10px 13px; border-radius: var(--radius); font-size: 0.88rem; line-height: 1.45; }
.msg.left { align-self: flex-start; background: var(--card-raised); border: var(--hairline); color: var(--ink); border-bottom-left-radius: 2px; }
.msg.right { align-self: flex-end; background: var(--pine); color: #fff; border-bottom-right-radius: 2px; }
.msg .who { font-family: var(--font-mono); font-size: 0.66rem; opacity: 0.7; margin-bottom: 3px; }
.chat-window .cw-foot { border-top: var(--hairline); padding: 10px; display: flex; gap: 8px; }
.chat-window .cw-foot .input { flex: 1; }
.chat-window .cw-foot button {
  background: var(--pine); color: #fff; border-radius: var(--radius); padding: 0 16px; font-weight: 700;
}

/* admin chat */
.admin-chat { display: grid; grid-template-columns: 300px 1fr; gap: 20px; height: calc(100vh - 180px); }
.session-list { border: var(--hairline); border-radius: var(--radius); overflow-y: auto; background: var(--card); }
.session-list .s {
  padding: 13px 16px; border-bottom: var(--hairline); cursor: pointer; display: flex; flex-direction: column; gap: 2px;
}
.session-list .s:hover { background: var(--paper); }
.session-list .s.active { background: var(--copper-tint2); border-left: 3px solid var(--copper); }
.session-list .s .n { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.session-list .s .p { font-size: 0.78rem; color: var(--graphite-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-list .s .d { font-family: var(--font-mono); font-size: 0.66rem; color: var(--graphite-2); }
.admin-chat .thread { display: flex; flex-direction: column; border: var(--hairline); border-radius: var(--radius); overflow: hidden; background: var(--card); }

/* =========================================================================
   Toasts
   ========================================================================= */
.toast-root { position: fixed; bottom: 22px; left: 22px; right: 22px; z-index: 900; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--ink); color: #fff; padding: 14px 16px; border-radius: var(--radius);
  box-shadow: var(--shadow-2); min-width: 0; max-width: min(360px, 100%);
  animation: toastIn 0.25s var(--ease);
}
.toast.out { animation: toastOut 0.25s var(--ease) forwards; }
.toast .bar { width: 3px; align-self: stretch; border-radius: 2px; flex: none; }
.toast .bar.ok { background: #6fcf97; } .toast .bar.err { background: #ff6b6b; } .toast .bar.info { background: var(--amber); }
.toast .t { font-weight: 800; font-size: 0.88rem; }
.toast .m { font-size: 0.8rem; color: #c7d1cd; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px); } }

/* =========================================================================
   Print (quotation)
   ========================================================================= */
.print-only { display: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .locator-grid { grid-template-columns: 1fr; }
  .store-map { height: 380px; }
  .sidebar { position: static; display: none; }
  .sidebar.show { display: block; }
  .pdp { grid-template-columns: 1fr; }
  .deal { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; display: none; }
  .admin-side.show { display: block; }
  .admin-chat { grid-template-columns: 1fr; height: auto; }
  .admin-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .util-bar .left { display: none; }
  .header-main { height: 58px; }
  .header-main .container { gap: 8px; }
  .brand { gap: 0; }
  .brand-logo { height: 38px; max-width: 52vw; }
  #accountBtn { display: none; }
  .search { display: none; }
  .nav-rail { display: none; }
  .menu-toggle { display: inline-flex; }
  .icon-btn { width: 36px; height: 36px; }
  .hero .hero-inner { padding: 48px 20px; min-height: 52vh; }
  .deal .deal-media { min-height: 240px; }
  .deal .deal-body { padding: 24px 20px; }
  .countdown { gap: 6px; }
  .countdown .unit { min-width: 44px; padding: 8px 6px; }
  .cart-line { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; }
  .cart-line img { width: 64px; height: 64px; }
  .cart-line .qty-wrap { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .store-map { height: 320px; }
  .quote-band { padding: 28px; }
  .admin-main { padding: 20px 16px 72px; }
  .admin-topbar .container { gap: 12px; }
}

@media (max-width: 420px) {
  .container { padding-inline: 16px; }
  .icon-btn { width: 34px; height: 34px; }
  .header-main .container { gap: 4px; }
  .brand-logo { height: 34px; max-width: 50vw; }
  .admin-topbar .mono { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero .slide { transition: none; }
}
