/* ═══════════════════════════════════════════════════════════════════════════
   All Safety Inc. — minimal, clean, professional
   Green (#39e600) + black brand palette, used with restraint.
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --green:      #39e600;   /* primary accent — buttons, highlights */
  --green-dk:   #2ab800;   /* hover state on green fills */
  --green-deep: #177800;   /* green that passes contrast as text on white */
  --green-tint: #f3fdec;   /* faint green wash for active/selected states */

  /* Neutrals */
  --ink:        #111111;   /* near-black — headings, dark bands */
  --text:       #1f2937;   /* body text */
  --muted:      #6b7280;
  --faint:      #9ca3af;
  --line:       #e7e7e7;   /* hairline borders */
  --bg:         #ffffff;
  --bg-soft:    #fafafa;

  /* Height of the sticky under-construction banner. The sticky header offsets
     itself by this, so both stay pinned without overlapping. */
  --banner-h:   40px;

  --radius:     10px;
  --radius-lg:  14px;
  --shadow-sm:  0 1px 2px rgba(17,17,17,.05);
  --shadow-md:  0 8px 24px -12px rgba(17,17,17,.18);
  --focus-ring: 0 0 0 3px rgba(57,230,0,.22);

  /* category accent colors — mirrors OMS palette */
  --palette-0: #3b82f6;
  --palette-1: #f59e0b;
  --palette-2: #8b5cf6;
  --palette-3: #10b981;
  --palette-4: #ef4444;
  --palette-5: #06b6d4;
  --palette-6: #ec4899;
  --palette-7: #84cc16;
  --palette-8: #6366f1;
  --palette-9: #f97316;
  --palette-10:#14b8a6;
  --palette-11:#a855f7;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: rgba(57,230,0,.3); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

/* Small uppercase label used throughout */
.eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green-deep);
  margin-bottom: 12px;
}

/* ── Under-construction banner ───────────────────────────────────────────── */
/* Pinned to the top on every page; the sticky header parks directly beneath it
   via --banner-h. Keep that value in sync with this block's height if the
   padding or font-size changes. Remove the markup on each page to retire it. */
.construction-banner {
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--banner-h);
  padding: 0 20px;
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  border-bottom: 2px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 110;   /* above .site-header (100) */
}

.construction-banner i { color: var(--green); }

.construction-banner strong {
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Drop the secondary sentence on small screens so the banner stays one line
   and its height keeps matching --banner-h. */
@media (max-width: 640px) {
  .construction-banner { font-size: .78rem; padding: 0 14px; gap: 8px; }
  .construction-banner .banner-detail { display: none; }
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg);
  color: var(--ink);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--banner-h);   /* park below the sticky construction banner */
  z-index: 100;
}

.site-logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.site-logo img { height: 36px; width: auto; }
.site-logo .logo-sub { color: var(--faint); font-weight: 500; font-size: .82em; letter-spacing: .04em; }

.site-nav { display: flex; align-items: center; }
.site-nav a {
  color: var(--muted);
  font-weight: 500;
  margin-left: 28px;
  font-size: .92rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--green); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--bg);
  color: var(--ink);
  padding: 88px 24px 72px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--ink);
}
.hero h1 span { color: var(--green-deep); }
.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

