@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600&family=Roboto:wght@400;500;700&display=swap');

:root {
  --navy: #003366;
  --navy-dark: #001f3f;
  --navy-mid: #004080;
  --orange: #ff6600;
  --orange-hover: #e55a00;
  --text: #1a1a1a;
  --text-muted: #5a6a7a;
  --text-light: #99bbdd;
  --border: #d0d7de;
  --border-light: #e8ecf0;
  --white: #ffffff;
  --green: #22863a;
  --red: #c0392b;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --sans: "Roboto", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  line-height: 1.45;
}

a {
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

/* ══════════════════════════════════════
   DISTRIBUTOR HEADER (index.html)
   ══════════════════════════════════════ */
.distributor-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 3px solid var(--orange);
}

.header-top-bar {
  background: var(--navy-dark);
  height: 32px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
}

.home-block .container {
  padding-top: 0;
  padding-bottom: 0;
}

.header-top-bar__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.header-top-bar strong {
  color: var(--white);
  font-weight: 500;
}

.header-main {
  background: var(--navy);
  padding: 10px 0;
}

.header-main__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.header-brand {
  text-decoration: none;
  padding-left: 10px;
  border-left: 3px solid var(--orange);
  min-width: 180px;
}

.header-brand__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1.2;
}

.header-brand__tag {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.header-search {
  display: flex;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.header-search input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 3px 0 0 3px;
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
}

.header-search input:focus {
  border-color: var(--orange);
}

.header-search button {
  padding: 9px 16px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 0 3px 3px 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.header-search button:hover {
  background: var(--orange-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-nav {
  display: flex;
  gap: 2px;
}

.header-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 3px;
}

.header-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.header-cart:hover {
  border-color: var(--orange);
}

.header-subnav {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.header-subnav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.header-subnav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.2px;
}

.header-subnav a:hover {
  background: rgba(255, 102, 0, 0.15);
  color: var(--white);
}

.badge {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--white);
  background: var(--navy);
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
}

.badge--orange {
  background: var(--orange);
}

/* ══════════════════════════════════════
   SIMPLE HEADER (other pages)
   ══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--navy);
  border-bottom: 3px solid var(--orange);
  z-index: 100;
}

.site-header .brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--white);
  padding-left: 10px;
  border-left: 3px solid var(--orange);
}

.site-header .nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-header .nav a,
.site-header .nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 3px;
}

.site-header .nav a:hover,
.site-header .nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.site-header .cart-link {
  color: var(--white);
  font-weight: 500;
}

.site-header .badge {
  background: var(--orange);
}

/* ══════════════════════════════════════
   TECH BANNER (home hero)
   ══════════════════════════════════════ */
.tech-banner {
  background: var(--navy);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 102, 0, 0.03) 10px,
    rgba(255, 102, 0, 0.03) 20px
  );
  padding: 32px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 900px) {
  .tech-banner__inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
  }
}

.tech-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.tech-banner__title {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 32px;
  color: var(--white);
  line-height: 1.15;
}

@media (min-width: 768px) {
  .tech-banner__title {
    font-size: 40px;
  }
}

