/* =========================================================
  Universal Style Guide (3D Printing Services)
  Palette locked to provided design tokens ONLY
  ========================================================= */

/* -------------------- Root Tokens -------------------- */
:root {
  --color-primary: #1e40af;
  --color-primary-rgb: 30 64 175;
  --color-bg: #1e40af;
  --color-surface: #243b70;
  --color-surface-alt: #2d4b8f;
  --color-surface-hover: #355aa9;
  --color-border: #4d6fbf;
  --color-border-strong: #6c89cc;
  --color-text: #ffffff;
  --color-text-muted: #d1d9ec;
  --color-text-faint: #9fb3d9;
  --color-accent: #f59e0b;
  --color-accent-hover: #d27f00;
  --color-accent-soft: #ffe8c2;
  --color-success: #16a34a;
  --color-warning: #ea580c;
  --color-error: #dc2626;
  --color-info: #0ea5e9;
  --color-focus-ring: #f59e0b;

  --font-sans: system-ui, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  --shadow-xs: 0 1px 2px rgba(var(--color-primary-rgb) / 0.35);
  --shadow-sm: 0 2px 4px rgba(var(--color-primary-rgb) / 0.40);
  --shadow-md: 0 4px 10px -2px rgba(var(--color-primary-rgb) / 0.55);
  --shadow-lg: 0 8px 24px -4px rgba(var(--color-primary-rgb) / 0.6);

  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 400ms cubic-bezier(.16,.8,.32,1);

  --layout-max: 1280px;
  --layout-gutter: clamp(16px, 3vw, 52px);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.05vw + 12px, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

::selection {
  background: var(--color-accent);
  color: #000;
}

/* -------------------- Typography -------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: var(--color-text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h4 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

p { margin: 0 0 var(--space-4); max-width: 70ch; }
small { font-size: 0.82em; color: var(--color-text-faint); }
strong { font-weight: 700; }
code, pre, kbd {
  font-family: var(--font-mono);
  background: var(--color-surface-alt);
  color: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
code, kbd { padding: 2px 6px; font-size: 0.82em; }
pre { padding: var(--space-4); overflow-x: auto; }

/* -------------------- Layout Utilities -------------------- */
.container {
  width: min(100% - 2 * var(--layout-gutter), var(--layout-max));
  margin-inline: auto;
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}
.grid { display: grid; gap: var(--space-6); }
.flex { display: flex; gap: var(--space-4); }
.flex.center { justify-content: center; align-items: center; }
.stack > * + * { margin-top: var(--space-4); }

.w-full { width: 100%; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 720px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-faint { color: var(--color-text-faint); }
.text-accent { color: var(--color-accent); }

/* -------------------- Interactive States -------------------- */
:where(a, button, .btn, input:not([type=hidden]), select, textarea)
:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--color-focus-ring);
  border-radius: 4px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
}
a:hover,
a:focus-visible {
  color: var(--color-accent-hover);
}

/* -------------------- Buttons -------------------- */
button,
.btn {
  --btn-bg: var(--color-accent);
  --btn-bg-hover: var(--color-accent-hover);
  --btn-color: #1a1a1a;
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.75em 1.25em;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
  background: linear-gradient(90deg,var(--btn-bg),var(--btn-bg-hover));
  color: var(--btn-color);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
}
button:hover,
.btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
button:active,
.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}
.btn.outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn.outline:hover { background: rgba(245 158 11 / 0.15); }
.btn.ghost {
  background: var(--color-surface-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn.ghost:hover { background: var(--color-surface-hover); }
.btn.sm { font-size: 0.75rem; padding: 0.5em 0.85em; }
.btn.lg { font-size: 1.05rem; padding: 0.95em 1.5em; }
.btn.icon { padding: 0.6em; aspect-ratio: 1; justify-content: center; }
.btn:disabled,
:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* -------------------- Forms -------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-faint);
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.75em 0.9em;
  border-radius: var(--radius-md);
  font: inherit;
  line-height: 1.35;
  transition: border-color var(--transition-fast), background var(--transition-base), box-shadow var(--transition-fast);
  resize: vertical;
  min-height: 46px;
}
input::placeholder,
textarea::placeholder {
  color: var(--color-text-faint);
  opacity: 0.8;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-hover);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-focus-ring);
  box-shadow: 0 0 0 2px rgba(245 158 11 / 0.35);
  background: var(--color-surface-alt);
}
input.error,
select.error,
textarea.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 1px var(--color-error);
}
input.success,
select.success,
textarea.success {
  border-color: var(--color-success);
  box-shadow: 0 0 0 1px var(--color-success);
}
.helper-text {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

/* Switch (uses only palette) */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.switch span {
  position: absolute;
  inset: 0;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: background var(--transition-base), border-color var(--transition-base);
}
.switch span::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-xs);
}
.switch input:checked + span {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.switch input:checked + span::before {
  transform: translate(20px,-50%);
}

/* -------------------- Structural Surfaces -------------------- */
.section,
.surface {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.surface-alt {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-strong);
}

.header-bar,
.navbar {
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-3) var(--layout-gutter);
    
    display: flex;              /* horizontal layout */
    justify-content: center;    /* center nav items */
    align-items: center;
}

