/* Abingdon Tech Supply — Warm Ivory & British Racing Green Retail Stylesheet */
:root {
  --ivory: #F7F8F5;
  --sand: #ECEAE2;
  --sand-deep: #DFDCD0;
  --white: #FFFFFF;
  --racing: #1B4332;
  --racing-mid: #2D6A4F;
  --racing-soft: #E8F0EB;
  --slate: #1E293B;
  --muted: #475569;
  --subtle: #64748B;
  --border: #D8DBD2;
  --brass: #8C5E22;
  --brass-bg: #F9F4E8;
  --radius: 10px;
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--ivory);
  color: var(--slate);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--racing);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-utility {
  background: var(--racing);
  color: #E7EFEA;
  font-size: 12px;
  padding: 6px 0;
}
.topbar-utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-utility strong {
  color: #FFFFFF;
  font-weight: 600;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--slate);
  text-decoration: none;
}
.brand-lockup:hover { text-decoration: none; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--racing);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--slate);
  line-height: 1.15;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--subtle);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--racing);
  border-bottom-color: var(--racing);
  text-decoration: none;
}
.nav-tag {
  background: var(--sand);
  color: var(--slate);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* Split Editorial Hero */
.hero-split {
  padding: 46px 0 38px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--ivory) 0%, #F1F2EC 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--racing);
  background: var(--racing-soft);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.16;
  font-weight: 700;
  color: var(--slate);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}
.hero-lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn-primary {
  background: var(--racing);
  color: #FFFFFF;
  padding: 11px 22px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--racing-mid);
  text-decoration: none;
}
.btn-outline {
  background: var(--white);
  color: var(--slate);
  border: 1px solid var(--border);
  padding: 11px 20px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}
.btn-outline:hover {
  border-color: var(--racing);
  color: var(--racing);
  text-decoration: none;
}
.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.hero-meta-strip span strong {
  color: var(--slate);
}
.hero-photo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(30, 41, 59, 0.06);
}
.hero-photo-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  display: block;
}
.hero-photo-caption {
  padding: 14px 18px;
  background: var(--sand);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--slate);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Sections */
.section {
  padding: 46px 0;
}
.section-sand {
  background: var(--sand);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--slate);
}
.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* Category Bar */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cat-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cat-tile h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--slate);
}
.cat-tile p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.cat-count {
  text-align: right;
}
.cat-count strong {
  display: block;
  font-size: 20px;
  color: var(--racing);
}
.cat-count span {
  font-size: 12px;
  color: var(--subtle);
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease;
}
.product-card:hover {
  box-shadow: 0 8px 22px rgba(27, 67, 50, 0.08);
}
.product-img-wrap {
  background: #F3F4F0;
  height: 215px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.grade-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--racing);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
}
.tiktok-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--racing);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
}
.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtle);
  margin-bottom: 4px;
}
.product-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--slate);
  line-height: 1.3;
}
.product-specs {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
  flex: 1;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--sand-deep);
}
.price {
  font-size: 19px;
  font-weight: 700;
  color: var(--racing);
}
.stock-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--brass);
  background: var(--brass-bg);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Info Cards & Tables */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--slate);
}
.kv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.kv-table th,
.kv-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--sand);
  text-align: left;
  vertical-align: top;
}
.kv-table th {
  color: var(--subtle);
  font-weight: 600;
  width: 40%;
}
.kv-table td {
  color: var(--slate);
  font-weight: 500;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table thead th {
  background: var(--sand);
  color: var(--slate);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.data-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--sand);
  color: var(--slate);
}
.data-table tfoot td {
  padding: 12px 14px;
  background: var(--racing-soft);
  font-weight: 700;
  color: var(--racing);
}
.num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

/* Page Sub-header */
.page-banner {
  background: var(--sand);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 28px;
}
.page-banner h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  margin: 0 0 8px;
  color: var(--slate);
}
.page-banner p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

/* Reviews */
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stars {
  color: #B45309;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-size: 14px;
}
.review-quote {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--slate);
}
.review-meta {
  font-size: 12.5px;
  color: var(--subtle);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--sand);
  padding-top: 10px;
}

/* Ledger Bars */
.bar-track {
  background: var(--sand);
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}
.bar-fill {
  background: var(--racing);
  height: 100%;
  border-radius: 999px;
}

/* Footer */
.site-footer {
  background: #18231E;
  color: #CBD5CE;
  padding: 40px 0 28px;
  margin-top: 32px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer h4 {
  color: #FFFFFF;
  margin: 0 0 10px;
  font-size: 14.5px;
}
.site-footer p,
.site-footer li {
  margin: 0 0 6px;
  color: #B6C4BC;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer a {
  color: #D7E5DC;
}
.footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #93A59B;
}

@media (max-width: 920px) {
  .hero-grid,
  .product-grid,
  .cat-strip,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 31px;
  }
}
