/* ==========================================================================
   MicroMart (micromart.top) — Clean Light-Mode Digital Storefront Styles
   Stripe/Apple-grade crisp surfaces, refined indigo/violet accents, zero emojis.
   ========================================================================== */

@property --drawer-backdrop {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

:root {
  interpolate-size: allow-keywords;

  /* Surface & Ink Palette */
  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-elevated: #ffffff;

  --ink-primary: #0f172a;
  --ink-secondary: #475569;
  --ink-muted: #64748b;
  --ink-faint: #94a3b8;

  /* Borders */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Brand & Semantic Accents */
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-violet: #7c3aed;
  --accent-soft: #eef2ff;
  --accent-ring: rgba(79, 70, 229, 0.22);

  --telegram: #0284c7;
  --telegram-hover: #0369a1;
  --telegram-soft: #e0f2fe;

  --success: #059669;
  --success-soft: #ecfdf5;
  --danger: #dc2626;
  --danger-text: #b91c1c;
  --danger-soft: #fef2f2;
  --danger-ring: rgba(220, 38, 38, 0.16);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 22px 48px -12px rgba(15, 23, 42, 0.16), 0 8px 18px -6px rgba(15, 23, 42, 0.08);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-max: 1240px;
  --header-height: 70px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
}

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

button {
  cursor: pointer;
}

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

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.mm-icon {
  flex-shrink: 0;
}

/* ==========================================================================
   Buttons & Shared Controls
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

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

.btn-lg {
  padding: 12px 20px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 13px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #5b4cf0 55%, var(--accent-violet) 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #4f46e5 55%, #6d28d9 100%);
  box-shadow: 0 6px 16px -4px rgba(79, 70, 229, 0.38);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink-primary);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: #ffffff;
  color: var(--ink-primary);
  border-color: var(--border);
}

.btn-outline:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.btn-telegram {
  background: var(--telegram);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-telegram:hover:not(:disabled) {
  background: var(--telegram-hover);
  box-shadow: 0 6px 16px -4px rgba(2, 132, 199, 0.36);
}

.btn-subtle {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

.btn-subtle:hover:not(:disabled) {
  background: #e0e7ff;
  color: var(--accent-hover);
}

.btn-link-muted {
  background: none;
  border: none;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  align-self: center;
  border-radius: var(--radius-sm);
  transition: color 150ms ease, background-color 150ms ease;
}

.btn-link-muted:hover {
  color: var(--danger-text);
  background: var(--danger-soft);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-secondary);
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.icon-btn:hover {
  background: var(--bg-muted);
  color: var(--ink-primary);
  border-color: var(--border-strong);
}

/* ==========================================================================
   Compact Top Announcement Bar
   ========================================================================== */

.top-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.top-bar-inner {
  padding-block: 8px;
}

.top-bar-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item .mm-icon {
  color: var(--accent);
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
  transition: color 150ms ease;
}

.top-bar-link:hover {
  color: var(--telegram);
}

.top-bar-link .mm-icon {
  color: var(--telegram);
}

.top-bar-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* ==========================================================================
   Sticky Frosted-Glass Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.header-inner {
  min-height: var(--header-height);
  padding-block: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.brand-logo {
  height: 38px;
  width: auto;
}

.header-search {
  position: relative;
  flex: 1 1 380px;
  max-width: 520px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 14px;
  color: var(--ink-primary);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.search-input::placeholder {
  color: var(--ink-muted);
}

.search-input:hover {
  border-color: var(--border-strong);
  background: #ffffff;
}

.search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 140ms ease, color 140ms ease;
}

.search-clear-btn[hidden] {
  display: none;
}

.search-clear-btn:hover {
  background: var(--border);
  color: var(--ink-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-support .mm-icon {
  color: var(--telegram);
}

.btn-cart {
  padding-inline: 14px;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding-inline: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Clean Crisp Light Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-block: 56px 40px;
  background:
    radial-gradient(60% 75% at 50% 0%, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.03) 45%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #fafbff 0%, #ffffff 78%);
  border-bottom: 1px solid var(--border);
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-copy {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.16);
}

.eyebrow-divider {
  width: 1px;
  height: 12px;
  background: var(--border-strong);
}

.hero-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.4vw, 3.45rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 28px;
  max-width: 630px;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.65;
  color: var(--ink-secondary);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* 5-Category Quick-Jump Visual Cards */
.hero-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hero-cat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  text-align: left;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease-out);
}

.hero-cat-card:hover {
  border-color: #c7d2fe;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hero-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
}

.hero-cat-icon--sky {
  background: #e0f2fe;
  color: #0284c7;
}

.hero-cat-icon--indigo {
  background: #eef2ff;
  color: #4f46e5;
}

.hero-cat-icon--emerald {
  background: #ecfdf5;
  color: #059669;
}

.hero-cat-icon--amber {
  background: #fef3c7;
  color: #d97706;
}

.hero-cat-icon--violet {
  background: #f3e8ff;
  color: #7c3aed;
}

.hero-cat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.hero-cat-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink-primary);
  line-height: 1.25;
  white-space: nowrap;
}