.navbar ul {
    list-style: none;
    display: flex;              /* horizontal menu items */
    gap: 2rem;                  /* space between links */
    margin: 0;
    padding: 0;
}

.navbar ul li {
    display: inline-block;
}

.navbar ul li a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.navbar ul li a:hover,
.navbar ul li a:focus {
    background-color: var(--color-surface-hover);
    color: var(--color-accent);
    outline: none;
}

/* Active link styling */
.navbar ul li a.active {
    background-color: var(--color-accent);
    color: #1a1a1a;
    border-radius: 4px;
}

/* -------------------- Cards -------------------- */
.card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-strong);
}
.card-header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.card-title { font-size: 1.05rem; font-weight: 600; }
.card-meta {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-faint);
}

/* -------------------- Alerts / Messages -------------------- */
.alert {
  --alert-color: var(--color-text);
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  color: var(--alert-color);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: var(--shadow-xs);
  font-size: 0.85rem;
}
.alert::before {
  content: "";
  width: 4px;
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: var(--radius-full);
  background: var(--color-border-strong);
}
.alert.success {
  border-color: var(--color-success);
}
.alert.success::before { background: var(--color-success); }
.alert.error {
  border-color: var(--color-error);
}
.alert.error::before { background: var(--color-error); }
.alert.warning {
  border-color: var(--color-warning);
}
.alert.warning::before { background: var(--color-warning); }
.alert.info {
  border-color: var(--color-info);
}
.alert.info::before { background: var(--color-info); }

/* Inline status text */
.status-success { color: var(--color-success); }
.status-error { color: var(--color-error); }
.status-warning { color: var(--color-warning); }
.status-info { color: var(--color-info); }

/* -------------------- Badges -------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4em 0.65em;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.badge.accent { background: var(--color-accent); color: #1a1a1a; }
.badge.success { background: var(--color-success); }
.badge.error { background: var(--color-error); }
.badge.warning { background: var(--color-warning); }
.badge.info { background: var(--color-info); }

/* -------------------- Tables -------------------- */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  color: var(--color-text);
}
thead {
  background: var(--color-surface-hover);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}
th, td {
  padding: 0.8em 1em;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
tbody tr {
  transition: background var(--transition-fast);
}
tbody tr:hover {
  background: var(--color-surface);
}

/* -------------------- Pagination -------------------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.75rem;
  margin-top: var(--space-6);
}
.pagination a,
.pagination span {
  min-width: 38px;
  text-align: center;
  padding: 0.55em 0.75em;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.pagination a:hover {
  background: var(--color-accent);
  color: #1a1a1a;
  border-color: var(--color-accent);
}
.pagination .active {
  background: var(--color-accent);
  color: #1a1a1a;
  border-color: var(--color-accent);
}

/* -------------------- Divider -------------------- */
.divider {
  width: 100%;
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: var(--space-8) 0;
}

/* -------------------- Pills / Tags -------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45em 0.9em;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.pill.outline {
  background: transparent;
  border: 1px solid var(--color-border-strong);
}

/* -------------------- Focus / Accessibility -------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}
.focus-ring:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--color-focus-ring);
}

/* -------------------- Feedback / Loading -------------------- */
/* Product Grid & Cards */
.products-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  align-items: stretch;
}
@media (max-width: 640px) {
  .products-grid { gap: var(--space-4); }
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg);
}
.product-card:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(245 158 11 / 0.35);
}
.product-card .media {
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  overflow: hidden;
  position: relative;
}
.product-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform var(--transition-slow);
}
.product-card:hover .media img { transform: scale(1.06); }
.product-card .badge-list {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 2;
}
.product-card .body {
  padding: var(--space-4) var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.product-card .title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--color-text);
}
.product-card .description {
  font-size: 0.7rem;
  color: var(--color-text-faint);
  line-height: 1.4;
  margin: 0;
  flex-grow: 0;
}
.product-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  flex-wrap: wrap;
}
.product-card .price {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-accent);
}
.product-card .price.original {
  font-size: 0.65rem;
  font-weight: 400;
  text-decoration: line-through;
  color: var(--color-text-faint);
}
.product-card .meta {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--color-text-muted);
}
.product-card .rating {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--color-accent);
  display: inline-block;
}
.product-card .actions {
  margin-top: auto;
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.product-card .actions .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.7rem;
  padding: 0.6em 0.8em;
}
.product-card.out-of-stock::after {
  content: "Out of Stock";
  position: absolute;
  inset: 0;
  background: rgba(var(--color-primary-rgb) / 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-text);
  text-transform: uppercase;
  backdrop-filter: blur(2px);
  z-index: 3;
}

