/* ============================================================
   Shop System – app.css
   Compiled CSS (Tailwind-like utilities + component styles)
   All colors via CSS custom properties from theme.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, fieldset, legend, pre {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

fieldset {
  border: 0;
  padding: 0;
}

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

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

img, video {
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

select {
  appearance: none;
}

textarea {
  resize: vertical;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

address {
  font-style: normal;
}

[hidden],
[x-cloak] {
  display: none !important;
}


/* ── Accessibility ────────────────────────────────────────── */
.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:focus {
  position: fixed !important;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--brand);
  color: var(--brand-fg);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  white-space: normal;
}

.focus-ring:focus-visible,
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

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


/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

.grid     { display: grid; }
.flex     { display: flex; }
.block    { display: block; }
.inline-block { display: inline-block; }
.hidden   { display: none; }

.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-center   { justify-content: center; }
.justify-between  { justify-content: space-between; }
.justify-end      { justify-content: flex-end; }

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

.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }

.w-full    { width: 100%; }
.h-full    { height: 100%; }
.min-h-screen { min-height: 100vh; }

.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }


/* ── Spacing Utilities ────────────────────────────────────── */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }

.p-1 { padding: 0.25rem; } .p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; } .p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; } .p-8 { padding: 2rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem;  padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem;    padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem;  padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem;    padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem;  padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem;    padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem;  padding-bottom: 1.5rem; }
.py-7 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.py-8 { padding-top: 2rem;    padding-bottom: 2rem; }

.m-1 { margin: 0.25rem; } .m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; } .m-4 { margin: 1rem; }
.m-5 { margin: 1.25rem; } .m-6 { margin: 1.5rem; }
.m-7 { margin: 1.75rem; } .m-8 { margin: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }


/* ── Typography ───────────────────────────────────────────── */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }

.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.leading-tight  { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide  { letter-spacing: 0.025em; }

.uppercase { text-transform: uppercase; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ── Theme Color Utilities ────────────────────────────────── */
.bg-primary  { background-color: var(--bg); }
.bg-elevated { background-color: var(--bg-elevated); }
.bg-brand    { background-color: var(--brand); }
.bg-success  { background-color: var(--success); }
.bg-danger   { background-color: var(--danger); }
.bg-warning  { background-color: var(--warning); }

.text-primary { color: var(--fg); }
.text-muted   { color: var(--fg-muted); }
.text-brand   { color: var(--brand); }
.text-accent  { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-on-brand { color: var(--brand-fg); }

.border-default { border-color: var(--border); }
.border-brand   { border-color: var(--brand); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded    { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow    { box-shadow: var(--shadow-md); }


/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary */
.btn--primary,
.btn-primary {
  background-color: var(--brand);
  color: var(--brand-fg);
  border-color: var(--brand);
}

.btn--primary:hover,
.btn-primary:hover {
  filter: brightness(1.1);
}

.btn--primary:active,
.btn-primary:active {
  filter: brightness(0.95);
}

/* Secondary / Outline */
.btn--secondary,
.btn-secondary,
.btn--outline {
  background-color: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn--secondary:hover,
.btn-secondary:hover,
.btn--outline:hover {
  background-color: var(--bg-elevated);
  border-color: var(--fg-muted);
}

/* Ghost */
.btn--ghost {
  background-color: transparent;
  color: var(--fg-muted);
  border-color: transparent;
}

.btn--ghost:hover {
  color: var(--fg);
  background-color: var(--bg-elevated);
}

/* Danger */
.btn--danger,
.btn-danger {
  background-color: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn--danger:hover,
.btn-danger:hover {
  filter: brightness(1.1);
}

/* Sizes */
.btn--sm,
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn--lg,
.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn--block {
  display: flex;
  width: 100%;
}


/* ── Form Elements ────────────────────────────────────────── */
.form-label,
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.375rem;
}

.form-label__optional {
  font-weight: 400;
  color: var(--fg-muted);
  font-size: 0.8125rem;
}

.input,
.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--fg);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  appearance: none;
}

.input:hover,
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--fg-muted);
}

.input:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--focus) 25%, transparent);
  outline: none;
}

