﻿:root {
  --bg: #eef4fa;
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --ink: #10223d;
  --muted: #61728a;
  --line: #d8e3ef;
  --blue: #223a5e;
  --blue-deep: #162a47;
  --cyan: #a9c0d6;
  --cyan-deep: #7896b6;
  --mint: #e7f0f7;
  --yellow: #f2dc73;
  --accent: #223a5e;
  --accent-soft: #dce8f3;
  --success: #2d8f7b;
  --shadow: 0 18px 44px rgba(34, 58, 94, 0.14);
  --shadow-strong: 0 28px 70px rgba(34, 58, 94, 0.2);
  --navy-glow: rgba(34, 58, 94, 0.18);
  --radius: 8px;
  --header-height: 82px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(169, 192, 214, 0.28), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(34, 58, 94, 0.08), transparent 24%),
    var(--bg);
  color: var(--ink);
}

body.modal-lock {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.particle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1770px, calc(100% - 64px));
  margin: 0 auto;
}

.top-promo {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 6px 20px;
  background: linear-gradient(90deg, var(--blue), #2e4b75 54%, var(--cyan-deep));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 10px 28px rgba(26, 55, 92, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  color: var(--blue);
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(216, 227, 239, 0.9), 0 10px 22px rgba(34, 58, 94, 0.12);
}

.brand-mark img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.brand-name {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue) 48%, var(--cyan-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandNameGlow 7s ease-in-out infinite;
}

.catalog-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), #2f4f7c);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
}

.burger-lines,
.burger-lines::before,
.burger-lines::after {
  width: 20px;
  height: 3px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.burger-lines {
  position: relative;
}

.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger-lines::before {
  top: -7px;
}

.burger-lines::after {
  top: 7px;
}

.search {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 62px;
  align-items: center;
  overflow: hidden;
  border: 2px solid var(--blue);
  border-radius: 16px;
  background: #fff;
}

.search-scope {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  background: #f6f9fd;
  color: var(--muted);
  font-weight: 700;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
  font-size: 1.05rem;
}

.search input::placeholder {
  color: #9aa5b5;
}

.search-icon {
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), #2f4f7c);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-action {
  min-width: 76px;
  height: 58px;
  display: grid;
  place-items: center;
  gap: 4px;
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.action-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
  box-shadow: inset 0 0 0 1px #dbe8f7, 0 8px 18px rgba(34, 58, 94, 0.08);
  color: var(--blue-deep);
}

.action-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-action:hover .action-icon {
  background: linear-gradient(135deg, var(--blue), var(--cyan-deep));
  color: #fff;
}

.nav-action.is-active .action-icon {
  background: var(--blue);
  color: #fff;
}

.nav-action.is-active strong {
  color: var(--blue-deep);
}

.nav-action:hover strong {
  color: var(--blue-deep);
}

.cart-badge {
  position: absolute;
  right: 6px;
  top: 1px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan-deep));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.quick-nav {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  color: var(--muted);
  border-top: 1px solid var(--line);
  scrollbar-width: none;
}

.quick-nav::-webkit-scrollbar {
  display: none;
}

.quick-link,
.quick-phone {
  flex: 0 0 auto;
}

.quick-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 800;
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.quick-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef7ff;
  color: var(--blue);
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.quick-link:hover,
.quick-link.is-active {
  color: var(--blue);
  border-color: rgba(34, 58, 94, 0.18);
  background: rgba(238, 247, 255, 0.76);
  box-shadow: 0 12px 24px rgba(26, 55, 92, 0.08);
  transform: translateY(-2px);
}

.quick-link:hover .quick-icon,
.quick-link.is-active .quick-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  transform: scale(1.06);
}