.hero-cat-meta {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.hero-cat-arrow {
  color: var(--ink-faint);
  transition: transform 180ms var(--ease-out), color 180ms ease;
}

.hero-cat-card:hover .hero-cat-arrow {
  color: var(--accent);
  transform: translateX(2px);
}

/* ==========================================================================
   Trust & Payment Methods Bar
   ========================================================================== */

.trust-section {
  padding-block: 28px 16px;
}

.trust-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trust-pillar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--accent);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.trust-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
}

.trust-desc {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.payments-strip {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.payments-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.payment-chips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
  box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.section-header--centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 34px;
}

.section-eyebrow {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink-primary);
}

.section-subtitle {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-secondary);
  max-width: 480px;
}

/* ==========================================================================
   Sortable 21-Product Catalog
   ========================================================================== */

.catalog-section {
  padding-block: 44px 72px;
}

.category-tabs-wrap {
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.category-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-width: 100%;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.cat-tab:hover {
  border-color: var(--border-strong);
  color: var(--ink-primary);
  background: var(--bg-subtle);
}

.cat-tab[aria-selected="true"] {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.cat-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding-inline: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cat-tab[aria-selected="true"] .cat-tab-count {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Filter & Sort Toolbar */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 12px 14px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.region-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.region-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.region-pill:hover {
  background: #ffffff;
  border-color: var(--border);
  color: var(--ink-primary);
}

.region-pill[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: #c7d2fe;
  color: var(--accent);
  font-weight: 600;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.results-count {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.sort-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.sort-select {
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
  padding-right: 4px;
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
}

.sort-control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* Responsive 4-Column Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    border-color 200ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.product-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 480 / 300;
  background: var(--bg-muted);
  overflow: hidden;
  padding: 0;
  border: none;
  text-align: left;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms var(--ease-out);
}

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

/* Promo badge cleanly top-right ONLY (nothing on top-left of artwork) */
.product-promo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.product-promo-badge[hidden] {
  display: none;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
  gap: 10px;
}

/* Category label + Region badge side by side INSIDE card body */
.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.meta-region {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.product-title-btn {
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}

.product-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
  transition: color 150ms ease;
}

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

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

.product-delivery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--success);
  margin-top: auto;
  padding-top: 2px;
}

.product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--bg-muted);
}

.price-block {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.price-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-quick-add {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9px;
}

/* Catalog Empty State */
.catalog-empty {
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-strong);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.catalog-empty[hidden] {
  display: none;
}

.empty-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}

.empty-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-primary);
}

.empty-desc {
  margin: 0 0 6px;
  max-width: 380px;
  font-size: 14px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   How It Works 3-Step Strip
   ========================================================================== */

.steps-section {
  padding-block: 68px;
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
}

.steps-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-primary);
}

.step-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* ==========================================================================
   FAQ Accordion (Native <details>, Animated Chevron + ::details-content)
   ========================================================================== */

.faq-section {
  padding-block: 72px;
}

.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item[open] {
  border-color: #c7d2fe;
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker,
.faq-summary::marker {
  display: none;
  content: '';
}

.faq-question {
  flex: 1;
}

/* Custom animated chevron using CSS mask of assets/icons/chevron-down.svg (-90deg -> 0deg) */
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: var(--ink-muted);
  -webkit-mask: url("../assets/icons/chevron-down.svg") center / contain no-repeat;
  mask: url("../assets/icons/chevron-down.svg") center / contain no-repeat;
  transform: rotate(-90deg);
  transition: transform 240ms var(--ease-out), background-color 180ms ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(0deg);
  background-color: var(--accent);
}

