:root {
  --black: #000000;
  --ink: #333333;
  --charcoal: #252525;
  --muted: #6d6962;
  --line: #e5ded2;
  --paper: #ffffff;
  --soft: #f8f5f0;
  --gold: #c4a287;
  --gold-deep: #927052;
  --gold-pale: #ead9c5;
  --navy: #1e2531;
  --green: #27684f;
  --red: #a83c3a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff 0, var(--soft) 46%, #fff 100%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

input,
select,
button {
  font: inherit;
}

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(16px, 6vw, 92px);
  color: #fff;
  background:
    linear-gradient(90deg, #000 0%, #333 52%, #1b1b1b 100%);
  font-size: 14px;
}

.site-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 24px clamp(16px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand img {
  width: 220px;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.nav-links a,
.cart-link,
.site-footer a {
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.cart-link:hover,
.site-footer a:hover {
  border-color: currentColor;
}

.cart-link {
  color: var(--black);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.page-shell {
  padding: 0 clamp(16px, 6vw, 92px) 64px;
}

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(720px, calc(100svh - 116px));
  margin: 0 calc(clamp(16px, 6vw, 92px) * -1);
  padding: 86px clamp(16px, 6vw, 92px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.72) 37%, rgba(0, 0, 0, 0.23) 67%, rgba(0, 0, 0, 0.15) 100%),
    linear-gradient(135deg, rgba(196, 162, 135, 0.76), rgba(51, 51, 51, 0.1)),
    url("/images/brand/school-hero-premium.png") center / cover no-repeat;
  isolation: isolate;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  z-index: -1;
}

.home-hero-content {
  width: min(720px, 100%);
}

.home-hero .eyebrow {
  color: var(--gold-pale);
}

.home-hero h1 {
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.34);
}

.home-hero p:not(.eyebrow) {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.7;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1.15fr);
  align-items: stretch;
  min-height: 500px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px 64px 0;
}

.hero img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-deep);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 500;
  color: var(--black);
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  color: var(--black);
}