.quick-link.is-sale {
  color: var(--blue-deep);
  background: linear-gradient(135deg, #e9f5ff, #f6fbff);
}

.quick-link.is-sale .quick-icon {
  background: #fff3c9;
  color: #d78b00;
}

.quick-phone {
  margin-left: auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: #f4f9ff;
  border: 1px solid rgba(34, 58, 94, 0.12);
  font-size: 0.95rem;
  font-weight: 900;
  white-space: nowrap;
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.quick-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(26, 55, 92, 0.1);
}

.marketplace {
  display: grid;
  gap: 18px;
  padding: 18px 0 48px;
}

.hero-banner {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 84% 24%, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(115deg, var(--blue-deep) 0%, var(--blue) 48%, var(--cyan) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-copy {
  min-width: 0;
  padding: 34px 54px 76px;
}

.eyebrow {
  margin: 0;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: var(--yellow);
}

.hero-copy h1 {
  max-width: 560px;
  margin: 10px 0 18px;
  font-size: clamp(2.2rem, 4.3vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.discount-pill {
  width: fit-content;
  margin-bottom: 20px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--yellow);
  color: #06172b;
  font-size: clamp(1.6rem, 3vw, 3.4rem);
  font-weight: 1000;
  line-height: 1;
}

.light-button {
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 55, 115, 0.2);
}

.hero-sofa {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 24px 42px 12px 0;
}

.hero-sofa img {
  width: min(720px, 100%);
  filter: drop-shadow(0 28px 34px rgba(0, 48, 102, 0.28));
}

.category-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  padding: 18px 0 6px;
}

.category-rail button {
  min-height: 108px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(26, 55, 92, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.category-rail button:hover,
.category-rail button.is-active {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.category-rail span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #e7f3ff, #dff8f5);
  color: var(--blue-deep);
  font-size: 1.7rem;
}

.category-rail strong {
  font-size: 0.95rem;
}

.deal-strip {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 10px 22px;
  border-radius: 18px;
  background: linear-gradient(90deg, #e8f1f8, var(--cyan) 46%, var(--blue));
  color: #08233f;
  font-weight: 800;
}

.deal-strip strong {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.catalog-section {
  min-width: 0;
  padding-top: 4px;
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.catalog-toolbar h2 {
  margin: 4px 0 0;
  font-size: clamp(1.7rem, 2.2vw, 2.4rem);
  line-height: 1.05;
}

.toolbar-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.listing-filter-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  margin: 0 0 16px;
  padding: 2px 0 8px;
  scrollbar-width: none;
}

.listing-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill,
.sale-switch {
  min-height: 46px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: #eef1f7;
  color: var(--ink);
  font-weight: 800;
}

.sale-switch {
  background: linear-gradient(135deg, var(--blue), #2f4f7c);
  color: #fff;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(34, 58, 94, 0.16);
}

.sale-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sale-switch i {
  width: 42px;
  height: 26px;
  position: relative;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.sale-switch i::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #8ea2bb;
  transition: transform 0.18s ease, background 0.18s ease;
}

.sale-switch input:checked + i::before {
  transform: translateX(16px);
  background: var(--cyan);
}

.sort-control {
  min-width: 214px;
  position: relative;
  overflow: visible;
  color: var(--muted);
  font-size: 0.78rem;
}

.listing-filter-bar .sort-control {
  flex: 0 0 250px;
  min-width: 250px;
  color: var(--ink);
  font-size: 0.96rem;
}

.listing-filter-bar .sort-control span {
  color: var(--ink);
}

.sort-control > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.sort-trigger {
  min-width: 148px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 0 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.sort-trigger svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.sort-control.is-open .sort-trigger svg {
  transform: rotate(180deg);
}

.sort-menu {
  position: absolute;
  left: auto;
  right: 0;
  top: calc(100% + 10px);
  z-index: 120;
  width: min(320px, calc(100vw - 32px));
  min-width: 240px;
  max-height: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border: 1px solid rgba(192, 214, 240, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 50px rgba(26, 55, 92, 0.18);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.sort-control.is-open .sort-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sort-menu button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.sort-menu button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.sort-menu button:hover,
.sort-menu button.is-active {
  background: #eef7ff;
  color: var(--blue-deep);
  transform: translateX(2px);
}

.sort-menu button.is-active::after {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(34, 58, 94, 0.12);
}

.sort-control select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.filter-chip-group {
  align-items: center;
}

.filter-chip-group > span,
.price-pill > span,
.delivery-pill > span {
  color: var(--ink);
  white-space: nowrap;
}

.listing-filter-bar .chip-list,
.listing-filter-bar .segmented {
  flex-wrap: nowrap;
  gap: 6px;
}

.listing-filter-bar .chip,
.listing-filter-bar .segmented button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  background: #fff;
  font-size: 0.86rem;
}

.price-pill {
  min-width: 260px;
}

.price-pill .range {
  width: 90px;
}

.price-pill strong {
  color: var(--blue-deep);
  white-space: nowrap;
}

.delivery-pill input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.reset-pill {
  color: var(--blue-deep);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.product-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 252px minmax(330px, 1fr);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(26, 55, 92, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #b6d8ff;
  box-shadow: 0 16px 34px rgba(26, 55, 92, 0.14);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 10px;
  background: linear-gradient(160deg, #eef7ff, #fff 58%, #e9fbf8);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  align-content: end;
  gap: 8px;
  overflow: hidden;
  padding: 18px;
  border: 1px dashed #bdd8f4;
  border-radius: 16px;
  background:
    radial-gradient(circle at 78% 22%, rgba(169, 192, 214, 0.2), transparent 28%),
    linear-gradient(145deg, #f7fbff, #e6f4ff);
  color: var(--ink);
}

.product-placeholder.has-image {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.product-placeholder.has-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.product-placeholder[data-kind="РљСѓС…РЅРё"] {
  background:
    radial-gradient(circle at 80% 24%, rgba(169, 192, 214, 0.22), transparent 30%),
    linear-gradient(145deg, #f8fdff, #dff8f5);
}

.product-placeholder[data-kind="РЈСЃР»СѓРіРё"] {
  background:
    radial-gradient(circle at 80% 24%, rgba(34, 58, 94, 0.22), transparent 30%),
    linear-gradient(145deg, #f7fbff, #e8f3ff);
}

.placeholder-section {
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-placeholder strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1.35rem;
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.placeholder-line {
  min-height: 1.2em;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-placeholder i {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.product-tags {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 62px);
}

.tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(34, 58, 94, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.discount-tag {
  background: var(--blue-deep);
}

.favorite-button {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(26, 55, 92, 0.12);
}

.favorite-button.is-active {
  color: var(--blue-deep);
}

.favorite-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.favorite-button.is-active .favorite-icon {
  fill: rgba(34, 58, 94, 0.14);
}

.product-body {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 8px;
  min-width: 0;
  padding: 12px 13px 14px;
}

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

.product-brand {
  min-width: 0;
  max-width: 54%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-title-row {
  display: grid;
  gap: 2px;
}

.product-title-row h3 {
  margin: 0;
  min-height: 2.45em;
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rating {
  flex: 0 0 auto;
  color: #ff9f1c;
  font-size: 0.8rem;
  font-weight: 900;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-content: start;
  max-height: 64px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
}

.product-meta span {
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f0f4f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swatches {
  display: flex;
  gap: 6px;
  min-height: 20px;
}

.swatch {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
}

.product-footer {
  display: grid;
  align-self: end;
  gap: 7px;
  margin-top: 2px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price strong {
  color: var(--blue-deep);
  font-size: 1.28rem;
  font-weight: 1000;
}

.price del {
  color: #9aa5b5;
  font-size: 0.82rem;
}

.economy {
  max-width: 100%;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bonus-note,
.delivery-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.delivery-note {
  color: var(--ink);
  font-weight: 800;
}

.primary-button,
.soft-button {
  min-height: 42px;
  border-radius: 12px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
  width: 100%;
  padding: 0 16px;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 10px 20px rgba(34, 58, 94, 0.18);
}

.soft-button {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-deep);
}

.primary-button:hover,
.soft-button:hover,
.light-button:hover {
  transform: translateY(-1px);
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: none;
}

.product-modal.is-open {
  display: block;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 32, 51, 0.34);
}

.product-detail {
  position: absolute;
  inset: 0;
  overflow: auto;
  background: #fff;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 0;
  min-height: 100vh;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  min-height: 100vh;
  padding: 32px;
  background: #f6f9fd;
}

.detail-thumbs {
  display: grid;
  align-content: start;
  gap: 10px;
}

.detail-thumb {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.detail-thumb.is-active {
  border-color: var(--blue);
  color: var(--blue-deep);
  box-shadow: 0 0 0 2px rgba(34, 58, 94, 0.12);
}

.detail-stage {
  min-height: min(680px, calc(100vh - 64px));
  display: grid;
}

.detail-stage .product-placeholder {
  min-height: 560px;
  padding: 36px;
}

.detail-stage .product-placeholder strong {
  font-size: clamp(2rem, 4vw, 4.5rem);
}

.detail-info {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 48px min(5vw, 72px);
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

.detail-title-row span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.detail-close {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.detail-close:hover {
  transform: translateY(-2px) rotate(4deg);
  border-color: var(--blue-soft);
  box-shadow: 0 14px 24px rgba(34, 58, 94, 0.12);
}

.detail-close-icon {
  width: 22px;
  height: 22px;
}

.detail-rating {
  width: fit-content;
  color: #ff9f1c;
  font-weight: 900;
}

.detail-warranty {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 10px;
  background: #d7f6ea;
  color: #08784f;
  font-weight: 900;
}

.detail-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-price strong {
  color: var(--blue-deep);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 1000;
}

.detail-price del {
  color: var(--muted);
  font-size: 1.1rem;
}

.detail-price span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--blue-deep);
  font-weight: 900;
}

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

.secondary-action {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #dff8f5;
  color: var(--cyan-deep);
  font-weight: 900;
}

.seller-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid #bfe7ef;
  border-radius: 16px;
  background: #eefcfd;
}

.seller-call[hidden] {
  display: none;
}

.seller-call div {
  display: grid;
  gap: 4px;
}

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

.seller-phone {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.variant-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.variant-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.variant-head h3 {
  margin: 0;
}

.variant-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.variant-option {
  min-height: 76px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  color: var(--ink);
  text-align: left;
}

.variant-option.is-active {
  border-color: var(--cyan-deep);
  box-shadow: 0 0 0 2px rgba(169, 192, 214, 0.14);
}

.variant-color {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
}

.variant-option strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.variant-option span:last-child {
  color: var(--blue-deep);
  font-weight: 900;
}

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

.detail-option {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}

.detail-option span {
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-option strong {
  overflow-wrap: anywhere;
}

.detail-delivery {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.detail-delivery h3,
.detail-delivery p {
  margin: 0;
}

.detail-delivery p {
  color: var(--muted);
  line-height: 1.45;
}

.detail-reviews,
.detail-similar {
  padding: 36px min(5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head h2,
.detail-similar h2 {
  margin: 0;
  font-size: 1.8rem;
}

.section-head span {
  color: var(--muted);
  font-weight: 900;
}

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

.review-card {
  min-height: 168px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbff;
}

.review-card div {
  display: flex;
  gap: 10px;
}

.review-card div span {
  color: var(--muted);
}

.review-card b {
  color: #ff9f1c;
}

.review-card p {
  margin: 0;
  line-height: 1.45;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.similar-card {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.similar-card .product-placeholder {
  min-height: 190px;
}

.similar-card strong {
  min-height: 2.4em;
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.similar-card > span {
  color: var(--blue-deep);
  font-size: 1.1rem;
  font-weight: 1000;
}

.filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.filter-drawer.is-open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(19, 32, 51, 0.26);
}

.filter-panel {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: min(980px, calc(100% - 42px));
  display: flex;
  flex-direction: column;
  align-content: start;
  gap: 0;
  overflow: auto;
  padding: 0;
  background: #fff;
  box-shadow: 18px 0 48px rgba(19, 32, 51, 0.2);
}

.filter-panel .drawer-head {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 10px 22px rgba(34, 58, 94, 0.18);
}

.filter-panel .drawer-head .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.filter-panel .drawer-head .icon-button {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

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

.drawer-head h2 {
  margin: 4px 0 0;
}

.catalog-menu {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.catalog-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: #f6f8fc;
}

.catalog-tab {
  min-height: 54px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 1rem;
  font-weight: 800;
}

.catalog-tab:hover,
.catalog-tab.is-active {
  background: #fff;
  box-shadow: 0 8px 18px rgba(26, 55, 92, 0.08);
}

.catalog-tab.is-active {
  color: var(--blue-deep);
}

.catalog-tab-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #e9f4ff, #f7fbff);
  color: var(--blue-deep);
  box-shadow: inset 0 0 0 1px #d7e9ff, 0 8px 18px rgba(34, 58, 94, 0.08);
}

.catalog-tab-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-tab:hover .catalog-tab-icon,
.catalog-tab.is-active .catalog-tab-icon {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 10px 22px rgba(34, 58, 94, 0.22);
}

.catalog-content {
  min-width: 0;
  padding: 28px 30px 34px;
  background: #fff;
}

.catalog-view {
  display: none;
}

.catalog-view.is-active {
  display: grid;
  gap: 24px;
}

.catalog-title-row {
  display: grid;
  gap: 6px;
}

.catalog-title-row h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.catalog-title-row span {
  color: var(--muted);
}

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

.catalog-columns div {
  display: grid;
  align-content: start;
  gap: 13px;
}

.catalog-columns h4 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.catalog-columns a,
.catalog-columns button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 1rem;
}

.catalog-columns a:hover,
.catalog-columns button:hover {
  color: var(--blue-deep);
}

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

.service-card {
  min-height: 154px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(232, 243, 255, 0.95), rgba(255, 255, 255, 0.96)),
    #fff;
  box-shadow: 0 10px 22px rgba(26, 55, 92, 0.07);
}

.service-card strong {
  color: var(--blue-deep);
  font-size: 1.15rem;
}

.service-card span {
  color: var(--muted);
  line-height: 1.45;
}

.filter-group {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(26, 55, 92, 0.05);
}

.filter-group h3 {
  margin: 0;
  font-size: 0.95rem;
}

.chip-list,
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.segmented button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
}

.chip.is-active,
.segmented button.is-active {
  border-color: var(--blue);
  background: #e8f3ff;
  color: var(--blue-deep);
  font-weight: 900;
}

.range {
  width: 100%;
  accent-color: var(--blue);
}

.range-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.toggle-line {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.toggle-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--blue-deep);
  font-size: 1.3rem;
  font-weight: 900;
}

.empty-state {
  margin: 24px 0 0;
  padding: 22px;
  border: 1px dashed #a9d5ef;
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.profile-modal {
  width: min(860px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: transparent;
}

.profile-modal::backdrop {
  background: rgba(19, 32, 51, 0.34);
}

.profile-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(197, 221, 244, 0.9);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 237, 92, 0.28), transparent 22%),
    linear-gradient(145deg, #ffffff 0%, #f2fbff 48%, #ffffff 100%);
  box-shadow: 0 26px 70px rgba(16, 72, 132, 0.2);
}

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

.modal-head h2 {
  margin: 4px 0 0;
}

.profile-hero-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(34, 58, 94, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(34, 58, 94, 0.12), rgba(88, 220, 225, 0.2)),
    #fff;
}

.profile-avatar {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--blue), #a9c0d6);
  color: #fff;
  font-size: 2.9rem;
  font-weight: 1000;
  box-shadow: 0 16px 28px rgba(34, 58, 94, 0.28);
}

.profile-identity {
  display: grid;
  gap: 6px;
}

.profile-identity strong {
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  line-height: 1;
}

.profile-identity p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.profile-state {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff46d;
  color: #10213a;
  font-size: 0.78rem;
  font-weight: 900;
}

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

.profile-stats div {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(26, 55, 92, 0.06);
}

.profile-stats span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-stats strong {
  color: var(--blue-deep);
  font-size: 2rem;
  line-height: 1;
}

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

.profile-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
}

.profile-grid input {
  min-height: 44px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}

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

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

.profile-panels section {
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.profile-panels h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.mini-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.mini-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 90;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 14px;
  background: #132033;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1120px) {
  .app-shell {
    width: min(100% - 28px, 1120px);
  }

  .header-grid {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .top-actions {
    grid-column: 1 / -1;
    justify-content: space-around;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .hero-banner {
    grid-template-columns: 1fr;
  }

  .hero-sofa {
    padding: 0 28px 24px;
  }

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

  .detail-gallery {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .top-promo {
    justify-content: start;
  }

  .header-grid {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 2rem;
  }

  .catalog-button {
    min-height: 46px;
    padding: 0 16px;
  }

  .search {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 54px;
  }

  .search-scope {
    display: none;
  }

  .top-actions {
    gap: 4px;
  }

  .nav-action {
    min-width: 64px;
  }

  .quick-nav {
    gap: 18px;
  }

  .hero-banner {
    min-height: 0;
  }

  .hero-copy {
    padding: 30px 22px;
  }

  .category-rail {
    grid-template-columns: repeat(5, 132px);
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .filter-panel {
    width: min(430px, 100%);
  }

  .catalog-menu {
    min-height: calc(100vh - 92px);
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    display: flex;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .catalog-sidebar::-webkit-scrollbar {
    display: none;
  }

  .catalog-tab {
    flex: 0 0 min(210px, 72vw);
    grid-template-columns: 46px minmax(0, 1fr);
    scroll-snap-align: start;
  }

  .catalog-tab b {
    display: none;
  }

  .catalog-content {
    padding: 22px 18px 28px;
  }

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

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

  .sort-control {
    min-width: 0;
  }

  .profile-grid,
  .profile-panels {
    grid-template-columns: 1fr;
  }

  .profile-hero-card,
  .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    font-size: 2.3rem;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .detail-thumbs {
    grid-auto-flow: column;
    grid-auto-columns: 78px;
    overflow-x: auto;
  }

  .detail-stage .product-placeholder {
    min-height: 360px;
  }

  .detail-info {
    padding: 26px 18px 36px;
  }

  .detail-actions,
  .detail-options,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .variant-head,
  .seller-call,
  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: min(100% - 18px, 520px);
  }

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

  .product-card {
    grid-template-rows: 168px minmax(330px, 1fr);
    min-height: 520px;
    border-radius: 14px;
  }

  .product-body {
    padding: 10px;
  }

  .price strong {
    font-size: 1.05rem;
  }

  .primary-button {
    min-height: 38px;
    padding: 0 8px;
    font-size: 0.86rem;
  }

  .product-placeholder {
    padding: 12px;
  }

  .product-placeholder strong {
    font-size: 1rem;
  }
}

/* Motion polish */
.top-promo {
  position: relative;
  z-index: 31;
}

.top-promo span {
  animation: promoDrift 14s ease-in-out infinite alternate;
}

.brand-mark {
  animation: brandPulse 4.8s ease-in-out infinite;
}

.catalog-button,
.light-button,
.primary-button,
.soft-button,
.filter-pill,
.sale-switch,
.catalog-tab,
.variant-option,
.secondary-action,
.detail-thumb {
  position: relative;
  overflow: hidden;
}

.search {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.search:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(34, 58, 94, 0.16);
}

.nav-action,
.action-icon,
.category-rail button,
.service-card,
.variant-option,
.similar-card,
.detail-thumb {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-action:hover {
  transform: translateY(-2px);
}

.nav-action:hover .action-icon {
  transform: translateY(-2px) scale(1.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 14px 24px rgba(34, 58, 94, 0.18);
}

.hero-banner,
.deal-strip {
  --parallax-y: 0px;
  transform: translateY(var(--parallax-y));
  will-change: transform;
}

.hero-banner {
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 35%, rgba(255, 255, 255, 0.22) 45%, transparent 55% 100%);
  transform: translateX(-120%);
  animation: bannerSheen 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-copy,
.hero-sofa {
  position: relative;
  z-index: 1;
}

.category-rail button:hover,
.category-rail button.is-active,
.service-card:hover,
.similar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(26, 55, 92, 0.13);
}

.product-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  position: relative;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  will-change: transform;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at var(--shine-x) 0%, rgba(255, 255, 255, 0.34), transparent 36%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.product-card:hover {
  transform: perspective(900px) translateY(-4px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.product-card:hover::before {
  opacity: 1;
}

.product-placeholder {
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.product-placeholder::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 58, 94, 0.24);
  transform: rotate(45deg);
  animation: particleDiamond 5s ease-in-out infinite;
  pointer-events: none;
}

.product-card:hover .product-placeholder,
.similar-card:hover .product-placeholder {
  border-color: rgba(34, 58, 94, 0.5);
  transform: scale(1.01);
}

.favorite-button {
  transition: transform 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.favorite-button:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 24px rgba(26, 55, 92, 0.16);
}

.button-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(0);
  animation: buttonRipple 0.58s ease-out forwards;
  pointer-events: none;
}

.soft-button .button-ripple,
.filter-pill .button-ripple,
.catalog-tab .button-ripple,
.variant-option .button-ripple,
.detail-thumb .button-ripple,
.secondary-action .button-ripple {
  background: rgba(34, 58, 94, 0.18);
}

.filter-panel {
  animation: slideCatalog 0.28s ease both;
}

.profile-card,
.product-detail {
  animation: modalIn 0.24s ease both;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.site-header {
  transition:
    background 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-grid,
.brand-mark,
.brand-name,
.catalog-button,
.search,
.nav-actions {
  transition:
    min-height 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    font-size 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-elevated {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(205, 222, 244, 0.78), 0 18px 42px rgba(26, 55, 92, 0.14);
}

.site-header.is-compact .header-grid {
  min-height: 68px;
}

.site-header.is-compact .brand-mark {
  transform: scale(0.88);
}

.site-header.is-compact .brand-name {
  font-size: 2.26rem;
}

.site-header.is-compact .catalog-button,
.site-header.is-compact .search {
  min-height: 46px;
}

.site-header.is-compact .nav-actions {
  transform: scale(0.96);
}

.hero-banner {
  --hero-mx: 0px;
  --hero-my: 0px;
  --hero-bg-x: 84%;
  --hero-bg-y: 28%;
  --hero-decor-x: 0px;
  --hero-decor-y: 0px;
  background-position: var(--hero-bg-x) var(--hero-bg-y), center;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-position 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 10% 4% 8% 42%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 2px, transparent 3px) 4% 18% / 96px 96px,
    radial-gradient(circle, rgba(79, 177, 255, 0.3) 0 4px, transparent 5px) 72% 16% / 140px 140px,
    radial-gradient(circle, rgba(255, 232, 111, 0.55) 0 5px, transparent 6px) 45% 75% / 160px 160px;
  opacity: 0.75;
  transform: translate3d(var(--hero-decor-x), var(--hero-decor-y), 0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero-copy .eyebrow,
.hero-copy h1,
.discount-pill,
.hero-copy .light-button,
.hero-sofa {
  opacity: 0;
}

.hero-banner.is-visible .hero-copy .eyebrow {
  animation: heroTextIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both 0.04s;
}

.hero-banner.is-visible .hero-copy h1 {
  animation: heroTextIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both 0.1s;
}

.hero-banner.is-visible .discount-pill {
  animation: heroBadgeIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) both 0.2s;
}

.hero-banner.is-visible .hero-copy .light-button {
  animation: heroTextIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both 0.32s;
}

.hero-banner.is-visible .hero-sofa {
  animation: heroVisualIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both 0.16s;
}

.hero-sofa img {
  transform: translate3d(var(--hero-mx), var(--hero-my), 0) scale(1.01);
  transition:
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-banner:hover .hero-sofa img {
  filter: drop-shadow(0 24px 38px rgba(8, 73, 150, 0.2));
}

.category-rail button span,
.catalog-tab span {
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), color 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-rail.is-visible button {
  animation: categoryCardIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.category-rail.is-visible button:nth-child(2) { animation-delay: 45ms; }
.category-rail.is-visible button:nth-child(3) { animation-delay: 90ms; }
.category-rail.is-visible button:nth-child(4) { animation-delay: 135ms; }
.category-rail.is-visible button:nth-child(5) { animation-delay: 180ms; }
.category-rail.is-visible button:nth-child(6) { animation-delay: 225ms; }
.category-rail.is-visible button:nth-child(7) { animation-delay: 270ms; }

.category-rail button:hover {
  border-color: rgba(34, 58, 94, 0.46);
}

.category-rail button:hover span,
.catalog-tab:hover span {
  transform: scale(1.08);
}

.chip,
.segmented button,
.filter-pill,
.sale-switch,
.tag,
.detail-option,
.fabric-option,
.size-option {
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.chip:hover,
.segmented button:hover,
.filter-pill:hover,
.tag:hover,
.fabric-option:hover,
.size-option:hover {
  transform: translateY(-2px);
  background: #eef7ff;
  border-color: rgba(34, 58, 94, 0.34);
}

.chip.is-active,
.segmented button.is-active,
.filter-pill.is-active {
  box-shadow: 0 12px 24px rgba(34, 58, 94, 0.15);
}

.sale-switch i,
.sale-switch i::before {
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.primary-button {
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(34, 58, 94, 0.26);
  filter: saturate(1.1);
}

.primary-button.is-added {
  background: linear-gradient(135deg, #07b8d6, #0aa6ff);
  box-shadow: 0 18px 34px rgba(7, 184, 214, 0.28);
}

.cart-badge {
  transform-origin: center;
}

.cart-badge.is-bouncing {
  animation: cartBadgeBounce 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cart-trigger.is-bouncing .action-icon {
  animation: cartIconBounce 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rating,
.detail-rating,
.review-stars {
  transition: filter 0.2s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.rating:hover,
.detail-rating:hover,
.review-stars:hover {
  filter: brightness(1.12) saturate(1.14);
  text-shadow: 0 6px 16px rgba(255, 145, 0, 0.18);
}

.hero-carousel {
  min-height: 400px;
  display: block;
  position: relative;
  overflow: hidden;
}

.hero-track {
  position: relative;
  min-height: 400px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  opacity: 0;
  transform: translateX(22px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-slide.is-uploaded-ad {
  grid-template-columns: 1fr;
  padding: 24px;
}

.hero-slide.is-uploaded-ad .hero-sofa {
  position: absolute;
  inset: 24px;
  z-index: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62), 0 24px 54px rgba(8, 73, 150, 0.16);
}

.hero-slide.is-uploaded-ad .hero-sofa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  background: #fff;
  transform: none;
}

.hero-slide.is-uploaded-ad .hero-copy {
  position: absolute;
  left: 42px;
  top: 38px;
  z-index: 2;
  width: fit-content;
  max-width: min(360px, calc(100% - 84px));
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(8, 73, 150, 0.12);
  backdrop-filter: blur(14px);
}

.hero-slide.is-uploaded-ad .hero-copy .eyebrow {
  margin: 0;
  color: var(--blue-deep);
}

.hero-ad-placeholder {
  width: min(84%, 660px);
  min-height: 260px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  background:
    radial-gradient(circle at 25% 32%, rgba(34, 58, 94, 0.16), transparent 24%),
    radial-gradient(circle at 76% 68%, rgba(169, 192, 214, 0.16), transparent 26%),
    rgba(255, 255, 255, 0.9);
  color: var(--blue);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 1000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 28px 60px rgba(34, 58, 94, 0.2);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 16px 32px rgba(8, 73, 150, 0.18);
}

.hero-arrow-prev {
  left: 18px;
}

.hero-arrow-next {
  right: 18px;
}

.hero-carousel-footer {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 22px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 9px;
  pointer-events: auto;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: transparent;
  transition:
    width 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-dots button.is-active {
  width: 30px;
  background: #fff;
}

.hero-upload {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(8, 73, 150, 0.14);
  cursor: pointer;
  pointer-events: auto;
}

.hero-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hero-upload[hidden],
.hero-upload.is-admin-only {
  display: none !important;
}

.hero-banner.is-visible .hero-slide.is-active .hero-copy .eyebrow {
  animation: heroTextIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both 0.04s;
}

.hero-banner.is-visible .hero-slide.is-active .hero-copy h1 {
  animation: heroTextIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both 0.1s;
}

.hero-banner.is-visible .hero-slide.is-active .discount-pill {
  animation: heroBadgeIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) both 0.2s;
}

.hero-banner.is-visible .hero-slide.is-active .hero-copy .light-button {
  animation: heroTextIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both 0.32s;
}

.hero-banner.is-visible .hero-slide.is-active .hero-sofa {
  animation: heroVisualIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both 0.16s;
}

.sort-control.is-open {
  z-index: 130;
}

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

  .hero-track,
  .hero-carousel {
    min-height: clamp(330px, 76vw, 460px);
  }

  .hero-arrow {
    top: auto;
    bottom: 76px;
    transform: none;
  }

  .quick-nav {
    gap: 8px;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .quick-link {
    min-height: 40px;
    padding: 0 12px;
    scroll-snap-align: start;
  }

  .quick-phone {
    display: none;
  }

  .listing-filter-bar {
    gap: 10px;
    padding: 2px 0 12px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 620px) {
  .catalog-toolbar h2 {
    font-size: 1.55rem;
  }

  .listing-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    overflow: visible;
  }

  .filter-pill,
  .sale-switch {
    width: 100%;
    min-width: 0;
    justify-content: center;
    border-radius: 16px;
  }

  .sale-switch {
    justify-content: space-between;
  }

  .listing-filter-bar .sort-control {
    flex: 1 1 0;
    min-width: 0;
    justify-content: space-between;
  }

  .sort-control > span {
    display: none;
  }

  .sort-trigger {
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .sort-menu {
    left: auto;
    right: 0;
    width: min(280px, calc(100vw - 24px));
  }

  .filter-chip-group,
  .price-pill {
    grid-column: 1 / -1;
  }

  .filter-chip-group {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-chip-group::-webkit-scrollbar {
    display: none;
  }

  .listing-filter-bar .chip-list,
  .listing-filter-bar .segmented {
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
  }

  .listing-filter-bar .chip-list::-webkit-scrollbar,
  .listing-filter-bar .segmented::-webkit-scrollbar {
    display: none;
  }

  .price-pill {
    display: grid;
    grid-template-columns: auto minmax(100px, 1fr) auto;
    justify-content: stretch;
  }

  .price-pill .range {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .top-promo {
    min-height: 30px;
    font-size: 0.78rem;
  }

  .site-header.is-compact .brand-name,
  .brand-name {
    font-size: 1.82rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .nav-action {
    min-width: 56px;
    font-size: 0.76rem;
  }

  .action-icon {
    width: 40px;
    height: 40px;
  }

  .quick-nav {
    min-height: 54px;
  }

  .quick-link {
    font-size: 0.84rem;
  }

  .quick-icon {
    width: 26px;
    height: 26px;
    border-radius: 9px;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 13vw, 3.2rem);
  }

  .hero-track,
  .hero-carousel {
    min-height: 118vw;
    max-height: 440px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    bottom: 70px;
  }

  .hero-slide.is-uploaded-ad {
    padding: 12px;
  }

  .hero-slide.is-uploaded-ad .hero-sofa {
    inset: 12px;
  }

  .hero-slide.is-uploaded-ad .hero-sofa img {
    object-fit: cover;
  }

  .hero-slide.is-uploaded-ad .hero-copy {
    left: 22px;
    top: 22px;
    max-width: calc(100% - 44px);
  }

  .catalog-tab {
    flex-basis: min(188px, 70vw);
  }

  .hero-carousel-footer {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .hero-upload {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .category-rail {
    grid-template-columns: repeat(5, minmax(116px, 1fr));
  }

  .category-rail button {
    min-height: 118px;
    padding: 12px;
  }

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

  .product-card {
    grid-template-rows: 210px auto;
    min-height: 0;
  }

  .product-body {
    min-height: 0;
  }
}

@keyframes promoDrift {
  from { transform: translateX(-10px); }
  to { transform: translateX(10px); }
}

@keyframes brandPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 58, 94, 0.22); }
  50% { box-shadow: 0 0 0 8px rgba(34, 58, 94, 0); }
}

@keyframes bannerSheen {
  0%, 46% { transform: translateX(-120%); }
  68%, 100% { transform: translateX(120%); }
}

@keyframes particleDiamond {
  0%, 100% { opacity: 0.45; transform: translateY(0) rotate(45deg); }
  50% { opacity: 0.9; transform: translateY(-8px) rotate(45deg); }
}

@keyframes buttonRipple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@keyframes slideCatalog {
  from { transform: translateX(-20px); opacity: 0.8; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroBadgeIn {
  0% { opacity: 0; transform: translateY(12px) scale(0.92); }
  70% { opacity: 1; transform: translateY(0) scale(1.035); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroVisualIn {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes categoryCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes catalogHubCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes catalogHeroFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@keyframes cartBadgeBounce {
  0% { transform: scale(0.78); }
  58% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes cartIconBounce {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-5px) scale(1.08); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes brandNameGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(34, 58, 94, 0)); }
  50% { filter: drop-shadow(0 8px 18px rgba(34, 58, 94, 0.18)); }
}

@keyframes pageSoftIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardCascadeIn {
  from {
    opacity: 0;
    filter: saturate(0.92) blur(2px);
  }
  to {
    opacity: 1;
    filter: saturate(1) blur(0);
  }
}

@keyframes softSheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes lookbookCardIn {
  from {
    opacity: 0;
    transform: translateY(22px) rotate(var(--tilt)) scale(0.985);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--tilt)) scale(1);
    filter: blur(0);
  }
}

.marketplace:not([hidden]),
.cart-page:not([hidden]),
.account-page:not([hidden]) {
  animation: pageSoftIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-card {
  animation: cardCascadeIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-card:nth-child(2n) { animation-delay: 35ms; }
.product-card:nth-child(3n) { animation-delay: 70ms; }
.product-card:nth-child(4n) { animation-delay: 105ms; }
.product-card:nth-child(5n) { animation-delay: 140ms; }

.product-card,
.category-rail button,
.filter-pill,
.sale-switch,
.cart-item,
.favorite-card {
  backface-visibility: hidden;
}

.product-card .primary-button,
.cart-summary .primary-button,
.favorite-card .primary-button {
  position: relative;
  overflow: hidden;
}

.product-card .primary-button::after,
.cart-summary .primary-button::after,
.favorite-card .primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 36%, rgba(255, 255, 255, 0.34) 48%, transparent 60% 100%);
  transform: translateX(-120%);
  pointer-events: none;
}

.product-card .primary-button:hover::after,
.cart-summary .primary-button:hover::after,
.favorite-card .primary-button:hover::after {
  animation: softSheen 0.8s ease;
}

/* Marketplace homepage */
.site-header {
  background: rgba(255, 255, 255, 0.96);
}

.top-promo {
  justify-content: space-between;
  padding-inline: max(20px, calc((100vw - 1770px) / 2 + 32px));
  background: linear-gradient(90deg, #162a47, #223a5e 52%, #7896b6);
}

.header-grid {
  grid-template-columns: auto auto minmax(360px, 1fr) auto;
  gap: 16px;
}

.search {
  border-width: 1px;
  box-shadow: inset 0 0 0 1px rgba(34, 58, 94, 0.08), 0 10px 24px rgba(26, 55, 92, 0.06);
}

.quick-nav {
  min-height: 58px;
  gap: 8px;
}

.quick-link {
  min-height: 38px;
  border-color: rgba(216, 227, 239, 0.86);
  background: #fff;
}

.quick-phone {
  background: var(--blue);
  color: #fff;
}

.hero-carousel,
.hero-track {
  min-height: 430px;
}

.hero-banner {
  border-radius: 8px;
  background:
    radial-gradient(circle at 74% 28%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(118deg, #10223d 0%, #223a5e 48%, #a9c0d6 100%);
}

.hero-copy {
  padding: 46px 64px 82px;
}

.hero-copy h1 {
  max-width: 700px;
  font-size: clamp(2.4rem, 4.2vw, 4.9rem);
}

.hero-sofa {
  padding-right: 34px;
}

.category-rail {
  grid-template-columns: repeat(8, minmax(132px, 1fr));
  gap: 10px;
  padding: 4px 0 8px;
}

.category-rail a,
.category-rail button {
  min-height: 116px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 8px 20px rgba(26, 55, 92, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.category-rail a:hover,
.category-rail button:hover,
.category-rail a.is-active,
.category-rail button.is-active {
  transform: translateY(-3px);
  border-color: rgba(34, 58, 94, 0.38);
  box-shadow: 0 16px 30px rgba(26, 55, 92, 0.12);
}

.category-rail a span,
.category-rail button span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef7ff, #ffffff);
  color: var(--blue-deep);
  font-size: 1.45rem;
  font-weight: 1000;
  box-shadow: inset 0 0 0 1px #dbe8f7;
}

.category-rail small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.deal-strip {
  border-radius: 8px;
  background: linear-gradient(90deg, #ffffff, #eef7ff 46%, #223a5e);
  box-shadow: 0 10px 28px rgba(26, 55, 92, 0.08);
}

.home-section {
  display: grid;
  gap: 16px;
  padding: 24px 0 4px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-head h2,
.promo-showcase h2 {
  margin: 4px 0 0;
  font-size: clamp(1.65rem, 2.2vw, 2.45rem);
  line-height: 1.05;
}

.section-head .soft-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
}

.catalog-hub {
  position: relative;
  overflow: hidden;
  gap: 22px;
  margin-top: 12px;
  padding: clamp(18px, 2.2vw, 32px);
  border: 1px solid rgba(202, 218, 235, 0.88);
  border-radius: 8px;
  background:
    radial-gradient(circle at 11% 18%, rgba(255, 255, 255, 0.9), transparent 28%),
    radial-gradient(circle at 92% 6%, rgba(242, 220, 115, 0.22), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 48%, #edf5fd 100%);
  box-shadow: 0 22px 54px rgba(26, 55, 92, 0.11);
}

.catalog-hub::before,
.catalog-hub::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.catalog-hub::before {
  inset: 14px;
  border: 1px solid rgba(34, 58, 94, 0.07);
  border-radius: 6px;
}

.catalog-hub::after {
  right: -9%;
  top: -22%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(169, 192, 214, 0.32), rgba(169, 192, 214, 0));
  transform: translateY(var(--parallax-y, 0));
  transition: transform 0.28s ease;
}

.catalog-hub-head {
  position: relative;
  z-index: 1;
}

.catalog-hub-head span {
  display: block;
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.catalog-hub-head .soft-button {
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 24px rgba(26, 55, 92, 0.08);
}

.catalog-hub-head .soft-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 35%, rgba(255, 255, 255, 0.72) 48%, transparent 62% 100%);
  transform: translateX(-120%);
}

.catalog-hub-head .soft-button:hover::after {
  animation: softSheen 0.78s ease;
}

.catalog-hub-grid {
  display: grid;
  grid-template-columns: minmax(310px, 1.15fr) repeat(3, minmax(170px, 0.72fr));
  grid-auto-rows: minmax(178px, auto);
  gap: 14px;
  position: relative;
  z-index: 1;
}

.catalog-hub-card {
  --card-glow: rgba(34, 58, 94, 0.13);
  display: grid;
  align-content: space-between;
  min-width: 0;
  min-height: 178px;
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(208, 223, 238, 0.92);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 18%, rgba(169, 192, 214, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.94));
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(26, 55, 92, 0.07);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease,
    background 0.32s ease,
    color 0.32s ease;
}

.catalog-hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, transparent 0 48%, rgba(255, 255, 255, 0.64) 58%, transparent 70% 100%);
  opacity: 0;
  transform: translateX(-28%);
  transition: opacity 0.32s ease, transform 0.52s ease;
}

.catalog-hub-card::after {
  content: ">";
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 58, 94, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--blue-deep);
  font-weight: 1000;
  opacity: 0.82;
  transition: transform 0.28s ease, background 0.28s ease, opacity 0.28s ease;
}

.catalog-hub.is-visible .catalog-hub-card {
  animation: catalogHubCardIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.catalog-hub.is-visible .catalog-hub-card:nth-child(2) { animation-delay: 55ms; }
.catalog-hub.is-visible .catalog-hub-card:nth-child(3) { animation-delay: 110ms; }
.catalog-hub.is-visible .catalog-hub-card:nth-child(4) { animation-delay: 165ms; }
.catalog-hub.is-visible .catalog-hub-card:nth-child(5) { animation-delay: 220ms; }
.catalog-hub.is-visible .catalog-hub-card:nth-child(6) { animation-delay: 275ms; }
.catalog-hub.is-visible .catalog-hub-card:nth-child(7) { animation-delay: 330ms; }
.catalog-hub.is-visible .catalog-hub-card:nth-child(8) { animation-delay: 385ms; }

.catalog-hub-card:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(34, 58, 94, 0.34);
  box-shadow: 0 24px 50px rgba(26, 55, 92, 0.14), 0 0 0 1px var(--card-glow);
}

.catalog-hub-card:hover::before {
  opacity: 1;
  transform: translateX(22%);
}

.catalog-hub-card:hover::after {
  opacity: 1;
  transform: translateX(4px);
  background: #fff;
}

.catalog-hub-card > * {
  position: relative;
  z-index: 1;
}

.catalog-hub-card strong {
  display: block;
  max-width: 360px;
  margin-bottom: 8px;
  font-size: clamp(1.08rem, 1.3vw, 1.45rem);
  line-height: 1.08;
}

.catalog-hub-card small {
  display: block;
  max-width: 360px;
  padding-right: 34px;
  color: var(--muted);
  line-height: 1.42;
}

.catalog-hub-card b {
  width: fit-content;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--blue-deep);
  font-size: 0.86rem;
  box-shadow: inset 0 0 0 1px rgba(34, 58, 94, 0.12);
  transition: transform 0.28s ease, background 0.28s ease;
}

.catalog-hub-card:hover b {
  transform: translateY(-2px);
  background: #fff;
}

.catalog-hub-card__label {
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-deep);
  font-size: 0.74rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.catalog-hub-photo {
  width: min(138px, 46%);
  aspect-ratio: 1.34;
  display: block;
  justify-self: end;
  align-self: start;
  position: absolute;
  top: 14px;
  right: 14px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.95), rgba(238, 247, 255, 0.74) 58%, rgba(221, 234, 247, 0.2));
  box-shadow:
    inset 0 0 0 1px rgba(216, 227, 239, 0.72),
    0 14px 30px rgba(26, 55, 92, 0.09);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s ease,
    filter 0.38s ease;
}

.catalog-hub-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), transparent 42%),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.68), transparent 26%);
  pointer-events: none;
  z-index: 1;
}

.catalog-hub-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  padding: 8px;
  filter: drop-shadow(0 18px 22px rgba(26, 55, 92, 0.14));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.catalog-hub-card:not(.catalog-hub-card--hero):not(.catalog-hub-card--service) strong {
  max-width: calc(100% - 92px);
  padding-top: 82px;
}

.catalog-hub-card:not(.catalog-hub-card--hero):not(.catalog-hub-card--service) small {
  max-width: calc(100% - 42px);
}

.catalog-hub-card:hover .catalog-hub-photo {
  transform: translateY(-4px) scale(1.035);
  box-shadow:
    inset 0 0 0 1px rgba(216, 227, 239, 0.94),
    0 22px 42px rgba(26, 55, 92, 0.15);
}

.catalog-hub-card:hover .catalog-hub-photo img {
  transform: scale(1.055);
  filter: drop-shadow(0 22px 26px rgba(26, 55, 92, 0.18)) saturate(1.04);
}

.catalog-hub-card--hero {
  grid-row: span 2;
  min-height: 370px;
  align-content: end;
  padding: clamp(22px, 2.6vw, 34px);
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.33), transparent 26%),
    radial-gradient(circle at 18% 16%, rgba(242, 220, 115, 0.2), transparent 20%),
    linear-gradient(145deg, #10223d 0%, #223a5e 54%, #a9c0d6 100%);
  color: #fff;
}

.catalog-hub-photo--hero {
  width: min(360px, 58%);
  aspect-ratio: 1.16;
  top: 22px;
  right: 22px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background:
    radial-gradient(circle at 58% 44%, rgba(255, 255, 255, 0.95), rgba(232, 241, 250, 0.62) 58%, rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 24px 46px rgba(3, 20, 43, 0.22);
}

.catalog-hub-photo--hero img {
  padding: 12px;
}

.catalog-hub-card--hero::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 42px 42px;
  transform: none;
}

.catalog-hub-card--hero::after {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
}

.catalog-hub-card--hero strong {
  max-width: 520px;
  font-size: clamp(1.7rem, 2.75vw, 3.1rem);
  padding-right: min(180px, 28%);
}

.catalog-hub-card--hero small {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  padding-right: min(180px, 28%);
}

.catalog-hub-card--hero .catalog-hub-card__label {
  color: #0f2440;
}

.catalog-hub-card--hero b {
  color: #0f2440;
}

.catalog-hub-card--hero:hover {
  box-shadow: 0 30px 62px rgba(16, 34, 61, 0.24);
}

.catalog-hub-card--hero:hover strong,
.catalog-hub-card--hero:hover small {
  animation: catalogHeroFloat 1.8s ease-in-out infinite;
}

.catalog-hub-card--service {
  grid-column: span 2;
  background:
    radial-gradient(circle at 82% 18%, rgba(34, 58, 94, 0.12), transparent 26%),
    linear-gradient(145deg, #ffffff, #eef7ff 62%, #ffffff);
}

.catalog-hub-photo--service {
  width: min(220px, 38%);
  aspect-ratio: 1.28;
}

.catalog-hub-card--service strong,
.catalog-hub-card--service small,
.catalog-hub-card--service .catalog-service-list {
  max-width: calc(100% - min(250px, 42%));
}

.catalog-service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding-right: 34px;
}

.catalog-service-list i {
  padding: 7px 9px;
  border: 1px solid rgba(216, 227, 239, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  transition: transform 0.22s ease, background 0.22s ease;
}

.catalog-hub-card--service:hover .catalog-service-list i {
  background: #fff;
}

.catalog-hub-card--service:hover .catalog-service-list i:nth-child(2n) {
  transform: translateY(-2px);
}

.catalog-hub-card--sale {
  --card-glow: rgba(242, 220, 115, 0.32);
  background:
    radial-gradient(circle at 78% 10%, rgba(242, 220, 115, 0.36), transparent 26%),
    linear-gradient(145deg, #fffdf2, #ffffff 64%, #eef7ff);
}

.catalog-hub-card--sale .catalog-hub-card__label {
  background: #f2dc73;
  color: #081b33;
}

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

.home-category-card {
  min-height: 210px;
  display: grid;
  align-content: end;
  gap: 8px;
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(216, 227, 239, 0.9);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 18%, rgba(169, 192, 214, 0.34), transparent 28%),
    linear-gradient(145deg, #fff, #f3f9ff 58%, #eef7ff);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(26, 55, 92, 0.08);
}

.home-category-card::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 58, 94, 0.12), rgba(169, 192, 214, 0.2)),
    url("../assets/sona-logo.png") center / 64% no-repeat #fff;
  box-shadow: 0 14px 28px rgba(34, 58, 94, 0.1);
}

.home-category-card.is-wide {
  min-height: 260px;
  grid-row: span 2;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.42), transparent 26%),
    linear-gradient(145deg, #162a47, #223a5e 56%, #a9c0d6);
  color: #fff;
}

.home-category-card span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.home-category-card strong {
  max-width: 320px;
  font-size: 1.35rem;
}

.home-category-card small {
  max-width: 360px;
  color: inherit;
  opacity: 0.78;
  font-size: 0.9rem;
}

.promo-showcase {
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  align-items: stretch;
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2vw, 30px);
  border: 1px solid rgba(216, 227, 239, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(34, 58, 94, 0.08) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, rgba(34, 58, 94, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(circle at 88% 12%, rgba(242, 220, 115, 0.22), transparent 28%),
    linear-gradient(135deg, #fff, #f7fbff 54%, #eef5fc);
  box-shadow: 0 20px 50px rgba(26, 55, 92, 0.11);
}

.promo-showcase::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(34, 58, 94, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

.promo-editorial-copy {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 520px;
  position: relative;
  z-index: 1;
  padding: 10px 10px 10px 0;
}

.promo-editorial-copy h2 {
  max-width: 360px;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 0.95;
}

.promo-editorial-copy > span {
  max-width: 340px;
  color: var(--muted);
  line-height: 1.55;
}

.promo-editorial-copy .light-button {
  width: fit-content;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  align-self: end;
  padding: 0 18px;
  border: 1px solid rgba(34, 58, 94, 0.14);
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 12px 24px rgba(26, 55, 92, 0.08);
}

.promo-lookbook {
  display: grid;
  grid-template-columns: minmax(280px, 1.06fr) repeat(2, minmax(190px, 0.62fr));
  grid-template-rows: repeat(2, minmax(230px, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.lookbook-card {
  --tilt: 0deg;
  display: grid;
  grid-template-rows: minmax(160px, 0.95fr) auto;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 216, 232, 0.92);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(26, 55, 92, 0.08);
  opacity: 0;
  transform: translateY(18px) rotate(var(--tilt));
  animation: lookbookCardIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) both var(--stagger);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease,
    background 0.32s ease;
}

.lookbook-card:nth-child(3n) {
  --tilt: 0.25deg;
}

.lookbook-card:nth-child(4n) {
  --tilt: -0.28deg;
}

.lookbook-card.is-featured {
  grid-row: span 2;
  grid-template-rows: minmax(310px, 1fr) auto;
  background: #fff;
}

.lookbook-card:hover {
  transform: translateY(-6px) rotate(0deg);
  border-color: rgba(34, 58, 94, 0.32);
  box-shadow: 0 26px 56px rgba(26, 55, 92, 0.16);
}

.lookbook-media {
  position: relative;
  overflow: hidden;
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(216, 227, 239, 0.9);
  border-radius: 0;
  background: #f6f9fc;
}

.lookbook-media .product-placeholder {
  border: 0;
  border-radius: 0;
  min-height: 100%;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), filter 0.48s ease;
}

.lookbook-card:hover .product-placeholder {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.lookbook-favorite {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 227, 239, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--blue-deep);
  backdrop-filter: blur(12px);
  transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.lookbook-favorite:hover,
.lookbook-favorite.is-active {
  transform: scale(1.08);
  background: #fff;
  box-shadow: 0 14px 26px rgba(26, 55, 92, 0.14);
}

.lookbook-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.lookbook-card.is-featured .lookbook-copy {
  padding: 18px;
}

.lookbook-topline,
.lookbook-actions,
.lookbook-price,
.lookbook-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lookbook-topline {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lookbook-number {
  color: var(--blue-deep);
}

.lookbook-card h3 {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  line-height: 1.08;
}

.lookbook-card.is-featured h3 {
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
}

.lookbook-price strong {
  color: var(--blue-deep);
  font-size: 1.1rem;
}

.lookbook-card.is-featured .lookbook-price strong {
  font-size: 1.45rem;
}

.lookbook-price del {
  color: var(--muted);
  font-size: 0.84rem;
}

.lookbook-discount {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2dc73;
  color: #081b33;
  font-size: 0.75rem;
  font-weight: 1000;
}

.lookbook-meta span {
  padding: 5px 8px;
  border: 1px solid rgba(216, 227, 239, 0.9);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.lookbook-actions {
  margin-top: 2px;
}

.lookbook-link,
.lookbook-cart {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 900;
}

.lookbook-link {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-deep);
}

.lookbook-cart {
  border: 0;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 22px rgba(34, 58, 94, 0.18);
}

.lookbook-link:hover,
.lookbook-cart:hover {
  transform: translateY(-2px);
}

.promo-showcase-grid,
.home-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.promo-showcase-grid .product-card,
.home-product-grid .product-card {
  grid-template-rows: 200px minmax(300px, 1fr);
  min-height: 510px;
  border-radius: 8px;
}

.advantage-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 20px;
}

.advantage-strip article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(26, 55, 92, 0.05);
}

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

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 0.8fr) minmax(220px, 0.6fr);
  gap: 24px;
  align-items: start;
  margin-top: 18px;
  margin-bottom: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(26, 55, 92, 0.07);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-deep);
  font-size: 1.35rem;
  font-weight: 1000;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.site-footer nav {
  display: grid;
  gap: 9px;
}

.site-footer nav a {
  color: var(--ink);
  font-weight: 800;
}

.catalog-section {
  padding-top: 24px;
}

@media (max-width: 1180px) {
  .category-rail,
  .catalog-hub-grid,
  .promo-showcase-grid,
  .promo-lookbook,
  .home-product-grid,
  .advantage-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .catalog-hub-card--hero,
  .catalog-hub-card--service {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .catalog-hub-card--hero {
    min-height: 320px;
  }

  .catalog-hub-card--hero strong,
  .catalog-hub-card--hero small {
    padding-right: min(140px, 24%);
  }

  .catalog-hub-card--service strong,
  .catalog-hub-card--service small,
  .catalog-hub-card--service .catalog-service-list {
    max-width: calc(100% - min(210px, 38%));
  }

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

  .promo-editorial-copy {
    min-height: 0;
    padding: 0;
  }

  .promo-lookbook {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .lookbook-card.is-featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .top-promo {
    padding-inline: 12px;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .category-rail,
  .catalog-hub-grid,
  .category-showcase-grid,
  .promo-showcase-grid,
  .promo-lookbook,
  .home-product-grid,
  .advantage-strip {
    grid-template-columns: 1fr;
  }

  .category-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .category-rail a,
  .category-rail button {
    flex: 0 0 min(170px, 72vw);
    scroll-snap-align: start;
  }

  .home-category-card.is-wide {
    min-height: 220px;
  }

  .catalog-hub {
    padding: 16px;
  }

  .catalog-hub::before {
    inset: 10px;
  }

  .catalog-hub-card {
    min-height: 168px;
    padding: 16px;
  }

  .catalog-hub-photo {
    width: min(122px, 42%);
    top: 12px;
    right: 12px;
  }

  .catalog-hub-card--hero {
    min-height: 330px;
  }

  .catalog-hub-photo--hero {
    width: min(230px, 78%);
    top: 12px;
    right: 50%;
    transform: translateX(50%);
  }

  .catalog-hub-card--hero strong {
    padding-top: 168px;
    padding-right: 0;
  }

  .catalog-hub-card--hero small {
    padding-right: 0;
  }

  .catalog-hub-card--service {
    min-height: 300px;
  }

  .catalog-hub-photo--service {
    width: min(210px, 66%);
    right: 14px;
  }

  .catalog-hub-card--service strong,
  .catalog-hub-card--service small,
  .catalog-hub-card--service .catalog-service-list {
    max-width: 100%;
  }

  .catalog-hub-card--service strong {
    padding-top: 150px;
  }

  .catalog-hub-card small,
  .catalog-service-list {
    padding-right: 0;
  }

  .promo-showcase {
    padding: 16px;
  }

  .promo-showcase::before {
    inset: 10px;
  }

  .promo-editorial-copy h2 {
    font-size: 2.25rem;
  }

  .promo-lookbook {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .lookbook-card,
  .lookbook-card.is-featured {
    flex: 0 0 min(310px, 84vw);
    grid-template-rows: 220px auto;
    scroll-snap-align: start;
  }

  .promo-showcase-grid .product-card,
  .home-product-grid .product-card {
    grid-template-rows: 210px auto;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .particle-field {
    display: none;
  }

  .hero-copy .eyebrow,
  .hero-copy h1,
  .discount-pill,
  .hero-copy .light-button,
  .hero-sofa,
  .lookbook-card,
  .catalog-hub-card,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}