.faq-body {
  padding: 0 20px 18px;
  color: var(--ink-secondary);
  font-size: 14.5px;
  line-height: 1.65;
}

.faq-body p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item::details-content {
    contain: layout;
    overflow: clip;
    block-size: 0;
    opacity: 0;
    transition:
      block-size 260ms var(--ease-out),
      opacity 220ms ease,
      content-visibility 260ms allow-discrete;
    transition-behavior: allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-chevron {
    transition: none;
  }
}

/* ==========================================================================
   Clean Light Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding-block: 56px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.25fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-tagline {
  margin: 14px 0 0;
  max-width: 310px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.footer-heading {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-primary);
}

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

.footer-link,
.footer-link-btn,
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 150ms ease;
}

.footer-link:hover,
.footer-link-btn:hover,
.footer-contact-link:hover {
  color: var(--accent);
}

.footer-contact-link .mm-icon {
  color: var(--telegram);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-copy,
.footer-meta {
  margin: 0;
}

/* ==========================================================================
   Shared Modal / Dialog Overscroll & Backdrop Rules
   ========================================================================== */

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

/* ==========================================================================
   Product Detail Modal (<dialog id="product-dialog">)
   @starting-style + transition-behavior: allow-discrete + overlay + fallback
   ========================================================================== */

.modal-dialog {
  width: min(860px, calc(100vw - 28px));
  max-width: 860px;
  max-height: min(90dvh, 780px);
  padding: 0;
  margin: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #ffffff;
  color: var(--ink-primary);
  box-shadow: var(--shadow-lg);
  overflow: hidden;

  /* Exit / closed visual state */
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    overlay 220ms allow-discrete,
    display 220ms allow-discrete;
  transition-behavior: allow-discrete;
}

.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition:
    opacity 220ms ease,
    overlay 220ms allow-discrete,
    display 220ms allow-discrete;
  transition-behavior: allow-discrete;
}

.modal-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .modal-dialog[open] {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  .modal-dialog[open]::backdrop {
    opacity: 0;
  }
}

/* JS closeTopLayerDialog() fallback transition class */
.modal-dialog.is-closing {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
}

.modal-dialog.is-closing::backdrop {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .modal-dialog,
  .modal-dialog::backdrop {
    transition: none;
    transform: none;
  }
}

.modal-card {
  position: relative;
  max-height: min(90dvh, 780px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.modal-visual-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-artwork-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 480 / 300;
  background: var(--bg-muted);
}

.modal-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.modal-highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.modal-highlight-item .mm-icon {
  color: var(--accent);
}

.modal-details-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 12px;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.modal-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Variant Selector Radiogroup */
.variant-fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.field-legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 10px;
}

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

.variant-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.variant-option:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.variant-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.variant-option:has(input:checked),
.variant-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.variant-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.variant-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-primary);
}

.variant-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Quantity Stepper & Modal Purchase Row */
.modal-purchase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.qty-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
}

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

.qty-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 140ms ease;
}

.qty-btn:hover:not(:disabled) {
  background: var(--bg-muted);
}

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

.qty-value {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.modal-total-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.modal-total-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.modal-total-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   Form Controls & Modern Validation (:user-invalid + aria-invalid)
   ========================================================================== */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field[hidden] {
  display: none;
}

.field-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-primary);
}

.req {
  color: var(--danger);
  font-weight: 700;
}

.opt {
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 12.5px;
}