.input[aria-invalid="true"],
.form-input[aria-invalid="true"] {
  border-color: var(--danger);
}

.input--sm {
  padding: 0.375rem 0.5rem;
  font-size: 0.8125rem;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-textarea {
  min-height: 6rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  accent-color: var(--brand);
  cursor: pointer;
}

.form-error {
  color: var(--danger);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

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

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

.form-section {
  margin-bottom: 2rem;
}

.form-section__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.form-errors {
  background-color: color-mix(in srgb, var(--danger) 10%, var(--bg));
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.form-errors ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.form-errors li {
  color: var(--danger);
  font-size: 0.875rem;
}


/* ── Cards ────────────────────────────────────────────────── */
.card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-body {
  padding: 1.25rem;
}


/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25rem;
  border-radius: 9999px;
  white-space: nowrap;
  background-color: var(--bg-elevated);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

.badge-success, .badge--success {
  background-color: color-mix(in srgb, var(--success) 15%, var(--bg));
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
}

.badge-warning, .badge--warning {
  background-color: color-mix(in srgb, var(--warning) 15%, var(--bg));
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning) 30%, transparent);
}

.badge-danger, .badge--danger {
  background-color: color-mix(in srgb, var(--danger) 15%, var(--bg));
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
}

.badge-info, .badge--info {
  background-color: color-mix(in srgb, var(--accent) 15%, var(--bg));
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}


/* ── Tables ───────────────────────────────────────────────── */
.table {
  width: 100%;
  font-size: 0.875rem;
  text-align: left;
}

.table th,
.table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table th {
  font-weight: 600;
  color: var(--fg-muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-striped tbody tr:nth-child(even) {
  background-color: var(--bg-elevated);
}


/* ── Prose (rich text) ────────────────────────────────────── */
.prose {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--fg);
}

.prose p { margin-bottom: 1em; }
.prose p:last-child { margin-bottom: 0; }

.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.25em; }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover {
  color: var(--brand);
}

.prose strong { font-weight: 600; }

.prose blockquote {
  border-left: 3px solid var(--brand);
  padding-left: 1rem;
  color: var(--fg-muted);
  margin: 1em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
.prose table th,
.prose table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}
.prose table th {
  background: var(--bg-elevated);
  font-weight: 600;
}


/* ============================================================
   COMPONENT STYLES
   ============================================================ */

/* ── Section ──────────────────────────────────────────────── */
.section {
  padding: 3rem 0;
}

.section__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.section__actions {
  margin-top: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section__heading { font-size: 1.875rem; }
}


/* ── Site Header ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

@media (min-width: 768px) {
  .site-header__inner { height: 4rem; }
}

.site-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo img {
  height: 32px;
  width: auto;
}

.site-header__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
}

.site-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--fg);
  border-radius: var(--radius-sm);
}

.site-nav__toggle:hover {
  background-color: var(--bg-elevated);
}

@media (min-width: 768px) {
  .site-nav__toggle { display: none; }
}

.site-nav__list {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  gap: 0.5rem;
  z-index: 99;
}

.site-nav__toggle[aria-expanded="true"] ~ .site-nav__list {
  display: flex;
}

@media (min-width: 768px) {
  .site-nav__list {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    padding: 0;
    gap: 1.5rem;
    align-items: center;
  }
}

.site-nav__list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 150ms ease;
}

.site-nav__list a:hover {
  color: var(--fg);
}

.site-nav__cart {
  position: relative;
}

.site-nav__cart-badge {
  position: absolute;
  top: -0.375rem;
  right: -0.5rem;
  min-width: 1.125rem;
  height: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  background-color: var(--brand);
  color: var(--brand-fg);
  border-radius: 9999px;
  padding: 0 0.25rem;
}


/* ── Site Footer ──────────────────────────────────────────── */
.site-footer {
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.site-footer__heading {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.site-footer__col a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.site-footer__col a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.site-footer__bottom p {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}


/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  padding: 1rem 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumb__separator {
  color: var(--fg-muted);
  margin: 0 0.125rem;
}

.breadcrumb__item a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.breadcrumb__item a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.breadcrumb__item [aria-current="page"] {
  color: var(--fg);
  font-weight: 500;
}


/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  padding: 4rem 0;
  text-align: center;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero__subline {
  font-size: 1.125rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero__cta {
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .hero { padding: 6rem 0; }
  .hero__headline { font-size: 2.75rem; }
  .hero__subline { font-size: 1.25rem; }
}

@media (min-width: 1024px) {
  .hero__headline { font-size: 3.25rem; }
}


/* ── USP Strip ────────────────────────────────────────────── */
.usp-strip {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.usp-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.usp-strip__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.usp-strip__icon {
  display: flex;
  color: var(--accent);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .usp-strip__list { gap: 2.5rem; }
}


/* ── Product Grid ─────────────────────────────────────────── */
.product-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

@media (min-width: 480px) {
  .product-grid--responsive,
  .product-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .product-grid--responsive {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .product-grid--responsive,
  .product-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* ── Product Card ─────────────────────────────────────────── */
.product-card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--fg-muted);
}

.product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card__media {
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--bg);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.03);
}

.product-card__no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-elevated);
}

.product-card__body {
  padding: 0.875rem 1rem;
}

.product-card__brand {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.product-card__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 0.375rem;
}

.product-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

.product-card__price-from {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}


/* ── Catalog Layout ───────────────────────────────────────── */
.catalog__layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .catalog__layout {
    grid-template-columns: 240px 1fr;
  }
}

