:root {
  --metal-0: #f3f4f5;
  --metal-1: #e6e8eb;
  --metal-2: #d4d8dd;
  --ink: #172020;
  --dark: #202629;
  --muted: #697278;
  --line: rgba(23, 32, 32, 0.1);
  --white: #ffffff;
  --accent: #ef4128;
  --blue: #2284ff;
  --shadow: rgba(23, 32, 32, 0.14);
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 30%),
    linear-gradient(145deg, var(--metal-0), var(--metal-1) 44%, var(--metal-2));
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon use {
  pointer-events: none;
}

.shop-shell {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
}

.shop-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.brand-wordmark {
  justify-self: center;
  display: grid;
  justify-items: center;
}

.brand-wordmark span {
  color: #2b3235;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 0.84;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  transform: skewX(-7deg);
}

.brand-wordmark small {
  margin-top: 4px;
  color: #2b3235;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.catalog-hero {
  min-height: 142px;
  margin: 18px 0 14px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: flex-end;
  gap: 14px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(32, 38, 41, 0.96), rgba(48, 55, 58, 0.9)),
    radial-gradient(circle at 80% 0%, rgba(34, 132, 255, 0.24), transparent 38%);
  color: var(--white);
  box-shadow: 0 18px 44px rgba(23, 32, 32, 0.18);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-hero h1 {
  width: max-content;
  max-width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: nowrap;
}

.catalog-hero h1 span {
  display: block;
  white-space: nowrap;
}

