:root {
  --page: #ffffff;
  --surface: #f5f5f7;
  --surface-strong: #ededf0;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #62666d;
  --line: #d9d9de;
  --accent: #0071e3;
  --accent-strong: #0057b8;
  /* Darker blue for small text labels so they clear WCAG AA (4.5:1) on white */
  --accent-text: #0057b8;
  --success: #15803d;
  --success-surface: #dcfce7;
  --warning: #b45309;
  --danger: #b91c1c;
  --danger-surface: #fef2f2;
  --badge-bg: #eef2ff;
  --badge-ink: #3730a3;
  --header-bg: rgba(255, 255, 255, 0.86);
  --header-line: rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --max: 1180px;
  /* Apple-style spring easing for hover/press motion */
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --surface: #161618;
    --surface-strong: #2c2c2e;
    --card: #1f1f22;
    --ink: #f5f5f7;
    --muted: #98989d;
    --line: #38383a;
    --accent: #0a84ff;
    --accent-strong: #409cff;
    --accent-text: #6cb6ff;
    --success: #30d158;
    --success-surface: rgba(48, 209, 88, 0.16);
    --warning: #ff9f0a;
    --danger: #ff6b6b;
    --danger-surface: rgba(255, 69, 58, 0.14);
    --badge-bg: rgba(10, 132, 255, 0.16);
    --badge-ink: #6cb6ff;
    --header-bg: rgba(20, 20, 22, 0.72);
    --header-line: rgba(255, 255, 255, 0.1);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Honor users who request reduced motion (HIG accessibility requirement) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

/* Drop the translucent header blur for users who prefer reduced transparency */
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--page);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Firmer borders when the user asks for more contrast */
@media (prefers-contrast: more) {
  :root {
    --line: #8c8c93;
    --muted: #45474d;
  }
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 28px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  /* Transparent base shadow so it fades in (not jumps from none) on scroll */
  box-shadow: 0 8px 24px transparent;
  transition: box-shadow 220ms var(--ease);
}

/* Subtle elevation once the page is scrolled (toggled from script.js) */
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

@media (prefers-color-scheme: dark) {
  .site-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  }
}

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

/* Inner-page headers (product / checkout / repair-status) use a single full-width row */
.site-header:has(.header-inner) {
  display: block;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, var(--max));
  min-height: 64px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Brand pushes the language switch / cart cluster to the right (float is ignored in flex) */
.header-inner .brand {
  margin-right: auto;
}

.header-inner .rs-lang,
.header-inner .pd-lang {
  float: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-weight: 700;
}

.brand-logo {
  width: 170px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.lang-button:hover,
.lang-button:focus-visible {
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.lang-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  min-width: 44px;
}

.lang-button.is-active {
  background: var(--ink);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  min-height: 82svh;
  display: grid;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.8) 38%, rgba(255, 255, 255, 0.1) 68%),
    url("assets/hero-store-service.png");
  background-position: center;
  background-size: cover;
}

.hero-content {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 88px 28px 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero h1 {
  max-width: 640px;
  font-size: clamp(34px, 6vw, 64px);
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  color: #303034;
  font-size: 21px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(0, 0, 0, 0.14);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--card);
}

blockquote {
  max-width: 540px;
  margin: 38px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: #333338;
  font-size: 17px;
  line-height: 1.6;
}

blockquote cite {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
}

.quick-links {
  width: min(100%, var(--max));
  margin: -30px auto 0;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 2;
}

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 700;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.quick-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 113, 227, 0.35);
}

.quick-links svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 96px 28px;
}

.section-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: start;
}

.section h2 {
  max-width: 780px;
  font-size: clamp(28px, 3.6vw, 44px);
}

.section-copy {
  display: grid;
  gap: 20px;
}

.section-copy p,
.service-card p,
.product-card p,
.product-item p,
.process-list p,
.faq-item p,
.contact-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 36px;
}

.section-heading.centered {
  justify-items: center;
  text-align: center;
}

.products-band,
.process-section {
  width: 100%;
  max-width: none;
  background: var(--surface);
}