.hero-search {
  display: flex;
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.hero-search:focus-within { border-color: var(--green-dk); box-shadow: var(--focus-ring); }
.hero-search input {
  flex: 1;
  border: none;
  padding: 15px 20px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.hero-search input::placeholder { color: var(--faint); }
.hero-search button {
  background: var(--green);
  color: var(--ink);
  border: none;
  padding: 0 28px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.hero-search button:hover { background: var(--green-dk); }

.hero-stats {
  margin-top: 24px;
  font-size: .88rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Section ─────────────────────────────────────────────────────────────── */
.section { padding: 64px 32px; max-width: 1200px; margin: 0 auto; }
.section-band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-band .section { background: none; }

.section-head { margin-bottom: 28px; }
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.section-sub { font-size: .92rem; color: var(--muted); margin-top: 4px; }

/* ── Category tiles (homepage) ───────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.category-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.category-tile:hover {
  border-color: #cfcfcf;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.category-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--tile-accent, var(--green-deep));
  background: color-mix(in srgb, var(--tile-accent, var(--green)) 10%, var(--bg));
}
.category-tile-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.category-tile-name {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-tile-count { display: block; font-size: .75rem; color: var(--faint); font-weight: 500; margin-top: 1px; }

/* ── Featured grid (homepage) ────────────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.featured-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.featured-card:hover {
  border-color: #cfcfcf;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.featured-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: var(--bg);
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.featured-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.featured-card-name {
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.featured-card-price { font-size: .92rem; font-weight: 700; color: var(--ink); margin-top: auto; padding-top: 4px; }

/* ── CTA banner ──────────────────────────────────────────────────────────── */
.cta-banner {
  background: var(--ink);
  text-align: center;
  padding: 72px 24px;
  color: var(--bg);
}
.cta-banner h2 { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.cta-banner p { color: #9a9a9a; margin-bottom: 28px; font-size: .98rem; }

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--ink);
  padding: 13px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  transition: background .15s;
}
.btn-primary:hover { background: var(--green-dk); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: #8a8a8a;
  text-align: center;
  padding: 36px 24px;
  font-size: .85rem;
}
.site-footer a { color: #bdbdbd; transition: color .15s; }
.site-footer a:hover { color: var(--green); }
.footer-brand {
  color: #e5e5e5;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.footer-brand .logo-sub { color: #777; font-weight: 400; }

/* ── Catalog layout ──────────────────────────────────────────────────────── */
.page-head {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 32px 0;
}
.page-head h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.page-head p { font-size: .9rem; color: var(--muted); margin-top: 2px; }

.catalog-layout {
  display: flex;
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 32px 48px;
  align-items: flex-start;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.catalog-sidebar {
  width: 230px;
  flex-shrink: 0;
  position: sticky;
  top: calc(88px + var(--banner-h));   /* header (64) + gap (24) + banner */
}
.sidebar-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  padding: 0 10px 10px;
  margin: 0;
}

/* Category tree */
.category-tree-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: .88rem;
  font-family: inherit;
  color: var(--text);
  text-align: left;
  transition: background .12s, color .12s;
  gap: 8px;
}
.category-tree-item:hover { background: var(--bg-soft); color: var(--ink); }
.category-tree-item.active {
  background: var(--green-tint);
  color: var(--green-deep);
  font-weight: 600;
}
.category-tree-root { margin-bottom: 2px; }
.category-tree-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-tree-label i { margin-right: 6px; font-size: .8em; color: var(--faint); }
.category-tree-item.active .category-tree-label i { color: var(--green-deep); }
.category-tree-count {
  font-size: .72rem;
  color: var(--faint);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.category-tree-item.active .category-tree-count { color: var(--green-deep); }

.category-tree-breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 6px 10px 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}
.category-tree-crumb {
  background: none;
  border: none;
  color: var(--green-deep);
  font-size: .78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}
.category-tree-crumb:hover { text-decoration: underline; }
.crumb-sep { font-size: .6rem; color: var(--faint); }

/* ── Catalog main ────────────────────────────────────────────────────────── */
.catalog-main { flex: 1; min-width: 0; }

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.catalog-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: var(--bg);
}
.catalog-search::placeholder { color: var(--faint); }
.catalog-search:focus { border-color: var(--green-dk); box-shadow: var(--focus-ring); }

.result-count {
  font-size: .82rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.catalog-sort {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .85rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.catalog-sort:focus { border-color: var(--green-dk); box-shadow: var(--focus-ring); }

/* View toggle — segmented control */
.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.view-toggle button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--muted);
  transition: background .12s, color .12s;
}
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button.active { background: var(--ink); color: var(--bg); }
.view-toggle button:hover:not(.active) { background: var(--bg-soft); color: var(--ink); }

/* ── Product grid ────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

/* ── Product card ────────────────────────────────────────────────────────── */
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cfcfcf;
}

/* Image / icon area */
.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.product-card-image-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}
.product-card-image.has-product-img .product-card-image-bg { display: none; }
.product-card-image.has-product-img .product-card-icon  { display: none; }

.product-card-icon {
  position: relative;
  z-index: 1;
  font-size: 2.6rem;
  color: var(--card-accent, var(--green));
  opacity: .7;
  transition: transform .25s;
}
.product-card:hover .product-card-icon { transform: scale(1.06); }

.product-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  opacity: 0;
  transition: opacity .2s ease;
}
.product-card-img.loaded { opacity: 1; }

/* Badges */
.product-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .66rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: .02em;
}
.badge-bundle { background: var(--ink); color: var(--bg); }
.badge-sale   { background: #ef4444; color: #fff; }
.badge-new    { background: var(--green); color: var(--ink); }

/* Card body */
.product-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}
.product-card-sku-label {
  font-size: .7rem;
  color: var(--faint);
  font-family: 'SF Mono', Consolas, monospace;
  letter-spacing: .01em;
}
.product-card-cat {
  font-size: .7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.product-card-title {
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

/* Price */
.product-card-price {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: auto;
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}
.product-card-price-stack { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.product-card-price-original { font-size: .8rem; color: var(--faint); text-decoration: line-through; }
.product-card-price-clearance { font-size: .95rem; font-weight: 700; color: #dc2626; }

/* "N sizes" chip on catalog card */
.product-card-sizes {
  font-size: .68rem;
  font-weight: 600;
  color: var(--green-deep);
  background: var(--green-tint);
  border-radius: 5px;
  padding: 2px 7px;
  margin-left: auto;
  white-space: nowrap;
}

/* ── List view ───────────────────────────────────────────────────────────── */
.product-grid.list-view {
  grid-template-columns: 1fr;
  gap: 10px;
}
.product-grid.list-view .product-card {
  flex-direction: row;
  align-items: stretch;
}
.product-grid.list-view .product-card-image {
  width: 110px;
  aspect-ratio: auto;
  flex-shrink: 0;
  border-bottom: none;
  border-right: 1px solid var(--line);
}
.product-grid.list-view .product-card-icon { font-size: 2rem; }
.product-grid.list-view .product-card-body {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
}
.product-grid.list-view .product-card-title { flex: 1; min-width: 180px; font-size: .9rem; }
.product-grid.list-view .product-card-price,
.product-grid.list-view .product-card-price-stack { margin-top: 0; padding-top: 0; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  font-size: .85rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
  font-variant-numeric: tabular-nums;
}
.pagination button:hover:not(:disabled):not(.active) { border-color: #bdbdbd; background: var(--bg-soft); }
.pagination button.active { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.pagination button:disabled { opacity: .35; cursor: default; }

/* Loading / empty */
#loading { text-align: center; padding: 48px; color: var(--muted); }
.no-results { color: var(--muted); padding: 48px 0; text-align: center; }

/* ── Product detail ──────────────────────────────────────────────────────── */
.product-detail-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 32px 64px;
}
.breadcrumb { font-size: .82rem; color: var(--faint); margin-bottom: 28px; }
.breadcrumb a { color: var(--muted); font-weight: 500; transition: color .12s; }
.breadcrumb a:hover { color: var(--green-deep); }

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

/* Detail image */
.product-detail-image {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.product-detail-image-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}
.product-detail-image.has-img .product-detail-image-bg { display: none; }
.product-detail-image.has-img .product-detail-icon   { display: none; }
.product-detail-icon {
  position: relative;
  z-index: 1;
  font-size: 4.5rem;
  color: var(--card-accent, var(--green));
  opacity: .6;
}
.product-detail-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
  opacity: 0;
  transition: opacity .2s ease;
}
.product-detail-img.loaded { opacity: 1; }

.thumb-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 5px;
  transition: border-color .12s;
}
.thumb:hover { border-color: var(--green-dk); }

/* Detail meta */
.product-meta { padding-top: 4px; }
.detail-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-sku {
  font-size: .75rem;
  color: var(--faint);
  font-family: 'SF Mono', Consolas, monospace;
  margin-bottom: 6px;
}
.detail-category {
  display: inline-block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.detail-name {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}
.detail-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.detail-price-original { font-size: .95rem; color: var(--faint); text-decoration: line-through; margin-right: 8px; font-weight: 500; }
.detail-price-clearance { color: #dc2626; }
.detail-notes {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
  white-space: pre-line;
}
/* Group name shown above the variant's product name */
.detail-group-name {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}

/* Size / variant selector on product detail */
.size-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.size-selector-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
}
.size-btn-row { display: flex; flex-wrap: wrap; gap: 6px; }
.size-btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
  text-decoration: none;
}
.size-btn:hover { border-color: var(--ink); color: var(--ink); }
.size-btn.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.btn-back {
  display: inline-block;
  margin-top: 28px;
  color: var(--green-deep);
  font-weight: 600;
  font-size: .88rem;
}
.btn-back:hover { text-decoration: underline; }
.error { color: #b91c1c; padding: 32px 0; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-header { padding: 0 20px; }
  .page-head { padding: 24px 20px 0; }
  .catalog-layout { flex-direction: column; padding: 20px; gap: 16px; }
  .catalog-sidebar { width: 100%; position: static; }
  .sidebar-title { padding: 0 0 8px; }
  #category-container { display: flex; flex-wrap: wrap; gap: 6px; }
  .category-tree-item {
    display: inline-flex;
    width: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 12px;
    background: var(--bg);
  }
  .category-tree-item.active { border-color: var(--green-dk); background: var(--green-tint); }
  .category-tree-breadcrumb { width: 100%; border-bottom: none; padding: 0 0 4px; }
  .category-tree-root { margin-bottom: 0; }
  .section { padding: 48px 20px; }
}
@media (max-width: 600px) {
  .hero { padding: 56px 20px 48px; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.2rem); }
  .hero h1 br { display: none; }
  .hero-search { flex-direction: row; }
  .hero-search button { padding: 0 20px; }
  .product-detail-wrap { padding: 24px 20px 48px; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 28px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .product-grid.list-view .product-card-image { width: 90px; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .category-tile { padding: 12px 14px; gap: 10px; }
  .cta-banner { padding: 56px 20px; }
}
