:root {
  /* Chinguetti material palette */
  --midnight: #080d18;
  --bronze: #b9853b;
  --sandstone: #d8b77b;
  --museum-white: #f5f4ef;
  --atlantic: #29496b;
  --emerald: #16765b;

  /* Semantic color roles retained for existing components */
  --brand: var(--bronze);
  --brand-deep: #714a1f;
  --brand-soft: #efe5d3;
  --brand-warm: var(--sandstone);
  --ink: var(--midnight);
  --ink-soft: #2d3748;
  --muted: #667080;
  --line: #dedbd3;
  --line-strong: #beb9af;
  --surface: #ffffff;
  --surface-alt: #f1f2ef;
  --surface-soft: #f7f5ef;
  --focus: var(--atlantic);
  --success: var(--emerald);
  --success-dark: #0e5843;
  --danger: #b13f3b;

  /* Typography */
  --font-display: "Aref Ruqaa", "Noto Naskh Arabic", serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --font-numeric: "Manrope", "IBM Plex Sans Arabic", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.75rem, 3vw, 2.5rem);
  --text-display: clamp(2.25rem, 4.8vw, 4rem);

  /* Spacing and shape */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --control-height: 50px;

  /* Depth */
  --shadow-sm: 0 4px 16px rgba(8, 13, 24, 0.06);
  --shadow-md: 0 14px 38px rgba(8, 13, 24, 0.09);
  --shadow-lg: 0 28px 70px rgba(8, 13, 24, 0.13);
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --transition: 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--ink);
  background: var(--museum-white);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: var(--ink);
  background: rgba(216, 183, 123, 0.58);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
}

h3,
h4,
p {
  text-wrap: pretty;
}

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

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

button,
input,
textarea,
select {
  font-family: var(--font-body);
  font-size: inherit;
}

input,
textarea,
select {
  min-width: 0;
}

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

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 42%, transparent);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  inset-block-start: var(--space-3);
  inset-inline-start: var(--space-3);
  z-index: 10000;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow-md);
  transform: translateY(calc(-100% - 24px));
  transition: transform var(--transition);
}

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

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.topbar {
  background: var(--midnight);
  color: #e8e5dc;
  font-size: 12px;
}

.topbar-inner {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-list,
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 249, 245, 0.94);
  backdrop-filter: blur(20px) saturate(130%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(8, 13, 24, 0.045);
}

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(205px, auto) minmax(360px, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  min-height: 104px;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.brand-subtitle {
  max-width: 32ch;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.header-center {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.search-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 4px 5px 4px 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(8, 13, 24, 0.035);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.search-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-shell input::placeholder {
  color: #94a3b8;
}

.search-chip {
  padding: 4px 12px;
  border-inline-end: 1px solid var(--line);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.search-action {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 7px 16px rgba(8, 13, 24, 0.16);
  transition: transform var(--transition), background var(--transition);
}

.search-action:hover {
  background: var(--atlantic);
  transform: translateY(-1px);
}

.search-shortcut {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface-soft);
  font: 600 12px var(--font-numeric);
  box-shadow: 0 2px 0 rgba(8, 13, 24, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 34px);
  min-height: 34px;
}

.nav a {
  position: relative;
  padding: 6px 1px 9px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--brand-deep);
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 2px;
  height: 2px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

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

.header-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
}

.header-icon-btn svg {
  width: 21px;
  height: 21px;
}

.search-toggle {
  display: none;
}

.utility-pill,
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.utility-pill-cart {
  gap: 10px;
  position: relative;
  overflow: hidden;
  padding: 6px 10px 6px 14px;
  background: linear-gradient(180deg, #ffffff, #fffaf0);
  border-color: #f4ddb2;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.utility-pill-cart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(198, 139, 44, 0.16), transparent 42%);
  pointer-events: none;
}

.utility-pill-icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #e0a646);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 12px 22px rgba(198, 139, 44, 0.3);
  flex: 0 0 auto;
  order: 1;
  object-fit: contain;
  transition: transform 180ms ease;
}

.utility-pill-cart:hover {
  border-color: #e9c57e;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.11);
}

.utility-pill-cart:hover .utility-pill-icon {
  transform: translateY(-1px) rotate(-4deg) scale(1.04);
}

.utility-pill-cart:active .utility-pill-icon {
  transform: scale(0.94);
}

.utility-pill-cart:focus-visible {
  outline: 3px solid rgba(198, 139, 44, 0.3);
  outline-offset: 3px;
}

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

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

/* Phase 4 — catalog index and discovery */
.catalog-masthead {
  position: relative;
  overflow: hidden;
  padding-block: clamp(54px, 7vw, 96px);
  background:
    linear-gradient(90deg, transparent 49.94%, rgba(8, 13, 24, 0.075) 50%, transparent 50.06%),
    var(--surface-soft);
  border-bottom: 1px solid var(--line-strong);
}

.catalog-masthead::after {
  content: "";
  position: absolute;
  width: min(46vw, 660px);
  aspect-ratio: 1;
  inset-inline-start: -18%;
  inset-block-start: -72%;
  border: 1px solid rgba(185, 133, 59, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(185, 133, 59, 0.035);
  pointer-events: none;
}

.catalog-masthead-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: end;
}

.catalog-masthead-grid > *,
.catalog-stage-grid > * {
  min-width: 0;
}

.catalog-edition,
.catalog-results-label,
.catalog-sidebar-head span {
  margin: 0 0 14px;
  color: var(--brand-deep);
  font-family: var(--font-numeric);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.catalog-masthead-copy h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.catalog-masthead-copy h1 em {
  color: var(--brand-deep);
  font-style: normal;
  font-weight: 400;
}

.catalog-masthead-copy > p:last-child {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.catalog-inventory {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 20px;
  padding: 0 24px 4px 0;
  border-inline-start: 1px solid var(--line-strong);
}

.catalog-inventory > span,
.catalog-inventory > small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.catalog-inventory > strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--ink);
  font-family: var(--font-numeric);
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.catalog-inventory > i {
  grid-column: 1 / -1;
  height: 1px;
  margin-block: 18px 12px;
  background: linear-gradient(90deg, transparent, var(--bronze));
}

.catalog-inventory > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.catalog-stage {
  padding-block: clamp(42px, 6vw, 84px);
  background: #fff;
}

.catalog-stage-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 142px;
  padding-inline-end: 24px;
  border-inline-end: 1px solid var(--line-strong);
}

.catalog-sidebar-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 22px;
}

.catalog-sidebar-head span {
  display: block;
  margin-bottom: 5px;
}

.catalog-sidebar-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.catalog-filter-close {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.catalog-category-list {
  border-bottom: 1px solid var(--line-strong);
}

.catalog-category {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 8px 6px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  text-align: start;
  transition: color var(--transition), padding var(--transition), background var(--transition);
}

.catalog-category:hover,
.catalog-category.active {
  padding-inline: 12px;
  color: #fff;
  background: var(--midnight);
}

.catalog-category span {
  font-weight: 700;
}

.catalog-category strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding-inline: 6px;
  color: var(--muted);
  background: var(--surface-alt);
  border-radius: 50%;
  font-family: var(--font-numeric);
  font-size: 11px;
}

.catalog-category.active strong,
.catalog-category:hover strong {
  color: var(--ink);
  background: var(--sandstone);
}

.catalog-sort-field {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.catalog-sort-field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.catalog-sort-field .select-shell,
.catalog-sort-field select {
  width: 100%;
  min-width: 0;
}

.catalog-sidebar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.catalog-sidebar-foot > a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 700;
}

.catalog-sidebar-foot .btn {
  display: none;
}

.catalog-results-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.catalog-results-label {
  margin-bottom: 4px;
}

.catalog-results-bar h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
}

.catalog-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  color: #fff;
  background: var(--midnight);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.catalog-filter-toggle span {
  color: var(--sandstone);
  font-size: 20px;
}

.catalog-filter-backdrop {
  display: none;
}

.catalog-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 22px;
}

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

.catalog-active-filters a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 10px 6px 8px;
  color: var(--ink-soft);
  background: var(--brand-soft);
  border: 1px solid rgba(185, 133, 59, 0.35);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}

.catalog-active-filters b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  background: var(--brand-deep);
  border-radius: 50%;
  font-size: 14px;
}

.catalog-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
}

.catalog-product-grid .product-card {
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(8, 13, 24, 0.065);
}

.catalog-product-grid .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(8, 13, 24, 0.11);
  border-color: rgba(185, 133, 59, 0.5);
}

.catalog-product-grid .product-media {
  background:
    linear-gradient(rgba(8, 13, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 13, 24, 0.035) 1px, transparent 1px),
    linear-gradient(160deg, #f4ead7, #f7f6f1 65%);
  background-size: 28px 28px, 28px 28px, auto;
}

.product-card-cue {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(8, 13, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-family: var(--font-numeric);
  font-size: 17px;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), background var(--transition);
}

.product-card:hover .product-card-cue {
  color: var(--ink);
  background: var(--sandstone);
  transform: translate(-3px, 3px);
}

.catalog-product-grid .product-category {
  color: var(--brand-deep);
  background: transparent;
  border-color: rgba(185, 133, 59, 0.34);
}

.catalog-product-grid .badge {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(8, 13, 24, 0.1);
  backdrop-filter: blur(8px);
}

.btn-card-add img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.catalog-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  min-height: 420px;
  padding: 70px 24px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(185, 133, 59, 0.1), transparent 34%),
    var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.catalog-empty > span {
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
}

.catalog-empty h3 {
  margin: 14px 0 6px;
  font-family: var(--font-display);
  font-size: 34px;
}

.catalog-empty p {
  max-width: 460px;
  margin: 0 0 22px;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .catalog-stage-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 34px;
  }

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

@media (max-width: 820px) {
  .catalog-masthead {
    padding-block: 44px;
    background: var(--surface-soft);
  }

  .catalog-masthead-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .catalog-masthead-copy h1 {
    font-size: clamp(44px, 12vw, 68px);
  }

  .catalog-masthead-copy > p:last-child {
    margin-top: 22px;
    font-size: 16px;
  }

  .catalog-inventory {
    grid-template-columns: 1fr auto;
    padding: 18px 0 0;
    border-inline-start: 0;
    border-top: 1px solid var(--line-strong);
  }

  .catalog-inventory > strong {
    font-size: 72px;
  }

  .catalog-stage {
    padding-block: 34px 54px;
  }

  .catalog-stage-grid {
    grid-template-columns: 1fr;
  }

  .catalog-filter-toggle {
    display: inline-flex;
  }

  .catalog-filter-enhanced .catalog-sidebar {
    position: fixed;
    z-index: 6100;
    inset-inline: 0;
    inset-block: auto 0;
    width: min(100%, 620px);
    max-height: min(88vh, 760px);
    margin-inline: auto;
    padding: 24px var(--gutter) max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    color: var(--ink);
    background: var(--museum-white);
    border: 1px solid var(--line-strong);
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -24px 70px rgba(8, 13, 24, 0.24);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 320ms;
  }

  .catalog-filter-open .catalog-sidebar {
    transform: translateY(0);
    visibility: visible;
  }

  .catalog-filter-enhanced .catalog-filter-backdrop {
    position: fixed;
    z-index: 6000;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(8, 13, 24, 0.58);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .catalog-filter-open .catalog-filter-backdrop {
    opacity: 1;
    visibility: visible;
  }

  body.catalog-filter-open {
    overflow: hidden;
  }

  .catalog-filter-close {
    display: grid;
    place-items: center;
  }

  .catalog-sidebar-foot {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom) * -1);
    margin-inline: calc(var(--gutter) * -1);
    margin-bottom: calc(max(24px, env(safe-area-inset-bottom)) * -1);
    padding: 16px var(--gutter) max(18px, env(safe-area-inset-bottom));
    background: rgba(245, 244, 239, 0.96);
    border-top: 1px solid var(--line-strong);
    backdrop-filter: blur(14px);
  }

  .catalog-sidebar-foot .btn {
    display: inline-flex;
    width: auto;
  }
}