@media (min-width: 1024px) {
  .catalog__layout {
    grid-template-columns: 260px 1fr;
  }
}

.catalog__filter-toggle {
  width: 100%;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .catalog__filter-toggle { display: none; }
}

.catalog__filters {
  display: none;
}

.catalog__filters--open {
  display: block;
}

@media (min-width: 768px) {
  .catalog__filters {
    display: block;
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }
}

/* Filter groups */
.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.filter-group__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-group__sublist {
  padding-left: 1.25rem;
  margin-top: 0.25rem;
}

.filter-group__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--fg);
  cursor: pointer;
  padding: 0.25rem 0;
}

.filter-group__option input {
  accent-color: var(--brand);
}

.filter-group__count {
  color: var(--fg-muted);
  font-size: 0.8125rem;
}

.filter-group__price-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group__price-range span {
  color: var(--fg-muted);
}

.filter-group__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Catalog header / sort */
.catalog__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.catalog__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  flex: 1;
  min-width: 0;
}

.catalog__count {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.catalog__sort {
  margin-left: auto;
}

.catalog__empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--fg-muted);
}

.catalog__empty p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}


/* ── Product Detail Page (PDP) ────────────────────────────── */
.product-page {
  padding-bottom: 3rem;
}

.product-page__layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product-page__layout {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .product-page__layout {
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
  }
}

/* Sparse layout (fewer images, centered) */
.product-page--sparse .product-page__layout {
  max-width: 960px;
  margin: 0 auto;
}

/* PDP Tailwind-compat aliases */
.pdp-grid   { display: grid; }
.pdp-media  { grid-column: 1; }
.pdp-panel  { grid-column: 2; }
.pdp--sparse .pdp-grid {
  max-width: 960px;
  margin: 0 auto;
}

/* Media column */
.product-page__media {
  position: relative;
}

/* Panel column */
.product-page__panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 768px) {
  .product-page__panel {
    position: sticky;
    top: 5rem;
    align-self: start;
  }
}

.product-page__brand {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.product-page__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .product-page__title { font-size: 1.75rem; }
}

.product-page__subtitle {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}


/* ── Variant Pills ────────────────────────────────────────── */
.product-page__variants {
  margin-bottom: 1.25rem;
}

.product-page__variants-legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variant-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
  font-size: 0.875rem;
}

.variant-pill:hover {
  border-color: var(--fg-muted);
}