.products-band > *,
.process-section > * {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.product-grid,
.service-grid,
.process-list {
  display: grid;
  gap: 16px;
}

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

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

.product-card,
.service-card,
.process-list article {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.product-card,
.service-card {
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.product-card:hover,
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: var(--shadow);
}

.product-card {
  display: grid;
  gap: 16px;
}

.product-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eef6ff;
  color: var(--accent);
}

.product-icon svg,
.service-card svg {
  width: 27px;
  height: 27px;
}

.product-card h3,
.service-card h3,
.process-list h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.product-catalog {
  margin-top: 40px;
}

.product-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.product-toolbar h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.product-filter-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.product-filter-button:hover,
.product-filter-button:focus-visible {
  border-color: rgba(0, 113, 227, 0.4);
  color: var(--ink);
  outline: none;
}

.product-filter-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.product-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.product-item {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.product-item:hover {
  border-color: rgba(0, 113, 227, 0.35);
  transform: translateY(-2px);
}

.product-item.is-hidden {
  display: none;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-strong);
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.product-content {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.product-content h4 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-meta a {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.service-card {
  display: grid;
  align-content: start;
  gap: 18px;
}

.service-card svg {
  color: var(--accent);
}

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

.process-list article {
  background: transparent;
}

.process-list span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}

.registry-section {
  display: grid;
  gap: 28px;
}

.admin-login,
.admin-panel {
  width: min(100%, 760px);
  margin: 0 auto;
}

.admin-login {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.admin-panel {
  display: grid;
  gap: 20px;
  width: 100%;
}

.admin-panel[hidden],
.admin-login[hidden] {
  display: none;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.admin-panel-header h3 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.25;
}

.admin-panel-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.registry-grid,
.registry-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.registry-form,
.registry-list-panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.registry-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.registry-form-header,
.registry-wide,
.registry-form .button,
.registry-form .form-status {
  grid-column: 1 / -1;
}

.registry-form-header {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.registry-form-header h3,
.registry-list-panel h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.registry-form-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-login label,
.registry-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.admin-login input,
.registry-form input,
.registry-form select,
.registry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.registry-form textarea {
  resize: vertical;
}

.admin-login input:focus,
.registry-form input:focus,
.registry-form select:focus,
.registry-form textarea:focus {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

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

.registry-record {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.registry-record-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.registry-record h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.registry-record p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.registry-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.registry-record-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.registry-delete {
  align-self: start;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.registry-delete:hover,
.registry-delete:focus-visible {
  border-color: rgba(0, 113, 227, 0.5);
  color: var(--accent);
  outline: none;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
  align-items: start;
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.faq-item button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px;
  border: 0;
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-item button:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.28);
  outline-offset: -3px;
}

.faq-item button svg {
  width: 20px;
  min-width: 20px;
  height: 20px;
  transition: transform 160ms ease;
}

.faq-item.is-open button svg {
  transform: rotate(180deg);
}

.faq-item p {
  max-height: 0;
  padding: 0 22px;
  overflow: hidden;
  transition: max-height 180ms ease, padding 180ms ease;
}

.faq-item.is-open p {
  max-height: 220px;
  padding: 0 22px 22px;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.contact-intro {
  display: grid;
  gap: 22px;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.contact-details a,
.contact-details address {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-style: normal;
}

.contact-details span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-details strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.contact-form .button {
  width: fit-content;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--success);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.footer-logo {
  width: 220px;
  height: auto;
  display: block;
}

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

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  opacity: 0.75;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-admin-link:hover,
.footer-admin-link:focus-visible {
  opacity: 1;
  color: var(--ink);
  border-color: var(--muted);
}

/* ─── Cart ─────────────────────────────────────────────────────────────── */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  padding: 6px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.cart-link:hover {
  background: var(--surface);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.product-add {
  margin-top: 12px;
  width: 100%;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.product-add:hover {
  opacity: 0.9;
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}

.cart-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    padding: 0 18px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 0;
    padding: 12px 18px 20px;
    background: var(--page);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    border-radius: var(--radius);
    padding: 14px 12px;
  }

  .hero {
    min-height: 76svh;
    background-position: 60% center;
  }

  .hero-copy {
    font-size: 19px;
  }

  .quick-links,
  .section-split,
  .registry-grid,
  .registry-lists,
  .faq-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .quick-links {
    margin-top: 18px;
  }

  .product-grid,
  .product-showcase,
  .service-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .product-filters {
    justify-content: flex-start;
  }

  .admin-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .language-switch {
    transform: scale(0.92);
    transform-origin: right center;
  }

  .hero {
    min-height: auto;
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 58%, rgba(255, 255, 255, 0.18) 100%),
      url("assets/hero-store-service.png");
    background-position: center bottom;
  }

  .hero-content {
    padding: 58px 20px 360px;
  }

  .hero-copy,
  .section-copy p,
  .service-card p,
  .product-card p,
  .process-list p,
  .faq-item p,
  .contact-intro p {
    font-size: 16px;
  }

  .section {
    padding: 72px 20px;
  }

  .quick-links {
    padding: 0 20px;
    grid-template-columns: 1fr;
  }

  .product-grid,
  .product-showcase,
  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .product-card,
  .product-content,
  .admin-login,
  .registry-form,
  .service-card,
  .process-list article,
  .contact-form {
    padding: 22px;
  }

  .registry-form {
    grid-template-columns: 1fr;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 142px;
  }

  .hero-content {
    padding-bottom: 320px;
  }

  .hero-actions .button {
    width: 100%;
  }
}

/* ─── Dark mode overrides for spots that hardcode a light treatment ────────── */
@media (prefers-color-scheme: dark) {
  /* Brand wordmark + footer logo are solid near-black SVGs — flip to near-white */
  .brand-logo,
  .footer-logo {
    filter: invert(1);
  }

  .hero {
    background-image:
      linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.78) 38%, rgba(0, 0, 0, 0.12) 68%),
      url("assets/hero-store-service.png");
  }

  .hero-copy {
    color: #c7c7cc;
  }

  blockquote {
    color: #d1d1d6;
  }

  .button-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .button-secondary:hover,
  .button-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.16);
  }

  .product-badge {
    background: rgba(28, 28, 30, 0.8);
    color: var(--ink);
  }
}

@media (max-width: 680px) and (prefers-color-scheme: dark) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.84) 58%, rgba(0, 0, 0, 0.2) 100%),
      url("assets/hero-store-service.png");
  }
}