.tech-banner__cats {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

.tech-banner__cats .dot {
  color: var(--orange);
  margin: 0 4px;
}

.tech-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-orange {
  background: var(--orange);
  border: 1px solid var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-orange:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  font-weight: 500;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.spec-panel {
  background: rgba(0, 31, 63, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 16px;
}

.spec-panel__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--text-light);
}

.spec-panel__row:last-of-type {
  border-bottom: none;
}

.spec-panel__row strong {
  display: block;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.spec-panel__row span {
  font-size: 12px;
}

.spec-check {
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.spec-panel__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.spec-num {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 18px;
  color: var(--orange);
}

.spec-lbl {
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════
   TRUST STRIP
   ══════════════════════════════════════ */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.trust-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .trust-strip__inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  padding: 8px 12px;
  border-left: 2px solid var(--orange);
}

.trust-item__val {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

.trust-item__lbl {
  font-size: 11px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   HOME BLOCKS
   ══════════════════════════════════════ */
.home-block {
  padding: 28px 0;
  background: var(--white);
}

.header-top-bar__inner,
.header-main__inner,
.header-subnav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.home-block--border {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.block-head__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.block-head__title--solo {
  margin-bottom: 16px;
}

.block-head__link {
  font-size: 13px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}

.block-head__link:hover {
  text-decoration: underline;
}

/* Category table */
.cat-table {
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.cat-table__row {
  display: grid;
  grid-template-columns: 80px 1fr auto 24px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  transition: background 0.12s ease;
}

.cat-table__row:last-child {
  border-bottom: none;
}

.cat-table__row:hover {
  background: #fff8f3;
}

.cat-table__code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.cat-table__name {
  font-weight: 600;
  color: var(--navy);
}

.cat-table__count {
  font-size: 12px;
  color: var(--text-muted);
}

.cat-table__arrow {
  color: var(--orange);
  font-weight: 700;
}

/* Catalog list (featured products) */
.catalog-list {
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.catalog-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
  transition: background 0.12s ease;
}

.catalog-line:last-child {
  border-bottom: none;
}

.catalog-line:hover {
  background: #fafbfc;
}

.catalog-line__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}

.part-number {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: #f0f4f8;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid var(--border-light);
}

.catalog-line__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.cat-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 2px;
}

.catalog-line__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stock-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 2px;
}

.stock-badge--in {
  background: #fdecea;
  color: var(--red);
  border: 1px solid #f5c6c0;
}

.stock-badge--out {
  background: #fff8e6;
  color: #b7791f;
  border: 1px solid #f6e0a8;
}

.catalog-line__price {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  min-width: 70px;
  text-align: right;
}

.catalog-loading,
.catalog-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Procurement cards */
.procure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .procure-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.procure-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  padding: 16px;
  background: var(--white);
  border-radius: 0 3px 3px 0;
}

.procure-card__icon {
  font-size: 20px;
  display: block;
  margin-bottom: 8px;
}

.procure-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.procure-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.distributor-footer {
  background: var(--navy-dark);
  color: var(--text-light);
  margin-top: 8px;
}

.distributor-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .distributor-footer__inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.distributor-footer__brand {
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.distributor-footer__col p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.5;
}

.distributor-footer__col h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.distributor-footer__col a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  font-size: 12px;
  padding: 3px 0;
}

.distributor-footer__col a:hover {
  color: var(--orange);
}

.footer-mono {
  font-family: var(--mono);
  font-size: 12px !important;
}

.distributor-footer__bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   SHARED: Layout & typography
   ══════════════════════════════════════ */
.container h1 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 6px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0 12px;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb .sep {
  color: #c0cdd8;
}

/* ══════════════════════════════════════
   SEARCH (products / category pages)
   ══════════════════════════════════════ */
.search-bar {
  margin: 10px 0 16px;
  display: flex;
  gap: 8px;
}

.search-bar input[type="search"] {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 13px;
}

.search-bar input[type="search"]:focus {
  outline: none;
  border-color: var(--orange);
}

.search-button {
  padding: 9px 18px;
  border: none;
  background: var(--orange);
  color: var(--white);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
}

.search-button:hover {
  background: var(--orange-hover);
}

/* ══════════════════════════════════════
   PRODUCT GRID & CARDS
   ══════════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 12px;
}

.list {
  display: grid;
  gap: 10px;
}

@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--orange);
}

.card-media {
  aspect-ratio: 16 / 10;
  background: #f5f7fa;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 12px;
  display: grid;
  gap: 6px;
  flex: 1;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.card-body > div:not(.card-title):not(.price):not(.btn) {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.price {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}

.card .btn.primary {
  width: 100%;
  margin-top: auto;
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 12px;
  padding: 8px;
  border-radius: 3px;
}

.card .btn.primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}

/* Product rows */
.product-row {
  display: grid;
  grid-template-columns: 100px 1fr 200px;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 12px;
}

.product-row:hover {
  border-color: var(--orange);
}

.row-media {
  width: 100px;
  height: 72px;
  background: #f5f7fa;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.row-body {
  display: grid;
  gap: 4px;
}

.row-title {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
}

.row-meta {
  display: grid;
  gap: 2px;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--mono);
}

.row-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.row-actions .stock {
  color: var(--red);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3px;
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.btn.primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--white);
}

.btn.secondary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn.secondary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ══════════════════════════════════════
   CHIPS
   ══════════════════════════════════════ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 12px;
  background: var(--white);
}

.chips a.chip {
  text-decoration: none;
  color: var(--text);
}

.chips a.chip:hover {
  border-color: var(--orange);
  color: var(--orange);
}

button.chip {
  cursor: pointer;
}