.variant-pill--active {
  border-color: var(--brand);
  background-color: color-mix(in srgb, var(--brand) 8%, var(--bg));
}

.variant-pill__label {
  font-weight: 500;
  color: var(--fg);
}

.variant-pill__detail {
  font-size: 0.75rem;
  color: var(--fg-muted);
}


/* ── Price Block ──────────────────────────────────────────── */
.product-page__price {
  margin-bottom: 1.25rem;
}

.price-block__row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-block__current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
}

.price-block__compare {
  font-size: 1rem;
  color: var(--fg-muted);
}

.price-block__compare s {
  text-decoration: line-through;
}

.price-block__badge {
  display: inline-flex;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--danger);
  color: #fff;
  border-radius: 9999px;
}

.price-block__base-price {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}

.price-block__legal {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}

.price-block__legal a {
  color: var(--accent);
  text-decoration: underline;
}


/* ── Quantity Stepper ─────────────────────────────────────── */
.product-page__qty-row {
  margin-bottom: 0.75rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-stepper__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--fg);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.qty-stepper__btn:hover:not(:disabled) {
  background-color: var(--bg-elevated);
}

.qty-stepper__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-stepper__input {
  width: 3rem;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-size: 0.9375rem;
  font-weight: 600;
  height: 2.5rem;
  padding: 0;
  -moz-appearance: textfield;
}

.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-stepper--sm .qty-stepper__btn {
  width: 2rem;
  height: 2rem;
}

.qty-stepper--sm .qty-stepper__input {
  width: 2.5rem;
  height: 2rem;
  font-size: 0.8125rem;
}

.product-page__cta {
  margin-bottom: 1.25rem;
}


/* ── USP Strip (product page) ─────────────────────────────── */
.product-page__usp-strip {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.product-page__usp-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.product-page__usp-item svg {
  color: var(--success);
  flex-shrink: 0;
}


/* ── Product Accordion ────────────────────────────────────── */
.product-accordion__item {
  border-bottom: 1px solid var(--border);
}

.product-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.product-accordion__trigger:hover {
  color: var(--accent);
}

.product-accordion__icon {
  transition: transform 200ms ease;
  flex-shrink: 0;
  color: var(--fg-muted);
}

.product-accordion__icon--open {
  transform: rotate(180deg);
}

.product-accordion__content {
  padding-bottom: 1rem;
}

.product-accordion__subheading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-top: 0.75rem;
  margin-bottom: 0.375rem;
}

/* GPSR address */
.gpsr-address {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Details table */
.details-table {
  width: 100%;
  font-size: 0.875rem;
}

.details-table th,
.details-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.details-table th {
  font-weight: 500;
  color: var(--fg-muted);
  width: 40%;
  text-align: left;
  padding-right: 1rem;
}

.details-table td {
  color: var(--fg);
}


/* ── Product Gallery ──────────────────────────────────────── */
.product-gallery__main {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.product-gallery__zoom-trigger {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  background: none;
  border: none;
  padding: 0;
}

.product-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery__no-image {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* Thumbnails */
.product-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.product-gallery__thumb {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--bg-elevated);
  transition: border-color 150ms ease;
}

.product-gallery__thumb:hover {
  border-color: var(--fg-muted);
}

.product-gallery__thumb--active {
  border-color: var(--brand);
}

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

@media (min-width: 768px) {
  .product-gallery__thumb {
    width: 5rem;
    height: 5rem;
  }
}

/* Zoom Modal */
.product-gallery__modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery__modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgb(0 0 0 / 0.8);
}

.product-gallery__modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.product-gallery__modal-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.product-gallery__modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

.product-gallery__modal-prev,
.product-gallery__modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(0 0 0 / 0.5);
  color: #fff;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.product-gallery__modal-prev:hover,
.product-gallery__modal-next:hover {
  background-color: rgb(0 0 0 / 0.7);
}

.product-gallery__modal-prev {
  left: -3.5rem;
}

.product-gallery__modal-next {
  right: -3.5rem;
}

@media (max-width: 767px) {
  .product-gallery__modal-prev { left: 0.5rem; }
  .product-gallery__modal-next { right: 0.5rem; }
}

/* Related products section */
.product-page__related {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}


/* ── Cart Page ────────────────────────────────────────────── */
.cart-page__layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cart-page__layout {
    grid-template-columns: 1fr 340px;
  }
}

