/* ===========================================================
   Able Made — base styles
   =========================================================== */

:root {
  --color-bg: #f6f1ea;
  --color-surface: #ffffff;
  --color-text: #18140f;
  --color-text-muted: #6e6355;
  --color-border: #e9e0d2;
  --color-primary: #c1502e;
  --color-primary-dark: #98371c;
  --color-accent: #1f5d4e;
  --color-accent-dark: #143f35;
  --color-focus: #1857b0;
  --color-ink: #17140f;
  --color-ink-muted: #b6ab9a;
  --color-ink-border: #34302a;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --radius: 18px;
  --radius-sm: 12px;
  --transition: 180ms ease;
  --max-width: 1220px;
  --shadow-sm: 0 1px 3px rgba(24, 20, 15, 0.08);
  --shadow-md: 0 10px 30px rgba(24, 20, 15, 0.09);
  --shadow-lg: 0 24px 60px rgba(24, 20, 15, 0.16);
}

html.high-contrast {
  --color-bg: #000000;
  --color-surface: #0a0a0a;
  --color-text: #ffffff;
  --color-text-muted: #f2f2f2;
  --color-border: #ffffff;
  --color-primary: #ffd23f;
  --color-primary-dark: #ffdf73;
  --color-accent: #6fe6c8;
  --color-accent-dark: #a4f0dd;
  --color-focus: #ffd23f;
  --color-ink: #000000;
  --color-ink-muted: #ffffff;
  --color-ink-border: #ffffff;
}

html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0 0 0.5em;
}

h1 {
  font-size: 3.1rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 2.1rem;
}
h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-primary-dark);
}

a:hover {
  text-decoration-thickness: 2px;
}

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

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  background: rgba(246, 241, 234, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(24, 20, 15, 0.06);
}