@media (max-width: 560px) {
  .catalog-masthead-copy h1 {
    font-size: clamp(42px, 13vw, 56px);
    overflow-wrap: anywhere;
  }

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

  .catalog-filter-toggle {
    width: 100%;
  }

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

  .catalog-product-grid .product-card {
    display: grid;
    grid-template-columns: minmax(126px, 0.76fr) minmax(0, 1.24fr);
    min-height: 258px;
    border-radius: 16px;
  }

  .catalog-product-grid .product-media {
    min-height: 100%;
    aspect-ratio: auto;
    padding: 10px;
  }

  .catalog-product-grid .product-badges {
    inset: 10px 8px auto;
  }

  .catalog-product-grid .product-card-cue {
    display: none;
  }

  .catalog-product-grid .badge {
    padding: 6px 8px;
    font-size: 11px;
  }

  .catalog-product-grid .product-body {
    padding: 14px;
  }

  .catalog-product-grid .product-topline {
    display: grid;
    justify-items: start;
    gap: 6px;
  }

  .catalog-product-grid .product-category {
    padding: 5px 7px;
    font-size: 10px;
  }

  .catalog-product-grid .product-title {
    margin-block: 8px 5px;
    font-size: 17px;
    line-height: 1.35;
  }

  .catalog-product-grid .product-desc,
  .catalog-product-grid .delivery-note,
  .catalog-product-grid .btn-card-detail {
    display: none;
  }

  .catalog-product-grid .product-price {
    font-size: 19px;
  }

  .catalog-product-grid .product-actions {
    display: block;
    padding-top: 10px;
  }

  .catalog-product-grid .btn-card-add {
    width: 100%;
    min-height: 42px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .catalog-sidebar-foot {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .catalog-sidebar-foot .btn,
  .catalog-sidebar-foot > a {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-filter-enhanced .catalog-sidebar,
  .catalog-filter-enhanced .catalog-filter-backdrop,
  .catalog-category,
  .product-card-cue {
    transition: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #9a968e;
    --line-strong: #69665f;
    --muted: #414956;
  }

  .btn,
  .mini-btn,
  .btn-card-detail,
  .btn-card-buy,
  .btn-card-add,
  .btn-whatsapp,
  .btn-maps {
    border-width: 2px;
  }
}

.utility-pill-cart strong,
.cart-count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff4de, #fdecc9);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 900;
  order: 3;
}

.utility-pill-cart span {
  order: 2;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.cart-preview {
  position: fixed;
  inset-inline-end: 16px;
  top: 102px;
  z-index: 2500;
  width: min(380px, calc(100vw - 24px));
}

.cart-preview[hidden] {
  display: none;
}

.cart-preview-card {
  display: grid;
  gap: 16px;
  max-height: calc(100dvh - 118px);
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(198, 139, 44, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.cart-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-preview-head h3 {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.25;
}

.cart-preview-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 900;
}

.cart-preview-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
}

.cart-preview-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cart-preview-stats div {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fff9ef);
  border: 1px solid #f4e3c2;
}

.cart-preview-stats strong {
  display: block;
  font-size: 22px;
  color: var(--brand-deep);
}

.cart-preview-stats span {
  color: var(--muted);
  font-size: 13px;
}

.cart-preview-empty {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px dashed #dbe4f0;
  color: var(--muted);
}

.cart-preview-items {
  display: grid;
  gap: 10px;
}

.cart-preview-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.cart-preview-thumb {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff8ee, #fff);
  border: 1px solid #f2dfbf;
}

.cart-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-preview-copy h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.cart-preview-copy div {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.cart-preview-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 12px;
  box-shadow: none;
}

.menu-lines {
  display: grid;
  gap: 6px;
}

.menu-lines i {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-lines i:last-child {
  width: 14px;
  margin-inline-start: auto;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 4000;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav.open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-inner {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inset-inline-end: auto;
  display: grid;
  grid-template-rows: auto repeat(5, auto) 1fr;
  align-content: start;
  gap: 0;
  width: min(420px, calc(100vw - 28px));
  height: 100dvh;
  margin: 0;
  padding: 26px;
  overflow-y: auto;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(185, 133, 59, 0.14) 1px, transparent 1px),
    var(--museum-white);
  background-size: 64px 100%;
  border-inline-end: 1px solid rgba(185, 133, 59, 0.42);
  box-shadow: -24px 0 70px rgba(8, 13, 24, 0.2);
  transform: none;
}

.mobile-nav.open .mobile-nav-inner {
  transform: none;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 13, 24, 0.62);
  opacity: 0;
  backdrop-filter: blur(5px);
}

.mobile-nav-inner {
  z-index: 1;
}

.mobile-nav.open .mobile-nav-backdrop {
  opacity: 1;
}

.mobile-nav-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 24px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-kicker,
.search-dialog-kicker {
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
}

.mobile-nav-head h2 {
  margin: 5px 0 0;
  font-size: 28px;
  line-height: 1.2;
}

.mobile-nav-close,
.search-dialog-close {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  font-size: 24px;
  line-height: 1;
}

.mobile-nav-inner > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 600;
}

.mobile-nav-inner > a::after {
  content: "←";
  color: var(--brand);
  font-family: var(--font-numeric);
  transition: transform var(--transition);
}

.mobile-nav-inner > a:hover::after,
.mobile-nav-inner > a.active::after {
  transform: translateX(-4px);
}

.mobile-nav-inner > a.active {
  color: var(--brand-deep);
  font-weight: 700;
}

.mobile-nav-support {
  align-self: end;
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(185, 133, 59, 0.38);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.mobile-nav-support span {
  color: var(--muted);
  font-size: 13px;
}

.mobile-nav-support a {
  color: var(--brand-deep);
  font-weight: 700;
}

body.mobile-nav-open,
body.search-open {
  overflow: hidden;
}

.search-overlay[hidden] {
  display: none !important;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: start center;
  padding: clamp(20px, 8vh, 80px) var(--gutter);
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 13, 24, 0.72);
  backdrop-filter: blur(10px);
}

.search-dialog {
  position: relative;
  width: min(760px, 100%);
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(216, 183, 123, 0.66);
  border-radius: 24px 24px 12px 12px;
  background:
    linear-gradient(90deg, rgba(185, 133, 59, 0.08) 1px, transparent 1px),
    var(--museum-white);
  background-size: 72px 100%;
  box-shadow: 0 34px 100px rgba(8, 13, 24, 0.34);
}

.search-dialog::before {
  content: "";
  position: absolute;
  inset-inline: 34px;
  inset-block-start: 0;
  height: 3px;
  background: var(--bronze);
}

.search-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.search-dialog-head h2 {
  margin: 4px 0 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.2;
}

.search-dialog-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 28px;
}

.search-dialog-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.search-dialog-form input:focus-visible {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(41, 73, 107, 0.14);
}

.search-suggestions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.search-suggestions > span {
  color: var(--muted);
  font-size: 13px;
}

.search-suggestions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-suggestions a {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.search-suggestions a:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

.hero {
  padding: 36px 0 28px;
}

.hero-grid,
.page-hero-grid,
.contact-grid,
.admin-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 26px;
  align-items: stretch;
}

.hero-grid > *,
.page-hero-grid > *,
.contact-grid > *,
.admin-hero-grid > * {
  min-width: 0;
}

.hero-copy,
.page-hero-copy {
  position: relative;
  padding: 40px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 243, 223, 0.96), rgba(255, 255, 255, 0.96)),
    #fff;
  border: 1px solid rgba(245, 215, 166, 0.8);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-copy::before,
.page-hero-copy::before {
  content: "";
  position: absolute;
  inset: auto auto -55px -55px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 139, 44, 0.18), transparent 70%);
}

.hero-copy > *,
.page-hero-copy > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f2d6a7;
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 16px;
  font-size: var(--text-display);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control-height);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    color var(--transition),
    background var(--transition);
}

.btn:hover,
.mini-btn:hover,
.btn-card-detail:hover,
.btn-card-buy:hover,
.btn-card-add:hover,
.btn-whatsapp:hover,
.btn-maps:hover,
.utility-pill:hover {
  transform: translateY(-1px);
}

.btn:active,
.mini-btn:active,
.btn-card-detail:active,
.btn-card-buy:active,
.btn-card-add:active,
.btn-whatsapp:active,
.btn-maps:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 10px 24px rgba(8, 13, 24, 0.2);
}

.btn-primary:hover {
  background: #172033;
  border-color: var(--bronze);
  box-shadow: 0 14px 30px rgba(8, 13, 24, 0.24);
}

.btn-secondary {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.btn-soft {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 52%, white);
}

.hero-metrics,
.stats,
.trust-strip,
.mini-stats {
  display: grid;
  gap: 14px;
}

.hero-metrics,
.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.hero-panel,
.panel,
.product-card,
.contact-card,
.form-card,
.admin-row,
.hero-card,
.category-card,
.info-card,
.value-card,
.detail-card,
.catalog-toolbar,
.empty-state {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-panel,
.panel,
.contact-card,
.form-card,
.category-card,
.info-card,
.value-card,
.detail-card,
.catalog-toolbar,
.empty-state {
  padding: 24px;
}

.metric-card,
.stat {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fff9ef);
  border: 1px solid #f4e3c2;
  text-align: center;
}

.metric-card strong,
.stat strong {
  display: block;
  font-size: 28px;
  color: var(--brand-deep);
  margin-bottom: 6px;
}

.metric-card span,
.stat span {
  color: var(--muted);
  font-size: 15px;
}