.chip.selected {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* ══════════════════════════════════════
   SIDEBAR & PANELS
   ══════════════════════════════════════ */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: start;
}

.layout section {
  grid-column: 2;
}

.layout aside {
  grid-column: 1;
  position: sticky;
  top: 60px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 16px;
  overflow: hidden;
}

.panel-title {
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.panel-body {
  padding: 12px;
}

.panel-body input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 8px;
  font-size: 13px;
}

.panel-body input:focus {
  outline: none;
  border-color: var(--orange);
}

.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
}

.cat-list a {
  text-decoration: none;
  color: var(--text);
  display: block;
  padding: 6px 10px;
  font-size: 12px;
  border-left: 2px solid transparent;
}

.cat-list a:hover {
  background: #fff8f3;
  color: var(--orange);
}

.cat-list a.selected {
  color: var(--orange);
  font-weight: 600;
  background: #fff8f3;
  border-left-color: var(--orange);
}

/* ══════════════════════════════════════
   CATALOG GROUPS (category page)
   ══════════════════════════════════════ */
.catalog-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 10px;
  overflow: hidden;
}

.group-actions {
  display: flex;
  justify-content: flex-end;
  margin: 6px 0 10px;
}

.group-actions .link {
  color: var(--orange);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 2px solid var(--orange);
}

.group-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.group-header:hover {
  background: #fafbfc;
}

.caret {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 2px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
}

.caret[aria-expanded="true"]::after {
  content: "▾";
  color: var(--orange);
}

.caret[aria-expanded="false"]::after {
  content: "▸";
  color: var(--orange);
}

.subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  padding: 10px 14px;
}

.subgrid .subcat {
  text-decoration: none;
  color: var(--text);
  padding: 3px 0;
  font-size: 12px;
}

.subgrid .subcat:hover {
  color: var(--orange);
}

.subgrid .count {
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--mono);
  margin-left: 4px;
}

/* ══════════════════════════════════════
   CART & CHECKOUT
   ══════════════════════════════════════ */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.cart-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.cart-table tbody tr:nth-child(odd) {
  background: var(--white);
}

.cart-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.total {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--orange);
}

/* ══════════════════════════════════════
   FORMS
   ══════════════════════════════════════ */
.form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  background: var(--white);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-weight: 600;
  font-size: 12px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form input,
.form textarea,
.form select,
.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="file"],
.form-row textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 13px;
}

.form input:focus,
.form textarea:focus,
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.form-row textarea {
  resize: vertical;
  min-height: 72px;
}

/* ══════════════════════════════════════
   ADMIN
   ══════════════════════════════════════ */
#admin-page .panel {
  margin-top: 6px;
}

#admin-page .cart-table td .btn:first-child {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  margin-right: 4px;
  font-size: 12px;
}

#admin-page .cart-table td .btn:first-child:hover {
  background: var(--orange-hover);
  color: var(--white);
}

#admin-page .cart-table td .btn:last-child {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  font-size: 12px;
}

#admin-page .cart-table td .btn:last-child:hover {
  background: #a93226;
  color: var(--white);
}

#admin-page .cart-table td img {
  border-radius: 2px;
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════
   CONTENT PAGES
   ══════════════════════════════════════ */
.container > p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.container > p a {
  color: var(--orange);
  text-decoration: none;
}

.container > p a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════
   SPINNER
   ══════════════════════════════════════ */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ══════════════════════════════════════
   LEGACY HOME (unused classes kept minimal)
   ══════════════════════════════════════ */
.hero,
.stats-bar,
.home-section,
.site-footer,
.featured-categories,
.featured-chip,
.category-card,
.why-card {
  /* superseded on index — no styles needed */
}

.filter-bar {
  margin: 0;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 900px) {
  .header-main__inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .header-brand {
    min-width: 0;
  }

  .header-search {
    max-width: none;
    order: 3;
    grid-column: 1 / -1;
  }

  .header-actions {
    justify-content: space-between;
    width: 100%;
  }

  .header-nav {
    display: none;
  }

  .cat-table__row {
    grid-template-columns: 70px 1fr 24px;
  }

  .cat-table__count {
    display: none;
  }
}

@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .layout aside,
  .layout section {
    grid-column: 1;
  }

  .layout aside {
    position: static;
  }

  .product-row {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-items: start;
  }

  .subgrid {
    grid-template-columns: 1fr;
  }

  .catalog-line__meta {
    width: 100%;
    justify-content: space-between;
  }
}