html.high-contrast .site-header {
  background: #000;
  backdrop-filter: none;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a[aria-current="page"] {
  color: var(--color-text);
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.cart-badge {
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-badge.is-empty {
  background: var(--color-text-muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(193, 80, 46, 0.35);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(193, 80, 46, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: currentColor;
}
.btn-secondary:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-outline {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-text);
}

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

/* On the dark hero, secondary/outline buttons need to read as light */
.hero-actions .btn-secondary {
  color: #fff;
}
.hero-actions .btn-secondary:hover {
  background: #fff;
  color: var(--color-ink);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--color-ink);
  color: #fff;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(193, 80, 46, 0.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(31, 93, 78, 0.35), transparent 45%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

@media (max-width: 800px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
}

.hero-copy h1 {
  color: #fff;
  font-size: 3.4rem;
}

.hero-copy p {
  font-size: 1.2rem;
  color: var(--color-ink-muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 3.1;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1rem -1rem 1.5rem;
  background: var(--color-accent);
  border-radius: var(--radius);
  transform: rotate(-3deg);
  z-index: 0;
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

/* ---------- Sections ---------- */

.section {
  padding: 4.5rem 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.section-header p {
  color: var(--color-text-muted);
  margin: 0;
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

/* ---------- Category cards ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.25rem;
}

.category-card {
  display: block;
  text-decoration: none;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  text-decoration: none;
}

.category-icon {
  display: block;
  font-size: 2.4rem;
  margin-bottom: 0.85rem;
  line-height: 1;
}

/* ---------- Product grid & cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-media {
  position: relative;
  overflow: hidden;
}

.product-media img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--color-text);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.product-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
}

.product-category-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent-dark);
  font-weight: 700;
}

.product-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.product-card a.product-title-link {
  text-decoration: none;
  color: inherit;
}

.product-maker-link {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.product-maker-link:hover {
  text-decoration: underline;
}

.product-price {
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 0.35rem;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.product-card-footer .btn {
  width: 100%;
}

/* ---------- Maker spotlight ---------- */

.maker-spotlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.75rem;
  align-items: start;
}

@media (max-width: 600px) {
  .maker-spotlight {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .maker-spotlight img {
    margin: 0 auto;
  }
}

.maker-spotlight img {
  border-radius: 999px;
  width: 96px;
  height: 96px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.maker-spotlight h3 {
  color: #fff;
}

.maker-spotlight p {
  color: var(--color-ink-muted);
}

.maker-spotlight blockquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  margin: 0.75rem 0 1.25rem;
  color: #fff;
}

/* ---------- Filters (shop page) ---------- */

.shop-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2.5rem;
  align-items: start;
}

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

.filters {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.filters fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.5rem;
}

.filters legend {
  font-weight: 700;
  margin-bottom: 0.6rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  min-height: 44px;
}

.filter-option input {
  width: 20px;
  height: 20px;
}

.filter-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: -0.3rem 0 0.75rem;
}

.filter-group {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.6rem;
}

.filter-group summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.5rem 0.1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.filter-group .filter-option {
  padding-left: 0.5rem;
}

.tag-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.tag-badge {
  display: inline-block;
  background: rgba(31, 93, 78, 0.1);
  color: var(--color-accent-dark);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
}

html.high-contrast .tag-badge {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.search-field {
  margin-bottom: 1.5rem;
}

.search-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.search-field input,
.sort-field select,
.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
}

.search-field input:focus,
.sort-field select:focus,
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-focus);
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sort-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sort-field label {
  font-weight: 700;
  white-space: nowrap;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
}

/* ---------- Product detail page ---------- */

.breadcrumb {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

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

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 800px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-detail img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.product-detail-price {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.qty-row label {
  font-weight: 700;
}

.qty-row input {
  width: 5rem;
  padding: 0.5rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.maker-card {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.maker-card img {
  border-radius: 999px;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.add-confirmation {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--color-accent-dark);
}

/* ---------- Seller page ---------- */

.seller-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.seller-header img {
  border-radius: 999px;
  width: 96px;
  height: 96px;
  box-shadow: var(--shadow-sm);
}

.seller-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  border-left: 4px solid var(--color-primary);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  color: var(--color-text);
}

.seller-video {
  margin: 2rem 0;
}

.seller-video h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.video-embed-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-sm);
}

.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed-fallback {
  max-width: 640px;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
  color: var(--color-text-muted);
}

/* ---------- Sell / form pages ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 3.5rem;
}

.step-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.form-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 720px;
  box-shadow: var(--shadow-sm);
}

.form-card h2 {
  margin-bottom: 1.75rem;
}

.form-section + .form-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  margin-bottom: 1.4rem;
}

.form-row .form-field {
  margin-bottom: 0;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.form-field .hint {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

.form-section-heading {
  font-weight: 700;
  margin-bottom: 0.3rem;
}

/* Tag picker — pill/chip multi-select used on the maker application form */

.tag-picker {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 0.75rem;
}

.tag-picker-group {
  border-bottom: 1px solid var(--color-border);
}

.tag-picker-group:last-child {
  border-bottom: none;
}

.tag-picker-group summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.9rem 1.1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
}

.tag-picker-group summary::-webkit-details-marker {
  display: none;
}

.tag-picker-group summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  color: var(--color-primary-dark);
  font-weight: 700;
}

.tag-picker-group[open] summary::before {
  content: "\2212";
}

.tag-picker-group summary:hover {
  background: var(--color-bg);
}

.tag-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0 1.1rem 1.1rem;
}

.tag-pill {
  position: relative;
  display: inline-flex;
}

.tag-pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.tag-pill label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.tag-pill label:hover {
  border-color: var(--color-primary);
}

.tag-pill input:checked + label {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.tag-pill input:focus-visible + label {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.form-success {
  background: #eaf3ec;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

html.high-contrast .form-success {
  background: #0a0a0a;
}

.form-error {
  background: #fbeae7;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  color: var(--color-primary-dark);
  font-weight: 600;
}

html.high-contrast .form-error {
  background: #0a0a0a;
}

/* ---------- Cart page ---------- */

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-item-info img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cart-qty-input {
  width: 4.5rem;
  padding: 0.4rem;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
}

.cart-summary {
  max-width: 340px;
  margin-left: auto;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
}

.cart-summary-row.total {
  font-weight: 700;
  font-size: 1.15rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.checkout-note {
  background: #f2ece1;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

html.high-contrast .checkout-note {
  background: #0a0a0a;
  border: 1px solid #fff;
}

/* ---------- Accessibility statement blocks ---------- */

.a11y-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

.a11y-feature-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-ink);
  color: var(--color-ink-muted);
  margin-top: 4rem;
  padding: 3rem 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-grid nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-grid a {
  color: var(--color-ink-muted);
}

.footer-bottom {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  border-top: 1px solid var(--color-ink-border);
  padding-top: 1.5rem;
}

/* ---------- Accessibility toolbar widget ---------- */

.a11y-toolbar {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 500;
}

.a11y-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0.85;
  transition: opacity var(--transition), transform var(--transition);
}

.a11y-toggle:hover {
  opacity: 1;
  transform: translateY(-2px);
}

html.high-contrast .a11y-toggle {
  background: #ffd23f;
  color: #000;
  border-color: #ffd23f;
  opacity: 1;
}

.a11y-panel {
  position: absolute;
  bottom: 3.5rem;
  right: 0;
  width: 280px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
}

.a11y-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.a11y-panel-header h2 {
  font-size: 1rem;
  margin: 0;
}

.a11y-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  padding: 0.25rem;
}

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.a11y-btn-group {
  display: flex;
  gap: 0.4rem;
}

.a11y-btn-group button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.a11y-btn-group button:hover {
  border-color: var(--color-primary);
}

.a11y-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
}

@media (max-width: 420px) {
  .a11y-panel {
    width: calc(100vw - 2.5rem);
  }
}