.hero-card {
  padding: 24px;
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at top, rgba(198, 139, 44, 0.14), transparent 44%),
    linear-gradient(180deg, #ffffff 0%, #fff8ec 100%);
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-card-title {
  font-size: 18px;
  font-weight: 900;
}

.spotlight {
  display: grid;
  gap: 14px;
}

.spotlight-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 16px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #f3dec1;
  background: linear-gradient(180deg, #fff9ef, #fff);
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.spotlight-title {
  font-size: 24px;
  font-weight: 900;
}

.spotlight-meta {
  color: var(--brand-deep);
  font-size: 22px;
  font-weight: 900;
}

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

.inline-badges,
.chip-row,
.catalog-chips,
.product-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-badge,
.chip,
.product-category,
.badge,
.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.inline-badge,
.chip,
.catalog-chip {
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.catalog-chip {
  cursor: pointer;
}

.catalog-chip.active,
.chip.active {
  background: var(--brand-soft);
  border-color: #f2d6a7;
  color: var(--brand-deep);
}

.product-category {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge {
  background: #fff8eb;
  color: var(--brand-deep);
  border: 1px solid #f4d59f;
}

.section {
  padding: clamp(var(--space-8), 7vw, var(--space-12)) 0;
}

.section.soft {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.section-head h2,
.panel h2,
.form-card h2 {
  margin: 0 0 8px;
  font-size: var(--text-2xl);
  line-height: 1.2;
}

.section-head p,
.panel p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.grid {
  display: grid;
  gap: var(--space-5);
}

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

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

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

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

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card-link {
  cursor: pointer;
}

.product-card-link:focus-visible {
  outline: 3px solid rgba(198, 139, 44, 0.35);
  outline-offset: 4px;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.12);
  border-color: #f2d6a7;
}

.product-media {
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(198, 139, 44, 0.12), transparent 45%),
    linear-gradient(180deg, #fff8eb, #f8fafc);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

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

.product-badges {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}

.wishlist-chip {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  box-shadow: var(--shadow-sm);
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-topline,
.product-meta-line,
.admin-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b45309;
  font-size: 14px;
  font-weight: 800;
}

.product-title {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}

.product-desc {
  margin: 0 0 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.4em;
}

.compact-grid .product-desc {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  min-height: 5.1em;
  max-height: 5.1em;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.product-price {
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
}

.product-price-compare {
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 700;
}

.delivery-note {
  margin-top: 10px;
  color: var(--success-dark);
  font-size: 14px;
  font-weight: 700;
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.mini-btn,
.btn-card-detail,
.btn-card-buy,
.btn-card-add,
.btn-whatsapp,
.btn-maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    color var(--transition),
    background var(--transition);
}

.mini-btn,
.btn-card-detail {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

.mini-btn.danger {
  color: var(--danger);
  border-color: #dfaaa6;
  background: #fff8f7;
}

.btn-card-detail,
.btn-card-buy,
.btn-card-add {
  flex: 1;
}

.btn-card-buy,
.btn-whatsapp {
  background: var(--success);
  color: #fff;
  box-shadow: 0 9px 20px rgba(22, 118, 91, 0.2);
}

.btn-card-add {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 9px 20px rgba(8, 13, 24, 0.18);
}

.btn-maps {
  background: var(--atlantic);
  color: #fff;
  box-shadow: 0 9px 20px rgba(41, 73, 107, 0.2);
}

.catalog-toolbar {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.catalog-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.catalog-summary {
  color: var(--muted);
  font-weight: 700;
}

.select-shell select {
  min-width: 210px;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.contact-list,
.admin-list,
.faq-list {
  display: grid;
  gap: 14px;
}

.contact-card h3,
.value-card h3,
.category-card h3,
.detail-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.contact-card p,
.value-card p,
.category-card p,
.detail-card p {
  margin: 0;
  color: var(--muted);
}

.category-card {
  display: block;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: #f2d6a7;
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.12);
}

.address-text {
  margin-top: 6px;
}

.form-card {
  padding: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.field {
  display: grid;
  gap: 7px;
}

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

.field label {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  outline: 0;
  caret-color: var(--brand-deep);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.field input::placeholder,
.field textarea::placeholder,
.search-shell input::placeholder {
  color: #747e8d;
  opacity: 1;
}

.field input:hover:not(:disabled),
.field textarea:hover:not(:disabled),
.field select:hover:not(:disabled) {
  border-color: #8e8a82;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible,
.search-shell:focus-within {
  border-color: var(--focus);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(41, 73, 107, 0.14);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:user-invalid,
.field textarea:user-invalid,
.field select:user-invalid {
  border-color: var(--danger);
}

.field input[type="file"] {
  padding: 7px;
}

.field input[type="file"]::file-selector-button {
  min-height: 36px;
  margin-inline-end: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-xs);
  color: #fff;
  background: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.field select option {
  color: var(--ink);
}

.help {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
}

body[data-page="admin"] [hidden] {
  display: none !important;
}

.admin-auth-card {
  grid-column: 1 / -1;
  width: min(100%, 620px);
  justify-self: center;
}

.admin-dashboard {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
}

.admin-toolbar,
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-row {
  padding: 16px;
}

.admin-row-media {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  padding: 8px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.admin-row-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.admin-row-content {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 220px;
}

.admin-row h3 {
  margin: 0;
  font-size: 18px;
}

.admin-row p {
  margin: 0;
  color: var(--muted);
}

.price {
  color: var(--brand-deep);
  font-size: 18px;
  font-weight: 900;
}

.price,
.product-price,
.product-price-compare,
.product-detail-price,
.cart-line-total strong,
[data-cart-subtotal] {
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

.price-lockup {
  display: inline-flex;
  max-width: 100%;
  align-items: baseline;
  gap: 0.38em;
  direction: rtl;
  line-height: 1;
  white-space: nowrap;
  unicode-bidi: isolate;
  vertical-align: baseline;
}

.price-amount {
  color: inherit;
  font-family: var(--font-numeric);
  font-size: 1em;
  font-weight: inherit;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.price-unit {
  color: inherit;
  font-family: var(--font-body);
  font-size: clamp(9px, 0.42em, 16px);
  font-weight: 800;
  line-height: 1.05;
  opacity: 0.66;
}

.portal-price .price-unit,
.cart-ticket-total .price-unit,
.product-mobile-buybar .price-unit {
  opacity: 0.82;
}

.count {
  color: var(--muted);
  font-weight: 700;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(198, 139, 44, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 139, 44, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 44%, transparent 92%);
  pointer-events: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 700;
}

.back-link:hover {
  color: var(--brand-deep);
}

.product-detail-shell {
  display: grid;
  gap: 24px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.product-detail-main,
.product-detail-side {
  display: grid;
  gap: 18px;
}

.product-detail-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 22px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid #f2dfbf;
  background:
    radial-gradient(circle at top, rgba(198, 139, 44, 0.12), transparent 44%),
    linear-gradient(180deg, #fff8ee, #fff);
  box-shadow: var(--shadow-md);
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-detail-content,
.product-detail-purchase,
.product-note {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-md);
}

.product-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product-detail-title {
  margin: 12px 0 14px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.15;
}

.product-detail-lead,
.product-detail-desc {
  color: var(--muted);
  margin: 0;
}

.product-detail-purchase {
  display: grid;
  gap: 18px;
}

.product-detail-price-label,
.product-note-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-detail-price {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
}

.purchase-meta {
  display: grid;
  gap: 10px;
}

.product-quick-notes,
.related-grid {
  display: grid;
  gap: 14px;
}

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

.product-note strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  color: var(--ink);
}

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

.cart-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.cart-hero-panel {
  display: grid;
  gap: 16px;
  background:
    radial-gradient(circle at top, rgba(198, 139, 44, 0.15), transparent 48%),
    rgba(255, 255, 255, 0.98);
}

.cart-hero-panel h2 {
  margin: 0;
  font-size: 24px;
}

.cart-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cart-hero-points span,
.cart-note,
.cart-empty-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f2d6a7;
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 14px;
}

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

.cart-stats div,
.cart-summary-stats div {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fff9ef);
  border: 1px solid #f4e3c2;
}

.cart-stats strong,
.cart-summary-stats strong {
  display: block;
  font-size: 26px;
  color: var(--brand-deep);
  margin-bottom: 4px;
}

.cart-stats span,
.cart-summary-stats span {
  color: var(--muted);
  font-size: 14px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.cart-items {
  display: grid;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-md);
}

.cart-item-media {
  display: grid;
  place-items: center;
  min-height: 170px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(198, 139, 44, 0.12), transparent 44%),
    linear-gradient(180deg, #fff8ee, #fff);
  border: 1px solid #f2dfbf;
  overflow: hidden;
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-content {
  display: grid;
  gap: 14px;
}

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

.cart-item-topline h3 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.cart-item-content p {
  margin: 0;
  color: var(--muted);
}

.cart-item-bottom {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 14px;
  align-items: center;
}

.cart-quantity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line-strong);
}

.cart-step-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(198, 139, 44, 0.24);
}

.cart-line-total {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.cart-line-total > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 2px;
}

.cart-line-total strong {
  color: var(--ink);
  font-size: 18px;
}

.cart-summary-card {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top, rgba(198, 139, 44, 0.14), transparent 40%),
    rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-lg);
}

.cart-summary-head h2 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.15;
}

.cart-summary-head p {
  margin: 0;
  color: var(--muted);
}

.cart-summary-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 900;
}

.cart-summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cart-summary-notes {
  display: grid;
  gap: 12px;
}

.cart-note {
  justify-content: flex-start;
  gap: 10px;
  min-height: auto;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--ink);
}

.cart-note strong {
  font-size: 15px;
}

.cart-note span {
  color: var(--muted);
  font-weight: 500;
}

.cart-summary-actions,
.cart-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cart-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 44px 28px;
  text-align: center;
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(198, 139, 44, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-md);
}

.cart-empty-graphic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(255, 243, 223, 0.9)),
    linear-gradient(135deg, rgba(198, 139, 44, 0.2), rgba(15, 23, 42, 0.05));
  border: 1px solid #f2d6a7;
  box-shadow: var(--shadow-md);
}

.cart-empty h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
}

.cart-empty p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
}

.footer {
  margin-top: 60px;
  color: #e2e8f0;
  background: linear-gradient(180deg, #0f172a, #111827);
}

.footer-main {
  padding: 42px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer-brand {
  display: grid;
  gap: 14px;
}

.footer-brand-name {
  width: fit-content;
  color: #e7c47c;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-brand img {
  height: 92px;
  width: auto;
}

.footer p,
.footer a,
.footer-note {
  color: #cbd5e1;
}

.footer h3 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-links,
.footer-list {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-note {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 3000;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .site-header-inner {
    grid-template-columns: minmax(180px, auto) minmax(260px, 1fr) auto;
  }

  .nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .hero-grid,
  .page-hero-grid,
  .cart-hero-grid,
  .contact-grid,
  .admin-hero-grid,
  .product-detail-grid,
  .cart-layout,
  .admin-layout,
  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .product-grid,
  .three-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .four-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    display: none;
  }

  .site-header {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  }

  .topbar-inner,
  .catalog-toolbar-top,
  .section-head,
  .admin-toolbar,
  .admin-row,
  .product-detail-meta {
    flex-direction: column;
    align-items: start;
  }

  .site-header-inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: 72px;
    padding-block: 8px;
  }

  .header-center {
    display: none;
  }

  .brand {
    gap: 9px;
    align-items: center;
  }

  .brand img {
    height: 48px;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    display: none;
  }

  .search-toggle {
    display: inline-grid;
  }

  .hero-copy,
  .page-hero-copy,
  .hero-card,
  .panel,
  .cart-summary-card,
  .form-card,
  .contact-card,
  .catalog-toolbar,
  .cart-item,
  .product-detail-content,
  .product-detail-purchase {
    padding: 20px;
    border-radius: 22px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(30px, 8vw, 36px);
    line-height: 1.08;
  }

  .hero-metrics,
  .stats,
  .cart-stats,
  .cart-summary-stats,
  .four-grid,
  .form-grid,
  .footer-grid,
  .cart-item-bottom,
  .product-quick-notes {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .product-grid,
  .three-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cta-row,
  .product-actions,
  .admin-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .mini-btn,
  .btn-card-detail,
  .btn-card-buy,
  .btn-whatsapp,
  .btn-maps,
  .select-shell select {
    width: 100%;
  }

  .search-shell {
    grid-template-columns: 1fr auto;
    padding: 9px 10px 9px 12px;
  }

  .search-chip {
    display: none;
  }

  .cart-preview {
    top: 86px;
  }

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

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item-media {
    min-height: 220px;
  }

  .cart-item-bottom {
    gap: 10px;
  }

  .cart-summary-card {
    position: static;
  }

  .admin-row-media {
    width: 100%;
    height: 220px;
  }

  .section {
    padding: 40px 0;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .section-head h2,
  .panel h2,
  .form-card h2 {
    font-size: clamp(24px, 6.5vw, 32px);
  }

  .hero {
    padding: 22px 0 18px;
  }

  .hero-grid,
  .page-hero-grid,
  .cart-hero-grid,
  .contact-grid,
  .admin-hero-grid {
    gap: 16px;
  }

  .hero-metrics,
  .stats,
  .cart-stats,
  .cart-summary-stats,
  .four-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-card,
  .panel,
  .contact-card,
  .form-card,
  .category-card,
  .detail-card,
  .cart-summary-card,
  .cart-item,
  .product-card {
    border-radius: 20px;
  }

  .mobile-nav {
    padding: 0;
  }

  .mobile-nav-inner {
    gap: 0;
  }

  .mobile-nav-inner > a {
    min-height: 62px;
    border-radius: 0;
    font-size: 17px;
  }

  .cart-preview {
    top: 78px;
    width: calc(100vw - 20px);
    inset-inline: 10px;
  }

  .cart-preview-card {
    max-height: calc(100dvh - 88px);
    padding: 16px;
    border-radius: 24px;
  }

  .cart-preview-head h3 {
    font-size: 18px;
  }

  .btn,
  .mini-btn,
  .btn-card-detail,
  .btn-card-buy,
  .btn-whatsapp,
  .btn-maps,
  .select-shell select {
    min-height: 48px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .utility-pill,
  .header-actions .menu-btn {
    width: auto;
    min-width: 0;
  }

  .utility-pill-cart {
    padding: 6px 10px 6px 12px;
  }

  .utility-pill-cart span {
    font-size: 14px;
  }

  .utility-pill-cart strong {
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
  }

  .utility-pill-icon {
    width: 42px;
    height: 42px;
    padding: 11px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  }

  .site-header-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    height: 46px;
  }

  .brand-title {
    font-size: 17px;
  }

  .brand-subtitle,
  .utility-pill-cart span {
    display: none;
  }

  .utility-pill-cart {
    gap: 5px;
    padding: 4px 6px;
  }

  .utility-pill-icon {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-icon-btn,
  .header-actions .menu-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .search-dialog {
    padding: 22px 18px;
    border-radius: 20px 20px 10px 10px;
  }

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

  .search-dialog-form .btn {
    width: 100%;
  }

  .search-suggestions > div {
    flex-wrap: nowrap;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .search-suggestions a {
    flex: 0 0 auto;
  }

  .hero-copy,
  .page-hero-copy,
  .hero-card,
  .panel,
  .cart-summary-card,
  .form-card,
  .contact-card,
  .catalog-toolbar,
  .cart-item,
  .product-detail-content,
  .product-detail-purchase {
    padding: 18px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 16px;
  }

  .grid {
    gap: 12px;
  }

  .cta-row,
  .product-actions,
  .admin-form-actions,
  .cart-summary-actions,
  .cart-empty-actions {
    gap: 10px;
  }

  .btn,
  .mini-btn,
  .btn-card-detail,
  .btn-card-buy,
  .btn-whatsapp,
  .btn-maps {
    width: 100%;
  }

  .product-title,
  .cart-item-topline h3,
  .spotlight-title {
    font-size: 18px;
  }

  .product-body {
    padding: 14px;
  }

  .product-media {
    padding: 12px;
  }

  .product-price {
    font-size: 20px;
  }

  .product-rating {
    font-size: 12px;
  }

  .spotlight-meta {
    font-size: 18px;
  }

  .cart-item-topline {
    flex-direction: column;
  }

  .cart-item-bottom {
    grid-template-columns: 1fr;
  }

  .cart-quantity {
    width: 100%;
    justify-content: space-between;
  }

  .cart-step-btn {
    width: 40px;
    height: 40px;
  }

  .cart-summary-head h2 {
    font-size: 26px;
  }

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

  .field input,
  .field textarea,
  .field select {
    padding: 13px 14px;
  }

  .footer-main {
    padding-top: 34px;
  }

  .featured-grid,
  .product-grid,
  .three-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phase 3 — Chinguetti Portal homepage */
.home-portal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.92%, rgba(8, 13, 24, 0.07) 50%, transparent 50.08%),
    var(--museum-white);
  border-bottom: 1px solid var(--line);
}

.home-portal-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-portal-atmosphere::before {
  content: "";
  position: absolute;
  width: min(56vw, 820px);
  aspect-ratio: 1;
  inset-block-start: -42%;
  inset-inline-end: -18%;
  border: 1px solid rgba(185, 133, 59, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(185, 133, 59, 0.04),
    0 0 0 144px rgba(41, 73, 107, 0.025);
}

.home-portal-atmosphere::after {
  content: "شنقيط";
  position: absolute;
  inset-inline-end: -0.04em;
  inset-block-end: -0.28em;
  color: rgba(8, 13, 24, 0.025);
  font-family: var(--font-display);
  font-size: clamp(170px, 26vw, 430px);
  line-height: 1;
  white-space: nowrap;
}

.home-portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
  min-height: min(760px, calc(100vh - 118px));
  padding-block: clamp(54px, 7vw, 92px);
}

.home-portal-grid > *,
.home-section-heading > *,
.home-paths-layout > *,
.home-concierge-grid > * {
  min-width: 0;
}

.home-portal-copy {
  max-width: 760px;
}

.home-kicker,
.home-section-label {
  margin: 0 0 18px;
  color: var(--brand-deep);
  font-family: var(--font-numeric);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-kicker span {
  color: var(--ink);
}

.home-portal-copy h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(52px, 7.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.home-portal-copy h1 span,
.home-portal-copy h1 em {
  display: block;
}

.home-portal-copy h1 em {
  margin-inline-start: clamp(18px, 7vw, 110px);
  color: var(--brand-deep);
  font-style: normal;
  font-weight: 400;
}

.home-portal-lead {
  max-width: 580px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.8;
}

.home-portal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  font-weight: 700;
  transition: color var(--transition), border-color var(--transition), gap var(--transition);
}

.home-text-link:hover {
  gap: 14px;
  color: var(--brand-deep);
  border-color: var(--brand);
}

.home-portal-footnote {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.home-portal-footnote span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.home-portal-footnote span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-inline: 16px;
  border-radius: 50%;
  background: var(--bronze);
}

.home-portal-footnote strong {
  color: var(--ink);
  font-family: var(--font-numeric);
  font-size: 18px;
}

.home-portal-feature {
  position: relative;
  justify-self: end;
  width: min(100%, 450px);
  min-width: 0;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--midnight);
  background-size: 30px 30px;
  border: 1px solid rgba(185, 133, 59, 0.55);
  border-radius: 220px 220px 24px 24px;
  box-shadow: 0 36px 80px rgba(8, 13, 24, 0.22);
}

.home-portal-feature::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(216, 183, 123, 0.24);
  border-radius: inherit;
  pointer-events: none;
}

.portal-frame {
  position: relative;
  z-index: 1;
  display: block;
  padding: 9px;
  background: linear-gradient(145deg, #e2c58e, #8d6029 58%, #d8b77b);
  border-radius: 190px 190px 16px 16px;
}

.portal-frame:focus-visible {
  outline-color: var(--sandstone);
  outline-offset: 6px;
}

.portal-arch {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 0.86;
  padding: clamp(22px, 3vw, 34px) clamp(18px, 2.4vw, 24px) 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(245, 244, 239, 0.9), transparent 36%),
    linear-gradient(165deg, #d5b57a 0%, #f1e6cf 48%, #a6783d 150%);
  border-radius: 180px 180px 10px 10px;
}

.portal-arch::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(8, 13, 24, 0.16);
  border-radius: inherit;
}

.portal-arch img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: clamp(8px, 1.2vw, 14px);
  object-fit: contain;
  object-position: 50% 52%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(113, 74, 31, 0.16);
  border-radius: 999px 999px 12px 12px;
  box-shadow:
    inset 0 0 0 8px rgba(245, 244, 239, 0.72),
    0 22px 32px rgba(8, 13, 24, 0.18);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portal-frame:hover .portal-arch img {
  transform: scale(1.035) translateY(-4px);
}

.portal-price {
  position: absolute;
  z-index: 2;
  inset-inline-start: 16px;
  inset-block-end: 16px;
  padding: 8px 11px;
  color: #fff;
  background: rgba(8, 13, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-family: var(--font-numeric);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.portal-feature-copy {
  position: relative;
  z-index: 1;
  padding: 20px 6px 5px;
}

.portal-feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.home-portal-feature .product-category,
.home-portal-feature .inline-badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
}

.portal-feature-copy > p {
  margin: 0 0 4px;
  color: var(--sandstone);
  font-size: 12px;
  font-weight: 700;
}

.portal-feature-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.2;
}

.portal-feature-copy > span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.home-portal-feature .product-actions {
  padding-top: 16px;
}

.home-portal-feature .btn-card-detail {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
}

.home-portal-feature .btn-card-add {
  color: var(--ink);
  background: var(--sandstone);
  border-color: var(--sandstone);
  box-shadow: none;
}

.home-values-rail {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-values-rail i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
}

.home-curation {
  background: #fff;
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.home-section-heading h2,
.home-paths-intro h2,
.home-concierge h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.home-section-note {
  padding-inline-start: 24px;
  border-inline-start: 1px solid var(--line-strong);
}

.home-section-note p,
.home-paths-intro > p:last-child {
  margin: 0 0 18px;
  color: var(--muted);
}

.home-featured-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.home-featured-grid .product-card:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-column: span 2;
}

.home-featured-grid .product-card:first-child .product-media {
  min-height: 100%;
  aspect-ratio: auto;
}

.home-featured-grid .product-card:first-child .product-body {
  padding: 24px;
}

.home-featured-grid .product-card:not(:first-child) .product-desc,
.home-featured-grid .product-card:not(:first-child) .delivery-note,
.home-featured-grid .product-card:not(:first-child) .product-price-compare,
.home-featured-grid .product-card:not(:first-child) .btn-card-detail {
  display: none;
}

.home-featured-grid .product-card:not(:first-child) .product-actions {
  display: block;
}

.home-featured-grid .product-card:not(:first-child) .btn-card-add {
  width: 100%;
}

.home-paths {
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
}

.home-paths-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(44px, 8vw, 130px);
  align-items: start;
}

.home-paths-intro {
  position: sticky;
  top: 150px;
}

.home-paths-intro h2 {
  margin-bottom: 22px;
}

.home-paths-list {
  border-bottom: 1px solid var(--line-strong);
}

.home-path {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 122px;
  padding: 18px 22px;
  border-top: 1px solid var(--line-strong);
  transition: color var(--transition), background var(--transition), padding var(--transition);
}

.home-path:hover,
.home-path:focus-visible {
  padding-inline: 30px;
  color: #fff;
  background: var(--midnight);
}

.home-path-purpose {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.home-path:hover .home-path-purpose,
.home-path:focus-visible .home-path-purpose {
  color: var(--sandstone);
}

.home-path strong {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.15;
}

.home-path-arrow {
  color: var(--brand-deep);
  font-family: var(--font-numeric);
  font-size: 26px;
  transition: transform var(--transition), color var(--transition);
}

.home-path:hover .home-path-arrow,
.home-path:focus-visible .home-path-arrow {
  color: var(--sandstone);
  transform: translate(-5px, 5px);
}

.home-concierge {
  padding-block: clamp(54px, 7vw, 86px);
  color: #fff;
  background:
    radial-gradient(circle at 92% 0%, rgba(185, 133, 59, 0.2), transparent 30%),
    var(--midnight);
}

.home-concierge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr) auto;
  gap: clamp(30px, 5vw, 72px);
  align-items: end;
}

.home-concierge .home-section-label {
  color: var(--sandstone);
}

.home-concierge h2 {
  color: #fff;
  font-size: clamp(34px, 4vw, 60px);
}

.home-concierge-grid > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.home-concierge-button {
  color: var(--ink);
  background: var(--sandstone);
  border-color: var(--sandstone);
  white-space: nowrap;
}

@keyframes home-copy-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes home-portal-enter {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.home-portal-copy > * {
  animation: home-copy-enter 680ms both cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-portal-copy > :nth-child(2) { animation-delay: 80ms; }
.home-portal-copy > :nth-child(3) { animation-delay: 150ms; }
.home-portal-copy > :nth-child(4) { animation-delay: 220ms; }
.home-portal-copy > :nth-child(5) { animation-delay: 290ms; }

.home-portal-feature {
  animation: home-portal-enter 820ms 140ms both cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 1100px) {
  .home-portal-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.64fr);
    gap: 40px;
  }

  .home-portal-copy h1 {
    font-size: clamp(50px, 7vw, 74px);
  }

  .home-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-featured-grid .product-card:first-child {
    display: flex;
    grid-column: auto;
  }

  .home-featured-grid .product-card:first-child .product-media {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .home-featured-grid .product-card:not(:first-child) .product-desc,
  .home-featured-grid .product-card:not(:first-child) .delivery-note,
  .home-featured-grid .product-card:not(:first-child) .product-price-compare,
  .home-featured-grid .product-card:not(:first-child) .btn-card-detail {
    display: revert;
  }

  .home-featured-grid .product-card:not(:first-child) .product-actions {
    display: flex;
  }

  .home-concierge-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  }

  .home-concierge-button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .home-portal-hero {
    background: var(--museum-white);
  }

  .home-portal-grid {
    grid-template-columns: 1fr;
    gap: 46px;
    min-height: 0;
    padding-block: 54px;
  }

  .home-portal-copy {
    max-width: 650px;
  }

  .home-portal-feature {
    justify-self: center;
    width: min(100%, 470px);
  }

  .home-section-heading,
  .home-paths-layout,
  .home-concierge-grid {
    grid-template-columns: 1fr;
  }

  .home-section-note {
    padding-inline-start: 0;
    padding-top: 20px;
    border-inline-start: 0;
    border-top: 1px solid var(--line-strong);
  }

  .home-paths-intro {
    position: static;
  }

  .home-concierge-button {
    grid-column: auto;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .home-portal-atmosphere::after {
    inset-block-end: 8%;
    font-size: 170px;
  }

  .home-portal-grid {
    gap: 38px;
    padding-block: 40px 48px;
  }

  .home-portal-copy h1 {
    font-size: clamp(45px, 14vw, 66px);
    line-height: 1.02;
    letter-spacing: -0.02em;
  }

  .home-portal-copy h1 em {
    margin-inline-start: 12px;
  }

  .home-portal-lead {
    margin-top: 22px;
    font-size: 16px;
  }

  .home-portal-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 26px;
  }

  .home-portal-actions .btn,
  .home-portal-actions .home-text-link {
    width: 100%;
  }

  .home-portal-actions .home-text-link {
    justify-content: space-between;
  }

  .home-portal-footnote {
    display: grid;
    gap: 8px;
    margin-top: 32px;
  }

  .home-portal-footnote span:not(:last-child)::after {
    display: none;
  }

  .home-portal-feature {
    padding: 14px;
    border-radius: 180px 180px 18px 18px;
  }

  .portal-frame {
    border-radius: 170px 170px 12px 12px;
  }

  .portal-arch {
    border-radius: 160px 160px 8px 8px;
  }

  .portal-feature-copy {
    padding-inline: 4px;
  }

  .home-portal-feature .product-actions {
    flex-direction: column;
  }

  .home-values-rail {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    gap: 8px;
    min-height: 54px;
    letter-spacing: 0;
  }

  .home-values-rail i {
    display: none;
  }

  .home-section-heading {
    gap: 24px;
    margin-bottom: 30px;
  }

  .home-section-heading h2,
  .home-paths-intro h2 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .home-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 12px;
    width: 100%;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    overscroll-behavior-inline: auto;
    scroll-snap-type: none;
  }

  .home-featured-grid .product-card {
    min-width: 0;
    scroll-snap-align: none;
  }

  .home-featured-grid .product-card:first-child {
    grid-column: auto;
  }

  .home-featured-grid .product-media {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 10px;
  }

  .home-featured-grid .product-badges {
    inset: 8px 7px auto;
  }

  .home-featured-grid .badge {
    padding: 6px 8px;
    font-size: 10px;
  }

  .home-featured-grid .product-card-cue {
    display: none;
  }

  .home-featured-grid .product-body,
  .home-featured-grid .product-card:first-child .product-body {
    padding: 12px;
  }

  .home-featured-grid .product-category {
    padding: 5px 7px;
    font-size: 9px;
  }

  .home-featured-grid .product-title {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 9px 0 7px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-featured-grid .product-card:first-child .delivery-note,
  .home-featured-grid .product-card:not(:first-child) .delivery-note {
    display: none;
  }

  .home-featured-grid .product-card:first-child .product-desc,
  .home-featured-grid .product-card:not(:first-child) .product-desc {
    display: -webkit-box;
    min-height: 4.95em;
    max-height: 4.95em;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .home-featured-grid .product-card:first-child .product-actions,
  .home-featured-grid .product-card:not(:first-child) .product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: auto;
    padding-top: 12px;
  }

  .home-featured-grid .product-card:first-child .btn-card-detail,
  .home-featured-grid .product-card:not(:first-child) .btn-card-detail {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .home-featured-grid .product-price {
    font-size: 17px;
  }

  .home-featured-grid .product-actions,
  .home-featured-grid .product-card:not(:first-child) .product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: auto;
    padding-top: 12px;
  }

  .home-featured-grid .btn-card-add,
  .home-featured-grid .product-card:not(:first-child) .btn-card-add {
    width: 100%;
    min-height: 42px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .home-featured-grid .btn-card-add img {
    width: 16px;
    height: 16px;
  }

  .home-path {
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
    min-height: 104px;
    padding-inline: 8px;
  }

  .home-path-purpose {
    grid-column: 1;
  }

  .home-path strong {
    grid-column: 1;
    font-size: 32px;
  }

  .home-path-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .home-path:hover,
  .home-path:focus-visible {
    padding-inline: 16px;
  }

  .home-concierge-grid {
    gap: 22px;
  }

  .home-concierge-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-portal-copy > *,
  .home-portal-feature {
    animation: none;
  }

  .portal-arch img,
  .home-text-link,
  .home-path,
  .home-path-arrow {
    transition: none;
  }
}

/* Keep Phase 4 mobile catalog rules above the shared grid defaults in the cascade. */
@media (max-width: 820px) {
  .catalog-sidebar-foot {
    margin-bottom: -24px;
  }
}

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

  .product-grid.catalog-product-grid .product-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    grid-template-columns: none;
    flex-direction: column;
    border-radius: 15px;
  }

  .product-grid.catalog-product-grid .product-media {
    min-height: 0;
    aspect-ratio: 1 / 0.92;
    padding: 8px;
    border-bottom: 1px solid rgba(185, 133, 59, 0.16);
  }

  .product-grid.catalog-product-grid .product-badges {
    inset: 8px 7px auto;
  }

  .product-grid.catalog-product-grid .badge {
    max-width: calc(100% - 8px);
    padding: 5px 7px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-grid.catalog-product-grid .product-body {
    min-width: 0;
    padding: 11px 10px 10px;
  }

  .product-grid.catalog-product-grid .product-topline {
    display: flex;
    min-width: 0;
  }

  .product-grid.catalog-product-grid .product-category {
    max-width: 100%;
    padding: 4px 6px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-grid.catalog-product-grid .product-title {
    display: -webkit-box;
    min-height: 2.8em;
    margin-block: 8px 7px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .product-grid.catalog-product-grid .product-price-row {
    min-width: 0;
  }

  .product-grid.catalog-product-grid .product-price {
    max-width: 100%;
    font-size: 17px;
  }

  .product-grid.catalog-product-grid .product-actions {
    display: grid;
    margin-top: auto;
    padding-top: 12px;
  }

  .product-grid.catalog-product-grid .btn-card-add {
    min-width: 0;
    min-height: 42px;
    padding-inline: 6px;
    gap: 5px;
    font-size: 10px;
  }

  .product-grid.catalog-product-grid .btn-card-add img {
    width: 15px;
    height: 15px;
  }
}

/* Phase 5 — product object room */
.product-object-room {
  position: relative;
  padding-block: 28px clamp(64px, 8vw, 110px);
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(8, 13, 24, 0.055) 50%, transparent 50.05%),
    var(--museum-white);
}

.product-object-room::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(55vw, 820px);
  aspect-ratio: 1;
  inset-inline-start: -28%;
  inset-block-start: 8%;
  border: 1px solid rgba(185, 133, 59, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(185, 133, 59, 0.025);
  pointer-events: none;
}

.product-object-room .container {
  position: relative;
  z-index: 1;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 48px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.product-breadcrumb a {
  transition: color var(--transition);
}

.product-breadcrumb a:hover {
  color: var(--brand-deep);
}

.product-breadcrumb span[aria-hidden] {
  color: var(--bronze);
}

.product-object-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(400px, 0.86fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: start;
}

.product-object-layout > * {
  min-width: 0;
}

.product-gallery-column {
  position: sticky;
  top: 136px;
  display: grid;
  gap: 16px;
}

.product-gallery-frame {
  overflow: hidden;
  color: #fff;
  background: var(--midnight);
  border: 1px solid rgba(185, 133, 59, 0.55);
  border-radius: 22px;
  box-shadow: 0 34px 76px rgba(8, 13, 24, 0.2);
}

.product-gallery-rail,
.product-gallery-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.product-gallery-rail {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-gallery-rail button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding-inline: 11px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.product-gallery-rail button:hover {
  color: var(--ink);
  background: var(--sandstone);
  border-color: var(--sandstone);
}

.product-gallery-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 0.92;
  padding: clamp(28px, 5vw, 62px);
  overflow: hidden;
  background:
    linear-gradient(rgba(8, 13, 24, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 13, 24, 0.045) 1px, transparent 1px),
    linear-gradient(150deg, #eee0c4, #f7f4ed 58%, #d8b77b);
  background-size: 36px 36px, 36px 36px, auto;
  cursor: zoom-in;
}

.product-gallery-stage::after {
  content: "";
  position: absolute;
  inset: auto 14% 6%;
  height: 12%;
  background: radial-gradient(ellipse, rgba(8, 13, 24, 0.22), transparent 68%);
  filter: blur(10px);
}

.product-gallery-orbit {
  position: absolute;
  width: 66%;
  aspect-ratio: 1;
  border: 1px solid rgba(113, 74, 31, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(113, 74, 31, 0.045),
    0 0 0 68px rgba(41, 73, 107, 0.025);
}

.product-gallery-stage img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(8, 13, 24, 0.24));
  transition: transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-gallery-stage:hover img {
  transform: scale(1.035) translateY(-4px);
}

.product-gallery-thumbnails {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  background: #0d1825;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 183, 123, 0.55) transparent;
}

.product-gallery-thumbnails button {
  position: relative;
  display: grid;
  flex: 0 0 72px;
  width: 72px;
  aspect-ratio: 1;
  padding: 5px;
  overflow: hidden;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.product-gallery-thumbnails button:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 183, 123, 0.66);
}

.product-gallery-thumbnails button[aria-current="true"] {
  background: rgba(216, 183, 123, 0.16);
  border-color: var(--sandstone);
  box-shadow: inset 0 0 0 2px #0d1825, inset 0 0 0 3px var(--sandstone);
}

.product-gallery-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-zoom-hint {
  position: absolute;
  z-index: 3;
  inset-inline-end: 18px;
  inset-block-end: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 11px;
  color: #fff;
  background: rgba(8, 13, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.product-gallery-caption {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-gallery-caption span:first-child {
  color: var(--sandstone);
}

.product-service-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line-strong);
}

.product-service-rail > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 15px;
}

.product-service-rail > div:not(:last-child) {
  border-inline-end: 1px solid var(--line);
}

.product-service-rail span {
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 800;
}

.product-service-rail strong {
  color: var(--ink-soft);
  font-size: 13px;
}

.product-dossier {
  display: grid;
  gap: 28px;
  padding-top: 22px;
  border-top: 3px solid var(--bronze);
}

.product-dossier-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-dossier .product-category {
  color: var(--brand-deep);
  background: transparent;
  border-color: rgba(185, 133, 59, 0.4);
}

.product-dossier-head > p:not(.product-dossier-description) {
  margin: 24px 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-dossier-head h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.product-dossier-description {
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.9;
}

.product-purchase-dossier {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(8, 13, 24, 0.1);
}

.product-price-block {
  display: grid;
  gap: 3px;
}

.product-price-block > span,
.product-price-block > small,
.product-delivery-line small,
.product-quantity-row > div:first-child span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.product-price-block > strong {
  color: var(--ink);
  font-family: var(--font-numeric);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
}

.product-delivery-line {
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: center;
  gap: 12px;
  padding-block: 15px;
  border-block: 1px solid var(--line);
}

.product-delivery-line > span {
  width: 10px;
  height: 10px;
  background: var(--emerald);
  border: 3px solid rgba(22, 118, 91, 0.18);
  border-radius: 50%;
  box-sizing: content-box;
}

.product-delivery-line div {
  display: grid;
  gap: 2px;
}

.product-delivery-line strong {
  color: var(--success-dark);
  font-size: 14px;
}

.product-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.product-quantity-row > div:first-child {
  display: grid;
  gap: 2px;
}

.product-quantity-row label {
  color: var(--ink);
  font-weight: 700;
}

.product-quantity-control {
  display: grid;
  grid-template-columns: 44px 54px 44px;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.product-quantity-control button {
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface-alt);
  font-family: var(--font-numeric);
  font-size: 22px;
}

.product-quantity-control button:hover {
  color: #fff;
  background: var(--midnight);
}

.product-quantity-control input {
  width: 54px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-inline: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  font-family: var(--font-numeric);
  font-weight: 700;
  appearance: textfield;
}

.product-quantity-control input::-webkit-inner-spin-button,
.product-quantity-control input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.product-order-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.product-order-total strong {
  color: var(--ink);
  font-family: var(--font-numeric);
  font-size: 20px;
}

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

.product-add-primary,
.product-whatsapp-action {
  width: 100%;
  min-height: 54px;
}

.product-add-primary {
  color: #fff;
  background: var(--midnight);
  border-color: var(--midnight);
  box-shadow: 0 12px 28px rgba(8, 13, 24, 0.2);
}

.product-add-primary img,
.product-mobile-buybar img {
  width: 19px;
  height: 19px;
}

.product-whatsapp-action {
  color: #fff;
  background: var(--emerald);
  border-color: var(--emerald);
}

.product-order-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.product-related-section {
  padding-block: clamp(56px, 8vw, 104px);
  background: #fff;
  border-top: 1px solid var(--line);
}

.product-related-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.product-related-heading p {
  margin: 0 0 5px;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
}

.product-related-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
}

.product-related-grid .product-card {
  box-shadow: 0 10px 34px rgba(8, 13, 24, 0.07);
}

.product-not-found {
  display: grid;
  justify-items: center;
  min-height: 520px;
  padding: 90px 24px;
  text-align: center;
}

.product-not-found > span {
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 84px;
  line-height: 1;
}

.product-not-found h1 {
  margin: 18px 0 8px;
  font-size: clamp(38px, 6vw, 64px);
}

.product-not-found p {
  max-width: 520px;
  margin: 0 0 26px;
  color: var(--muted);
}

.product-image-viewer {
  position: fixed;
  z-index: 7000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}

.product-image-viewer[hidden] {
  display: none;
}

.product-viewer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 13, 24, 0.84);
  backdrop-filter: blur(12px);
}

.product-viewer-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(920px, 100%);
  max-height: calc(100vh - (var(--gutter) * 2));
  padding: 46px 24px 20px;
  overflow: auto;
  background: var(--museum-white);
  border: 1px solid var(--sandstone);
  border-radius: 20px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.product-viewer-dialog img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.product-viewer-dialog p {
  margin: 14px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.product-viewer-close {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--midnight);
  border-radius: 50%;
  font-size: 25px;
}

.product-viewer-step {
  position: absolute;
  z-index: 2;
  inset-block-start: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: rgba(8, 13, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-family: var(--font-numeric);
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
}

.product-viewer-step.is-previous {
  inset-inline-start: 14px;
}

.product-viewer-step.is-next {
  inset-inline-end: 14px;
}

.product-viewer-step:hover {
  color: var(--ink);
  background: var(--sandstone);
}

body.product-viewer-open {
  overflow: hidden;
}

.product-mobile-buybar {
  display: none;
}

@media (max-width: 1080px) {
  .product-object-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .product-gallery-column {
    position: static;
  }

  .product-dossier {
    max-width: 760px;
  }
}

@media (max-width: 680px) {
  body[data-page="product"] {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .product-object-room {
    padding-block: 14px 52px;
    background: var(--museum-white);
  }

  .product-breadcrumb {
    margin-bottom: 14px;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .product-object-layout {
    gap: 34px;
  }

  .product-gallery-frame {
    margin-inline: calc(var(--gutter) * -1);
    border-inline: 0;
    border-radius: 0;
  }

  .product-gallery-stage {
    aspect-ratio: 1 / 1;
    padding: 30px;
  }

  .product-gallery-rail,
  .product-gallery-caption {
    padding-inline: var(--gutter);
  }

  .product-gallery-thumbnails {
    gap: 8px;
    padding-inline: var(--gutter);
  }

  .product-gallery-thumbnails button {
    flex-basis: 62px;
    width: 62px;
  }

  .product-viewer-step {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .product-gallery-caption span:last-child {
    display: none;
  }

  .product-service-rail {
    grid-template-columns: 1fr;
  }

  .product-service-rail > div {
    grid-template-columns: 90px 1fr;
    align-items: center;
    padding-inline: 4px;
  }

  .product-service-rail > div:not(:last-child) {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-dossier {
    gap: 22px;
    padding-top: 18px;
  }

  .product-dossier-head h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .product-dossier-description {
    margin-top: 18px;
    font-size: 16px;
  }

  .product-purchase-dossier {
    padding: 18px;
    border-radius: 16px;
  }

  .product-quantity-row {
    align-items: stretch;
    flex-direction: column;
  }

  .product-quantity-control {
    grid-template-columns: 1fr 64px 1fr;
    width: 100%;
  }

  .product-quantity-control input {
    width: 64px;
  }

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

  .product-related-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(276px, 82vw);
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .product-related-grid::-webkit-scrollbar {
    display: none;
  }

  .product-related-grid .product-card {
    scroll-snap-align: start;
  }

  .product-mobile-buybar {
    position: fixed;
    z-index: 2800;
    inset-inline: 0;
    inset-block-end: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(150px, 1.2fr);
    align-items: center;
    gap: 10px;
    min-height: 74px;
    padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
    color: #fff;
    background: rgba(8, 13, 24, 0.96);
    border-top: 1px solid rgba(216, 183, 123, 0.5);
    box-shadow: 0 -14px 38px rgba(8, 13, 24, 0.2);
    backdrop-filter: blur(14px);
  }

  .product-mobile-buybar > div {
    display: grid;
  }

  .product-mobile-buybar > div > span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
  }

  .product-mobile-buybar strong {
    font-family: var(--font-numeric);
    font-size: 14px;
  }

  .product-mobile-buybar small {
    color: var(--sandstone);
  }

  .product-mobile-buybar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 50px;
    padding-inline: 12px;
    color: var(--ink);
    background: var(--sandstone);
    border-radius: var(--radius-sm);
    font-weight: 800;
  }

  .product-viewer-dialog {
    padding: 48px 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery-stage img,
  .product-gallery-rail button {
    transition: none;
  }
}

/* Phase 6 — cart review and order ticket */
.cart-masthead {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 92px);
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(8, 13, 24, 0.06) 50%, transparent 50.05%),
    var(--surface-soft);
  border-bottom: 1px solid var(--line-strong);
}

.cart-masthead::after {
  content: "";
  position: absolute;
  width: min(48vw, 700px);
  aspect-ratio: 1;
  inset-inline-end: -20%;
  inset-block-start: -70%;
  border: 1px solid rgba(185, 133, 59, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 76px rgba(185, 133, 59, 0.03);
  pointer-events: none;
}

.cart-masthead-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: end;
}

.cart-masthead-grid > * {
  min-width: 0;
}

.cart-masthead-copy > p {
  margin: 0 0 14px;
  color: var(--brand-deep);
  font-family: var(--font-numeric);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.cart-masthead-copy h1 {
  margin: 0;
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cart-masthead-copy h1 em {
  color: var(--brand-deep);
  font-style: normal;
  font-weight: 400;
}

.cart-masthead-copy > span {
  display: block;
  max-width: 620px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 17px;
}

.cart-masthead-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1.2fr);
  align-items: stretch;
  gap: 20px;
  padding-block: 18px;
  border-block: 1px solid var(--line-strong);
}

.cart-masthead-status > div {
  display: grid;
  align-content: end;
  gap: 5px;
}

.cart-masthead-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.cart-masthead-status strong {
  color: var(--ink);
  font-family: var(--font-numeric);
  font-size: clamp(25px, 3.2vw, 44px);
  line-height: 1;
}

.cart-masthead-status > div:first-child strong {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
}

.cart-masthead-status i {
  width: 1px;
  background: linear-gradient(transparent, var(--bronze), transparent);
}

.cart-review-stage {
  padding-block: clamp(42px, 6vw, 84px);
  background: #fff;
}

.cart-review-stage .cart-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  gap: clamp(32px, 5vw, 68px);
}

.cart-review-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.cart-review-head p {
  margin: 0 0 4px;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
}

.cart-review-head h2 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.1;
}

.cart-review-head > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  font-weight: 700;
}

.cart-review-head > a:hover {
  color: var(--brand-deep);
  border-color: var(--bronze);
}

.cart-review-stage .cart-items {
  gap: 0;
  border-bottom: 1px solid var(--line-strong);
}

.cart-review-stage .cart-item {
  position: relative;
  grid-template-columns: 38px 156px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.cart-item-index {
  padding-top: 4px;
  color: var(--brand-deep);
  font-family: var(--font-numeric);
  font-size: 12px;
  font-weight: 800;
}

.cart-review-stage .cart-item-media {
  min-height: 156px;
  aspect-ratio: 1;
  padding: 10px;
  background:
    linear-gradient(rgba(8, 13, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 13, 24, 0.035) 1px, transparent 1px),
    linear-gradient(155deg, #f1e5ce, #f8f6f0);
  background-size: 24px 24px, 24px 24px, auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cart-review-stage .cart-item-content {
  gap: 10px;
}

.cart-review-stage .cart-item-topline h3 {
  margin-top: 7px;
  font-size: 24px;
}

.cart-review-stage .product-category {
  padding: 6px 9px;
  color: var(--brand-deep);
  background: transparent;
  border-color: rgba(185, 133, 59, 0.35);
  font-size: 11px;
}

.cart-remove-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding-inline: 10px;
  color: var(--danger);
  border: 1px solid rgba(177, 63, 59, 0.28);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.cart-remove-button:hover {
  color: #fff;
  background: var(--danger);
}

.cart-review-stage .cart-item-content > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item-unit-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.cart-item-unit-price strong {
  color: var(--ink);
  font-family: var(--font-numeric);
  font-size: 14px;
}

.cart-review-stage .cart-item-bottom {
  grid-template-columns: auto 1fr;
  margin-top: auto;
}

.cart-review-stage .cart-quantity {
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 9px;
}

.cart-review-stage .cart-step-btn {
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--surface-alt);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-numeric);
  font-size: 19px;
}

.cart-review-stage .cart-step-btn:hover:not(:disabled) {
  color: #fff;
  background: var(--midnight);
}

.cart-review-stage .cart-step-btn:disabled {
  opacity: 0.35;
}

.cart-review-stage .cart-quantity output {
  display: grid;
  place-items: center;
  width: 48px;
  height: 42px;
  border-inline: 1px solid var(--line);
  font-family: var(--font-numeric);
  font-weight: 700;
}

.cart-review-stage .cart-line-total {
  justify-self: end;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: end;
}

.cart-review-stage .cart-line-total strong {
  font-size: 20px;
}

.cart-order-ticket {
  position: sticky;
  top: 128px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--midnight);
  background-size: 28px 28px;
  border: 1px solid rgba(185, 133, 59, 0.6);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(8, 13, 24, 0.22);
}

.cart-order-ticket::before,
.cart-order-ticket::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  inset-block-start: 47%;
  background: #fff;
  border-radius: 50%;
}

