:root {
  --blue: #475569;
  --blue-hover: #334155;
  --blue-active: #1e293b;
  --blue-soft: #f1f5f9;
  --ink: #1e293b;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --green: #166534;
  --green-soft: #dcfce7;
  --red: #991b1b;
  --red-soft: #fee2e2;
  --amber: #92400e;
  --amber-soft: #fef3c7;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Georgia", serif;
  font-weight: 600;
  color: var(--ink);
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: var(--blue);
}

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

.container {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

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

.muted {
  color: var(--muted);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--blue);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 550;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-button.bump {
  transform: scale(1.1);
}

.cart-button:hover {
  border-color: #cbd5e1;
  background: var(--bg-soft);
}

.cart-button .icon {
  width: 18px;
  height: 18px;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(71, 85, 105, 0.1), transparent 70%),
    radial-gradient(800px 500px at 10% 0%, rgba(148, 163, 184, 0.1), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding: clamp(4rem, 10vw, 8rem) 0;
  max-width: 720px;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}

.button:hover {
  background: var(--bg-soft);
  border-color: #cbd5e1;
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible,
.cart-button:focus-visible,
.icon-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

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

.button-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.button-primary:active {
  background: var(--blue-active);
  border-color: var(--blue-active);
}

.button-lg {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
}

.button-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.875rem;
}

.button-block {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--bg-soft);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------- Collection */

.collection {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

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

.section-head h2 {
  margin-bottom: 0.25rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-bottom: 0;
}

.filters {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
}

.field input,
.field select {
  height: 40px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.field-search input {
  min-width: 210px;
}

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

.skeleton-card {
  height: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-media {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
}

.skeleton-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-line {
  background: var(--bg-soft);
  border-radius: 4px;
}

.skeleton-line-sm { height: 12px; width: 40%; }
.skeleton-line-md { height: 20px; width: 80%; }
.skeleton-line-lg { height: 16px; width: 60%; }

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1), border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-soft);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    hsl(var(--hue, 215) 20% 95%),
    hsl(var(--hue, 215) 15% 90%)
  );
}

.product-initials {
  font-family: "Georgia", serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: hsl(var(--hue, 215) 30% 40%);
  opacity: 0.6;
}

.product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-media .badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--ink);
  color: #fff;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
  padding: 1rem 1.125rem 1.125rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--green);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
}

.stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.stock-low {
  color: var(--amber);
}

.stock-out {
  color: var(--red);
}

.product-card h3 {
  margin: 0;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.product-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.price {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.empty-state h3 {
  margin-bottom: 0.25rem;
}

/* ------------------------------------------------------------------- About */

.about {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.about h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

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

.site-footer {
  padding: 1.75rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue);
}

/* ----------------------------------------------------------------- Overlay */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  animation: fade-in 0.2s ease;
}

/* ------------------------------------------------------------------ Drawer */

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: slide-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font-size: 1.125rem;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.drawer-foot {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.totals {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9375rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
}

.total-row-strong {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
}

.cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    hsl(var(--hue, 215) 70% 92%),
    hsl(var(--hue, 215) 55% 80%)
  );
  font-size: 1.1rem;
  font-weight: 700;
  color: hsl(var(--hue, 215) 45% 32%);
}

.cart-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  padding-right: 1.75rem;
}