.hero-copy p:not(.eyebrow),
.page-title p,
.muted {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions,
.filter-bar,
.buy-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.button,
button {
  min-height: 46px;
  padding: 13px 20px;
  border: 1px solid var(--black);
  border-radius: 3px;
  background: #fff;
  color: var(--black);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button.primary,
button.primary {
  background: linear-gradient(135deg, var(--black), #383838);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.button.gold {
  border-color: var(--gold);
  background: linear-gradient(135deg, #d8bea2 0%, var(--gold) 48%, #9b7657 100%);
  color: #101010;
  box-shadow: 0 18px 40px rgba(196, 162, 135, 0.32);
}

.button.secondary {
  border-color: var(--line);
}

.button.glass {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 44px 0 0;
}

.hero-stats div {
  min-width: 148px;
  padding: 16px 18px;
  border-top: 1px solid rgba(196, 162, 135, 0.78);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
}

.hero-stats dt {
  color: var(--gold-pale);
  font-size: 34px;
  line-height: 1;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.quick-finder {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: end;
  margin: -48px 0 34px;
  padding: 28px;
  border: 1px solid rgba(196, 162, 135, 0.46);
  background:
    linear-gradient(135deg, rgba(248, 245, 240, 0.96), rgba(255, 255, 255, 0.96)),
    linear-gradient(90deg, var(--gold), transparent);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.quick-finder h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
}

.quick-finder form {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.quick-finder input {
  flex: 1 1 280px;
  background: #fff;
}

.section-heading,
.page-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding: 48px 0 24px;
}

.home-heading {
  border-top: 1px solid var(--line);
}

.home-heading > a {
  color: var(--gold-deep);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.page-title {
  display: block;
}

.compact-title {
  padding-bottom: 12px;
}

.school-grid,
.product-grid,
.store-grid,
.admin-grid {
  display: grid;
  gap: 24px;
}

.school-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.school-tile,
.school-list a,
.store-panel,
.admin-panel,
.summary-panel,
.checkout-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.school-tile {
  min-height: 150px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #fff 0%, var(--soft) 100%);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.school-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold), var(--black));
}

.school-tile:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
}

.school-tile span,
.school-list span,
.product-card-body span,
.basket-line span {
  display: block;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.school-tile strong,
.school-list strong {
  display: block;
  margin: 12px 0;
  font-size: 20px;
  line-height: 1.2;
}

.feature-school-grid .school-tile:nth-child(1),
.feature-school-grid .school-tile:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.84), rgba(51, 51, 51, 0.72)),
    url("/images/brand/school-hero.jpg") center / cover no-repeat;
  color: #fff;
}

.feature-school-grid .school-tile:nth-child(1) span,
.feature-school-grid .school-tile:nth-child(1) small,
.feature-school-grid .school-tile:nth-child(2) span,
.feature-school-grid .school-tile:nth-child(2) small {
  color: rgba(255, 255, 255, 0.76);
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.catalogue-toolbar,
.pagination-bar,
.pagination-pages {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalogue-toolbar {
  justify-content: space-between;
  margin: -12px 0 22px;
  color: var(--muted);
}

.pagination-bar {
  justify-content: center;
  margin-top: 34px;
}

.pagination-pages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--black);
  background: #fff;
  font-weight: 700;
}

.pagination-pages a.active {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}

.button.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.product-card {
  min-width: 0;
  transition: transform 160ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.05;
  border: 1px solid rgba(229, 222, 210, 0.75);
  border-radius: 6px;
  background:
    radial-gradient(circle at 28% 18%, rgba(196, 162, 135, 0.24), transparent 32%),
    linear-gradient(135deg, #fff, var(--soft));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.product-image img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.product-card-body {
  padding: 14px 0 8px;
}

.product-card-body a {
  display: block;
  min-height: 42px;
  line-height: 1.35;
  color: var(--black);
}

.product-card-body em {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-body strong,
.price {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 500;
}

.product-badges {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.product-badges span {
  padding: 4px 7px;
  border: 1px solid rgba(196, 162, 135, 0.48);
  border-radius: 999px;
  color: var(--gold-deep);
  background: rgba(196, 162, 135, 0.12);
  font-size: 11px;
}

.filter-bar {
  margin-bottom: 32px;
  padding: 18px;
  background:
    linear-gradient(135deg, var(--soft), #fff);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.home-band {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.9fr);
  gap: 38px;
  align-items: center;
  margin: 58px calc(clamp(16px, 6vw, 92px) * -1) 8px;
  padding: 64px clamp(16px, 6vw, 92px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(51, 51, 51, 0.8)),
    linear-gradient(135deg, rgba(196, 162, 135, 0.54), transparent),
    url("/images/products/ballymoney-girls-blazer.jpg") right center / contain no-repeat,
    #111;
}

.home-band h2 {
  color: #fff;
}

.home-band p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.home-band .eyebrow {
  color: var(--gold-pale);
}

.store-mini-grid {
  display: grid;
  gap: 12px;
}

.store-mini-grid a {
  padding: 20px;
  border: 1px solid rgba(196, 162, 135, 0.46);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.store-mini-grid span,
.store-mini-grid small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-family: Arial, sans-serif;
}

.store-mini-grid strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 22px;
}

.school-type-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 58px;
  background: var(--line);
  border: 1px solid var(--line);
}

.school-type-strip a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 110px;
  padding: 24px;
  background:
    linear-gradient(135deg, #fff, var(--soft));
}

.school-type-strip span {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.school-type-strip strong {
  color: var(--gold-deep);
  font-size: 42px;
  font-weight: 500;
}

input,
select {
  min-height: 46px;
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid #d7d1c8;
  border-radius: 4px;
  background: #fff;
}

.school-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.school-groups {
  display: grid;
  gap: 34px;
}

.school-group {
  display: grid;
  gap: 12px;
}

.school-list a {
  padding: 18px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 56px;
  padding-top: 42px;
}

.detail-image {
  display: grid;
  place-items: center;
  min-height: 540px;
  background: #fbfaf8;
}

.detail-image img {
  width: 82%;
  max-height: 480px;
  object-fit: contain;
}

.detail-copy dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 16px;
  margin: 28px 0;
}

.detail-copy dt {
  color: var(--muted);
}

.related-products {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.related-products .section-heading {
  padding-top: 0;
}

.related-products .section-heading a {
  color: var(--gold-deep);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.login-panel {
  max-width: 440px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.login-panel form {
  display: grid;
  gap: 16px;
}

.login-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.buy-box label,
.checkout-panel label,
.admin-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.basket-layout,
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.basket-lines {
  display: grid;
  gap: 12px;
}

.basket-line {
  display: grid;
  grid-template-columns: 86px 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.basket-line img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  background: #fbfaf8;
}

.summary-panel,
.checkout-panel,
.admin-panel,
.store-panel {
  padding: 24px;
}

.summary-panel {
  align-self: start;
  display: grid;
  gap: 16px;
}

.summary-panel strong {
  font-size: 30px;
}

.text-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
}

.checkout-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-panel {
  display: grid;
  gap: 16px;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.store-grid,
.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-title {
  max-width: 880px;
}

.builder-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.builder-overview div {
  min-height: 124px;
  padding: 22px;
  background:
    linear-gradient(135deg, #fff, var(--soft));
}

.builder-overview span,
.workflow-step p,
.template-list span,
.base-product-list span,
.base-product-list small {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.builder-overview strong {
  display: block;
  margin-top: 12px;
  color: var(--gold-deep);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
}

.builder-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.workflow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.workflow-step span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--gold-deep);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.workflow-step.active {
  border-color: rgba(196, 162, 135, 0.65);
  background:
    linear-gradient(135deg, rgba(196, 162, 135, 0.16), rgba(255, 255, 255, 0.96));
}

.workflow-step strong {
  color: var(--black);
}

.workflow-step p {
  margin: 0;
}

.admin-builder-grid,
.admin-split {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
  gap: 24px;
  margin-top: 24px;
}

.builder-primary {
  color: #fff;
  border-color: rgba(196, 162, 135, 0.5);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.92), rgba(51, 51, 51, 0.9)),
    radial-gradient(circle at top right, rgba(196, 162, 135, 0.38), transparent 36%);
}

.builder-primary h2 {
  color: #fff;
}

.builder-primary .eyebrow {
  color: var(--gold-pale);
}

.builder-primary label,
.builder-primary .muted {
  color: rgba(255, 255, 255, 0.76);
}

.builder-primary input,
.builder-primary select {
  border-color: rgba(255, 255, 255, 0.2);
}

.form-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  color: var(--ink) !important;
}

.checkbox-row input {
  min-width: 0;
  width: 18px;
  height: 18px;
}

.base-product-list {
  display: grid;
  gap: 12px;
  max-height: 540px;
  overflow: auto;
  padding-right: 4px;
}

.base-product-list > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(135deg, #fff, var(--soft));
}

.base-product-list img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.base-product-list strong,
.base-product-list small {
  display: block;
}

.template-list {
  display: grid;
  gap: 12px;
}

.template-list details {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.template-list summary {
  cursor: pointer;
  padding: 16px;
  color: var(--black);
  font-weight: 700;
}

.template-list summary span {
  float: right;
  color: var(--gold-deep);
}

.template-list ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 16px 16px;
  list-style: none;
}

.template-list li {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.epos-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.epos-status-card,
.epos-strip,
.epos-location-list > div,
.epos-stock-list > div,
.roadmap-grid > div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.epos-status-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  min-height: 128px;
}

.epos-status-card span,
.epos-strip span,
.epos-location-list small,
.epos-stock-list small,
.epos-table span,
.roadmap-grid span {
  color: var(--muted);
}

.epos-status-card strong {
  color: var(--black);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.epos-status-card small {
  color: var(--gold-deep);
}

.epos-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 28px;
  overflow: hidden;
}

.epos-strip div {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #fff, var(--soft));
}

.epos-split {
  align-items: start;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading.compact h2 {
  font-size: 28px;
}

.epos-location-list,
.epos-stock-list,
.roadmap-grid {
  display: grid;
  gap: 12px;
}

.epos-location-list > div,
.epos-stock-list > div,
.roadmap-grid > div {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.epos-products-panel {
  margin-top: 28px;
}

.epos-search {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 96px auto;
  gap: 10px;
  align-items: end;
}

.epos-page-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  color: var(--muted);
}

.epos-import-summary,
.epos-import-controls {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.epos-import-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.epos-import-summary > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.epos-import-summary span {
  color: var(--muted);
  font-size: 13px;
}

.epos-import-summary strong {
  color: var(--black);
  font-size: 20px;
}

.epos-import-controls {
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px) auto;
  align-items: end;
}

.epos-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.epos-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.epos-table th,
.epos-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.epos-table th {
  color: var(--black);
  font-size: 13px;
  text-transform: uppercase;
}

.epos-table tbody tr:hover,
.epos-table tbody tr.selected {
  background: var(--soft);
}

.epos-table td:nth-child(1) {
  width: 110px;
  color: var(--gold-deep);
  font-weight: 700;
}

.epos-table td:nth-child(2) {
  width: 34%;
}

.epos-table strong,
.epos-table span {
  display: block;
}

.badge {
  display: inline-flex;
  width: auto;
  margin: 0 4px 4px 0;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.success-badge {
  color: #0b5134;
  background: #dff5ea;
}

.muted-badge {
  color: var(--muted);
  background: var(--soft);
}

.compact-button {
  padding: 9px 12px;
  white-space: nowrap;
}

.button.subtle {
  color: var(--black);
  border: 1px solid var(--line);
  background: #fff;
}

.notice.warning {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
  border-color: #d6b16a;
  background: #fff8e8;
}

.epos-roadmap {
  margin-top: 28px;
}

.roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-panel ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.phone {
  color: var(--green);
  font-size: 20px;
  font-weight: 700;
}

.stat-panel dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

.stat-panel dd {
  margin: 0;
  font-size: 28px;
}

.notice,
.empty-state {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.success-state {
  max-width: 680px;
  margin: 64px auto;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(16px, 6vw, 92px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-links form {
  margin: 0;
}

.footer-links button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-weight: 400;
}

.footer-links button:hover {
  transform: none;
  box-shadow: none;
  border-bottom: 1px solid currentColor;
}

.validation-summary {
  color: #a42525;
}

@media (max-width: 900px) {
  .top-strip,
  .site-nav,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    display: flex;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 22px;
  }

  .hero,
  .quick-finder,
  .home-band,
  .epos-status-grid,
  .epos-strip,
  .builder-overview,
  .builder-workflow,
  .admin-builder-grid,
  .admin-split,
  .product-detail,
  .basket-layout,
  .checkout-grid,
  .store-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 620px;
    background-position: 60% center;
  }

  .quick-finder {
    margin-top: -28px;
  }

  .quick-finder form {
    justify-content: flex-start;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero img {
    min-height: 260px;
  }

  .school-grid,
  .product-grid,
  .school-list,
  .school-type-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .builder-overview,
  .builder-workflow,
  .admin-builder-grid,
  .admin-split,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .epos-search,
  .epos-import-controls,
  .epos-page-controls {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .epos-import-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 180px;
  }

  .school-grid,
  .product-grid,
  .school-list,
  .school-type-strip,
  .form-two {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 660px;
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .home-hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero-stats div {
    min-width: 0;
    width: 100%;
  }

  .quick-finder {
    padding: 20px;
  }

  .basket-line {
    grid-template-columns: 72px 1fr;
  }

  .basket-line img {
    width: 72px;
    height: 72px;
  }

  input,
  select,
  .button,
  button {
    width: 100%;
  }
}