.cart-order-ticket::before {
  inset-inline-start: -12px;
}

.cart-order-ticket::after {
  inset-inline-end: -12px;
}

.cart-ticket-topline,
.cart-ticket-head,
.cart-ticket-lines,
.cart-ticket-total,
.cart-ticket-actions,
.cart-ticket-note,
.cart-ticket-clear {
  position: relative;
  z-index: 1;
  margin-inline: 24px;
}

.cart-ticket-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  margin-inline: 0;
  padding: 14px 24px;
  color: var(--sandstone);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-numeric);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.cart-ticket-head {
  padding-block: 24px 20px;
}

.cart-ticket-head > p {
  margin: 0 0 5px;
  color: var(--sandstone);
  font-size: 12px;
  font-weight: 700;
}

.cart-ticket-head h2 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.15;
}

.cart-ticket-route {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  font-weight: 700;
}

.cart-ticket-route i {
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.cart-ticket-route .done,
.cart-ticket-route .current {
  color: var(--sandstone);
}

.cart-ticket-lines {
  padding-block: 18px;
  border-block: 1px dashed rgba(255, 255, 255, 0.2);
}

.cart-ticket-lines > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.cart-ticket-lines strong {
  color: #fff;
  font-family: var(--font-numeric);
  font-size: 14px;
}

.cart-ticket-total {
  display: grid;
  gap: 3px;
  padding-block: 22px;
}

.cart-ticket-total > span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.cart-ticket-total > strong {
  color: #fff;
  font-family: var(--font-numeric);
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.1;
}

.cart-ticket-total > small {
  color: var(--sandstone);
  font-size: 11px;
}

.cart-ticket-actions {
  display: grid;
  gap: 9px;
}

.cart-ticket-actions .btn {
  width: 100%;
  min-height: 52px;
}

.cart-whatsapp-action {
  color: #fff;
  background: var(--emerald);
  border-color: var(--emerald);
}

.cart-copy-action {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

.cart-ticket-note {
  padding-block: 14px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  line-height: 1.7;
}

.cart-ticket-clear {
  display: flex;
  justify-content: center;
  margin-inline: 0;
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-ticket-clear button {
  min-height: 38px;
  color: rgba(255, 255, 255, 0.54);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
}

.cart-ticket-clear button:hover {
  color: #fff;
  border-color: var(--sandstone);
}

.cart-mobile-checkout {
  display: none;
}

.cart-empty-state {
  display: grid;
  justify-items: center;
  min-height: 560px;
  padding: 86px 24px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(185, 133, 59, 0.1), transparent 31%),
    var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.cart-empty-icon {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  background: var(--midnight);
  border: 1px solid var(--sandstone);
  border-radius: 50%;
  box-shadow: 0 18px 38px rgba(8, 13, 24, 0.16);
}

.cart-empty-icon img {
  width: 38px;
  height: 38px;
}

.cart-empty-state > p {
  margin: 24px 0 4px;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
}

.cart-empty-state h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.1;
}

.cart-empty-state > span {
  max-width: 520px;
  margin-top: 14px;
  color: var(--muted);
}

.cart-empty-route {
  display: flex;
  align-items: center;
  margin-block: 28px;
}

.cart-empty-route i {
  display: flex;
  align-items: center;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: var(--bronze);
  border-radius: 50%;
}

.cart-empty-route i:not(:last-child)::after {
  content: "";
  display: block;
  width: 70px;
  flex: 0 0 70px;
  height: 1px;
  margin-inline-start: 10px;
  background: var(--line-strong);
}

.cart-empty-route i:not(:last-child) {
  margin-inline-end: 80px;
}

.cart-empty-state .cart-empty-actions {
  align-items: center;
  justify-content: center;
}

@media (max-width: 1080px) {
  .cart-review-stage .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-order-ticket {
    position: static;
    width: min(100%, 620px);
  }
}

@media (max-width: 760px) {
  body[data-page="cart"] {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .cart-masthead {
    padding-block: 40px;
    background: var(--surface-soft);
  }

  .cart-masthead-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cart-masthead-copy h1 {
    font-size: clamp(43px, 13vw, 62px);
    overflow-wrap: anywhere;
  }

  .cart-masthead-copy > span {
    margin-top: 20px;
    font-size: 15px;
  }

  .cart-review-stage {
    padding-block: 34px 54px;
  }

  .cart-review-head {
    align-items: start;
    flex-direction: column;
  }

  .cart-review-stage .cart-item {
    grid-template-columns: 26px 116px minmax(0, 1fr);
    gap: 10px;
    padding-block: 18px;
  }

  .cart-review-stage .cart-item-media {
    min-height: 116px;
  }

  .cart-review-stage .cart-item-topline {
    align-items: start;
  }

  .cart-review-stage .cart-item-topline h3 {
    font-size: 19px;
  }

  .cart-remove-button {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .cart-remove-button span {
    display: none;
  }

  .cart-review-stage .cart-item-content > p {
    display: none;
  }

  .cart-review-stage .cart-item-bottom {
    grid-template-columns: 1fr;
  }

  .cart-review-stage .cart-line-total {
    justify-self: stretch;
    text-align: start;
  }

  .cart-review-stage .cart-quantity {
    width: 100%;
    justify-content: space-between;
  }

  .cart-review-stage .cart-quantity output {
    width: auto;
    flex: 1;
  }

  .cart-order-ticket {
    width: 100%;
  }

  .cart-mobile-checkout {
    position: fixed;
    z-index: 2800;
    inset-inline: 0;
    inset-block-end: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(170px, 1.28fr);
    align-items: center;
    gap: 10px;
    min-height: 74px;
    padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
    color: #fff;
    background: rgba(8, 13, 24, 0.96);
    border-top: 1px solid rgba(216, 183, 123, 0.5);
    box-shadow: 0 -14px 38px rgba(8, 13, 24, 0.2);
    backdrop-filter: blur(14px);
  }

  .cart-mobile-checkout > div {
    display: grid;
  }

  .cart-mobile-checkout span {
    color: rgba(255, 255, 255, 0.56);
    font-size: 10px;
  }

  .cart-mobile-checkout strong {
    font-family: var(--font-numeric);
    font-size: 14px;
  }

  .cart-mobile-checkout > a {
    display: grid;
    place-items: center;
    min-height: 50px;
    padding-inline: 12px;
    color: var(--ink);
    background: var(--sandstone);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 800;
  }

  .cart-empty-state {
    min-height: 500px;
    padding: 64px 18px;
  }
}

@media (max-width: 480px) {
  .cart-masthead-status {
    gap: 12px;
  }

  .cart-review-stage .cart-item {
    grid-template-columns: 22px 96px minmax(0, 1fr);
  }

  .cart-review-stage .cart-item-media {
    min-height: 96px;
  }

  .cart-review-stage .cart-item-topline {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .cart-review-stage .product-category {
    font-size: 9px;
  }

  .cart-item-unit-price {
    display: grid;
    gap: 1px;
  }

  .cart-ticket-topline,
  .cart-ticket-clear {
    padding-inline: 18px;
  }

  .cart-ticket-head,
  .cart-ticket-lines,
  .cart-ticket-total,
  .cart-ticket-actions,
  .cart-ticket-note {
    margin-inline: 18px;
  }

  .cart-empty-state .cart-empty-actions {
    width: 100%;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-remove-button,
  .cart-review-head > a {
    transition: none;
  }
}

/* Phase 7 — concierge contact and inquiry docket */
.contact-concierge-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(68px, 8vw, 118px) 0 0;
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(113, 74, 31, .1) 50%, transparent calc(50% + .5px)),
    linear-gradient(rgba(8, 13, 24, .035) 1px, transparent 1px),
    var(--museum-white);
  background-size: 100% 100%, 100% 84px, auto;
}

.contact-concierge-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(52vw, 760px);
  aspect-ratio: 1;
  inset: auto auto -48% -13%;
  border: 1px solid rgba(185, 133, 59, .28);
  border-radius: 50%;
  box-shadow: 0 0 0 76px rgba(185, 133, 59, .035), 0 0 0 152px rgba(185, 133, 59, .025);
}

.contact-concierge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 116px);
}

.contact-concierge-copy {
  max-width: 710px;
  padding-block: 24px 68px;
}

.contact-kicker,
.contact-section-head p,
.contact-answers-intro > p {
  margin: 0 0 18px;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-concierge-copy h1 {
  margin: 0;
  font-size: clamp(52px, 6.7vw, 104px);
  line-height: .92;
  letter-spacing: -.045em;
}

.contact-concierge-copy h1 em {
  color: var(--brand-deep);
  font-style: normal;
}

.contact-concierge-copy > p:not(.contact-kicker) {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.9;
}

.contact-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 30px;
  border-bottom: 1px solid var(--ink);
  font-weight: 800;
}

.contact-hero-action span {
  color: var(--bronze);
  font-family: var(--font-numeric);
  transition: transform var(--transition);
}

.contact-hero-action:hover span {
  transform: translateY(4px);
}

.contact-channel-ledger {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    var(--midnight);
  background-size: 100% 54px, 54px 100%, auto;
  border: 1px solid rgba(216, 183, 123, .62);
  border-radius: 4px 4px 58px 4px;
  box-shadow: var(--shadow-lg);
}

.contact-channel-ledger::after {
  content: "";
  position: absolute;
  inset: auto auto -34px -34px;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(216, 183, 123, .6);
  border-radius: 50%;
  box-shadow: 0 0 0 10px var(--midnight), 0 0 0 11px rgba(216, 183, 123, .2);
}

.contact-ledger-head {
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: var(--sandstone);
  font-family: var(--font-numeric);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.contact-ledger-head strong {
  padding-inline-start: 16px;
  border-inline-start: 1px solid rgba(255, 255, 255, .22);
}

.contact-channel {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 18px 22px;
  border-bottom: 1px dashed rgba(255, 255, 255, .18);
  transition: background var(--transition), padding-inline var(--transition);
}

.contact-channel:last-of-type {
  border-bottom: 0;
}

.contact-channel:hover {
  padding-inline: 28px 20px;
  background: rgba(255, 255, 255, .055);
}

.contact-channel-primary {
  background: rgba(22, 118, 91, .2);
}

.contact-channel-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--sandstone);
  border: 1px solid rgba(216, 183, 123, .35);
  border-radius: 50%;
}