.cart-page__empty {
  text-align: center;
  padding: 4rem 0;
}

.cart-page__empty svg {
  margin: 0 auto 1rem;
}

.cart-page__empty p {
  font-size: 1.125rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

/* Cart table */
.cart-table {
  width: 100%;
  font-size: 0.875rem;
}

.cart-table__row {
  border-bottom: 1px solid var(--border);
}

.cart-table__row td {
  padding: 1rem 0.5rem;
  vertical-align: middle;
}

.cart-table__row td:first-child {
  padding-left: 0;
}

.cart-table__thumb {
  width: 80px;
}

.cart-table__img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.cart-table__img-placeholder {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.cart-table__title a {
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}

.cart-table__title a:hover {
  text-decoration: underline;
}

.cart-table__variant,
.cart-table__attributes {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}

.cart-table__price,
.cart-table__line-total {
  font-weight: 600;
  white-space: nowrap;
}

.cart-table__remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--fg-muted);
  border-radius: var(--radius-sm);
  transition: color 150ms ease, background-color 150ms ease;
}

.cart-table__remove-btn:hover {
  color: var(--danger);
  background-color: color-mix(in srgb, var(--danger) 10%, var(--bg));
}

/* Mobile cart table */
@media (max-width: 767px) {
  .cart-table thead { display: none; }
  .cart-table__row {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem 1rem;
    padding: 1rem 0;
  }
  .cart-table__row td {
    padding: 0;
  }
  .cart-table__thumb {
    grid-row: span 2;
    width: auto;
  }
  .cart-table__info {
    grid-column: 2;
  }
  .cart-table__price,
  .cart-table__qty,
  .cart-table__line-total,
  .cart-table__remove {
    grid-column: 2;
  }
  .cart-table__price::before,
  .cart-table__line-total::before {
    content: attr(data-label) ": ";
    font-weight: 400;
    color: var(--fg-muted);
  }
}

/* Cart discount */
.cart-discount {
  margin-bottom: 1rem;
}

.cart-discount__toggle {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
}

.cart-discount__form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-discount__applied {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--success);
}

