:root {
  --canvas: #ffffff;
  --surface-soft: #f5f5f5;
  --surface-card: #ffffff;
  --surface-elevated: #f5f5f5;
  --hairline: #cacacb;
  --hairline-strong: #e5e5e5;
  --on-dark: #111111;
  --body: #39393b;
  --body-strong: #111111;
  --muted: #707072;
  --amber: #111111;
  --copper: #39393b;
  --sand: #f5f5f5;
  --success: #007d48;
  --section: 48px;
  --control-radius: 8px;
  --control-height: 48px;
}

body.theme-night {
  --canvas: #080504;
  --surface-soft: #120c08;
  --surface-card: #1b110b;
  --surface-elevated: #26170d;
  --hairline: #3a2418;
  --hairline-strong: #74401c;
  --on-dark: #fff8ef;
  --body: #d9c0aa;
  --body-strong: #fff1df;
  --muted: #a98970;
  --amber: #ff8a1f;
  --copper: #d86516;
  --sand: #ffc47d;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--on-dark);
  background: var(--canvas);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 300;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  cursor: pointer;
}

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

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

.container {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.topline {
  position: relative;
  z-index: 30;
  color: var(--body);
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.topline__inner {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 10px 0;
  white-space: nowrap;
  overflow: hidden;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(18px);
}

.header__inner {
  display: grid;
  grid-template-columns: auto auto minmax(280px, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 176px;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  color: var(--canvas);
  background: var(--on-dark);
  font-size: 28px;
  font-weight: 900;
  border-radius: 14px;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__name {
  display: block;
  color: var(--on-dark);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.brand__name b {
  color: var(--amber);
}

.catalog-button,
.primary-button,
.ghost-button,
.cart-button,
.icon-button,
.chip,
.category-pill,
.add-button,
.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 0;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.catalog-button,
.primary-button,
.ghost-button,
.cart-button,
.add-button {
  min-height: 48px;
  padding: 0 24px;
  color: var(--on-dark);
  background: transparent;
  border: 1px solid var(--on-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.catalog-button:hover,
.primary-button:hover,
.ghost-button:hover,
.cart-button:hover,
.add-button:hover {
  color: var(--canvas);
  background: var(--on-dark);
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  color: var(--body);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
}

.search:focus-within {
  border-color: var(--on-dark);
}

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

.search input::placeholder,
.request-form input::placeholder,
.request-form textarea::placeholder,
.brief-form input::placeholder {
  color: var(--muted);
}

.header__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-button,
.favorite-button {
  position: relative;
  width: 48px;
  height: 48px;
  color: var(--on-dark);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.icon-button:hover,
.favorite-button:hover,
.icon-button:focus-visible,
.favorite-button:focus-visible {
  border-color: var(--on-dark);
}

.icon-button span {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  color: var(--canvas);
  background: var(--amber);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.cart-button strong {
  color: var(--amber);
  font-size: 14px;
}

.cart-button em {
  color: inherit;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.cart-button.is-empty strong,
.cart-button.is-empty em {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 108px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

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

.hero__shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.24) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.88) 100%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 64px;
  align-items: end;
  padding: 96px 0 64px;
}

.accent-stripe {
  width: 164px;
  height: 4px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--amber) 0 34%, var(--copper) 34% 67%, var(--sand) 67% 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

h1,
h2 {
  color: var(--on-dark);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 0.94;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.02;
}

h3 {
  margin-bottom: 0;
  color: var(--on-dark);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 760px;
  margin-bottom: 32px;
  color: var(--body-strong);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__specs {
  display: grid;
  border: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.6);
}

.hero__specs article {
  padding: 24px;
  border-bottom: 1px solid var(--hairline);
}

.hero__specs article:last-child {
  border-bottom: 0;
}

.hero__specs strong {
  display: block;
  color: var(--on-dark);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.hero__specs span {
  display: block;
  margin-top: 8px;
  color: var(--body);
  font-size: 13px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.benefits {
  padding: 0 0 var(--section);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.benefits article {
  min-height: 180px;
  padding: 24px;
  background: var(--canvas);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.benefits svg {
  color: var(--amber);
}

.benefits strong,
.benefits span {
  display: block;
}

.benefits strong {
  margin: 22px 0 10px;
  color: var(--on-dark);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
}

.benefits span {
  color: var(--body);
  line-height: 1.5;
}

.catalog-section {
  padding: var(--section) 0;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
}

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

.section-head--inline {
  align-items: center;
  margin-bottom: 0;
}

.section-head--inline p:last-child {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--body);
  line-height: 1.55;
}

.view-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.chip,
.category-pill {
  min-height: 44px;
  padding: 0;
  color: var(--body);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.chip.is-active,
.category-pill.is-active {
  color: var(--on-dark);
  border-bottom-color: var(--amber);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.filters,
.request-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
}

.filters__block + .filters__block {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.filters h3 {
  margin-bottom: 18px;
  font-size: 15px;
}

.filters label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  color: var(--body);
}

.filters input[type="checkbox"] {
  accent-color: var(--amber);
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-pill {
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.category-pill b {
  color: var(--muted);
}

.discount-meter__bar {
  height: 4px;
  overflow: hidden;
  background: var(--surface-elevated);
}

.discount-meter__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--amber);
}

.discount-meter p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.catalog-main {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.catalog-toolbar span {
  color: var(--body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.catalog-toolbar select,
.brief-form select,
.brief-form input,
.request-form input,
.request-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--on-dark);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 0;
  outline: 0;
}

.catalog-toolbar select {
  width: min(300px, 100%);
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
}

.product-card__image,
.product-card__body {
  position: relative;
  z-index: 2;
}

.product-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-elevated);
}

.product-card__image-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.product-card__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 8px 10px;
  color: var(--canvas);
  background: var(--on-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.favorite-button {
  position: absolute;
  right: 12px;
  top: 12px;
}

.favorite-button.is-active {
  color: #e02424;
  background: #fff0f0;
  border-color: #e02424;
}

.favorite-button.is-active svg {
  fill: currentColor;
  stroke: currentColor;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.product-card__sku {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.product-card__meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.product-card h3 {
  min-height: 46px;
  margin-bottom: 14px;
  line-height: 1.22;
}

.product-card__spec {
  margin-bottom: 20px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.5;
}

.product-card__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: auto;
}

.variant-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.variant-summary span {
  color: var(--body);
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.price strong {
  display: block;
  color: var(--on-dark);
  font-size: 24px;
  font-weight: 900;
}

.price span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.qty-control {
  display: grid;
  grid-template-columns: 38px 48px 38px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.qty-control button {
  height: 38px;
  color: var(--on-dark);
  border: 0;
  background: var(--surface-elevated);
}

.qty-control span {
  color: var(--on-dark);
  text-align: center;
  font-weight: 900;
}

.add-button {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 14px;
}

.request-panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cart-items {
  display: grid;
  max-height: 280px;
  overflow: auto;
  gap: 10px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
}

.cart-line strong {
  display: block;
  margin-bottom: 5px;
  color: var(--on-dark);
  font-size: 13px;
  text-transform: uppercase;
}

.cart-line span {
  color: var(--muted);
  font-size: 12px;
}

.cart-line button {
  width: 32px;
  height: 32px;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.cart-empty {
  display: grid;
  place-items: center;
  min-height: 144px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--hairline);
}

.cart-empty.is-hidden {
  display: none;
}

.totals {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.totals span {
  color: var(--body);
}

.totals strong {
  color: var(--on-dark);
}

.totals__final {
  font-size: 22px;
  font-weight: 900;
}

.request-form,
.brief-form {
  display: grid;
  gap: 10px;
}

.cart-page__main {
  padding: var(--section) 0;
  background: var(--canvas);
}

.cart-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.cart-page__content,
.cart-summary,
.checkout-panel {
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
}

.cart-page__content {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.cart-page__header-note {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  padding: 11px 16px;
  color: var(--canvas);
  background: var(--on-dark);
  font-weight: 850;
}

.cart-page__header-note strong {
  color: var(--canvas);
}

.cart-page__empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  background: var(--surface-soft);
  border: 1px dashed var(--hairline);
}

.cart-page__empty strong {
  color: var(--on-dark);
  font-size: 22px;
  text-transform: uppercase;
}

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

.cart-page-line {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 148px 140px 44px;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
}

.cart-page-line__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-soft);
}

.cart-page-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-page-line__body span,
.cart-page-line__body p,
.cart-page-line__price span {
  color: var(--muted);
  font-size: 13px;
}

.cart-page-line__body h2 {
  margin: 4px 0 6px;
  font-size: 22px;
  line-height: 1.05;
}

.cart-page-line__qty {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  height: 42px;
  border: 1px solid var(--hairline);
}

.cart-page-line__qty button,
.cart-page-line__remove {
  display: grid;
  place-items: center;
  color: var(--on-dark);
  background: var(--canvas);
  border: 0;
}

.cart-page-line__qty input {
  width: 100%;
  min-height: 40px;
  text-align: center;
  border: 0;
  border-right: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.cart-page-line__price strong {
  display: block;
  color: var(--on-dark);
  font-size: 20px;
}

.cart-page-line__remove {
  width: 44px;
  height: 44px;
  background: var(--surface-soft);
}

.cart-summary {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  padding: 22px;
}

.cart-summary__block h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.cart-discount-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.cart-scale-step {
  padding: 10px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--hairline-strong);
}

.cart-scale-step.is-active {
  color: var(--canvas);
  background: var(--on-dark);
  border-color: var(--on-dark);
}

.cart-scale-step span,
.cart-scale-step strong {
  display: block;
}

.cart-scale-step span {
  font-size: 12px;
}

.cart-scale-step strong {
  margin-top: 4px;
  font-size: 22px;
}

.promo-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.promo-form button {
  padding: 0 14px;
  color: var(--canvas);
  background: var(--on-dark);
  border: 0;
  font-weight: 800;
}

.cart-summary__totals {
  display: grid;
  gap: 11px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.cart-summary__totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-checkout-button {
  width: 100%;
}

.checkout-panel {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  padding: 28px;
}

.checkout-form {
  display: grid;
  gap: 12px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.35;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.request-form textarea {
  min-height: 96px;
  padding-top: 14px;
  resize: vertical;
}

.cart-min-hint {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.primary-button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: var(--surface-soft);
  border-color: var(--hairline-strong);
}

.wholesale {
  padding: var(--section) 0;
  background: var(--surface-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.wholesale__grid {
  display: grid;
  gap: 40px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.tiers article {
  min-height: 188px;
  padding: 28px 24px;
  background: var(--canvas);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.tiers span,
.tiers small {
  display: block;
  color: var(--body);
}

.tiers span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.tiers strong {
  display: block;
  margin: 18px 0 10px;
  color: var(--amber);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}

.custom {
  padding: 0 0 var(--section);
  background: var(--canvas);
}

.custom__photo-band {
  height: min(58vw, 560px);
  min-height: 320px;
  margin-bottom: var(--section);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.custom__photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06) brightness(0.72);
}

.custom__grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.custom__media {
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.custom__media img {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

.custom__content p:not(.eyebrow) {
  color: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 28px 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.steps span {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 16px;
  color: var(--body-strong);
  background: var(--surface-soft);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-weight: 700;
}

.steps b {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  color: var(--canvas);
  background: var(--amber);
  border-radius: 999px;
  font-weight: 900;
}

.brief-form {
  grid-template-columns: 1.1fr 0.7fr 1fr auto;
  align-items: center;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
}

.filter-group:first-child {
  margin-top: 0;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 10px;
  padding: 0 10px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
}

.filter-search input {
  width: 100%;
  min-width: 0;
  color: var(--on-dark);
  background: transparent;
  border: 0;
  outline: 0;
}

.filter-options {
  display: grid;
  gap: 2px;
  max-height: 220px;
  overflow: auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
}

.modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(10px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(900px, calc(100vh - 48px));
  overflow: auto;
  color: var(--on-dark);
  background: var(--canvas);
  border: 1px solid var(--hairline);
}

.modal__close {
  position: sticky;
  top: 0;
  left: 100%;
  z-index: 3;
  width: 48px;
  height: 48px;
  margin-left: auto;
  color: var(--on-dark);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.product-detail {
  width: min(1180px, 100%);
}

.product-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  gap: 0;
}

.product-detail__main {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 32px;
  border-right: 1px solid var(--hairline);
}

.product-detail__media {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
}

.product-detail__media > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: var(--surface-card);
  border-top: 1px solid var(--hairline);
}

.product-gallery__thumb {
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 0;
}

.product-gallery__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.74;
  object-fit: cover;
}

.product-gallery__thumb.is-active {
  border-color: var(--on-dark);
}

.product-detail__copy h2 {
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.08;
}

.product-detail__copy > p:not(.eyebrow) {
  color: var(--body);
  line-height: 1.6;
}

.product-detail__note {
  max-width: 620px;
  margin-top: 18px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-tag {
  display: inline-grid;
  min-height: 32px;
  place-items: center;
  padding: 0 14px;
  color: var(--on-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  background: var(--surface-soft);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
}

.detail-tag:hover {
  background: var(--on-dark);
  color: var(--canvas);
}

.product-detail__options,
.account-panel,
.admin-panel {
  padding: 32px;
}

.product-detail__options {
  background: var(--surface-soft);
}

.admin-panel > div > p,
.form-note,
.excel-import p,
.orders-list p {
  color: var(--body);
  line-height: 1.55;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.detail-facts span {
  min-height: 54px;
  padding: 12px;
  color: var(--body);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sku-line,
.detail-total,
.account-summary {
  display: grid;
  gap: 6px;
  margin: 22px 0;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
}

.sku-line span,
.detail-total span,
.detail-price span,
.account-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.sku-line strong,
.detail-total strong,
.detail-price strong,
.account-summary strong {
  color: var(--on-dark);
  font-size: 24px;
  font-weight: 900;
}

.variant-group {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.variant-group legend {
  margin-bottom: 10px;
  color: var(--body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

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

.variant-option {
  min-height: 44px;
  padding: 0 14px;
  color: var(--body);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.variant-option.is-active {
  color: var(--canvas);
  background: var(--amber);
  border-color: var(--amber);
}

.detail-qty {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
  margin: 24px 0 16px;
}

.detail-qty label,
.excel-import label {
  display: grid;
  gap: 8px;
  color: var(--body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.detail-qty input,
.auth-form input,
.admin-form input,
.admin-form select,
.admin-content-form input,
.admin-content-form select,
.admin-content-form textarea,
.excel-import input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--on-dark);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 0;
  outline: 0;
}

.admin-content-form textarea {
  min-height: 112px;
  padding-top: 14px;
  resize: vertical;
}

.detail-price {
  display: grid;
  gap: 4px;
}

.detail-price small {
  color: var(--amber);
}

.account-panel,
.admin-panel {
  width: min(1120px, 100%);
}

.auth-form,
.admin-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.auth-actions,
.account-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.orders-list,
.admin-preview {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.account-section {
  margin-top: 24px;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.order-actions .ghost-button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

.orders-list article,
.admin-preview article,
.excel-import {
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
}

.orders-list article strong,
.admin-preview article strong {
  display: block;
  margin-bottom: 6px;
  color: var(--on-dark);
  font-weight: 900;
}

.orders-list article span,
.admin-preview article span,
.admin-preview article small {
  display: block;
  color: var(--body);
  line-height: 1.45;
}

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

.admin-form .admin-actions {
  grid-column: 1 / -1;
}

.admin-content-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

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

.admin-form label,
.admin-content-grid label,
.admin-image-upload,
.admin-slide-editor__fields label {
  display: grid;
  gap: 8px;
  color: var(--body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.admin-content-grid__wide {
  grid-column: 1 / -1;
}

.admin-content-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
}

.admin-content-section--nested {
  background: var(--canvas);
}

.admin-content-section h4 {
  margin: 4px 0 0;
  font-size: 14px;
  text-transform: uppercase;
}

.admin-section-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-image-grid,
.admin-slides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-image-grid--logo {
  grid-template-columns: minmax(160px, 240px);
}

.admin-image-upload {
  min-width: 0;
}

.admin-image-upload img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--canvas);
  border: 1px solid var(--hairline);
}

.admin-image-upload--brandLogo img {
  aspect-ratio: 1;
  object-fit: contain;
  padding: 18px;
}

.admin-image-upload input {
  min-height: auto;
  padding: 10px;
  font-size: 12px;
}

.admin-image-upload small,
.field-note,
.excel-import p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.admin-slide-editor {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
}

.admin-slide-editor__fields {
  display: grid;
  gap: 10px;
}

.admin-divider {
  height: 1px;
  margin: 30px 0;
  background: var(--hairline-strong);
}

.excel-import {
  margin-top: 18px;
}

.footer {
  padding: 64px 0;
  color: var(--body);
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer strong {
  color: var(--on-dark);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
}

.footer p {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.footer a,
.footer span {
  display: block;
  margin-bottom: 8px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: 390px;
  padding: 16px 18px;
  color: var(--canvas);
  background: var(--on-dark);
  border-left: 4px solid var(--amber);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

button:hover {
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--on-dark);
  outline-offset: 2px;
}

@media (max-width: 1240px) {
  .catalog-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .request-panel {
    position: static;
    grid-column: 1 / -1;
  }

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

@media (max-width: 900px) {
  :root {
    --section: 72px;
  }

  .topline__inner {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header__inner {
    grid-template-columns: 1fr auto;
  }

  .catalog-button,
  .search {
    grid-column: 1 / -1;
  }

  .header__actions {
    justify-content: end;
  }

  .hero {
    min-height: auto;
  }

  .hero__grid,
  .custom__grid,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    gap: 40px;
    padding: 72px 0 48px;
  }

  .filters {
    position: static;
  }

  .benefits__grid,
  .tiers,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .product-detail {
    width: min(760px, 100%);
  }

  .product-detail__layout,
  .product-detail__main {
    grid-template-columns: 1fr;
  }

  .product-detail__main {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .product-detail__media > img {
    aspect-ratio: 16 / 10;
  }

  .admin-form,
  .admin-content-grid,
  .admin-image-grid,
  .admin-slides-grid,
  .detail-qty {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1440px);
  }

  .header__inner {
    gap: 10px;
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand__mark {
    width: 44px;
    height: 44px;
  }

  .cart-button span,
  .header__actions .icon-button:first-child {
    display: none;
  }

  .section-head,
  .section-head--inline,
  .footer__grid {
    align-items: start;
    flex-direction: column;
  }

  .product-grid,
  .benefits__grid,
  .tiers,
  .steps {
    grid-template-columns: 1fr;
  }

  .product-card h3 {
    min-height: auto;
  }

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

  .catalog-toolbar select {
    width: 100%;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.74) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.92) 100%);
  }
}

/* Commerce layout pass from дизайн сайта.txt */

html,
body {
  background: var(--canvas);
}

body {
  color: var(--on-dark);
  font-weight: 400;
}

main {
  display: flex;
  flex-direction: column;
}

.catalog-section {
  order: -10;
}

.container {
  width: min(1440px, calc(100% - 48px));
}

.topline {
  color: var(--on-dark);
  background: var(--surface-soft);
  border-bottom: 0;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.topline__inner {
  justify-content: flex-end;
  gap: 18px;
  padding: 8px 0;
}

.topline__inner > span:first-child {
  color: var(--amber);
  font-weight: 800;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 11px;
  color: var(--on-dark);
  background: rgba(255, 122, 26, 0.16);
  border: 1px solid rgba(255, 122, 26, 0.55);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  color: var(--amber);
}

.header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--hairline-strong);
}

body.theme-night .header {
  background: rgba(12, 8, 5, 0.96);
  border-bottom-color: rgba(255, 138, 31, 0.38);
}

.header__inner {
  min-height: 76px;
}

.brand__mark {
  color: var(--canvas);
  background: var(--amber);
  border-radius: 14px;
}

.brand__name,
h1,
h2,
h3,
.price strong,
.totals strong {
  color: var(--on-dark);
}

.brand__name b {
  color: var(--amber);
  font-weight: 900;
}

.catalog-button,
.primary-button,
.ghost-button,
.cart-button,
.add-button {
  min-height: 48px;
  padding: 0 24px;
  color: var(--canvas);
  background: var(--amber);
  border: 0;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.ghost-button {
  color: var(--on-dark);
  background: var(--surface-soft);
  border: 1px solid rgba(255, 122, 26, 0.34);
}

.catalog-button:hover,
.primary-button:hover,
.cart-button:hover,
.add-button:hover {
  color: var(--canvas);
  background: var(--sand);
}

.ghost-button:hover {
  color: var(--canvas);
  background: var(--amber);
}

.search,
.filter-search,
.catalog-toolbar select,
.brief-form select,
.brief-form input,
.request-form input,
.request-form textarea,
.detail-qty input,
.auth-form input,
.admin-form input,
.admin-form select,
.excel-import input {
  color: var(--on-dark);
  background: var(--surface-soft);
  border: 0;
  border-radius: 24px;
}

.search {
  height: 40px;
}

.search:focus-within,
.filter-search:focus-within {
  outline: 2px solid var(--on-dark);
  outline-offset: 3px;
}

.search input,
.filter-search input {
  color: var(--on-dark);
}

.icon-button,
.favorite-button,
.modal__close {
  color: var(--on-dark);
  background: var(--surface-soft);
  border: 0;
  border-radius: 999px;
}

.icon-button span {
  color: var(--canvas);
  background: var(--on-dark);
}

.favorite-button.is-active {
  color: #e02424;
  background: #fff0f0;
  border: 1px solid #e02424;
}

.favorite-button.is-active svg {
  fill: currentColor;
  stroke: currentColor;
}

.cart-button strong {
  color: var(--canvas);
}

.hero {
  min-height: min(72vh, 720px);
  margin-bottom: var(--section);
  border-bottom: 0;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 56%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.24));
}

.hero__grid {
  grid-template-columns: minmax(0, 1fr);
  padding: 72px 0 56px;
}

.hero__content {
  max-width: 680px;
}

.hero .accent-stripe {
  display: none;
}

.hero .eyebrow,
.hero h1,
.hero__lead {
  color: #ffffff;
}

h1 {
  max-width: 920px;
  font-size: clamp(54px, 8vw, 108px);
  line-height: 0.9;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  text-transform: none;
}

h3 {
  font-size: 16px;
  text-transform: none;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.accent-stripe {
  width: 72px;
  height: 2px;
  margin-bottom: 18px;
  background: var(--on-dark);
}

.hero__specs {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100% - 48px));
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 0;
}

.hero__specs article {
  padding: 16px;
  border-bottom: 0;
  border-right: 1px solid var(--hairline-strong);
}

.hero__specs article:last-child {
  border-right: 0;
}

.hero__specs strong {
  color: var(--on-dark);
  font-size: 24px;
}

.hero__specs span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.benefits {
  padding: 0 0 var(--section);
}

.benefits__grid,
.tiers,
.steps,
.detail-facts {
  border: 0;
  gap: 8px;
}

.benefits article,
.tiers article,
.steps span,
.orders-list article,
.admin-preview article,
.excel-import {
  background: var(--surface-soft);
  border: 0;
  border-radius: 0;
}

.benefits strong,
.tiers span,
.detail-facts span,
.product-card__meta span,
.variant-summary span {
  letter-spacing: 0;
  text-transform: none;
}

.benefits svg {
  color: var(--on-dark);
}

.catalog-section,
.wholesale,
.custom,
.footer {
  background: var(--canvas);
  border-top: 0;
  border-bottom: 0;
}

.catalog-section {
  padding: var(--section) 0;
}

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

.view-tools {
  gap: 8px;
}

.chip,
.category-pill,
.variant-option {
  min-height: 40px;
  padding: 0 16px;
  color: var(--on-dark);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.chip.is-active,
.category-pill.is-active,
.variant-option.is-active {
  color: var(--canvas);
  background: var(--on-dark);
  border-color: var(--on-dark);
}

.catalog-layout {
  grid-template-columns: 224px minmax(0, 1fr) 320px;
  gap: 24px;
}

.filters,
.request-panel {
  top: 84px;
  padding: 0;
  background: var(--canvas);
  border: 0;
}

.filters__block + .filters__block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-strong);
}

.filters h3 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 650;
  text-transform: none;
}

.filter-options {
  gap: 0;
}

.filters label {
  min-height: 34px;
}

.filters input[type="checkbox"] {
  accent-color: var(--on-dark);
}

.catalog-toolbar {
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 0;
}

.catalog-toolbar span {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

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

.product-card {
  background: var(--canvas);
  border: 0;
}

.product-card__image {
  background: var(--surface-soft);
  aspect-ratio: 1 / 1;
}

.product-card__badge {
  left: 12px;
  top: 12px;
  color: var(--on-dark);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 30px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.product-card__body {
  padding: 12px 0 0;
}

.product-card h3 {
  min-height: 0;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 650;
  text-transform: none;
}

.product-card__spec {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.product-card__sku {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

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

.price strong {
  font-size: 16px;
  font-weight: 650;
}

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

.variant-summary {
  gap: 8px;
  margin-bottom: 10px;
}

.variant-summary span {
  color: var(--muted);
  border-bottom: 0;
}

.request-panel {
  padding: 18px;
  background: var(--surface-soft);
  border-radius: 24px;
}

.cart-line,
.cart-empty,
.sku-line,
.detail-total,
.account-summary {
  background: var(--canvas);
  border: 0;
  border-radius: 18px;
}

.cart-line strong,
.sku-line strong,
.detail-total strong,
.detail-price strong,
.account-summary strong {
  color: var(--on-dark);
}

.totals {
  border-top: 1px solid var(--hairline-strong);
}

.modal__backdrop {
  background: rgba(17, 17, 17, 0.38);
  backdrop-filter: blur(6px);
}

.modal__panel {
  background: var(--canvas);
  border: 0;
  border-radius: 24px;
}

.product-detail__layout {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.product-detail__main {
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 24px;
  padding: 28px;
  border-right: 1px solid var(--hairline-strong);
}

.product-detail__media {
  background: var(--surface-soft);
  border: 0;
}

.product-detail__options {
  background: var(--surface-soft);
}

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

.detail-facts span {
  background: var(--surface-soft);
  border: 0;
  border-radius: 18px;
}

.footer {
  border-top: 1px solid var(--hairline-strong);
}

.footer,
.footer p {
  color: var(--muted);
}

.toast {
  color: var(--canvas);
  background: var(--on-dark);
  border-left: 0;
  border-radius: 24px;
}

@media (max-width: 1240px) {
  .catalog-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --section: 32px;
  }

  .hero__specs {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 24px;
  }

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

  .filters {
    padding: 18px;
    background: var(--surface-soft);
    border-radius: 24px;
  }

  .product-detail__layout,
  .product-detail__main {
    grid-template-columns: 1fr;
  }

  .product-detail__main {
    border-right: 0;
    border-bottom: 1px solid var(--hairline-strong);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

  .hero__grid {
    padding: 52px 0 28px;
  }

  .container {
    width: min(100% - 24px, 1440px);
  }

  h1 {
    max-width: 350px;
    margin-bottom: 16px;
    font-size: 42px;
    line-height: 0.94;
  }

  .hero__lead {
    max-width: 330px;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.35;
  }

  .hero__specs {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 18px;
  }

  .hero__specs article {
    padding: 10px;
    border-right: 1px solid var(--hairline-strong);
    border-bottom: 0;
  }

  .hero__specs article:last-child {
    border-right: 0;
  }

  .hero__specs strong {
    font-size: 18px;
  }

  .hero__specs span {
    margin-top: 5px;
    font-size: 9px;
    line-height: 1.25;
  }

  .hero__shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
  }

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

.is-hidden {
  display: none !important;
}

main {
  display: block;
}

.catalog-section {
  order: initial;
}

.hero__slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__slideshow .hero__image {
  opacity: 0;
  animation: heroSlide 18s infinite;
}

.hero__image--one {
  animation-delay: 0s;
}

.hero__image--two {
  animation-delay: 6s;
}

.hero__image--three {
  animation-delay: 12s;
}

@keyframes heroSlide {
  0%,
  30% {
    opacity: 1;
    transform: scale(1);
  }

  36%,
  94% {
    opacity: 0;
    transform: scale(1.025);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.catalog-home {
  display: grid;
  gap: 20px;
}

.catalog-home__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.catalog-home__head--themes {
  margin-top: 24px;
}

.catalog-home__head h3 {
  font-size: 24px;
  line-height: 1.15;
}

.catalog-home__head span {
  color: var(--muted);
  text-align: right;
}

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

.category-tile {
  display: grid;
  align-content: space-between;
  min-height: 220px;
  padding: 22px;
  color: var(--on-dark);
  text-align: left;
  background: var(--surface-soft);
  border: 0;
  border-radius: 0;
}

.category-tile__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.category-tile__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--canvas);
  background: var(--on-dark);
  border-radius: 999px;
}

.category-tile__icon svg {
  width: 24px;
  height: 24px;
}

.category-tile__schema {
  display: grid;
  gap: 7px;
  width: min(46%, 120px);
  padding-top: 8px;
}

.category-tile__schema span {
  display: block;
  height: 8px;
  background: #ffffff;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
}

.category-tile__schema span:nth-child(2) {
  width: 72%;
}

.category-tile__schema span:nth-child(3) {
  width: 46%;
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.12;
  text-align: left;
}

.category-tile small {
  display: block;
  min-height: 42px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
}

.category-tile b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin-top: 18px;
  min-height: 32px;
  padding: 0 14px;
  color: var(--canvas);
  background: var(--on-dark);
  border-radius: var(--control-radius);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

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

.theme-tile {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 64px;
  padding: 0 18px;
  color: var(--on-dark);
  text-align: left;
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: 30px;
  font-weight: 650;
}

.theme-tile svg {
  flex: 0 0 auto;
}

.theme-tile__image {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: cover;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--control-radius);
}

.filters {
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}

.filters::-webkit-scrollbar {
  width: 8px;
}

.filters::-webkit-scrollbar-thumb {
  background: var(--hairline);
  border-radius: 999px;
}

.product-card__body,
.request-panel,
.filters,
.product-detail__copy,
.product-detail__options,
.cart-line,
.totals,
.steps span,
.tiers article {
  text-align: left;
}

.product-detail {
  width: min(1360px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
}

.product-detail__layout {
  grid-template-columns: minmax(0, 1fr) 336px;
}

.product-detail__main {
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  gap: 32px;
  padding: 34px;
}

.product-detail__media > img {
  aspect-ratio: 1 / 1;
}

.product-detail__options {
  padding: 22px;
}

.product-detail__options .sku-line,
.product-detail__options .detail-total {
  margin: 0 0 14px;
  padding: 14px;
}

.product-detail__options .sku-line strong,
.product-detail__options .detail-total strong,
.product-detail__options .detail-price strong {
  font-size: 20px;
}

.variant-group {
  margin: 14px 0 0;
}

.variant-options {
  gap: 6px;
}

.variant-option {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.detail-qty {
  gap: 12px;
  margin: 18px 0 14px;
}

.detail-qty input {
  min-height: 42px;
}

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

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

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

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

  .catalog-home__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-home__head span {
    text-align: left;
  }

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

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

  .filters {
    max-height: 460px;
  }

  .product-detail {
    width: min(100%, calc(100vw - 16px));
    max-height: calc(100vh - 16px);
    border-radius: 18px;
  }

  .product-detail__main,
  .product-detail__layout {
    grid-template-columns: 1fr;
  }

  .product-detail__main {
    gap: 18px;
    padding: 18px;
  }

  .product-detail__options {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .category-tiles,
  .theme-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .category-tile {
    min-height: 156px;
    padding: 18px;
  }

  .category-tile__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
  }

  .theme-tile {
    min-height: 54px;
  }

  .product-detail__media > img {
    aspect-ratio: 1 / 1;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }
}

.hero__actual {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: max(12px, calc((100vw - 1440px) / 2 + 12px));
  display: grid;
  width: min(480px, calc(100vw - 48px));
  color: var(--canvas);
}

.hero__actual-head {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  pointer-events: none;
}

.hero__actual-head strong {
  width: max-content;
  padding: 10px 16px;
  color: var(--on-dark);
  background: var(--canvas);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 850;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.hero__actual-nav {
  position: absolute;
  top: 104px;
  left: -1px;
  right: -1px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.hero__actual-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--on-dark);
  background: var(--canvas);
  border: 2px solid rgba(255, 122, 26, 0.88);
  border-radius: 999px;
  pointer-events: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.hero__actual-nav svg {
  width: 19px;
  height: 19px;
}

.hero__actual-card {
  position: relative;
  display: block;
  grid-area: 1 / 1;
  min-height: 250px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  color: var(--canvas);
  background: var(--on-dark);
  border: 3px solid rgba(255, 122, 26, 0.9);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  transition: opacity 260ms ease, transform 260ms ease;
  transform: translateY(8px);
}

.hero__actual-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero__actual-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero__actual-card b {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 1;
  width: max-content;
  max-width: calc(100% - 44px);
  padding: 7px 12px;
  color: var(--on-dark);
  background: var(--canvas);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
}

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

.actual-tile {
  position: relative;
  min-height: 190px;
  padding: 18px;
  overflow: hidden;
  color: var(--canvas);
  text-align: left;
  background: var(--on-dark);
  border: 0;
  border-radius: 0;
}

.actual-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  transition: transform 180ms ease;
}

.actual-tile:hover img {
  transform: scale(1.035);
}

.actual-tile span,
.actual-tile b {
  position: relative;
  z-index: 1;
  display: block;
  text-align: left;
}

.actual-tile span {
  max-width: 280px;
  margin-top: 92px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.actual-tile b {
  width: max-content;
  margin-top: 10px;
  padding: 7px 12px;
  color: var(--on-dark);
  background: var(--canvas);
  border-radius: 999px;
  font-size: 12px;
}

.filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  color: var(--canvas);
  background: var(--on-dark);
  border: 0;
  border-radius: 0;
  font-weight: 800;
}

@media (max-width: 900px) {
  .cart-page__layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .cart-page-line {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .cart-page-line__qty,
  .cart-page-line__price,
  .cart-page-line__remove {
    grid-column: 2;
  }

  .cart-page-line__remove {
    width: 100%;
  }

  .hero__actual {
    top: 16px;
    right: 16px;
    width: min(340px, calc(100vw - 32px));
  }

  .hero__actual-card {
    min-height: 164px;
    border-radius: 18px;
  }

  .hero__actual-head strong {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero__actual-nav {
    top: 60px;
  }

  .hero__actual-nav button {
    width: 38px;
    height: 38px;
  }

  .actual-tiles {
    grid-template-columns: 1fr;
  }

  .filter-toggle {
    display: inline-flex;
    width: 100%;
  }

  .catalog-layout {
    gap: 12px;
  }

  .catalog-layout .filters {
    display: none;
    max-height: 70vh;
    padding: 16px;
    overflow-y: auto;
    border: 1px solid var(--hairline-strong);
  }

  body.filters-open .catalog-layout .filters {
    display: block;
  }
}

@media (max-width: 640px) {
  .cart-button em {
    display: none;
  }

  .cart-page__content,
  .cart-summary,
  .checkout-panel {
    padding: 16px;
  }

  .cart-discount-scale {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cart-page-line {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-page-line__body h2 {
    font-size: 18px;
  }

  .hero {
    padding-top: 128px;
  }

  .category-tiles,
  .theme-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-tile {
    min-height: 150px;
    padding: 14px;
  }

  .category-tile__top {
    margin-bottom: 12px;
  }

  .category-tile__schema {
    display: none;
  }

  .category-tile strong {
    font-size: 16px;
  }

  .category-tile small {
    min-height: 0;
    font-size: 12px;
  }

  .category-tile b {
    margin-top: 12px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .theme-tile {
    min-height: 48px;
    padding: 0 12px;
    gap: 8px;
    font-size: 13px;
  }

  .theme-tile svg {
    width: 18px;
    height: 18px;
  }

  .actual-tile {
    min-height: 150px;
  }

  .actual-tile span {
    margin-top: 66px;
    font-size: 22px;
  }
}

.product-card__sku-row,
.sku-line__value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.product-card__sku-row {
  margin-bottom: 8px;
}

.product-card__sku-row .product-card__sku {
  margin-bottom: 0;
}

.sku-line__value {
  justify-content: space-between;
}

.sku-line__value strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-sku-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.copy-sku-button svg {
  width: 14px;
  height: 14px;
}

.copy-sku-button:hover {
  color: var(--on-dark);
  background: rgba(17, 17, 17, 0.06);
  transform: translateY(-1px);
}

.copy-sku-button--detail {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.copy-sku-button--detail svg {
  width: 16px;
  height: 16px;
}

body.theme-night .copy-sku-button {
  color: var(--body);
  background: transparent;
  border: 0;
}

body.theme-night .copy-sku-button:hover {
  color: var(--on-dark);
  background: rgba(255, 138, 31, 0.16);
}

/* Final flat theme reset: keeps day mode close to the original black-and-white design. */
.nav-link-button {
  min-height: 48px;
  padding: 0 18px;
  color: var(--on-dark);
  background: var(--surface-soft);
  border: 0;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.header__inner {
  grid-template-columns: auto auto auto minmax(280px, 1fr) auto;
}

.nav-link-button:hover {
  color: var(--canvas);
  background: var(--on-dark);
}

.theme-toggle {
  margin-left: auto;
  background: var(--surface-soft);
  border: 0;
}

.marketplaces {
  padding: var(--section) 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.marketplaces__grid {
  display: grid;
  gap: 32px;
}

.marketplace-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.marketplace-card {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 24px;
  color: var(--on-dark);
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
}

.marketplace-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.marketplace-card strong {
  color: var(--on-dark);
  font-size: 24px;
  font-weight: 900;
}

.marketplace-card small {
  color: var(--body);
  font-size: 14px;
  line-height: 1.45;
}

.catalog-button,
.primary-button,
.cart-button,
.add-button {
  color: var(--canvas);
  background: var(--on-dark);
  border: 0;
  box-shadow: none;
  transform: none;
}

.catalog-button:hover,
.primary-button:hover,
.cart-button:hover,
.add-button:hover {
  color: var(--canvas);
  background: #39393b;
  box-shadow: none;
  transform: none;
}

.ghost-button,
.theme-toggle,
.icon-button,
.favorite-button,
.modal__close,
.nav-link-button {
  color: var(--on-dark);
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
}

.ghost-button:hover,
.theme-toggle:hover,
.icon-button:hover,
.favorite-button:hover,
.modal__close:hover,
.nav-link-button:hover {
  color: var(--canvas);
  background: var(--on-dark);
  border-color: var(--on-dark);
}

.ghost-button,
.theme-toggle,
.icon-button,
.favorite-button,
.modal__close,
.copy-sku-button,
.nav-link-button {
  box-shadow: none;
}

.brand__mark {
  color: var(--canvas);
  background: var(--on-dark);
  border: 0;
  box-shadow: none;
}

.brand__name b,
.topline__inner > span:first-child,
.theme-toggle svg,
.product-card__sku,
.detail-price small {
  color: var(--on-dark);
}

.accent-stripe {
  background: var(--on-dark);
}

.category-tile,
.theme-tile,
.actual-tile,
.benefits article,
.tiers article,
.steps article,
.modal__panel,
.filter-sidebar,
.cart-panel,
.product-detail__media,
.product-detail__aside,
.admin-content-section,
.admin-slide-editor,
.orders-list article,
.admin-preview article,
.excel-import,
.marketplace-card {
  border-color: var(--hairline);
  box-shadow: none;
}

.category-tile:hover,
.theme-tile:hover,
.actual-tile:hover,
.marketplace-card:hover {
  border-color: var(--hairline-strong);
  box-shadow: none;
}

.hero__actual-card {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

.hero__actual-nav button {
  border-color: transparent;
  box-shadow: none;
}

.product-grid {
  gap: 24px;
}

.product-card,
.product-card:hover {
  background: var(--canvas);
  border: 2px solid var(--on-dark);
  border-radius: var(--control-radius);
  box-shadow: none;
}

.product-card__body {
  padding: 20px 18px 18px;
}

.product-card__bottom {
  gap: 14px;
}

.product-card .add-button {
  width: 100%;
  margin-top: 16px;
  border-radius: var(--control-radius);
}

.empty-products {
  display: grid;
  grid-column: 1 / -1;
  justify-items: center;
  gap: 12px;
  min-height: 280px;
  padding: 48px 24px;
  text-align: center;
  background: var(--surface-card);
  border: 2px solid var(--on-dark);
  border-radius: var(--control-radius);
}

.empty-products svg {
  width: 34px;
  height: 34px;
  color: var(--muted);
}

.empty-products strong {
  font-size: 22px;
}

.empty-products span {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.5;
}

.empty-products .ghost-button {
  margin-top: 8px;
}

.copy-sku-button {
  width: 24px;
  height: 24px;
  color: var(--muted);
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

@media (max-width: 900px) {
  .nav-link-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.copy-sku-button:hover {
  color: var(--on-dark);
  background: transparent;
  transform: none;
}

body.theme-night .nav-link-button {
  color: var(--on-dark);
  background: var(--surface-soft);
  border: 1px solid rgba(255, 138, 31, 0.58);
}

body.theme-night .nav-link-button:hover {
  color: #160b04;
  background: var(--amber);
}

body.theme-night .catalog-button,
body.theme-night .primary-button,
body.theme-night .cart-button,
body.theme-night .add-button {
  color: #160b04;
  background: var(--amber);
  border: 1px solid rgba(255, 138, 31, 0.68);
  box-shadow: none;
  transform: none;
}

body.theme-night .catalog-button:hover,
body.theme-night .primary-button:hover,
body.theme-night .cart-button:hover,
body.theme-night .add-button:hover {
  color: #160b04;
  background: var(--sand);
  box-shadow: none;
  transform: none;
}

body.theme-night .ghost-button,
body.theme-night .theme-toggle,
body.theme-night .icon-button,
body.theme-night .favorite-button,
body.theme-night .modal__close {
  color: var(--on-dark);
  background: var(--surface-soft);
  border: 1px solid rgba(255, 138, 31, 0.58);
  box-shadow: none;
}

body.theme-night .brand__mark {
  color: #160b04;
  background: var(--amber);
  border: 1px solid rgba(255, 138, 31, 0.68);
}

body.theme-night .brand__name b,
body.theme-night .topline__inner > span:first-child,
body.theme-night .theme-toggle svg,
body.theme-night .product-card__sku,
body.theme-night .detail-price small {
  color: var(--amber);
}

body.theme-night .accent-stripe {
  background: var(--amber);
}

body.theme-night .product-card,
body.theme-night .category-tile,
body.theme-night .theme-tile,
body.theme-night .benefits article,
body.theme-night .tiers article,
body.theme-night .steps article,
body.theme-night .modal__panel,
body.theme-night .filter-sidebar,
body.theme-night .cart-panel,
body.theme-night .product-detail__media,
body.theme-night .product-detail__aside,
body.theme-night .admin-content-section,
body.theme-night .admin-slide-editor,
body.theme-night .orders-list article,
body.theme-night .admin-preview article,
body.theme-night .excel-import,
body.theme-night .marketplace-card {
  border: 2px solid rgba(255, 138, 31, 0.62);
  box-shadow: none;
}

body.theme-night .product-card {
  border-color: var(--amber);
}

body.theme-night .product-card:hover,
body.theme-night .category-tile:hover,
body.theme-night .theme-tile:hover,
body.theme-night .marketplace-card:hover {
  border-color: rgba(255, 138, 31, 0.82);
  box-shadow: none;
}

body.theme-night .hero__actual-card {
  border-width: 3px;
  border-color: rgba(255, 122, 26, 0.9);
  box-shadow: none;
}

body.theme-night .hero__specs {
  color: var(--on-dark);
  background: var(--surface-soft);
  border: 2px solid rgba(255, 138, 31, 0.62);
}

body.theme-night .hero__specs article {
  border-right-color: rgba(255, 138, 31, 0.55);
}

body.theme-night .hero__specs strong {
  color: var(--on-dark);
}

body.theme-night .hero__specs span {
  color: var(--body);
}

body.theme-night .copy-sku-button,
body.theme-night .copy-sku-button:hover {
  color: var(--body);
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

@media (max-width: 980px) {
  .marketplace-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-link-button {
    display: none;
  }

  .theme-toggle {
    margin-left: 0;
  }
}

/* Multi-page split: each static page keeps shared markup but shows only its main scenario. */
.home-page .catalog-section,
.home-page .custom,
.home-page .marketplaces,
.catalog-page .hero,
.catalog-page .benefits,
.catalog-page .wholesale,
.catalog-page .custom,
.catalog-page .marketplaces,
.custom-page .hero,
.custom-page .benefits,
.custom-page .catalog-section,
.custom-page .wholesale,
.custom-page .marketplaces,
.marketplaces-page .hero,
.marketplaces-page .benefits,
.marketplaces-page .catalog-section,
.marketplaces-page .wholesale,
.marketplaces-page .custom {
  display: none;
}

.page-back {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 0;
}

.page-back strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero__actions .ghost-button {
  color: #111111;
  background: #ffffff;
  border: 0;
}

.hero__actions .ghost-button:hover {
  color: #ffffff;
  background: #39393b;
}

body.theme-night .hero__actions .ghost-button {
  color: #160b04;
  background: var(--amber);
  border: 1px solid rgba(255, 138, 31, 0.68);
}

body.theme-night .hero__actions .ghost-button:hover {
  color: #160b04;
  background: var(--sand);
}

.catalog-page .catalog-section,
.custom-page .custom,
.marketplaces-page .marketplaces {
  padding-top: 48px;
}

.custom-page .custom__photo-band {
  margin-top: 28px;
}

/* Cart page color and layout overrides; shared button geometry lives in the unified controls block below. */
.cart-page .catalog-button,
.cart-page .cart-page__header-note,
.cart-page .promo-form button,
.cart-page .cart-checkout-button,
.cart-page .checkout-form .primary-button {
  color: #ffffff;
  background: #111111;
  border: 1px solid #111111;
}

.cart-page .catalog-button:hover,
.cart-page .promo-form button:hover,
.cart-page .cart-checkout-button:hover,
.cart-page .checkout-form .primary-button:hover {
  color: #ffffff;
  background: #39393b;
  border-color: #39393b;
}

.cart-page .ghost-button {
  color: var(--on-dark);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
}

.cart-page .ghost-button:hover {
  color: #ffffff;
  background: #111111;
  border-color: #111111;
}

.cart-page__header-note.is-empty strong {
  display: none;
}

.cart-page .promo-form input,
.cart-page .checkout-form input {
  min-height: 48px;
  padding: 0 14px;
  color: var(--on-dark);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--control-radius);
  font-size: 14px;
}

.cart-page .promo-form input:focus,
.cart-page .checkout-form input:focus {
  outline: 2px solid var(--on-dark);
  outline-offset: 2px;
}

.cart-page .promo-form {
  align-items: stretch;
  gap: 10px;
}

.cart-page .cart-discount-scale {
  gap: 8px;
}

.cart-page .cart-scale-step {
  border-radius: var(--control-radius);
}

.cart-page .cart-page-line,
.cart-page .cart-page__empty,
.cart-page .cart-page__content,
.cart-page .cart-summary,
.cart-page .checkout-panel {
  border-radius: 12px;
}

.cart-page .cart-page-line__media {
  border-radius: var(--control-radius);
}

.cart-page .cart-page-line__qty {
  overflow: hidden;
  height: 46px;
  border-radius: var(--control-radius);
}

.cart-page .cart-page-line__qty button,
.cart-page .cart-page-line__remove {
  color: var(--on-dark);
  background: var(--surface-soft);
  border: 0;
}

.cart-page .cart-page-line__qty button:hover,
.cart-page .cart-page-line__remove:hover {
  color: #ffffff;
  background: #111111;
}

.cart-page .cart-page-line__qty input {
  min-height: 44px;
  color: var(--on-dark);
  background: var(--surface-card);
}

.cart-page .cart-page-line__remove {
  border-radius: var(--control-radius);
}

.cart-page .cart-checkout-button:disabled,
.cart-page .checkout-form .primary-button:disabled {
  color: var(--muted);
  background: var(--surface-soft);
  border-color: var(--hairline-strong);
}

body.theme-night.cart-page .catalog-button,
body.theme-night.cart-page .cart-page__header-note,
body.theme-night.cart-page .promo-form button,
body.theme-night.cart-page .cart-checkout-button,
body.theme-night.cart-page .checkout-form .primary-button {
  color: #160b04;
  background: var(--amber);
  border: 1px solid rgba(255, 138, 31, 0.68);
}

body.theme-night.cart-page .ghost-button,
body.theme-night.cart-page .promo-form input,
body.theme-night.cart-page .checkout-form input,
body.theme-night.cart-page .cart-page-line__qty,
body.theme-night.cart-page .cart-page-line__remove {
  border: 2px solid rgba(255, 138, 31, 0.58);
}

body.theme-night.cart-page .ghost-button:hover,
body.theme-night.cart-page .cart-page-line__qty button:hover,
body.theme-night.cart-page .cart-page-line__remove:hover {
  color: #160b04;
  background: var(--amber);
}

/* Unified controls pass: one font rhythm and one rounded-rectangle geometry across the app. */
.catalog-button,
.primary-button,
.ghost-button,
.cart-button,
.add-button,
.nav-link-button,
.filter-toggle,
.chip,
.promo-form button,
.request-form button,
.brief-form button,
.auth-form button,
.admin-form button,
.admin-content-form button,
.excel-import button,
.checkout-form button,
.cart-page__header-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--control-height);
  padding: 0 22px;
  border-radius: var(--control-radius);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.icon-button,
.favorite-button,
.modal__close,
.hero__actual-nav button {
  width: 48px;
  height: 48px;
  border-radius: var(--control-radius);
}

.hero__actual-card,
.category-tile,
.theme-tile,
.actual-tile,
.variant-option,
.detail-tag {
  text-transform: uppercase;
}

.theme-toggle {
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--control-radius);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.variant-option {
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--control-radius);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.detail-tag {
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--control-radius);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  text-transform: none;
}

.catalog-toolbar select,
.brief-form select,
.brief-form input,
.request-form input,
.request-form textarea,
.detail-qty input,
.auth-form input,
.admin-form input,
.admin-form select,
.admin-content-form input,
.admin-content-form select,
.admin-content-form textarea,
.excel-import input,
.promo-form input,
.checkout-form input,
.filter-search,
.search {
  border-radius: var(--control-radius);
  font-size: 14px;
  font-weight: 400;
}

.copy-sku-button,
.copy-sku-button:hover,
body.theme-night .copy-sku-button,
body.theme-night .copy-sku-button:hover {
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  font-size: 0;
}

.filter-toggle {
  display: none;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

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

@media (max-width: 900px) {
  .filter-toggle {
    display: inline-flex;
  }
}

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

body.theme-night .catalog-button,
body.theme-night .primary-button,
body.theme-night .ghost-button,
body.theme-night .cart-button,
body.theme-night .add-button,
body.theme-night .nav-link-button,
body.theme-night .filter-toggle,
body.theme-night .chip,
body.theme-night .variant-option,
body.theme-night .detail-tag,
body.theme-night .theme-toggle,
body.theme-night .icon-button,
body.theme-night .favorite-button,
body.theme-night .modal__close {
  border-width: 2px;
}

.product-card__body {
  padding: 16px 18px 14px;
  gap: 10px;
}

.product-card h3 {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.18;
}

.product-card__bottom {
  display: block;
  margin-top: 8px;
}

.product-card .add-button.product-card__price-button {
  min-height: 44px;
  margin-top: 0;
  padding: 0 16px;
}

.product-card__price-button span {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.product-detail__copy h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 2vw, 34px);
}

.product-detail__copy > p:not(.eyebrow) {
  margin: 0 0 14px;
}

.product-detail__note {
  margin-top: 0;
}

.product-card .favorite-button {
  right: 10px;
  top: 10px;
  width: 38px;
  height: 38px;
}

.product-card .favorite-button svg {
  width: 19px;
  height: 19px;
}

.product-card__sku-row {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.product-card__sku-row .product-card__sku {
  flex: 1 1 auto;
}

.product-card__sku-row .copy-sku-button {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.detail-qty-control {
  display: grid;
  grid-template-columns: 42px minmax(58px, 1fr) 42px;
  gap: 6px;
  align-items: center;
  max-width: 172px;
}

.detail-qty-control button {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  color: var(--canvas);
  background: var(--on-dark);
  border: 1px solid var(--on-dark);
  border-radius: var(--control-radius);
}

.detail-qty-control button:hover {
  color: var(--canvas);
  background: #000;
  transform: none;
}

.detail-qty-control button svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.detail-qty-control input {
  min-height: 42px;
  padding: 0 8px;
  text-align: center;
}

.totals strong#discountValue,
.cart-summary__totals strong#cartQtyDiscount {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
}

@media (max-width: 640px) {
  .product-card__body {
    padding: 12px 10px 10px;
    gap: 8px;
  }

  .product-card__bottom {
    margin-top: 6px;
  }

  .product-card h3 {
    font-size: 14px;
  }

  .product-card .favorite-button {
    width: 34px;
    height: 34px;
  }

  .product-card .add-button.product-card__price-button {
    min-height: 40px;
    padding: 0 10px;
  }

  .product-card__price-button span {
    font-size: 16px;
  }
}