.contact-channel > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.contact-channel small {
  color: rgba(255, 255, 255, .57);
  font-size: 11px;
}

.contact-channel strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-channel-arrow {
  color: var(--sandstone);
  font-family: var(--font-numeric);
  font-weight: 800;
}

.contact-route {
  display: grid;
  grid-template-columns: 1fr minmax(40px, 100px) 1fr minmax(40px, 100px) 1fr;
  align-items: center;
  margin-top: clamp(52px, 8vw, 100px);
  padding-block: 22px;
  border-top: 1px solid var(--line-strong);
}

.contact-route div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.contact-route strong {
  font-size: 15px;
}

.contact-route span {
  color: var(--muted);
  font-size: 12px;
}

.contact-route i {
  height: 1px;
  margin-inline: 16px;
  background: var(--line-strong);
}

.contact-dispatch-section {
  padding: clamp(70px, 9vw, 132px) 0;
  background: #fff;
}

.contact-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.contact-section-head p {
  margin-bottom: 8px;
}

.contact-section-head h2,
.contact-answers-intro h2 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1;
}

.contact-section-head > span {
  max-width: 380px;
  color: var(--muted);
  font-size: 13px;
}

.contact-intent-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
  border: 1px solid var(--line);
}

.contact-intent-picker button {
  position: relative;
  display: grid;
  min-height: 144px;
  padding: 22px;
  text-align: start;
  border-inline-end: 1px solid var(--line);
  transition: color var(--transition), background var(--transition);
}