/* Cart totals */
.cart-totals {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.cart-totals__row {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.cart-totals__row dt {
  font-weight: 400;
}

.cart-totals__row dd {
  font-weight: 500;
  color: var(--fg);
}

.cart-totals__row--discount dd {
  color: var(--success);
}

.cart-totals__row--total {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.375rem;
  font-size: 1.125rem;
}

.cart-totals__row--total dt,
.cart-totals__row--total dd {
  font-weight: 700;
  color: var(--fg);
}

/* Cart summary sidebar */
.cart-page__summary {
  position: sticky;
  top: 5rem;
  align-self: start;
}


/* ── Checkout ─────────────────────────────────────────────── */
.checkout-form__layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .checkout-form__layout {
    grid-template-columns: 1fr 380px;
  }
}

.checkout-errors {
  background-color: color-mix(in srgb, var(--danger) 10%, var(--bg));
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.checkout-errors__list {
  list-style: disc;
  padding-left: 1.25rem;
}

.checkout-errors__list li {
  color: var(--danger);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

/* Billing fields toggle */
.billing-fields {
  margin-top: 1rem;
}

/* Payment methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-method {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.payment-method:hover {
  border-color: var(--fg-muted);
}

.payment-method:has(input:checked) {
  border-color: var(--brand);
  background-color: color-mix(in srgb, var(--brand) 5%, var(--bg));
}

.payment-method input[type="radio"] {
  flex-shrink: 0;
  margin-top: 0.25rem;
  accent-color: var(--brand);
}

.payment-method__body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.payment-method__icon {
  display: flex;
  color: var(--fg-muted);
}

.payment-method__label {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--fg);
}

.payment-method__desc {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

/* Checkout summary */
.checkout-summary {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 5rem;
}

.checkout-summary__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.checkout-summary__lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.checkout-summary__line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.checkout-summary__line-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-width: 0;
}

.checkout-summary__line-qty {
  font-weight: 500;
  white-space: nowrap;
}

.checkout-summary__line-title {
  color: var(--fg);
}

.checkout-summary__line-variant {
  color: var(--fg-muted);
  font-size: 0.8125rem;
}

.checkout-summary__line-price {
  font-weight: 600;
  white-space: nowrap;
}

.checkout-summary__submit {
  margin-top: 1rem;
}


/* ── Flash Messages ───────────────────────────────────────── */
.flash-messages {
  position: fixed;
  top: 4rem;
  right: 1rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 28rem;
  width: 100%;
  pointer-events: none;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: flash-slide-in 300ms ease forwards;
}

@keyframes flash-slide-in {
  from {
    opacity: 0;
    transform: translateX(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.flash--success {
  background-color: color-mix(in srgb, var(--success) 12%, var(--bg-elevated));
  border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
  color: var(--success);
}

.flash--error {
  background-color: color-mix(in srgb, var(--danger) 12%, var(--bg-elevated));
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  color: var(--danger);
}

.flash__icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.flash__text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fg);
}

.flash__close {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 150ms ease;
}

.flash__close:hover {
  color: var(--fg);
}


/* ── Cookie Consent Banner ────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgb(0 0 0 / 0.15);
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}

.cookie-banner__content {
  flex: 1;
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.cookie-banner__text {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner__options {
  margin-top: 0.75rem;
}

.cookie-banner__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-banner__option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.cookie-banner__option input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--brand);
}

.cookie-banner__option-label {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
}

.cookie-banner__option-desc {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: flex-start;
}


/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.pagination__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.pagination__btn:hover:not(.pagination__btn--disabled) {
  border-color: var(--fg-muted);
  background-color: var(--bg-elevated);
}

.pagination__btn--disabled {
  opacity: 0.4;
  cursor: default;
}

.pagination__info {
  font-size: 0.875rem;
  color: var(--fg-muted);
  white-space: nowrap;
}


/* ── Auth Pages ───────────────────────────────────────────── */
.auth-page__inner {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.auth-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-card__footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-top: 1.5rem;
}

.auth-card__footer a {
  color: var(--accent);
  text-decoration: underline;
}


/* ── Responsive Breakpoint Utilities ──────────────────────── */

/* sm: 640px */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex       { display: flex; }
  .sm\:block      { display: block; }
  .sm\:hidden     { display: none; }
  .sm\:text-left  { text-align: left; }
  .sm\:text-center { text-align: center; }
}

/* md: 768px */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex        { display: flex; }
  .md\:block       { display: block; }
  .md\:hidden      { display: none; }
  .md\:text-lg     { font-size: 1.125rem; }
  .md\:text-xl     { font-size: 1.25rem; }
  .md\:text-2xl    { font-size: 1.5rem; }
  .md\:p-6         { padding: 1.5rem; }
  .md\:gap-6       { gap: 1.5rem; }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:flex        { display: flex; }
  .lg\:block       { display: block; }
  .lg\:hidden      { display: none; }
  .lg\:text-xl     { font-size: 1.25rem; }
  .lg\:text-3xl    { font-size: 1.875rem; }
  .lg\:p-8         { padding: 2rem; }
  .lg\:gap-8       { gap: 2rem; }
}

/* xl: 1280px */
@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .xl\:text-4xl    { font-size: 2.25rem; }
}

/* Stock-aware quantity stepper */
.qty-stepper--single { justify-content: center; }
.qty-stepper--single .qty-stepper__input { text-align: center; cursor: default; }
.product-page__stock-hint {
  font-size: 0.8125rem;
  color: var(--clr-warning, #fbbf24);
  margin-top: 0.25rem;
  font-style: italic;
}