/* Hint placed ABOVE the input */
.field-hint {
  margin: 0 0 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.form-input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  font-size: 14px;
  color: var(--ink-primary);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.form-input::placeholder {
  color: var(--ink-faint);
}

.form-input:hover {
  border-color: #94a3b8;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

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

.form-input:user-invalid:focus,
.form-input[aria-invalid="true"]:focus,
.form-input.is-invalid:focus {
  box-shadow: 0 0 0 3px var(--danger-ring);
}

.field-error {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--danger-text);
  line-height: 1.35;
}

.field-error[hidden] {
  display: none;
}

/* ==========================================================================
   Slide-Out Right Cart Drawer (<dialog class="Drawer">)
   Scroll-snap + IntersectionObserver + scroll-initial-target + scroll-driven backdrop
   ========================================================================== */

@keyframes drawer-backdrop-fade {
  from {
    --drawer-backdrop: 0;
  }
  to {
    --drawer-backdrop: 1;
  }
}

.Drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: rgb(15 23 42 / calc(var(--drawer-backdrop, 0) * 0.44));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.Drawer::-webkit-scrollbar {
  display: none;
}

.Drawer[open] {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.Drawer::backdrop {
  background: transparent;
  overflow: hidden;
  overscroll-behavior: contain;
}

@supports (animation-timeline: scroll()) {
  .Drawer {
    scroll-timeline: --drawer-scroll inline;
    animation: drawer-backdrop-fade linear both;
    animation-timeline: --drawer-scroll;
  }
}

.Drawer-backdrop {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: pointer;
}

.Drawer-panel {
  flex: 0 0 min(440px, 92vw);
  width: min(440px, 92vw);
  height: 100%;
  scroll-snap-align: end;
  scroll-snap-stop: always;
  scroll-initial-target: nearest;
  background: #ffffff;
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 42px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  flex-shrink: 0;
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-primary);
}

.drawer-count-pill {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 20px 28px;
}

.cart-empty-state {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 24px 12px;
}

.cart-empty-state[hidden],
.cart-filled-state[hidden] {
  display: none;
}

.cart-filled-state {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-items-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #ffffff;
}

.cart-item-thumb {
  width: 64px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-muted);
}

.cart-item-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.3;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 140ms ease, color 140ms ease;
}

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

.cart-item-meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.cart-item-custom {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 6px;
  align-self: flex-start;
  word-break: break-all;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.cart-item-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.cart-item-stepper .qty-btn {
  width: 27px;
  height: 27px;
}

.cart-item-stepper .qty-value {
  min-width: 26px;
  font-size: 13px;
}

.cart-item-price {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
}

.cart-summary-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.summary-free {
  font-weight: 600;
  color: var(--success);
}

.summary-row--total {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
}

.summary-row--total strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.checkout-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}

.toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--ink-primary);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: toast-in 220ms var(--ease-out) both;
}

.toast--success .toast-icon {
  color: #34d399;
}

.toast--info .toast-icon {
  color: #818cf8;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }
}

/* ==========================================================================
   Responsive Breakpoints (Verified cleanly at 1280px, 760px, and 390px)
   ========================================================================== */

/* Medium desktop: 3-column product grid */
@media (max-width: 1119px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* 5 category cards wrap evenly into 3 + 2 balanced rows with ZERO orphan slots */
  .hero-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-cat-card {
    flex: 1 1 calc(33.333% - 12px);
    min-width: 210px;
  }
}

/* Tablet layout (760px target) */
@media (max-width: 959px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 859px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* <= 760px: Header search wraps cleanly onto second row */
@media (max-width: 760px) {
  .container {
    padding-inline: 18px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 10px 12px;
  }

  .brand-logo {
    height: 34px;
  }

  .header-search {
    order: 3;
    flex: 1 0 100%;
    max-width: 100%;
  }

  .hero {
    padding-block: 40px 32px;
  }

  .hero-container {
    gap: 30px;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-right {
    margin-left: 0;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  .modal-card {
    padding: 20px;
  }

  .modal-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-details-col {
    padding-right: 0;
  }
}

/* <= 719px: 3-column Trust & Steps strips stack cleanly (no narrow cramping or orphans) */
@media (max-width: 719px) {
  .trust-pillars,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .payments-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* <= 639px: Hero categories stack cleanly with zero orphan slots */
@media (max-width: 639px) {
  .hero-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-cat-card {
    min-width: 0;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }
}

/* Mobile (390px target) */
@media (max-width: 559px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .top-bar-sep {
    display: none;
  }

  .top-bar-list {
    gap: 6px 14px;
    font-size: 11.5px;
  }
}

@media (max-width: 519px) {
  .container {
    padding-inline: 16px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .support-label {
    display: none;
  }

  .btn-support {
    padding-inline: 10px;
  }

  .hero-ctas {
    width: 100%;
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

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

  .modal-purchase-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-total-block {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  .faq-summary {
    padding: 16px;
    font-size: 15px;
  }

  .faq-body {
    padding: 0 16px 16px;
  }

  .toast-region {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .toast {
    width: 100%;
  }
}