.contact-intent-picker button:last-child {
  border-inline-end: 0;
}

.contact-intent-picker button > span {
  color: var(--bronze);
  font-family: var(--font-numeric);
  font-size: 10px;
  font-weight: 800;
}

.contact-intent-picker button strong {
  align-self: end;
  margin-top: 18px;
  font-size: 18px;
}

.contact-intent-picker button small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.contact-intent-picker button[aria-pressed="true"] {
  color: #fff;
  background: var(--atlantic);
}

.contact-intent-picker button[aria-pressed="true"] small,
.contact-intent-picker button[aria-pressed="true"] > span {
  color: rgba(255, 255, 255, .7);
}

.contact-intent-picker button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: auto 22px 0;
  height: 4px;
  background: var(--sandstone);
}

.contact-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(330px, .64fr);
  align-items: start;
  gap: 28px;
}

.contact-form-panel {
  scroll-margin-top: 130px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.contact-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-panel-heading > div {
  display: grid;
  gap: 3px;
}

.contact-panel-heading span {
  color: var(--muted);
  font-size: 11px;
}

.contact-panel-heading strong {
  font-size: 20px;
}

.contact-panel-heading button {
  min-height: 40px;
  color: var(--danger);
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
}

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

.contact-form-grid .field {
  gap: 8px;
}

.contact-form-grid label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.contact-form-grid label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.contact-form-grid :is(input, select, textarea) {
  width: 100%;
  border-color: var(--line-strong);
  border-radius: 4px;
  background: #fff;
}

.contact-form-grid :is(input, select):focus,
.contact-form-grid textarea:focus {
  border-color: var(--atlantic);
  box-shadow: inset 3px 0 0 var(--atlantic);
}

.contact-form-grid textarea {
  min-height: 168px;
  resize: vertical;
}

.contact-field-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
}

.contact-field-meta b {
  color: var(--ink);
  font-family: var(--font-numeric);
}

.contact-submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 6px;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 230px;
  min-height: 56px;
  color: var(--ink);
  background: var(--sandstone);
  border-radius: 4px;
  box-shadow: none;
}

.contact-submit:hover {
  color: #fff;
  background: var(--brand-deep);
  transform: translateY(-2px);
}

.contact-submit-row p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.contact-inquiry-docket {
  position: sticky;
  top: 118px;
  overflow: hidden;
  min-height: 560px;
  color: #10273b;
  border: 1px solid #9aafb8;
  border-radius: 3px;
  background:
    linear-gradient(rgba(16, 39, 59, .055) 1px, transparent 1px),
    #dce7e8;
  background-size: 100% 34px, auto;
  box-shadow: 13px 13px 0 #eef1ed, 14px 14px 0 var(--line-strong);
}