/* Progress */
.progress {
  width: 100%;
  height: 10px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,var(--color-accent),var(--color-accent-hover));
  animation: progress-indeterminate 2.2s infinite;
}
@keyframes progress-indeterminate {
  0% { width: 0%; transform: translateX(0); }
  40% { width: 70%; }
  70% { width: 90%; transform: translateX(5%); }
  100% { width: 0%; transform: translateX(100%); }
}
.skeleton {
  background: linear-gradient(90deg,
   rgba(var(--color-primary-rgb) / 0.25) 25%,
   rgba(var(--color-primary-rgb) / 0.4) 37%,
   rgba(var(--color-primary-rgb) / 0.25) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
  color: transparent;
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* -------------------- Toast -------------------- */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 3000;
}
.toast-item {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-strong);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  min-width: 260px;
  font-size: 0.8rem;
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  box-shadow: var(--shadow-md);
  animation: fade-in 0.35s ease, slide-up 0.55s ease;
  position: relative;
}
.toast-item.success { border-color: var(--color-success); }
.toast-item.error { border-color: var(--color-error); }
.toast-item.info { border-color: var(--color-info); }
.toast-close {
  margin-left: auto;
  background: var(--color-surface-hover);
  padding: 0.3em 0.55em;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  cursor: pointer;
  border: 1px solid var(--color-border);
}
.toast-close:hover { background: var(--color-accent); color: #1a1a1a; border-color: var(--color-accent); }

/* -------------------- Animations -------------------- */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* -------------------- Utilities -------------------- */
.rounded { border-radius: var(--radius-md); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.hover-lift { transition: transform var(--transition-base), box-shadow var(--transition-base); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.is-hidden { display: none !important; }
.is-loading { cursor: progress !important; }

hr { border: none; height: 1px; background: var(--color-border); margin: var(--space-6) 0; }

/* -------------------- Responsive -------------------- */
@media (max-width: 768px) {
  .grid.responsive { grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }
  .card { padding: var(--space-4); }
  .section { padding: clamp(1.5rem,5vw,2.25rem); }
}

/* -------------------- Reduced Motion -------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
   animation: none !important;
   transition: none !important;
   scroll-behavior: auto !important;
  }
}

/* -------------------- Print -------------------- */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .navbar, .toast, .btn, .alert { display: none !important; }
  a::after { content: " (" attr(href) ")"; font-size: 0.6em; }
}

/* ===== Pricing Guide Page Classes ===== */
.pricing-header,
.pricing-header header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.pricing-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.pricing-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.pricing-section,
.pricing-section section,
.pricing-section aside {
  max-width: 700px;
  margin: 0 auto var(--space-8) auto;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

.pricing-section h2 {
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
  font-weight: 700;
}

.pricing-section table {
  margin: 0 auto var(--space-4) auto;
  border-collapse: collapse;
  width: 100%;
  max-width: 520px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.pricing-section th,
.pricing-section td {
  padding: 0.8em 1em;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.pricing-section th {
  background: var(--color-surface-hover);
  color: var(--color-text-muted);
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-section tr:last-child td {
  border-bottom: none;
}

.pricing-section ul {
  list-style: disc inside;
  margin: 0 auto var(--space-4) auto;
  padding: 0;
  text-align: center;
  display: inline-block;
}

.pricing-section ul li {
  text-align: left;
  margin: 0 0 var(--space-2) 0;
}

.pricing-section p,
.pricing-section strong {
  text-align: center;
}

.pricing-section button,
.pricing-section #request-quote,
.pricing-section #download-pdf {
  margin: var(--space-2) var(--space-2) 0 0;
  padding: 0.7em 1.4em;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-accent);
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  color: #1a1a1a;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
  box-shadow: var(--shadow-xs);
  display: inline-block;
}
.pricing-section button:hover,
.pricing-section #request-quote:hover,
.pricing-section #download-pdf:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.pricing-section aside {
  margin-top: var(--space-8);
}

.pricing-section footer,
.pricing-section ~ footer {
  text-align: center;
  color: var(--color-text-faint);
  margin: var(--space-8) 0 0 0;
  font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .pricing-section,
  .pricing-section section,
  .pricing-section aside {
    padding: var(--space-4) var(--space-2);
  }
  .pricing-section table {
    font-size: 0.95em;
  }
}

/* Utility for pricing page wrapper */
.pricing-section {
  width: 100%;
  box-sizing: border-box;
}

/* ===== Center all text and images on homepage ===== */
.site-header-brand,
.site-header-brand .site-logo,
.hero-inner,
.hero-text,
.split,
.split.reverse,
.split > div,
.dnd-carousel,
.dnd-carousel-track,
.dnd-carousel-slide,
.dnd-carousel-caption {
  text-align: center !important;
  justify-content: center;
  align-items: center;
}

.site-header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-8);
}

.site-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.site-logo img {
  margin: 0 auto;
  display: block;
  max-width: 160px;
  height: auto;
}

.site-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: var(--space-2);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.hero-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-text h1 {
  text-align: center;
  margin-bottom: var(--space-4);
}

.hero-text p {
  text-align: center;
  margin-bottom: var(--space-5);
}

.hero-text .cta {
  display: inline-block;
  margin: 0 auto;
}

.dnd-carousel {
  margin: 0 auto var(--space-8) auto;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.dnd-carousel-slide img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.dnd-carousel-caption {
  text-align: center;
  align-items: center;
  justify-content: center;
}

.split,
.split.reverse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin: var(--space-10) 0;
}
.split{
  text-align: center;
}

.split > div {
  flex: 1 1 0;
  display: flex;               /* let us control alignment inside */
  flex-direction: column;
  text-align: center;
  justify-content: center;
}

.split > div:last-child {
  text-align: center;          /* centers all text in the text column */
}

.split img {
  display: block;
  margin: 0 auto;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

@media (max-width: 900px) {
  .split,
  .split.reverse {
    flex-direction: column !important;
    gap: var(--space-5);
  }
  .split > div {
    text-align: center;        /* force center align on mobile */
  }
  .split img {
    max-width: 90vw;
  }
}

/* ===== Privacy Policy Page Classes ===== */
.main-content {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.policy-section {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  text-align: center;
  letter-spacing: 1px;
}

.policy-paragraph {
  font-size: 1.08rem;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  line-height: 1.7;
  max-width: 70ch;
  text-align: center;
}

.policy-heading {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.02em;
  margin-right: 0.5em;
  letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .main-content {
    padding: var(--space-6) var(--space-2);
  }
  .policy-section {
    padding: var(--space-5) var(--space-2);
  }
  .page-title {
    font-size: 2rem;
  }
}
/* ===== Debugging Borders (for development only) ===== */

.products-grid, .product-grid {
  display: grid;
  gap: var(--space-6, 24px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

/* Ensure all product images are the same size and aspect ratio */
.product-card .media,
.product-card .thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: 200px;           /* or adjust as needed */
  background: var(--color-surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .media img,
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Showcase card image constraint */
.showcase-card .img-wrap {
  width: 400px;
  max-width: 100%;
  aspect-ratio: auto;
  height: 300px; /* 400px width * 3/4 = 300px height for 4:3 ratio */
  background: var(--color-surface);
  overflow: hidden;
  margin: 0 auto; /* center the image in the card */
  display: flex;
  align-items: center;
  justify-content: center;
}
    .showcase-card h3 {
        color: #ffb300;
    }
/* 
.showcase-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
} */