.wizard-cta {
  width: 118px;
  min-height: 46px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.search-panel {
  display: grid;
  gap: 12px;
}

.search-box {
  min-height: 48px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.search-box input::placeholder {
  color: rgba(105, 114, 120, 0.86);
}

.chip-row,
.segment-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.chip-row::-webkit-scrollbar,
.segment-row::-webkit-scrollbar {
  display: none;
}

.chip,
.segment {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(23, 32, 32, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.chip.active,
.segment.active {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.result-strip {
  margin: 16px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-filter {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(32, 38, 41, 0.08);
  color: var(--dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mini-filter .icon {
  width: 15px;
  height: 15px;
}

.product-grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.product-card {
  min-width: 0;
  padding: 9px;
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 10px 30px rgba(23, 32, 32, 0.06);
  cursor: pointer;
}

.product-card.is-promo {
  border-color: rgba(239, 65, 40, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.48)),
    radial-gradient(circle at 16% 0%, rgba(239, 65, 40, 0.24), transparent 52%);
}

.product-card.is-fictional {
  border-style: dashed;
  border-color: rgba(32, 38, 41, 0.13);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(32, 38, 41, 0.96), rgba(48, 55, 58, 0.92));
}

.visual-cue {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(145deg, rgba(32, 38, 41, 0.94), rgba(11, 14, 15, 0.9));
  color: var(--white);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.visual-cue .icon {
  width: 16px;
  height: 16px;
}

.placeholder-media {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 12px);
}

.placeholder-media span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
}

.product-card.is-promo .product-media {
  background:
    radial-gradient(circle at 40% 20%, rgba(239, 65, 40, 0.34), transparent 44%),
    linear-gradient(145deg, #2b0f0e, #4a1916 46%, #171819);
}

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

.product-info {
  display: grid;
  gap: 6px;
}

.product-brand {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(32, 38, 41, 0.08);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.promo-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(239, 65, 40, 0.12);
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fictional-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(32, 38, 41, 0.08);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-title {
  min-height: 40px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.12;
  font-weight: 900;
}

.product-meta {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 700;
}

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

.price-stack {
  display: grid;
  gap: 1px;
}

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

.product-price-old {
  color: rgba(105, 114, 120, 0.76);
  font-size: 10px;
  font-weight: 800;
  text-decoration: line-through;
}

.quick-add {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
}

.quick-add .icon {
  width: 15px;
  height: 15px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(7, 10, 11, 0.46);
  backdrop-filter: blur(5px);
}

.bottom-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(100%, 430px);
  max-height: min(86svh, 760px);
  padding: 12px 16px max(18px, env(safe-area-inset-bottom));
  overflow: auto;
  transform: translate(-50%, 110%);
  border-radius: 28px 28px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(231, 233, 236, 0.96)),
    var(--metal-1);
  box-shadow: 0 -22px 70px rgba(0, 0, 0, 0.28);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bottom-sheet.open {
  transform: translate(-50%, 0);
}

.sheet-handle {
  width: 46px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(23, 32, 32, 0.18);
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 38, 41, 0.08);
  color: var(--dark);
  cursor: pointer;
}

.sheet-close .icon {
  width: 16px;
  height: 16px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  align-items: center;
}

.detail-hero img {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 20px;
  background: var(--dark);
}

.detail-placeholder {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(32, 38, 41, 0.96), rgba(48, 55, 58, 0.92));
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-brand {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-title {
  margin: 5px 0 9px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 0.92;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-price {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.detail-old-price {
  margin-top: 3px;
  color: rgba(105, 114, 120, 0.78);
  font-size: 12px;
  font-weight: 800;
  text-decoration: line-through;
}

.variant-row,
.feature-list,
.note-panel {
  border-top: 1px solid rgba(23, 32, 32, 0.08);
  padding-top: 13px;
}

.section-title {
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.swatches,
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch,
.pill {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 32, 32, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--dark);
  font-size: 12px;
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 9px;
}

.feature-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.feature-item .icon {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.note-panel {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
}

.detail-actions,
.wizard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.detail-actions.has-visual {
  grid-template-columns: 1fr 1fr;
}

.visualize-button {
  grid-column: 1 / -1;
}

.visualize-button .icon {
  width: 16px;
  height: 16px;
}

.ghost-button,
.solid-button {
  min-height: 46px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.ghost-button {
  border: 1px solid rgba(23, 32, 32, 0.12);
  background: rgba(255, 255, 255, 0.46);
  color: var(--dark);
}

.solid-button {
  border: 1px solid var(--dark);
  background: var(--dark);
  color: var(--white);
}

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

.wizard-content .eyebrow {
  color: var(--muted);
  margin-bottom: -8px;
}

.wizard-content h2,
.wizard-step h3 {
  margin: 0;
}

.wizard-content h2 {
  padding-right: 42px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 0.9;
  text-transform: uppercase;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.wizard-progress span {
  height: 4px;
  border-radius: 999px;
  background: rgba(23, 32, 32, 0.12);
}

.wizard-progress span.active {
  background: var(--dark);
}

.wizard-step {
  display: none;
  gap: 12px;
}

.wizard-step.active {
  display: grid;
}

.wizard-step h3 {
  color: var(--dark);
  font-size: 15px;
  font-weight: 900;
}

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

.option {
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(23, 32, 32, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--dark);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.option.selected {
  background: var(--dark);
  color: var(--white);
}

.wizard-summary {
  min-height: 44px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(32, 38, 41, 0.08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.visualize-sheet {
  z-index: 36;
}

.visualize-content {
  min-height: 310px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.visualize-content .eyebrow {
  margin: 6px 0 -4px;
  color: var(--muted);
}

.visualize-content h2 {
  margin: 0;
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 0.9;
  font-weight: 800;
  text-transform: uppercase;
}

.visualize-content p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.visualize-content .solid-button {
  width: 100%;
  margin-top: 6px;
  text-decoration: none;
}

.visual-loader {
  width: 58px;
  height: 58px;
  border: 4px solid rgba(32, 38, 41, 0.12);
  border-top-color: var(--dark);
  border-radius: 50%;
  animation: spin 820ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  body {
    display: grid;
    place-items: start center;
    background:
      radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.22), transparent 34%),
      #121719;
  }

  .shop-shell {
    min-height: 100vh;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.18);
  }
}