.cart-item-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.cart-item-price {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  align-self: flex-start;
  margin-top: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty button {
  width: 28px;
  height: 28px;
  border: 0;
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.qty button:hover {
  background: var(--bg-soft);
}

.qty button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty span {
  min-width: 30px;
  text-align: center;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.cart-item .remove {
  position: absolute;
  top: 0.5rem;
  right: 0;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.cart-item .remove:hover {
  background: var(--red-soft);
  color: var(--red);
}

.shipping-note {
  margin: 0.75rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.fine-print {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

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

.cart-empty h3 {
  margin-bottom: 0.25rem;
  color: var(--ink);
}

/* ------------------------------------------------------------------- Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  overflow-y: auto;
  animation: fade-in 0.18s ease;
}

.modal-panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: pop-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-panel-wide {
  width: min(920px, 100%);
}

.modal-panel-small {
  width: min(420px, 100%);
  text-align: center;
}

/* Payment step on the order confirmation */

.payment-block {
  margin: 1.25rem 0;
  padding: 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: left;
}

.payment-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.payment-amount strong {
  color: var(--ink);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.payment-actions {
  display: grid;
  gap: 0.5rem;
  margin: 0.9rem 0 0.75rem;
}

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

.button-paypal {
  background: #0070ba;
  border-color: #0070ba;
  color: #fff;
}

.button-paypal:hover {
  background: #005c99;
  border-color: #005c99;
}

.button-revolut {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.button-revolut:hover {
  background: #000;
  border-color: #000;
}

.payment-reference {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.payment-instructions {
  margin: 0 0 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  white-space: pre-line;
}

.payment-reference-field {
  margin: 0 0 0.75rem;
}

.payment-reference-field input {
  width: 100%;
}

.payment-status-note {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 600;
}

#payment-reported-button {
  margin-top: 0.75rem;
}

#success-generic-note {
  margin-bottom: 1.25rem;
}

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

.modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

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

.field-full {
  grid-column: 1 / -1;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.checkout-summary {
  padding: 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.checkout-summary h3 {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink-soft);
}

.summary-line span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-line span:last-child {
  white-space: nowrap;
}

.checkout-summary .button {
  margin-top: 1rem;
}

.error {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.875rem;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0.25rem auto 1.25rem;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.modal-panel-small h2 {
  margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------------- Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 90;
  transform: translateX(-50%) translateY(20px);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  pointer-events: none;
}

.toast:not([hidden]) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-error {
  background: var(--red);
}

/* -------------------------------------------------------------- Animations */

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --------------------------------------------------------------- Responsive */

@media (max-width: 860px) {
  .about-inner {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 2rem);
  }

  .nav {
    display: none;
  }

  .cart-button {
    margin-left: auto;
  }

  .section-head {
    align-items: stretch;
  }

  .filters {
    width: 100%;
  }

  .field-search {
    flex: 1 1 100%;
  }

  .field-search input {
    min-width: 0;
  }

  .filters .field:not(.field-search) {
    flex: 1 1 0;
  }

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

  .modal {
    padding: 1rem;
  }

  .modal-panel {
    padding: 1.125rem;
    max-height: calc(100vh - 2rem);
  }

  .drawer-foot,
  .drawer-head {
    padding-inline: 1.125rem;
  }

  .drawer-body {
    padding-inline: 1.125rem;
  }
}


/* --------------------------------------------------------------- Storefront Landing & Auth Enhancements */

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

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.account-button:hover {
  background: var(--bg-soft);
  border-color: var(--muted);
}

.account-button svg {
  width: 18px;
  height: 18px;
  color: var(--primary, var(--blue));
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ink);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 640px) {
  .mobile-menu-toggle {
    display: block;
  }
  .nav.nav-open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  .nav.nav-open .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
}

.hero-eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary, var(--blue));
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

.button-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.button-outline:hover {
  background: var(--bg-soft);
  border-color: var(--ink-soft);
}

/* Features */
.features {
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

.feature-card {
  padding: 1.75rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-soft, var(--blue-soft));
  color: var(--primary, var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: inherit;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Testimonials */
.testimonials {
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  padding: 1.75rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.testimonial-text {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-soft, var(--blue-soft));
  color: var(--primary, var(--blue));
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-rating {
  color: var(--amber);
  font-size: 0.75rem;
  letter-spacing: 2px;
}

/* Newsletter */
.newsletter {
  padding: 4rem 0;
  background: var(--surface);
}

.newsletter-card {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--surface) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.newsletter-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: var(--primary-soft, var(--blue-soft));
  color: var(--primary, var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.newsletter-icon svg {
  width: 26px;
  height: 26px;
}

.newsletter-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.newsletter-card p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  background: var(--surface);
  color: var(--ink);
}

/* Footer layout */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer-column h4 {
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}