.contact-inquiry-docket::before,
.contact-inquiry-docket::after {
  content: "";
  position: absolute;
  top: 37%;
  width: 20px;
  height: 20px;
  border: 1px solid #9aafb8;
  border-radius: 50%;
  background: #fff;
}

.contact-inquiry-docket::before { right: -11px; }
.contact-inquiry-docket::after { left: -11px; }

.contact-docket-topline,
.contact-docket-foot {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  color: #29496b;
  font-family: var(--font-numeric);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.contact-docket-topline {
  border-bottom: 1px solid rgba(16, 39, 59, .24);
}

.contact-docket-head {
  padding: 28px 28px 22px;
}

.contact-docket-head p {
  margin: 0 0 4px;
  color: #526c77;
  font-size: 11px;
}

.contact-docket-head h3 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
}

.contact-docket-head > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 4px 10px;
  color: #526c77;
  border: 1px solid #9aafb8;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.contact-docket-head > span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8299a1;
}

.contact-docket-head > span[data-ready="true"] {
  color: var(--success-dark);
  border-color: rgba(22, 118, 91, .42);
}

.contact-docket-head > span[data-ready="true"]::before {
  background: var(--success);
}

.contact-docket-details {
  margin: 0;
  padding: 0 28px;
  border-block: 1px dashed rgba(16, 39, 59, .3);
}

.contact-docket-details div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(16, 39, 59, .12);
}

.contact-docket-details div:last-child {
  border-bottom: 0;
}

.contact-docket-details dt {
  color: #526c77;
  font-size: 11px;
}

.contact-docket-details dd {
  overflow: hidden;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-docket-message {
  min-height: 150px;
  padding: 24px 28px;
}

.contact-docket-message span {
  color: #526c77;
  font-size: 10px;
}

.contact-docket-message p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.9;
}

.contact-docket-foot {
  position: absolute;
  inset: auto 0 0;
  border-top: 1px solid rgba(16, 39, 59, .24);
}

.contact-answers {
  padding: clamp(70px, 9vw, 126px) 0;
  color: #fff;
  background: var(--midnight);
}

.contact-answers-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 9vw, 130px);
}

.contact-answers-intro > p {
  color: var(--sandstone);
}

.contact-answers-intro h2 {
  max-width: 450px;
}

.contact-answers-intro > span {
  display: block;
  max-width: 390px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .58);
}

.contact-answer-list {
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.contact-answer-list details {
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.contact-answer-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 86px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 700;
}

.contact-answer-list summary::-webkit-details-marker { display: none; }

.contact-answer-list summary span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--sandstone);
  border: 1px solid rgba(216, 183, 123, .45);
  border-radius: 50%;
  font-family: var(--font-numeric);
  transition: transform var(--transition);
}

.contact-answer-list details[open] summary span {
  transform: rotate(45deg);
}

.contact-answer-list details p {
  max-width: 650px;
  margin: -4px 0 0;
  padding: 0 0 28px;
  color: rgba(255, 255, 255, .62);
}

.contact-mobile-action {
  display: none;
}

@media (max-width: 1050px) {
  .contact-concierge-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 44px;
  }

  .contact-concierge-copy h1 {
    font-size: clamp(52px, 7.8vw, 76px);
  }

  .contact-workbench {
    grid-template-columns: 1fr;
  }

  .contact-inquiry-docket {
    position: relative;
    top: auto;
    min-height: 500px;
  }
}

@media (max-width: 820px) {
  .contact-concierge-hero {
    padding-top: 54px;
  }

  .contact-concierge-grid,
  .contact-answers-grid {
    grid-template-columns: 1fr;
  }

  .contact-concierge-copy {
    padding-bottom: 14px;
  }

  .contact-channel-ledger {
    max-width: 620px;
  }

  .contact-route {
    margin-top: 56px;
  }

  .contact-intent-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-intent-picker button:nth-child(2) {
    border-inline-end: 0;
  }

  .contact-intent-picker button:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  body[data-page="contact"] {
    padding-bottom: 76px;
  }

  .contact-concierge-hero {
    padding-top: 36px;
    background-size: 100% 100%, 100% 64px, auto;
  }

  .contact-concierge-copy h1 {
    font-size: clamp(48px, 15vw, 66px);
    line-height: .94;
  }

  .contact-concierge-copy > p:not(.contact-kicker) {
    margin-top: 22px;
    font-size: 16px;
  }

  .contact-channel-ledger {
    border-radius: 4px 4px 42px 4px;
  }

  .contact-channel {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    min-height: 84px;
    padding: 14px 16px;
  }

  .contact-channel-icon {
    width: 40px;
    height: 40px;
  }

  .contact-channel strong {
    font-size: 14px;
  }

  .contact-route {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 48px;
  }

  .contact-route div {
    display: grid;
    gap: 1px;
  }

  .contact-route i {
    display: none;
  }

  .contact-route span {
    font-size: 10px;
  }

  .contact-section-head {
    display: grid;
  }

  .contact-section-head h2,
  .contact-answers-intro h2 {
    font-size: 42px;
  }

  .contact-intent-picker button {
    min-height: 126px;
    padding: 16px;
  }

  .contact-intent-picker button strong {
    font-size: 15px;
  }

  .contact-form-panel {
    padding: 22px 16px;
  }

  .contact-panel-heading {
    align-items: end;
  }

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

  .contact-submit-row {
    display: grid;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-inquiry-docket {
    min-height: 530px;
    margin-inline: 2px 14px;
  }

  .contact-docket-head,
  .contact-docket-message {
    padding-inline: 22px;
  }

  .contact-docket-details {
    padding-inline: 22px;
  }

  .contact-mobile-action {
    position: fixed;
    z-index: 920;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    color: #fff;
    background: rgba(8, 13, 24, .96);
    border-top: 1px solid rgba(216, 183, 123, .45);
    backdrop-filter: blur(14px);
  }

  .contact-mobile-action div {
    display: grid;
  }

  .contact-mobile-action span {
    color: rgba(255, 255, 255, .55);
    font-size: 9px;
  }

  .contact-mobile-action strong {
    font-size: 13px;
  }

  .contact-mobile-action a {
    display: grid;
    min-width: 116px;
    min-height: 46px;
    padding: 8px 16px;
    place-items: center;
    color: var(--ink);
    background: var(--sandstone);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .contact-intent-picker {
    grid-template-columns: 1fr;
  }

  .contact-intent-picker button,
  .contact-intent-picker button:nth-child(2) {
    min-height: 112px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-intent-picker button:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-hero-action span,
  .contact-channel,
  .contact-intent-picker button,
  .contact-answer-list summary span,
  .contact-submit {
    transition: none;
  }

  .contact-submit:hover,
  .contact-hero-action:hover span {
    transform: none;
  }
}

/* Phase 8 — catalog registrar admin */
.admin-access-gate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(820px, calc(100vh - 120px));
  padding: clamp(64px, 8vw, 112px) 0;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    #10283a;
  background-size: 72px 72px;
}

.admin-access-gate::before {
  content: "REGISTER";
  position: absolute;
  z-index: -1;
  inset: auto -2vw -10vw auto;
  color: rgba(255, 255, 255, .025);
  font-family: var(--font-numeric);
  font-size: clamp(140px, 24vw, 390px);
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: 1;
  direction: ltr;
}

.admin-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, .72fr);
  align-items: center;
  gap: clamp(58px, 10vw, 150px);
}

.admin-access-story {
  max-width: 680px;
}

.admin-overline {
  margin: 0 0 20px;
  color: var(--sandstone);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.admin-access-story h1,
.admin-control-copy h1 {
  margin: 0;
  font-size: clamp(62px, 8vw, 118px);
  letter-spacing: -.045em;
  line-height: .88;
}

.admin-access-story h1 em,
.admin-control-copy h1 em {
  color: var(--sandstone);
  font-style: normal;
}

.admin-access-story > p:not(.admin-overline) {
  max-width: 590px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 18px;
}

.admin-access-route {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
}

.admin-access-route span {
  display: grid;
  gap: 2px;
  color: var(--sandstone);
  font-family: var(--font-numeric);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.admin-access-route b {
  color: rgba(255, 255, 255, .62);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.admin-access-route i {
  width: clamp(24px, 3vw, 54px);
  height: 1px;
  background: rgba(216, 183, 123, .38);
}

.admin-access-pass.admin-auth-card {
  position: relative;
  grid-column: auto;
  justify-self: stretch;
  width: auto;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--sandstone);
  border-radius: 3px 3px 50px 3px;
  background:
    linear-gradient(rgba(8, 13, 24, .035) 1px, transparent 1px),
    #f5f1e7;
  background-size: 100% 42px, auto;
  box-shadow: 24px 24px 0 rgba(4, 12, 21, .24);
}

.admin-access-pass::before,
.admin-access-pass::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 48%;
  width: 24px;
  height: 24px;
  border: 1px solid var(--sandstone);
  border-radius: 50%;
  background: #10283a;
}

.admin-access-pass::before { right: -13px; }
.admin-access-pass::after { left: -13px; }

.admin-pass-topline {
  display: flex;
  justify-content: space-between;
  padding: 16px 22px;
  color: var(--brand-deep);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-numeric);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  direction: ltr;
}

.admin-pass-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 16px;
  padding: 28px 30px 22px;
}

.admin-pass-head img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.admin-pass-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.admin-pass-head h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
}

.admin-pass-lock {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--atlantic);
}

.admin-login-form {
  display: grid;
  gap: 18px;
  padding: 16px 30px 28px;
}

.admin-login-form label {
  font-size: 12px;
}

.admin-login-form input {
  width: 100%;
  min-height: 54px;
  border-color: var(--line-strong);
  border-radius: 3px;
  background: rgba(255, 255, 255, .72);
}

.admin-password-field {
  position: relative;
}

.admin-password-field input {
  padding-inline-end: 74px;
}

.admin-password-field button {
  position: absolute;
  inset: 7px auto 7px 7px;
  min-width: 58px;
  color: var(--atlantic);
  border-inline-start: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
}

.admin-login-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding-inline: 20px;
  color: #fff;
  border-radius: 3px;
  background: var(--atlantic);
  box-shadow: none;
}

.admin-login-submit:hover {
  background: #183650;
  transform: translateY(-2px);
}

.admin-login-submit.is-loading {
  cursor: wait;
}

.admin-auth-status {
  min-height: 56px;
  margin: 0;
  padding: 14px 30px;
  color: var(--ink-soft);
  border-block: 1px dashed var(--line-strong);
  font-size: 11px;
}

.admin-service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 30px 24px;
}

.admin-service-strip span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-numeric);
  font-size: 8px;
  font-weight: 700;
}

.admin-service-strip i,
.admin-session-live i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(22, 118, 91, .13);
}

.admin-control-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 8vw, 116px) 0;
  color: #fff;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(255, 255, 255, .08) 50%, transparent calc(50% + .5px)),
    var(--atlantic);
}

.admin-control-hero::after {
  content: "CATALOG";
  position: absolute;
  inset: auto auto -44px -18px;
  color: rgba(255, 255, 255, .035);
  font-family: var(--font-numeric);
  font-size: clamp(100px, 18vw, 260px);
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: .7;
  direction: ltr;
}

.admin-control-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .7fr);
  align-items: end;
  gap: clamp(50px, 9vw, 130px);
}

.admin-control-copy h1 {
  font-size: clamp(58px, 7.4vw, 104px);
}

.admin-control-copy > p:not(.admin-overline) {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .66);
  font-size: 17px;
}

.admin-control-register {
  border-top: 1px solid rgba(255, 255, 255, .32);
}

.admin-control-register > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.admin-control-register span {
  color: rgba(255, 255, 255, .57);
  font-size: 11px;
}

.admin-control-register strong {
  font-family: var(--font-numeric);
  font-size: 17px;
}

.admin-session-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bcebdc;
}

.admin-control-register button {
  min-height: 44px;
  margin-top: 18px;
  padding-inline: 0 18px;
  color: var(--sandstone);
  border-bottom: 1px solid currentColor;
  font-weight: 800;
}

.admin-registry {
  padding: clamp(60px, 7vw, 100px) 0 clamp(90px, 10vw, 150px);
  background: #fff;
}

.admin-registry-grid {
  display: grid;
  grid-template-columns: minmax(390px, .76fr) minmax(0, 1.24fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.admin-composer {
  position: sticky;
  top: 116px;
  scroll-margin-top: 116px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
}

.admin-composer-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.admin-composer-heading > div {
  min-width: 0;
}

.admin-composer-heading span,
.admin-catalog-heading p {
  display: block;
  margin: 0 0 4px;
  color: var(--brand-deep);
  font-size: 10px;
  font-weight: 800;
}

.admin-composer-heading h2 {
  margin: 0;
  font-size: 28px;
}

.admin-composer-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.admin-composer-heading > strong {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--success-dark);
  border: 1px solid rgba(22, 118, 91, .3);
  border-radius: 999px;
  font-size: 9px;
}

.admin-composer-heading > strong[data-dirty="true"] {
  color: var(--brand-deep);
  border-color: rgba(185, 133, 59, .48);
  background: rgba(216, 183, 123, .16);
}

.admin-live-preview {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  min-height: 158px;
  padding: 18px 26px;
  color: #fff;
  background: #10283a;
}

.admin-preview-media {
  position: relative;
  display: grid;
  min-height: 120px;
  padding: 8px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(216, 183, 123, .32);
  background: rgba(255, 255, 255, .06);
}

.admin-preview-media img {
  width: 100%;
  height: 110px;
  object-fit: contain;
}

.admin-preview-media span {
  position: absolute;
  inset: 7px 7px auto auto;
  max-width: calc(100% - 14px);
  padding: 3px 7px;
  overflow: hidden;
  color: var(--ink);
  background: var(--sandstone);
  font-size: 8px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-preview-copy {
  align-self: center;
  min-width: 0;
}

.admin-preview-copy small {
  color: var(--sandstone);
  font-size: 9px;
  font-weight: 800;
}

.admin-preview-copy h3 {
  margin: 4px 0;
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-preview-copy p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-preview-copy > strong {
  color: #fff;
  font-family: var(--font-numeric);
  font-size: 16px;
}

.admin-product-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 26px;
}

.admin-product-form label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}

.admin-product-form label span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
}

.admin-product-form label b {
  color: var(--ink);
  font-family: var(--font-numeric);
}

.admin-product-form :is(input:not([type="file"]), textarea, select) {
  width: 100%;
  min-height: 48px;
  border-color: var(--line-strong);
  border-radius: 3px;
  background: #fff;
}

.admin-product-form textarea {
  min-height: 112px;
  resize: vertical;
}

.admin-image-field {
  position: relative;
}

.admin-image-field > input {
  position: absolute;
  z-index: 2;
  inset: 24px 0 0;
  width: 100%;
  height: calc(100% - 24px);
  cursor: pointer;
  opacity: 0;
}

.admin-image-field:focus-within .admin-image-dropcopy {
  outline: 3px solid color-mix(in srgb, var(--focus) 42%, transparent);
  outline-offset: 3px;
}

.admin-image-dropcopy {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  color: var(--atlantic);
  border: 1px dashed #9caaa9;
  background: #f2f5f2;
}

.admin-image-dropcopy > span {
  display: grid;
  min-width: 0;
}

.admin-image-dropcopy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-image-dropcopy small {
  color: var(--muted);
  font-size: 9px;
}

.admin-image-queue {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.admin-image-queue[hidden] {
  display: none;
}

.admin-image-queue-item {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 5px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.admin-image-queue-item.is-cover {
  border-color: var(--bronze);
  box-shadow: inset 0 0 0 1px var(--bronze);
}

.admin-image-queue-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--surface-soft);
}

.admin-image-queue-item figcaption {
  padding: 5px 2px 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-image-queue-item.is-cover figcaption {
  color: var(--brand-deep);
}

.admin-image-queue-item button {
  position: absolute;
  inset: 8px 8px auto auto;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: rgba(8, 13, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}

.admin-image-queue-item button:hover {
  background: var(--danger);
}

.admin-save-row {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

.admin-save-product,
.admin-cancel-edit {
  min-height: 52px;
  border-radius: 3px;
  box-shadow: none;
}

.admin-save-product {
  flex: 1;
  color: #fff;
  background: var(--atlantic);
}

.admin-save-product:hover {
  background: #183650;
}

.admin-cancel-edit {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: #fff;
}

.admin-catalog-register {
  min-width: 0;
}

.admin-catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-catalog-heading h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
}

.admin-catalog-heading > span {
  color: var(--muted);
  font-family: var(--font-numeric);
  font-size: 11px;
}

.admin-home-curation {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, .76fr) minmax(210px, .68fr) minmax(280px, 1fr);
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
  padding: 22px 24px 16px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(216, 183, 123, .3);
  border-inline-start: 5px solid var(--sandstone);
  border-radius: 3px 3px 26px 3px;
  background:
    linear-gradient(120deg, rgba(216, 183, 123, .1), transparent 42%),
    var(--ink);
  box-shadow: 10px 12px 0 rgba(8, 13, 24, .08);
}

.admin-home-curation-copy > span {
  display: block;
  margin-bottom: 4px;
  color: var(--sandstone);
  font-size: 9px;
  font-weight: 800;
}

.admin-home-curation-copy h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.08;
}

.admin-home-curation-copy p {
  max-width: 32ch;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  line-height: 1.65;
}

.admin-home-current {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding-inline: 18px;
  border-inline: 1px solid rgba(255, 255, 255, .14);
}

.admin-home-current img {
  width: 64px;
  height: 70px;
  padding: 5px;
  object-fit: contain;
  border: 1px solid rgba(216, 183, 123, .38);
  border-radius: 2px 2px 20px 2px;
  background: #fff;
}

.admin-home-current div {
  min-width: 0;
}

.admin-home-current small {
  display: block;
  margin-bottom: 4px;
  color: var(--sandstone);
  font-size: 8px;
}

.admin-home-current strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-home-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
}

.admin-home-control label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: rgba(255, 255, 255, .68);
  font-size: 8px;
  font-weight: 700;
}

.admin-home-control select,
.admin-home-control button {
  min-height: 46px;
  border-radius: 2px;
}

.admin-home-control select {
  width: 100%;
  min-width: 0;
  padding-inline: 12px 34px;
  color: var(--ink);
  border-color: rgba(216, 183, 123, .52);
  background-color: #fff;
}

.admin-home-control button {
  padding-inline: 16px;
  color: var(--ink);
  border: 1px solid var(--sandstone);
  background: var(--sandstone);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-home-control button:hover {
  color: #fff;
  border-color: #fff;
  background: transparent;
}

.admin-home-control :is(button, select):disabled {
  cursor: not-allowed;
  opacity: .55;
}

.admin-home-status {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 11px;
  color: rgba(255, 255, 255, .58);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 9px;
}

.admin-catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .42fr);
  gap: 12px;
  margin-bottom: 16px;
}

.admin-catalog-tools label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.admin-catalog-tools :is(input, select) {
  width: 100%;
  min-height: 48px;
  border-color: var(--line-strong);
  border-radius: 3px;
  background: var(--surface-soft);
}

.admin-list {
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.admin-record {
  display: grid;
  grid-template-columns: 34px 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.admin-record.is-home-featured {
  border-inline-start: 3px solid var(--sandstone);
  background: linear-gradient(90deg, rgba(216, 183, 123, .08), transparent 46%);
}

.admin-home-featured-mark {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 8px;
  color: #fff;
  border-radius: 999px;
  background: var(--atlantic);
  font-size: 8px;
  font-weight: 800;
}

.admin-record-index {
  align-self: start;
  padding-top: 3px;
  color: var(--brand-deep);
  font-family: var(--font-numeric);
  font-size: 9px;
  font-weight: 800;
}

.admin-record .admin-row-media {
  width: 104px;
  height: 104px;
  padding: 7px;
  border-radius: 3px;
  background: var(--surface-soft);
}

.admin-record .admin-row-content {
  min-width: 0;
  gap: 5px;
}

.admin-record .admin-row-meta {
  justify-content: start;
}

.admin-record .product-category,
.admin-record .badge {
  font-size: 8px;
}

.admin-record h3 {
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-record p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-record-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.admin-record-price > span {
  color: var(--muted);
  font-size: 8px;
}

.admin-record-price strong {
  color: var(--brand-deep);
  font-family: var(--font-numeric);
  font-size: 13px;
}

.admin-record-actions {
  display: grid;
  min-width: 68px;
  gap: 5px;
}

.admin-record-actions :is(a, button) {
  display: grid;
  min-height: 34px;
  padding: 5px 10px;
  place-items: center;
  color: var(--atlantic);
  border: 1px solid var(--line);
  font-size: 9px;
  font-weight: 800;
}

.admin-record-actions :is(a, button):hover {
  color: #fff;
  border-color: var(--atlantic);
  background: var(--atlantic);
}

.admin-record-actions .danger {
  color: var(--danger);
}

.admin-record-actions .danger:hover {
  border-color: var(--danger);
  background: var(--danger);
}

@media (max-width: 1080px) {
  .admin-home-curation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-home-curation-copy {
    grid-column: 1 / -1;
  }

  .admin-access-grid,
  .admin-control-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .84fr);
    gap: 50px;
  }

  .admin-access-story h1 {
    font-size: clamp(58px, 8vw, 82px);
  }

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

  .admin-composer {
    position: relative;
    top: auto;
  }
}

@media (max-width: 820px) {
  .admin-access-grid,
  .admin-control-grid {
    grid-template-columns: 1fr;
  }

  .admin-access-story {
    max-width: 620px;
  }

  .admin-access-pass.admin-auth-card {
    width: min(100%, 600px);
  }

  .admin-control-register {
    max-width: 600px;
  }
}

@media (max-width: 620px) {
  .admin-home-curation {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 16px 15px;
    border-radius: 3px 3px 24px 3px;
    box-shadow: 7px 8px 0 rgba(8, 13, 24, .08);
  }

  .admin-home-curation-copy {
    grid-column: auto;
  }

  .admin-home-current {
    padding: 14px 0;
    border-inline: 0;
    border-block: 1px solid rgba(255, 255, 255, .14);
  }

  .admin-home-control {
    grid-template-columns: 1fr;
  }

  .admin-home-control button {
    width: 100%;
  }

  .admin-access-gate {
    min-height: auto;
    padding: 48px 0 70px;
  }

  .admin-access-story h1,
  .admin-control-copy h1 {
    font-size: clamp(52px, 16vw, 70px);
  }

  .admin-access-story > p:not(.admin-overline) {
    margin-top: 24px;
    font-size: 15px;
  }

  .admin-access-route {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
  }

  .admin-access-route i {
    display: none;
  }

  .admin-access-pass.admin-auth-card {
    border-radius: 3px 3px 38px 3px;
    box-shadow: 12px 12px 0 rgba(4, 12, 21, .24);
  }

  .admin-pass-head {
    grid-template-columns: 46px minmax(0, 1fr) 42px;
    padding: 22px 20px 16px;
  }

  .admin-pass-head img {
    width: 46px;
    height: 46px;
  }

  .admin-pass-lock {
    width: 42px;
    height: 42px;
  }

  .admin-login-form {
    padding: 14px 20px 22px;
  }

  .admin-auth-status,
  .admin-service-strip {
    padding-inline: 20px;
  }

  .admin-service-strip {
    grid-template-columns: 1fr;
  }

  .admin-control-hero {
    padding: 58px 0 70px;
  }

  .admin-registry {
    padding-top: 36px;
  }

  .admin-composer-heading {
    display: grid;
    padding: 20px 16px;
  }

  .admin-composer-heading > strong {
    justify-self: start;
  }

  .admin-live-preview {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 16px;
  }

  .admin-product-form {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .admin-save-row {
    position: sticky;
    z-index: 5;
    bottom: 0;
    margin: 0 -16px -20px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(247, 245, 239, .96);
    backdrop-filter: blur(12px);
  }

  .admin-catalog-heading {
    align-items: start;
  }

  .admin-catalog-tools {
    grid-template-columns: 1fr;
  }

  .admin-record {
    grid-template-columns: 26px 82px minmax(0, 1fr);
    gap: 10px;
  }

  .admin-record .admin-row-media {
    width: 82px;
    height: 92px;
  }

  .admin-record-actions {
    grid-column: 2 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-record-actions :is(a, button) {
    min-height: 40px;
  }
}

@media (max-width: 390px) {
  .admin-live-preview {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .admin-preview-media img {
    height: 88px;
  }

  .admin-record {
    grid-template-columns: 20px 72px minmax(0, 1fr);
  }

  .admin-record .admin-row-media {
    width: 72px;
    height: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-login-submit,
  .admin-record-actions :is(a, button) {
    transition: none;
  }

  .admin-login-submit:hover {
    transform: none;
  }
}

/* Phase 9 — launch polish, resilience, and accessibility */
.store-scroll-progress {
  position: fixed;
  z-index: 10020;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
  background: rgba(8, 13, 24, .08);
}

.store-scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--sandstone), var(--bronze), var(--brand-deep));
  transform: scaleX(var(--store-progress, 0));
  transform-origin: right center;
  transition: transform 80ms linear;
}

.store-back-to-top {
  position: fixed;
  z-index: 910;
  inset: auto auto 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 76px;
  min-height: 44px;
  padding: 8px 12px;
  color: #fff;
  border: 1px solid rgba(216, 183, 123, .45);
  border-radius: 999px;
  background: rgba(8, 13, 24, .94);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  backdrop-filter: blur(12px);
}

.store-back-to-top span {
  font-size: 10px;
  font-weight: 800;
}

.store-back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.store-back-to-top:hover {
  background: var(--brand-deep);
}

.store-connection-status {
  position: fixed;
  z-index: 10010;
  inset: auto 50% 24px auto;
  width: min(calc(100% - 32px), 620px);
  padding: 13px 18px;
  color: #fff;
  border: 1px solid rgba(216, 183, 123, .5);
  border-radius: 3px;
  background: var(--success-dark);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transform: translateX(50%);
}

.store-connection-status.offline {
  background: #4b2b20;
}

.field-invalid label {
  color: var(--danger);
}

.field-invalid :is(input, textarea, select),
:is(input, textarea, select)[aria-invalid="true"] {
  border-color: var(--danger) !important;
  box-shadow: inset 3px 0 0 var(--danger) !important;
}

.store-image-fallback {
  padding: clamp(12px, 8%, 34px) !important;
  object-fit: contain !important;
  background:
    linear-gradient(rgba(185, 133, 59, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 133, 59, .08) 1px, transparent 1px),
    var(--surface-soft) !important;
  background-size: 22px 22px !important;
}

body.store-ready > main {
  animation: store-page-settle 480ms cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes store-page-settle {
  from {
    opacity: .86;
  }
  to {
    opacity: 1;
  }
}

:where(.btn, .mini-btn, .product-actions button, .product-actions a, .utility-pill, .header-icon-btn):active {
  transform: translateY(1px) scale(.99);
}

@media (max-width: 620px) {
  .store-back-to-top {
    inset: auto auto calc(88px + env(safe-area-inset-bottom)) 14px;
    min-width: 66px;
    min-height: 42px;
  }

  .store-connection-status {
    inset-block-end: calc(88px + env(safe-area-inset-bottom));
    font-size: 11px;
  }
}

@media (forced-colors: active) {
  .store-scroll-progress i,
  .admin-service-strip i,
  .admin-session-live i {
    background: Highlight;
  }

  .store-back-to-top,
  .store-connection-status {
    border: 2px solid ButtonText;
  }
}

@media print {
  .topbar,
  .site-header,
  .footer,
  .store-scroll-progress,
  .store-back-to-top,
  .store-connection-status,
  .cart-mobile-checkout,
  .product-mobile-buybar,
  .contact-mobile-action {
    display: none !important;
  }

  body,
  main,
  section {
    color: #000 !important;
    background: #fff !important;
  }

  main {
    animation: none !important;
  }
}

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

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

  .store-back-to-top,
  .store-scroll-progress i {
    transition: none;
  }
}
