:root {
  --spruce-950: #102d24;
  --spruce-900: #173f31;
  --spruce-800: #1d513d;
  --spruce-700: #27674e;
  --spruce-100: #dcebe4;
  --spruce-50: #edf5f1;
  --ember: #d94c31;
  --ember-dark: #b93b25;
  --ink: #171b19;
  --muted: #63706a;
  --line: #dce3df;
  --canvas: #f6f8f7;
  --white: #fff;
  --warning: #efaa3c;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --shadow-sm: 0 5px 20px rgba(18, 48, 37, 0.08);
  --shadow-md: 0 18px 50px rgba(18, 48, 37, 0.14);
  --shell: 1240px;
  --header-height: 84px;
}

/* Production trust, legal and moderation surfaces */
.auth-consent {
  align-items: flex-start !important;
  font-size: .88rem;
  line-height: 1.45;
}

.legal-page {
  max-width: 860px;
  margin-inline: auto;
}

.legal-page > section {
  padding-block: 1.1rem;
  border-top: 1px solid var(--line, #dfe7e2);
}

.legal-page > section h2 {
  margin: 0 0 .45rem;
  font-size: 1.08rem;
}

.legal-page > section p,
.legal-updated {
  color: var(--muted, #66736c);
  line-height: 1.7;
}

.legal-page > .primary-button,
.legal-page > .secondary-button {
  margin: .75rem .5rem 0 0;
}

.danger-zone {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1c8c0;
}

.danger-zone > p {
  color: var(--muted, #66736c);
}

.report-button {
  color: #8a3828;
}

.report-admin-list {
  display: grid;
  gap: 1rem;
}

.report-admin-card {
  margin: 0;
}

.report-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}

.report-meta div {
  padding: .75rem;
  border-radius: 12px;
  background: #f6f8f7;
}

.report-meta dt {
  color: var(--muted, #66736c);
  font-size: .75rem;
}

.report-meta dd {
  margin: .2rem 0 0;
  font-weight: 700;
}

@media (max-width: 700px) {
  .report-meta { grid-template-columns: 1fr; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 96% 7%, rgba(217, 76, 49, 0.07), transparent 24rem),
    var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  color: inherit;
}

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

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

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--white);
  background: var(--spruce-950);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

:focus-visible {
  outline: 3px solid rgba(217, 76, 49, 0.52);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-height);
  border-bottom: 1px solid rgba(220, 227, 223, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-mark,
.mini-mark {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  background: var(--spruce-900);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.brand-mark strong,
.mini-mark strong {
  margin-top: 6px;
  font-size: 25px;
  line-height: 1;
}

.brand-mark small,
.mini-mark small {
  font-size: 11px;
  font-weight: 800;
}

.brand-mark i,
.mini-mark i {
  position: absolute;
  top: -2px;
  right: 3px;
  width: 18px;
  height: 10px;
  border-radius: 100% 0 100% 0;
  background: var(--ember);
  transform: rotate(-25deg);
}

.brand-word {
  color: var(--spruce-900);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand-word span {
  color: var(--ember);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 50px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #eef1ef;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search:focus-within {
  border-color: rgba(29, 81, 61, 0.35);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(29, 81, 61, 0.08);
}

.header-search > svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin-left: 18px;
  color: var(--muted);
}

.header-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.header-search button {
  height: 40px;
  margin-right: 5px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--spruce-900);
  font-weight: 700;
  cursor: pointer;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 100;
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item:focus-visible {
  background: var(--spruce-50);
}

.suggestion-item small {
  display: block;
  color: var(--muted);
}

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

.nav-pill,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-pill,
.primary-button {
  color: var(--white);
  background: var(--spruce-900);
}

.nav-pill:hover,
.primary-button:hover {
  background: var(--spruce-700);
  transform: translateY(-1px);
}

.secondary-button {
  color: var(--spruce-900);
  border-color: var(--spruce-900);
  background: var(--white);
}

.secondary-button:hover {
  color: var(--white);
  background: var(--spruce-900);
}

.ghost-button {
  color: var(--spruce-900);
  border-color: var(--line);
  background: var(--white);
}

.ghost-button:hover {
  border-color: var(--spruce-700);
  background: var(--spruce-50);
}

.danger-button {
  color: var(--white);
  background: var(--ember);
}

.icon-button,
.menu-button,
.modal-close {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.icon-button:hover,
.menu-button:hover {
  color: var(--spruce-800);
  background: var(--spruce-50);
}

.nav-badge {
  position: absolute;
  top: -3px;
  right: -1px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding-inline: 5px;
  border: 2px solid var(--white);
  border-radius: 99px;
  color: var(--white);
  background: var(--ember);
  font-size: 11px;
  font-weight: 800;
}

.profile-chip {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--ember), #f07a55);
  font-weight: 800;
  cursor: pointer;
}

.menu-button {
  display: none;
}

#main-content {
  min-height: calc(100vh - var(--header-height));
}

.initial-loader {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 65vh;
  color: var(--muted);
}

.loader-brand {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: var(--white);
  background: var(--spruce-900);
  animation: breathe 1.5s ease-in-out infinite;
}

.loader-brand span {
  font-size: 22px;
  font-weight: 800;
}

@keyframes breathe {
  50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(29, 81, 61, 0.08); }
}

.page {
  padding: 28px 0 100px;
  animation: page-in 0.35s ease both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(7px); }
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: var(--spruce-900);
  box-shadow: var(--shadow-sm);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(16, 45, 36, 0.25), transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 0 0 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--spruce-950);
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 em {
  display: block;
  color: #f6b09c;
  font-style: normal;
}

.hero p {
  max-width: 520px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

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

.hero .primary-button {
  color: var(--spruce-950);
  background: var(--white);
}

.hero .secondary-button {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
}

.hero-media {
  position: relative;
  min-height: 430px;
  background: url("./assets/hero-fashion.png") center 35% / cover no-repeat;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--spruce-900) 0%, transparent 36%);
}

.hero-stat {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 16px;
  background: rgba(16, 45, 36, 0.75);
  backdrop-filter: blur(12px);
}

.hero-stat strong,
.hero-stat span {
  display: block;
}

.hero-stat strong {
  font-size: 20px;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.section {
  margin-top: 44px;
}

.section-heading,
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-heading h2,
.page-heading h1 {
  margin: 0;
  color: var(--spruce-950);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-heading p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  border: 0;
  color: var(--spruce-800);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.text-link:hover {
  color: var(--ember);
}

.seller-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 3px 12px;
  scrollbar-width: thin;
}

.seller-bubble {
  display: grid;
  place-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.seller-logo {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 2px solid var(--ember);
  border-radius: 50%;
  color: var(--white);
  background: var(--seller-color, var(--spruce-900));
  box-shadow: 0 0 0 4px var(--white), var(--shadow-sm);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.seller-bubble span:last-child {
  overflow: hidden;
  max-width: 125px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  padding: 22px;
  border: 0;
  border-radius: var(--radius-md);
  text-align: left;
  background: var(--spruce-50);
  cursor: pointer;
}

.category-card:nth-child(2) { background: #f7e7e2; }
.category-card:nth-child(3) { background: #e7edf7; }
.category-card:nth-child(4) { background: #f5ead9; }

.category-card::after {
  content: attr(data-symbol);
  position: absolute;
  right: -5px;
  bottom: -30px;
  color: rgba(23, 63, 49, 0.09);
  font-size: 100px;
  font-weight: 800;
}

.category-card strong,
.category-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.category-card strong {
  color: var(--spruce-950);
  font-size: 20px;
}

.category-card small {
  margin-top: 6px;
  color: var(--muted);
}

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

.product-card {
  position: relative;
  min-width: 0;
}

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: #eef1ef;
  background-image: url("./assets/product-sprite.png");
  background-repeat: no-repeat;
  background-size: 400% 300%;
  background-position: var(--sprite-x, 0%) var(--sprite-y, 0%);
  box-shadow: inset 0 0 0 1px rgba(16, 45, 36, 0.04);
  cursor: pointer;
}

.product-card:hover .product-media {
  box-shadow: var(--shadow-sm);
}

.product-card:hover .product-media::after {
  opacity: 1;
}

.product-media::after {
  content: "Ətraflı bax";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(16, 45, 36, 0.87);
  text-align: center;
  font-size: 13px;
  font-weight: 750;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.favorite-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  color: var(--spruce-950);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(16, 45, 36, 0.08);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.favorite-button svg {
  width: 20px;
  height: 20px;
}

.favorite-button.is-active {
  color: var(--white);
  background: var(--ember);
}

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

.product-tag {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ember);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-info {
  padding: 12px 4px 0;
}

.product-title {
  overflow: hidden;
  margin: 0;
  color: var(--spruce-950);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.product-card-subtitle {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.35;
}

.product-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.product-price strong {
  color: var(--spruce-950);
  font-size: 19px;
}

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

.trust-band {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 14px;
  margin-top: 54px;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--spruce-950);
}

.trust-band h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.trust-item {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-item svg {
  flex: 0 0 auto;
  color: #f69a7e;
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.mobile-nav {
  display: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(13, 31, 24, 0.44);
  backdrop-filter: blur(3px);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 190;
  width: min(92vw, 440px);
  height: 100dvh;
  overflow-y: auto;
  padding: 24px;
  background: var(--white);
  box-shadow: -20px 0 60px rgba(16, 45, 36, 0.18);
  transform: translateX(105%);
  transition: transform 0.26s ease;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  position: sticky;
  top: -24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -24px -24px 20px;
  padding: 22px 24px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.drawer-header h2 {
  margin: 0;
  color: var(--spruce-950);
  font-size: 25px;
}

.category-tree {
  display: grid;
  gap: 20px;
}

.tree-group h3 {
  margin: 0 0 9px;
  color: var(--spruce-950);
  font-size: 18px;
}

.tree-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tree-branch {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 8px 0 2px;
}

.tree-branch > strong {
  flex: 1 0 100%;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tree-list button,
.filter-chip,
.active-filter {
  min-height: 39px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--spruce-950);
  background: var(--white);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.tree-list button:hover,
.filter-chip:hover,
.filter-chip.is-active {
  color: var(--white);
  border-color: var(--spruce-900);
  background: var(--spruce-900);
}

.product-modal {
  width: min(920px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.product-modal::backdrop {
  background: rgba(13, 31, 24, 0.55);
  backdrop-filter: blur(4px);
}

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

.quick-view-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.quick-view-media {
  min-height: 560px;
  border-radius: 24px 0 0 24px;
  background-color: #eef1ef;
  background-image: url("./assets/product-sprite.png");
  background-repeat: no-repeat;
  background-size: 400% 300%;
  background-position: var(--sprite-x) var(--sprite-y);
}

.quick-view-copy {
  display: flex;
  flex-direction: column;
  padding: 52px 36px 32px;
}

.quick-view-copy h2 {
  margin: 8px 0 5px;
  color: var(--spruce-950);
  font-size: 32px;
  line-height: 1.1;
}

.quick-view-copy .large-price {
  margin: 8px 0 18px;
  color: var(--ember);
  font-size: 28px;
  font-weight: 800;
}

.product-meta-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.product-meta-list div {
  padding: 12px;
  border-radius: 12px;
  background: var(--canvas);
}

.product-meta-list small,
.product-meta-list strong {
  display: block;
}

.product-meta-list small {
  color: var(--muted);
  font-size: 12px;
}

.product-meta-list strong {
  margin-top: 2px;
}

.seller-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.seller-inline .seller-logo {
  width: 50px;
  height: 50px;
  border-width: 0;
  box-shadow: none;
  font-size: 13px;
}

.seller-inline strong,
.seller-inline span {
  display: block;
}

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

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 500;
  display: grid;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: var(--white);
  background: var(--spruce-950);
  box-shadow: var(--shadow-md);
  animation: toast-in 0.25s ease both;
}

.toast.is-error { background: #7a271a; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb button {
  padding: 0;
  border: 0;
  color: var(--spruce-800);
  background: transparent;
  cursor: pointer;
}

.search-page-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 32px;
}

.filters-panel {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.filter-group {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: 0; }

.filter-group h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

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

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--spruce-800);
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.price-inputs input,
.toolbar select,
.panel-form input,
.panel-form select,
.panel-form textarea,
.chat-compose input,
.chat-compose textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  background: var(--white);
}

.price-inputs input:focus,
.toolbar select:focus,
.panel-form input:focus,
.panel-form select:focus,
.panel-form textarea:focus,
.chat-compose input:focus,
.chat-compose textarea:focus {
  border-color: var(--spruce-700);
  box-shadow: 0 0 0 3px rgba(29, 81, 61, 0.08);
}

.results-area {
  min-width: 0;
}

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

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.toolbar select {
  width: auto;
  min-width: 185px;
}

.mobile-filter-button { display: none; }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--spruce-50);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 40px;
  border: 1px dashed #c8d2cd;
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--spruce-800);
  background: var(--spruce-100);
}

.empty-state h2 { margin: 0; color: var(--spruce-950); }
.empty-state p { max-width: 480px; margin: 8px 0 22px; color: var(--muted); }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 48px;
}

.detail-media {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background-color: #eef1ef;
  background-image: url("./assets/product-sprite.png");
  background-repeat: no-repeat;
  background-size: 400% 300%;
  background-position: var(--sprite-x) var(--sprite-y);
}

.detail-copy {
  padding-top: 8px;
}

.detail-copy h1 {
  margin: 6px 0 8px;
  color: var(--spruce-950);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-copy > .product-brand {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.detail-price {
  margin: 20px 0;
  color: var(--ember);
  font-size: 36px;
  font-weight: 800;
}

.detail-description {
  color: var(--muted);
  font-size: 16px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 24px 0;
}

.detail-actions .favorite-button {
  position: static;
  width: 50px;
  height: 50px;
  border-color: var(--line);
  background: var(--white);
}

.detail-actions .favorite-button.is-active { background: var(--ember); }

.notice-box {
  display: flex;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  border-radius: 14px;
  color: var(--spruce-950);
  background: var(--spruce-50);
}

.notice-box svg { flex: 0 0 auto; color: var(--spruce-700); }
.notice-box p { margin: 0; font-size: 13px; }

.seller-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--spruce-950);
}

.seller-hero .seller-logo {
  width: 105px;
  height: 105px;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
  font-size: 22px;
}

.seller-hero h1 { margin: 0; font-size: 36px; }
.seller-hero p { max-width: 600px; margin: 7px 0; color: rgba(255,255,255,.7); }
.seller-stats { display: flex; gap: 20px; margin-top: 15px; }
.seller-stats strong, .seller-stats span { display: block; }
.seller-stats span { color: rgba(255,255,255,.62); font-size: 12px; }

.discover-shell {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(260px, 360px);
  justify-content: center;
  gap: 30px;
  align-items: center;
  min-height: calc(100dvh - var(--header-height) - 150px);
}

.discover-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.discover-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: #eef1ef;
  background-image: url("./assets/product-sprite.png");
  background-repeat: no-repeat;
  background-size: 400% 300%;
  background-position: var(--sprite-x) var(--sprite-y);
}

.discover-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 60px 24px 24px;
  color: var(--white);
  background: linear-gradient(transparent, rgba(10, 25, 19, 0.92));
}

.discover-overlay h2 { margin: 0; font-size: 30px; }
.discover-overlay p { margin: 5px 0; color: rgba(255,255,255,.75); }
.discover-overlay strong { font-size: 24px; }

.discover-controls {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.discover-action {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--spruce-950);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.discover-action.primary {
  width: 74px;
  height: 74px;
  color: var(--white);
  background: var(--ember);
}

.discover-action.primary svg { fill: currentColor; }

.discover-info {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.discover-info h1 { margin: 0; color: var(--spruce-950); font-size: 30px; }
.discover-info p { color: var(--muted); }

.progress-track {
  height: 8px;
  overflow: hidden;
  margin: 20px 0;
  border-radius: 99px;
  background: var(--spruce-100);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ember);
}

.chat-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.conversation-list {
  border-right: 1px solid var(--line);
  background: #fbfcfb;
}

.conversation-list h2 { margin: 0; padding: 22px; color: var(--spruce-950); }

.conversation-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-top: 1px solid #edf1ef;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.conversation-button.is-active { background: var(--spruce-50); }
.conversation-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--white); background: var(--spruce-800); font-size: 12px; font-weight: 800; }
.conversation-button strong, .conversation-button span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-button span { color: var(--muted); font-size: 12px; }
.conversation-button time { color: var(--muted); font-size: 11px; }

.chat-pane {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

.chat-header strong, .chat-header span { display: block; }
.chat-header span { color: var(--muted); font-size: 12px; }

.chat-product-ref {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 18px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--canvas);
}

.ref-thumb {
  width: 50px;
  height: 60px;
  border-radius: 9px;
  background-image: url("./assets/product-sprite.png");
  background-repeat: no-repeat;
  background-size: 400% 300%;
  background-position: var(--sprite-x) var(--sprite-y);
}

.chat-product-ref strong, .chat-product-ref span { display: block; }
.chat-product-ref span { color: var(--muted); font-size: 12px; }

.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 22px;
}

.message {
  align-self: flex-start;
  max-width: min(78%, 520px);
  padding: 11px 14px;
  border-radius: 8px 18px 18px 18px;
  background: var(--canvas);
}

.message.is-mine {
  align-self: flex-end;
  color: var(--white);
  border-radius: 18px 8px 18px 18px;
  background: var(--spruce-800);
}

.message p { margin: 0; }
.message time { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; text-align: right; }
.message.is-mine time { color: rgba(255,255,255,.64); }

.chat-compose {
  display: flex;
  gap: 10px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.chat-compose button {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--spruce-900);
  cursor: pointer;
}

.profile-layout,
.dashboard-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
}

.profile-sidebar,
.dashboard-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.profile-card {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.profile-password {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.profile-password h2 { margin-top: 0; }

.profile-avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--ember), #f08b62);
  font-size: 20px;
  font-weight: 800;
}

.profile-card h2 { margin: 0; font-size: 20px; }
.profile-card p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

.side-menu { display: grid; padding: 8px; }
.side-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.side-menu button:hover, .side-menu button.is-active { color: var(--spruce-950); background: var(--spruce-50); }
.side-menu svg { width: 19px; }

.content-panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.content-panel > h1,
.content-panel > h2 { margin-top: 0; color: var(--spruce-950); }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.setting-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.setting-card h3 { margin: 0 0 5px; }
.setting-card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { position: relative; width: 48px; height: 28px; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #ccd5d0; cursor: pointer; transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: .2s; }
.switch input:checked + span { background: var(--spruce-800); }
.switch input:checked + span::after { transform: translateX(20px); }

.dashboard-sidebar {
  padding: 12px;
  color: var(--white);
  border: 0;
  background: var(--spruce-950);
}

.dashboard-sidebar > strong {
  display: block;
  padding: 10px 12px 14px;
  font-size: 15px;
}

.dashboard-sidebar > button {
  display: block;
  width: 100%;
  margin: 2px 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  color: rgba(255,255,255,.72);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.dashboard-sidebar > button:hover,
.dashboard-sidebar > button.is-active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

.dashboard-sidebar .brand-word { display: block; padding: 12px; color: white; }
.dashboard-sidebar .brand-word span { color: #f5896b; }
.dashboard-sidebar .side-menu button { color: rgba(255,255,255,.7); }
.dashboard-sidebar .side-menu button:hover, .dashboard-sidebar .side-menu button.is-active { color: white; background: rgba(255,255,255,.1); }

.dashboard-main { min-width: 0; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.dashboard-header h1 { margin: 0; color: var(--spruce-950); font-size: 34px; }
.dashboard-header p { margin: 3px 0 0; color: var(--muted); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.metric-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.metric-card span { color: var(--muted); font-size: 13px; }
.metric-card strong { display: block; margin-top: 7px; color: var(--spruce-950); font-size: 28px; }
.metric-card small { color: var(--spruce-700); }

.data-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.data-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.data-card-header h2 { margin: 0; color: var(--spruce-950); font-size: 19px; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 13px 16px; border-bottom: 1px solid #edf1ef; text-align: left; white-space: nowrap; font-size: 13px; }
.data-table th { color: var(--muted); background: #fbfcfb; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.data-table tr:last-child td { border-bottom: 0; }
.table-product { display: flex; align-items: center; gap: 10px; }
.table-thumb { width: 42px; height: 50px; border-radius: 8px; background-image: url("./assets/product-sprite.png"); background-size: 400% 300%; background-position: var(--sprite-x) var(--sprite-y); }
.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 99px; color: var(--spruce-800); background: var(--spruce-50); font-size: 11px; font-weight: 750; }
.status-pill.sold { color: #7c3e16; background: #fff0dc; }
.status-pill.pending { color: #6c5312; background: #fff8d9; }
.status-pill.rejected { color: #9c2b1a; background: #fde8e4; }

.panel-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 650; }
.panel-form .full { grid-column: 1 / -1; }
.panel-form textarea { min-height: 100px; resize: vertical; }

.footer {
  margin-top: 60px;
  padding: 40px 0 120px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer .brand { margin-bottom: 12px; }
.footer p { max-width: 380px; color: var(--muted); }
.footer h3 { margin: 0 0 12px; color: var(--spruce-950); font-size: 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-links button { width: max-content; padding: 0; border: 0; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.footer-links button:hover { color: var(--ember); }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 16px; }
  .desktop-nav .nav-pill { display: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding: 40px; }
  .trust-band { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-left: 0; }
  .detail-layout { gap: 30px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --header-height: 74px; }
  body { padding-bottom: 82px; }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { height: auto; min-height: var(--header-height); }
  .header-inner { grid-template-columns: 1fr auto; gap: 10px; min-height: var(--header-height); padding-block: 10px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-mark strong { font-size: 22px; }
  .brand-word { font-size: 20px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; height: 46px; }
  .header-search button { display: none; }
  .desktop-nav { display: none; }
  .menu-button { display: inline-grid; }
  .page { padding-top: 16px; }
  .hero { grid-template-columns: 1fr; min-height: 560px; }
  .hero-copy { z-index: 3; justify-content: flex-end; padding: 30px; background: linear-gradient(0deg, rgba(16,45,36,.96) 0%, rgba(16,45,36,.35) 75%, transparent 100%); }
  .hero-copy h1 { font-size: clamp(38px, 10vw, 58px); }
  .hero-media { position: absolute; inset: 0; min-height: 0; }
  .hero-media::before { background: linear-gradient(0deg, var(--spruce-900), transparent 65%); }
  .hero-stat { top: 18px; right: 18px; bottom: auto; }
  .section { margin-top: 34px; }
  .section-heading, .page-heading { align-items: start; }
  .category-strip { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .product-media::after { display: none; }
  .trust-band { grid-template-columns: 1fr; }
  .trust-item { border-top: 1px solid rgba(255,255,255,.14); border-left: 0; }
  .mobile-nav { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 150; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: calc(100vw - 20px); max-width: calc(100vw - 20px); height: 68px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; color: rgba(255,255,255,.72); background: rgba(16,45,36,.96); box-shadow: 0 12px 38px rgba(16,45,36,.25); backdrop-filter: blur(18px); }
  .mobile-nav > button { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; min-width: 0; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
  .mobile-nav svg { width: 22px; height: 22px; }
  .mobile-nav > button span:last-child { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .mobile-nav > button.is-active { color: var(--white); }
  .mobile-nav .discover-trigger { align-content: start; }
  .mini-mark { width: 62px; height: 62px; margin-top: -25px; border: 4px solid var(--white); background: var(--ember); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
  .mini-mark strong { font-size: 25px; }
  .mini-mark i { background: #f8a68f; }
  .toast-region { right: 16px; bottom: 94px; }
  .quick-view-layout { grid-template-columns: 1fr; }
  .quick-view-media { min-height: 420px; border-radius: 24px 24px 0 0; }
  .quick-view-copy { padding: 28px 22px; }
  .search-page-layout { grid-template-columns: 1fr; }
  .catalog-filters > .filters-panel { display: none; }
  .drawer .filters-panel { display: grid; }
  .mobile-filter-button { display: inline-flex; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-media { position: static; }
  .seller-hero { grid-template-columns: auto 1fr; padding: 24px; }
  .seller-hero > .primary-button { grid-column: 1 / -1; }
  .discover-shell { grid-template-columns: minmax(0, 520px); }
  .discover-info { order: -1; padding: 20px; }
  .chat-layout { grid-template-columns: 1fr; }
  .conversation-list {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
  }
  .conversation-button {
    flex: 0 0 min(82vw, 300px);
    border-top: 0;
    border-right: 1px solid var(--line);
  }
  .chat-layout { min-height: calc(100dvh - 210px); }
  .profile-layout, .dashboard-layout { grid-template-columns: 1fr; }
  .profile-sidebar, .dashboard-sidebar { position: static; }
  .dashboard-sidebar {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 8px;
    border-radius: 15px;
    scrollbar-width: thin;
  }
  .dashboard-sidebar > strong { display: none; }
  .dashboard-sidebar > button {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    white-space: nowrap;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .shell { width: min(calc(100% - 20px), var(--shell)); }
  .brand-word { font-size: 18px; }
  .brand-mark { width: 39px; height: 39px; }
  .menu-button { width: 42px; height: 42px; }
  .hero { min-height: 520px; border-radius: 22px; }
  .hero-copy { padding: 24px 20px; }
  .hero-copy p { margin: 15px 0 20px; font-size: 15px; }
  .hero-stat { padding: 9px 11px; }
  .hero-stat strong { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions button { padding: 0 12px; }
  .section-heading { align-items: end; gap: 12px; }
  .section-heading h2, .page-heading h1 { font-size: 26px; }
  .section-heading p { font-size: 13px; }
  .seller-rail { grid-auto-columns: 105px; }
  .seller-logo { width: 70px; height: 70px; }
  .category-card { min-height: 130px; padding: 17px; }
  .product-grid { gap: 18px 9px; }
  .product-media { border-radius: 13px; }
  .favorite-button { top: 8px; right: 8px; width: 36px; height: 36px; }
  .product-tag { top: 9px; left: 9px; padding: 5px 7px; }
  .product-info { padding: 9px 2px 0; }
  .product-title { font-size: 13px; }
  .product-card-subtitle { font-size: 11px; }
  .product-price strong { font-size: 16px; }
  .product-price small { display: none; }
  .trust-band { padding: 18px; }
  .trust-band h2 { font-size: 24px; }
  .drawer { padding: 18px; }
  .drawer-header { top: -18px; margin: -18px -18px 18px; padding: 18px; }
  .toolbar { align-items: flex-start; }
  .toolbar-actions select { display: none; }
  .detail-copy h1 { font-size: 36px; }
  .detail-price { font-size: 30px; }
  .seller-hero { grid-template-columns: 1fr; text-align: center; }
  .seller-hero .seller-logo { margin-inline: auto; }
  .seller-stats { justify-content: center; }
  .discover-info p { display: none; }
  .discover-card { border-radius: 22px; }
  .discover-action { width: 56px; height: 56px; }
  .discover-action.primary { width: 66px; height: 66px; }
  .chat-layout { min-height: calc(100dvh - 205px); }
  .chat-header { padding: 12px; }
  .messages { padding: 14px; }
  .chat-compose { padding: 11px; }
  .content-panel { padding: 20px 15px; }
  .settings-grid, .panel-form, .metric-grid { grid-template-columns: 1fr; }
  .dashboard-header { align-items: flex-start; }
  .dashboard-header .primary-button { padding: 0 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}

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

/* --------------------------------------------------------------------------
   SECOND.az UI refinement — header, workspaces, gallery and shared states
   -------------------------------------------------------------------------- */

.desktop-nav {
  gap: 7px;
}

.desktop-nav > .icon-button {
  width: 44px;
  height: 44px;
  border-color: transparent;
  background: var(--spruce-50);
}

.desktop-nav > .icon-button:hover {
  color: var(--spruce-950);
  background: var(--spruce-100);
}

.header-utilities {
  gap: 7px;
  margin-left: 3px;
  padding-left: 11px;
  border-left: 1px solid var(--line);
}

.auth-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--ember);
  box-shadow: 0 8px 20px rgba(185, 59, 37, .2);
  font-weight: 800;
}

.auth-trigger svg {
  width: 18px;
  height: 18px;
}

.auth-trigger:hover {
  color: var(--white);
  background: var(--ember-dark);
  box-shadow: 0 10px 24px rgba(185, 59, 37, .26);
}

/* Keep labels and form controls as distinct elements. */
.field {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.panel-form > .check-row,
.panel-form label.check-row {
  display: flex;
  align-items: center;
  align-self: end;
  min-height: var(--control-height);
}

.panel-form .check-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  border-radius: 4px;
}

/* Product gallery */
.product-gallery {
  grid-template-areas: "thumbs main";
  align-items: start;
}

.gallery-thumbnails {
  grid-area: thumbs;
}

.image-main {
  grid-area: main;
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.image-main > img,
.image-main > .product-sprite {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.image-main:hover > img,
.image-main:hover > .product-sprite {
  transform: scale(1.025);
}

.gallery-thumb > .product-sprite {
  width: 100%;
  height: 100%;
}

.lightbox-content {
  position: relative;
}

.zoom-stage {
  padding: 70px 24px 100px;
  cursor: zoom-in;
}

.zoom-stage.is-zoomed {
  cursor: grab;
}

.zoom-stage.is-dragging {
  cursor: grabbing;
}

.zoom-content {
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 170px);
  transition: transform .18s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.zoom-content.is-zoomed {
  transition: none;
}

.zoom-content > .zoom-image {
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-modal-controls {
  bottom: max(22px, env(safe-area-inset-bottom));
  gap: 4px;
}

.gallery-modal-controls button {
  font-size: 20px;
  font-weight: 750;
}

.gallery-modal-controls button:disabled {
  opacity: .35;
  cursor: default;
}

.gallery-position {
  min-width: 54px;
  color: rgba(255, 255, 255, .84);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.gallery-control-divider {
  width: 1px;
  height: 28px;
  margin-inline: 4px;
  background: rgba(255, 255, 255, .2);
}

.gallery-modal-controls .gallery-zoom-value {
  min-width: 64px;
  font-size: 12px;
}

/* Admin and seller workspaces */
.dashboard-layout {
  grid-template-columns: 274px minmax(0, 1fr);
  align-items: start;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--header-height) - 48px);
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 0, rgba(217, 76, 49, .24), transparent 170px),
    var(--spruce-950);
  box-shadow: 0 18px 48px rgba(16, 45, 36, .16);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 7px 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.dashboard-brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: var(--ember);
  font-size: 14px;
  font-weight: 900;
}

.dashboard-brand > span:last-child {
  display: grid;
  min-width: 0;
}

.dashboard-brand strong {
  color: var(--white);
  font-size: 17px;
  letter-spacing: -.035em;
}

.dashboard-brand strong span {
  color: #f58b70;
}

.dashboard-brand small {
  overflow: hidden;
  color: rgba(255, 255, 255, .57);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-nav {
  display: grid;
  gap: 5px;
}

.dashboard-nav button,
.dashboard-home {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, .7);
  background: transparent;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.dashboard-nav button:hover,
.dashboard-nav button.is-active,
.dashboard-home:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .11);
}

.dashboard-nav button.is-active {
  box-shadow: inset 3px 0 var(--ember);
}

.dashboard-nav svg,
.dashboard-home svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.dashboard-home {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-radius: 0 0 10px 10px;
}

.dashboard-main {
  display: grid;
  gap: 22px;
}

.dashboard-main > .dashboard-header {
  margin-bottom: 0;
}

.dashboard-header h1 {
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 0;
}

.metric-card,
.data-card {
  box-shadow: 0 10px 30px rgba(18, 48, 37, .055);
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 20px;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--spruce-50);
}

.data-card > .panel-form {
  padding: 20px;
}

.form-actions,
.filter-actions,
.profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-actions {
  justify-content: flex-start;
  gap: 10px;
}

.text-link.danger {
  color: var(--danger);
}

.admin-two-column {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 18px;
}

.taxonomy-lock-notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid var(--spruce-100);
  border-radius: 16px;
  color: var(--spruce-900);
  background: var(--spruce-50);
}

.taxonomy-lock-notice svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.taxonomy-lock-notice strong {
  color: var(--spruce-950);
}

.taxonomy-lock-notice p,
.taxonomy-empty-note {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.taxonomy-empty-note {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.taxonomy-edit-form {
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.taxonomy-locked-context {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 11px;
  border-radius: 11px;
  background: var(--spruce-50);
}

.taxonomy-locked-context span,
.taxonomy-locked-context code {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--spruce-900);
  background: var(--white);
  font-size: 12px;
}

.taxonomy-admin-list {
  display: grid;
  max-height: 620px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.taxonomy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 18px;
  border-bottom: 1px solid #edf1ef;
}

.taxonomy-row:last-child {
  border-bottom: 0;
}

.taxonomy-row > span {
  display: grid;
  min-width: 0;
}

.taxonomy-row strong,
.taxonomy-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taxonomy-row small {
  color: var(--muted);
  font-size: 12px;
}

.carousel-admin-list {
  display: grid;
}

.carousel-admin-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.carousel-admin-list article:last-child {
  border-bottom: 0;
}

.carousel-admin-list img {
  width: 72px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}

.carousel-admin-list article > div {
  display: grid;
  min-width: 0;
}

.carousel-admin-list small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview {
  margin: 0;
}

.upload-alt {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  z-index: 3;
}

.upload-alt input {
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  font-size: 11px;
}

/* Shared pages and smaller component mismatches. */
.auth-page {
  display: grid;
  align-items: center;
  min-height: calc(100dvh - var(--header-height));
}

.auth-page > .shell {
  width: min(calc(100% - 32px), 520px);
}

.auth-card {
  box-shadow: var(--shadow-md);
}

.loading-panel,
.error-panel,
.empty-state {
  grid-column: 1 / -1;
}

.loading-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--spruce-100);
  border-top-color: var(--ember);
  border-radius: 50%;
  animation: ui-spin .8s linear infinite;
}

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

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

.seller-directory-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(18, 48, 37, .06);
}

.seller-directory-card p {
  margin: 0;
  color: var(--muted);
}

.seller-directory-card .seller-stats {
  margin-top: 0;
}

.seller-directory-card .seller-stats span {
  color: var(--muted);
  font-size: 13px;
}

.seller-directory-card .secondary-button {
  justify-self: start;
}

.profile-sidebar {
  padding: 22px;
}

.profile-sidebar h1 {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--spruce-950);
  font-size: 20px;
  line-height: 1.2;
}

.profile-sidebar p {
  margin: 5px 0 0;
  color: var(--muted);
}

.profile-layout > .profile-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.profile-actions {
  margin-top: 22px;
}

.chat-pane {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.conversation-button {
  position: relative;
}

.conversation-button .nav-badge {
  position: static;
  justify-self: end;
}

.message.is-own {
  align-self: flex-end;
  color: var(--white);
  border-radius: 18px 8px 18px 18px;
  background: var(--spruce-800);
}

.message small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.message.is-own small {
  color: rgba(255, 255, 255, .66);
}

.chat-compose textarea {
  min-height: 46px;
  max-height: 140px;
  resize: vertical;
}

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

  .desktop-nav .nav-pill {
    display: inline-flex;
    padding-inline: 14px;
  }

  .brand-word {
    display: none;
  }

  .admin-two-column {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  :root { --header-height: 74px; }

  .site-header {
    height: auto;
    min-height: var(--header-height);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: var(--header-height);
    padding-block: 10px;
  }

  .brand-word {
    display: inline;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 46px;
  }

  .header-search button {
    display: none;
  }

  .product-gallery {
    grid-template-areas: "main" "thumbs";
    grid-template-columns: 1fr;
  }

  .gallery-thumbnails {
    order: initial;
  }

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

@media (max-width: 820px) {
  .dashboard-sidebar {
    display: block;
    min-height: 0;
    padding: 8px;
  }

  .dashboard-brand,
  .dashboard-home {
    display: none;
  }

  .dashboard-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .dashboard-nav button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  .dashboard-nav button.is-active {
    box-shadow: inset 0 -3px var(--ember);
  }
}

@media (max-width: 640px) {
  .seller-directory {
    grid-template-columns: 1fr;
  }

  .carousel-admin-list article {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .carousel-admin-list .status-pill {
    display: none;
  }

  .zoom-stage {
    padding: 64px 10px 94px;
  }

  .gallery-modal-controls {
    max-width: calc(100vw - 20px);
  }
}

@media (max-width: 520px) {
  .toolbar-actions select {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .toolbar-actions {
    width: 100%;
  }

  .product-card-subtitle {
    font-size: 13px;
    line-height: 1.35;
  }

  .profile-layout > .profile-card {
    padding: 20px 15px;
  }

  .data-card > .panel-form {
    padding: 16px;
  }

  .taxonomy-row {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zoom-content {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Production application layer
   These selectors extend the original prototype without changing its hooks.
   -------------------------------------------------------------------------- */

:root {
  --success: #16724a;
  --success-soft: #e7f6ee;
  --danger: #b52e24;
  --danger-soft: #fdecea;
  --info: #205ea6;
  --info-soft: #eaf2fc;
  --focus-ring: rgba(217, 76, 49, 0.46);
  --mobile-nav-space: 88px;
  --control-height: 46px;
}

[hidden] {
  display: none !important;
}

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

input::placeholder,
textarea::placeholder {
  color: #7b8781;
  opacity: 1;
}

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

.locale-control {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 9px 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--spruce-900);
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.locale-control:focus-within {
  border-color: var(--spruce-700);
  box-shadow: 0 0 0 4px rgba(29, 81, 61, 0.09);
}

.locale-control svg {
  width: 18px;
  height: 18px;
}

.locale-control select {
  min-height: 42px;
  padding: 0 22px 0 7px;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.auth-trigger {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--spruce-900);
  border-radius: 999px;
  color: var(--spruce-900);
  background: var(--white);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.auth-trigger:hover {
  color: var(--white);
  background: var(--spruce-900);
  transform: translateY(-1px);
}

.full-button {
  width: 100%;
}

/* Shared network states */
.loading-panel,
.error-panel,
.empty-panel {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 300px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: var(--white);
  text-align: center;
}

.loading-panel h2,
.error-panel h2,
.empty-panel h2 {
  margin: 14px 0 5px;
  color: var(--spruce-950);
  font-size: 22px;
}

.loading-panel p,
.error-panel p,
.empty-panel p {
  max-width: 480px;
  margin: 0 0 18px;
}

.state-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--spruce-100);
  border-top-color: var(--ember);
  border-radius: 50%;
  animation: state-spin 0.75s linear infinite;
}

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

.retry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--spruce-900);
  font-weight: 800;
  cursor: pointer;
}

.skeleton,
.skeleton-line,
.skeleton-media {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  background: #e8eeeb !important;
}

.skeleton::after,
.skeleton-line::after,
.skeleton-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 24%, rgba(255,255,255,.75) 48%, transparent 72%);
  transform: translateX(-100%);
  animation: skeleton-sweep 1.25s ease-in-out infinite;
}

@keyframes skeleton-sweep {
  to { transform: translateX(100%); }
}

.skeleton-line {
  width: 100%;
  height: 14px;
  border-radius: 99px;
}

.skeleton-line.short {
  width: 54%;
}

.product-card-skeleton .skeleton-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
}

.product-card-skeleton .skeleton-stack {
  display: grid;
  gap: 9px;
  padding: 13px 2px 0;
}

/* Home carousel */
.hero-carousel {
  position: relative;
  display: block;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: var(--spruce-950);
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.carousel-track {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: inherit;
  transition: transform .75s cubic-bezier(.22,.7,.24,1);
  will-change: transform;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: inherit;
  overflow: hidden;
}

.hero-carousel .hero-copy {
  grid-column: 1;
  background: linear-gradient(90deg, var(--spruce-950) 0%, rgba(16, 45, 36, 0.94) 72%, rgba(16, 45, 36, 0.34) 100%);
}

.hero-carousel .hero-media {
  grid-column: 2;
  background-image: var(--slide-image, url("./assets/hero-fashion.png"));
}

.hero-carousel .hero-media::before {
  background: linear-gradient(90deg, var(--spruce-950) 0%, transparent 38%);
}

.carousel-slide-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 70px);
  background: linear-gradient(90deg, var(--spruce-950) 0%, rgba(16,45,36,.94) 70%, rgba(16,45,36,.35) 100%);
}

.carousel-slide-copy h1,
.carousel-slide-copy h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.052em;
}

.carousel-slide-copy p {
  max-width: 520px;
  margin: 20px 0 26px;
  color: rgba(255,255,255,.78);
  font-size: 17px;
}

.carousel-slide-media {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #244a3c;
}

.carousel-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16,45,36,.45), transparent 45%);
  pointer-events: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  color: var(--white);
  background: rgba(16,45,36,.56);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-arrow:hover {
  background: rgba(16,45,36,.88);
}

.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }
.carousel-arrow.carousel-prev { left: 18px; }
.carousel-arrow.carousel-next { right: 18px; }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(16,45,36,.58);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.carousel-dot {
  position: relative;
  width: 32px;
  height: 6px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.38);
  cursor: pointer;
}

.carousel-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
}

.carousel-dot.is-active::after,
.carousel-dot[aria-current="true"]::after {
  animation: carousel-progress 5s linear forwards;
}

@keyframes carousel-progress {
  to { transform: scaleX(1); }
}

/* Dense catalog and infinite loading */
.product-grid.product-grid--dense,
.product-grid.new-products-grid,
.new-products-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 14px;
}

.load-more-row {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 24px 0;
  color: var(--muted);
}

.load-more-row .state-spinner {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

.sentinel {
  width: 100%;
  height: 2px;
}

.end-of-results {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
}

.end-of-results::before,
.end-of-results::after {
  content: "";
  width: min(14vw, 120px);
  height: 1px;
  background: var(--line);
}

/* Hierarchical catalog filters */
.catalog-shell,
.search-page-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

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

.filters-panel {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  max-height: calc(100dvh - var(--header-height) - 40px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  scrollbar-width: thin;
  scrollbar-color: var(--spruce-100) transparent;
}

.filters-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.filters-heading h2,
.filters-heading h3 {
  margin: 0;
  color: var(--spruce-950);
  font-size: 18px;
}

.clear-filters {
  padding: 6px 0;
  border: 0;
  color: var(--ember-dark);
  background: transparent;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.filter-tree,
.filter-group-list {
  display: grid;
  gap: 2px;
}

.filter-group,
.category-branch {
  padding: 15px 0;
  border-bottom: 1px solid #edf1ef;
}

.filter-group:last-child,
.category-branch:last-child {
  border-bottom: 0;
}

.filter-group > h3,
.filter-group > legend,
.category-branch > summary {
  margin: 0 0 10px;
  color: var(--spruce-950);
  font-size: 14px;
  font-weight: 800;
}

.filter-group fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.category-branch > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin: 0;
  list-style: none;
  cursor: pointer;
}

.category-branch > summary::-webkit-details-marker { display: none; }

.category-branch > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--spruce-800);
  background: var(--spruce-50);
  font-size: 17px;
}

.category-branch[open] > summary::after { content: "−"; }

.subcategory-list {
  display: grid;
  gap: 4px;
  margin: 7px 0 0 14px;
  padding-left: 12px;
  border-left: 2px solid var(--spruce-100);
}

.filter-subgroup {
  display: grid;
  gap: 7px;
  margin: 7px 0 3px;
  padding: 9px 0 5px 9px;
  border-top: 1px solid var(--line);
}

.filter-subgroup > strong,
.filter-subgroup > .subgroup-parent {
  color: var(--spruce-800);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 5px 7px;
  border-radius: 9px;
  color: #34403b;
  font-size: 14px;
  cursor: pointer;
}

.filter-option:hover {
  background: var(--spruce-50);
}

.filter-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--spruce-800);
}

.filter-option .filter-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.filter-option.is-selected {
  color: var(--spruce-950);
  background: var(--spruce-50);
  font-weight: 700;
}

.range-fields {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.range-fields input {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--spruce-100);
  border-radius: 999px;
  color: var(--spruce-900);
  background: var(--spruce-50);
  font-size: 14px;
  font-weight: 700;
}

.filter-chip button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

/* Multi-image product gallery and lightbox */
.product-gallery {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(76vh, 720px);
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.gallery-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 76px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #eef1ef;
  cursor: pointer;
}

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

.gallery-thumb.is-active,
.gallery-thumb[aria-current="true"] {
  border-color: var(--ember);
  box-shadow: 0 0 0 2px rgba(217,76,49,.12);
}

.image-main {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #edf1ef;
  cursor: zoom-in;
}

.image-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.image-main:hover > img {
  transform: scale(1.025);
}

.zoom-content {
  width: min(92vw, 72dvh, 720px);
  aspect-ratio: 4 / 5;
  transform-origin: center;
  will-change: transform;
}

.zoom-content > .zoom-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.image-count,
.zoom-button {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  color: var(--spruce-950);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.image-count {
  left: 14px;
  bottom: 14px;
  padding: 0 13px;
  font-size: 14px;
  font-weight: 750;
}

.zoom-button {
  right: 14px;
  bottom: 14px;
  width: 42px;
  padding: 0;
  cursor: pointer;
}

.image-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--white);
  background: rgba(7, 15, 12, .97);
}

.image-lightbox::backdrop {
  background: rgba(7, 15, 12, .86);
}

.lightbox-content,
.zoom-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

.zoom-stage img,
.lightbox-content > img {
  width: auto;
  max-width: min(92vw, 1440px);
  height: auto;
  max-height: 90dvh;
  object-fit: contain;
  transform: translate3d(var(--pan-x, 0), var(--pan-y, 0), 0) scale(var(--zoom, 1));
  transform-origin: center;
  transition: transform .18s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.zoom-stage img.is-zoomed {
  cursor: grab;
  transition: none;
}

.zoom-stage img.is-dragging { cursor: grabbing; }

.lightbox-close {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255,255,255,.1);
  cursor: pointer;
}

.gallery-modal-controls {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(16,45,36,.72);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.gallery-modal-controls button {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.gallery-modal-controls button:hover { background: rgba(255,255,255,.12); }

/* Authentication */
.auth-dialog {
  width: min(calc(100% - 28px), 480px);
  max-height: min(90dvh, 760px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 26px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 26px 90px rgba(5,24,17,.28);
}

.auth-dialog::backdrop,
.management-modal::backdrop,
.confirm-dialog::backdrop {
  background: rgba(11,31,24,.64);
  backdrop-filter: blur(5px);
}

.auth-dialog-content {
  padding: 42px;
}

.auth-dialog .modal-close {
  position: sticky;
  top: 14px;
  z-index: 3;
  float: right;
  margin: 14px 14px -60px 0;
}

.auth-brand {
  margin-bottom: 22px;
}

.auth-dialog h2 {
  margin: 0;
  color: var(--spruce-950);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.auth-intro {
  margin: 10px 0 24px;
  color: var(--muted);
}

.auth-form,
.form-stack {
  display: grid;
  gap: 15px;
}

.auth-form label,
.field {
  display: grid;
  gap: 7px;
  color: #3d4944;
  font-size: 14px;
  font-weight: 750;
}

.auth-form input,
.auth-form select,
.field input,
.field select,
.field textarea,
.panel-form input,
.panel-form select,
.panel-form textarea {
  width: 100%;
  min-height: var(--control-height);
  padding: 10px 13px;
  border: 1px solid #ccd6d1;
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  background: var(--white);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field textarea,
.panel-form textarea {
  min-height: 120px;
  line-height: 1.55;
  resize: vertical;
}

.auth-form input:focus,
.auth-form select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.panel-form input:focus,
.panel-form select:focus,
.panel-form textarea:focus {
  border-color: var(--spruce-700);
  box-shadow: 0 0 0 4px rgba(39,103,78,.1);
}

.form-errors {
  padding: 11px 13px;
  border: 1px solid #efb7b0;
  border-radius: 10px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 14px;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.auth-switch {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
  font-size: 14px;
}

/* Seller/admin workspaces */
.admin-shell,
.seller-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.workspace-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  min-height: calc(100dvh - var(--header-height) - 40px);
  padding: 14px;
  border-radius: 20px;
  color: var(--white);
  background: var(--spruce-950);
}

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

.workspace-header,
.admin-actions,
.table-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.workspace-header {
  margin-bottom: 22px;
}

.workspace-header h1 {
  margin: 0;
  color: var(--spruce-950);
  font-size: clamp(29px, 4vw, 40px);
  letter-spacing: -.04em;
}

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

.account-card,
.user-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(18,48,37,.05);
}

.user-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  background: var(--spruce-800);
  font-size: 14px;
  font-weight: 800;
}

.user-card h3,
.user-card p {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card p {
  color: var(--muted);
  font-size: 14px;
}

.user-card .table-actions {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.toolbar,
.data-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.toolbar-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 440px;
}

.toolbar-search input,
.toolbar select,
.data-toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}

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

.form-grid .full,
.form-grid .span-2 {
  grid-column: 1 / -1;
}

.form-section {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.form-section h2,
.form-section h3 {
  margin: 0 0 4px;
  color: var(--spruce-950);
  font-size: 18px;
}

.form-section p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.management-modal,
.confirm-dialog {
  width: min(calc(100% - 28px), 720px);
  max-height: 90dvh;
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.modal-shell {
  padding: 28px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.modal-header h2 {
  margin: 0;
  color: var(--spruce-950);
  font-size: 25px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 26px -28px -28px;
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  background: #fafcfb;
}

.status-pill {
  min-height: 26px;
  align-items: center;
  padding: 4px 9px;
  font-size: 12px;
}

.status-pill.active,
.status-pill.approved,
.status-pill.success {
  color: var(--success);
  background: var(--success-soft);
}

.status-pill.inactive,
.status-pill.hidden,
.status-pill.neutral {
  color: #58635e;
  background: #edf1ef;
}

.status-pill.admin,
.status-pill.info {
  color: var(--info);
  background: var(--info-soft);
}

.status-pill.blocked,
.status-pill.error {
  color: var(--danger);
  background: var(--danger-soft);
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.row-action {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--spruce-900);
  background: var(--white);
  cursor: pointer;
}

.row-action.danger { color: var(--danger); }

.upload-dropzone {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  border: 2px dashed #b9cac1;
  border-radius: 16px;
  color: var(--muted);
  background: var(--spruce-50);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragging {
  border-color: var(--spruce-700);
  background: #e7f2ec;
}

.upload-dropzone strong {
  display: block;
  margin: 10px 0 3px;
  color: var(--spruce-950);
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.upload-preview {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eef1ef;
}

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

.upload-preview.is-primary::after {
  content: attr(data-primary-label);
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 99px;
  color: var(--white);
  background: var(--spruce-900);
  font-size: 12px;
  font-weight: 750;
}

.upload-preview-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(16,45,36,.85);
  cursor: pointer;
}

/* Discovery / swipe workspace */
.discover-shell {
  display: block;
  width: min(calc(100% - 40px), 984px);
  margin: 0 auto;
  padding: 32px 0 52px;
  min-height: calc(100dvh - var(--header-height) - 82px);
}

.discover-layout {
  display: grid;
  grid-template-columns: minmax(340px, 520px) minmax(320px, 410px);
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 54px);
}

.discover-product {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  isolation: isolate;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.discover-product:active { cursor: grabbing; }

.discover-card {
  isolation: isolate;
  touch-action: pan-y;
  user-select: none;
}

.discover-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: inherit;
  pointer-events: none;
}

.discover-card.is-dragging {
  cursor: grabbing;
  transition: none;
}

.discover-decision {
  position: absolute;
  top: 30px;
  z-index: 4;
  padding: 8px 14px;
  border: 3px solid currentColor;
  border-radius: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .08em;
  opacity: 0;
  pointer-events: none;
}

.discover-decision.like {
  left: 24px;
  color: #66e5a5;
  transform: rotate(-9deg);
}

.discover-decision.pass {
  right: 24px;
  color: #ff8a77;
  transform: rotate(9deg);
}

.discover-details {
  display: none;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.discover-overlay h1,
.discover-info h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.discover-info { align-self: center; }

.discover-shell > .discover-controls {
  width: min(100%, 520px);
  margin: 18px 0 0;
}

.discover-action.like {
  color: var(--white);
  background: var(--ember);
}

.discover-details h1,
.discover-details h2 {
  margin: 0 0 8px;
  color: var(--spruce-950);
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.discover-details p {
  color: var(--muted);
}

.discover-details-handle {
  display: none;
}

.discover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.discover-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--spruce-900);
  background: var(--spruce-50);
  font-size: 14px;
  font-weight: 700;
}

/* Raise prototype metadata to a readable baseline. */
.product-card-subtitle,
.product-price small,
.conversation-button span,
.chat-header span,
.chat-product-ref span,
.profile-card p,
.metric-card span,
.data-table th,
.data-table td,
.notice-box p {
  font-size: 14px;
}

@media (max-width: 1200px) {
  .header-inner { gap: 14px; }
  .desktop-nav { gap: 6px; }
  .desktop-nav .nav-pill { display: none; }
  .auth-trigger { padding-inline: 12px; }
  .product-grid.product-grid--dense,
  .product-grid.new-products-grid,
  .new-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-utilities { display: none; }
  .catalog-shell,
  .search-page-layout,
  .admin-shell,
  .seller-shell { grid-template-columns: 1fr; }
  .filters-panel,
  .workspace-sidebar { position: static; max-height: none; min-height: 0; }
  .catalog-shell > .filters-panel { display: none; }
  .catalog-shell > .filters-panel.is-open { display: block; }
  .product-grid.product-grid--dense,
  .product-grid.new-products-grid,
  .new-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-carousel,
  .carousel-track { min-height: 560px; }
  .carousel-slide { grid-template-columns: 1fr; }
  .hero-carousel .hero-copy {
    grid-column: 1;
    min-height: 560px;
    justify-content: flex-end;
    padding: 40px 34px 58px;
    background: linear-gradient(0deg, rgba(16,45,36,.98) 0%, rgba(16,45,36,.48) 55%, rgba(16,45,36,.04) 100%);
  }
  .hero-carousel .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    grid-column: 1;
    min-height: 0;
    background-position: center 30%;
  }
  .hero-carousel .hero-media::before {
    background: linear-gradient(0deg, rgba(16,45,36,.76), transparent 68%);
  }
  .carousel-slide-copy {
    justify-content: flex-end;
    min-height: 560px;
    padding: 40px 34px 58px;
    background: linear-gradient(0deg, rgba(16,45,36,.98) 0%, rgba(16,45,36,.56) 56%, rgba(16,45,36,.12) 100%);
  }
  .carousel-slide-media { position: absolute; inset: 0; min-height: 0; z-index: -1; }
  .carousel-slide-media::after { background: linear-gradient(0deg, rgba(16,45,36,.82), transparent 70%); }
  .carousel-arrow { top: 26px; transform: none; }
  .carousel-arrow.prev,
  .carousel-arrow.carousel-prev { left: auto; right: 76px; }
  .carousel-arrow.next,
  .carousel-arrow.carousel-next { right: 20px; }
  .product-gallery { grid-template-columns: 1fr; }
  .gallery-thumbnails {
    order: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .gallery-thumb { width: 70px; }
  .discover-shell { width: min(calc(100% - 32px), 520px); }
  .discover-layout { grid-template-columns: minmax(0, 520px); }
  .discover-shell > .discover-controls { margin-inline: auto; }
  .discover-details { max-width: 520px; }
  .upload-preview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-carousel,
  .carousel-track { min-height: 500px; border-radius: 22px; }
  .hero-carousel .hero-copy { min-height: 500px; padding: 28px 20px 54px; }
  .carousel-slide-copy { min-height: 500px; padding: 28px 20px 54px; }
  .carousel-slide-copy h1,
  .carousel-slide-copy h2 { font-size: clamp(34px, 10vw, 48px); }
  .carousel-slide-copy p { margin: 14px 0 20px; font-size: 16px; }
  .carousel-arrow { width: 44px; height: 44px; }
  .carousel-arrow.prev,
  .carousel-arrow.carousel-prev { right: 68px; }
  .carousel-arrow.next,
  .carousel-arrow.carousel-next { right: 14px; }
  .carousel-dots { bottom: 14px; }
  .product-grid.product-grid--dense,
  .product-grid.new-products-grid,
  .new-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 9px; }
  .account-grid,
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full,
  .form-grid .span-2 { grid-column: auto; }
  .upload-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auth-dialog-content { padding: 34px 22px 26px; }
  .auth-dialog h2 { font-size: 30px; }
  .modal-shell { padding: 22px 16px; }
  .modal-footer { margin: 22px -16px -22px; padding: 14px 16px; }
  .gallery-modal-controls { bottom: max(14px, env(safe-area-inset-bottom)); }

  /* Discovery occupies one mobile viewport above the persistent bottom bar. */
  body.is-discovery {
    height: 100dvh;
    padding-bottom: 0;
    overflow: hidden;
    overscroll-behavior: none;
    background: #0b2119;
  }

  body.is-discovery .site-header,
  body.is-discovery .footer,
  body.is-discovery .header-search,
  body.is-discovery .discover-info,
  body.is-discovery .page-heading {
    display: none !important;
  }

  body.is-discovery #main-content {
    height: calc(100dvh - var(--mobile-nav-space));
    min-height: 0;
    overflow: hidden;
  }

  body.is-discovery .page,
  body.is-discovery .page > .shell {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  body.is-discovery .discover-shell {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
  }

  body.is-discovery .discover-layout {
    display: block;
    width: 100%;
    height: 100%;
  }

  body.is-discovery .discover-product {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    touch-action: none;
  }

  body.is-discovery .discover-image {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    background-position: center;
  }

  body.is-discovery .discover-overlay {
    z-index: 3;
    padding: 90px 18px 112px;
  }

  body.is-discovery .discover-controls {
    position: absolute;
    left: 50%;
    bottom: 82px;
    z-index: 8;
    margin: 0;
    transform: translateX(-50%);
  }

  body.is-discovery .discover-details {
    display: block;
    position: absolute;
    inset: auto 0 0;
    z-index: 7;
    max-width: none;
    max-height: 72%;
    overflow-y: auto;
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -16px 45px rgba(5,24,17,.22);
    transform: translateY(calc(100% - 62px));
    transition: transform .32s cubic-bezier(.22,.7,.24,1);
    overscroll-behavior: contain;
  }

  body.is-discovery .discover-details.is-open {
    transform: translateY(0);
  }

  body.is-discovery .discover-details-handle {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 42px;
    margin: -7px 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  body.is-discovery .discover-details-handle::before {
    content: "";
    width: 46px;
    height: 5px;
    border-radius: 99px;
    background: #b9c6c0;
  }

  body.is-discovery .discover-details:not(.is-open) > :not(.discover-details-handle) {
    visibility: hidden;
  }

  body.is-discovery .mobile-nav {
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

/* Keep the swipe view viewport-locked on larger phones and small tablets too. */
@media (min-width: 641px) and (max-width: 820px) {
  body.is-discovery {
    height: 100dvh;
    padding-bottom: 0;
    overflow: hidden;
    overscroll-behavior: none;
    background: #0b2119;
  }

  body.is-discovery .site-header,
  body.is-discovery .footer,
  body.is-discovery .discover-info,
  body.is-discovery .page-heading {
    display: none !important;
  }

  body.is-discovery #main-content {
    height: calc(100dvh - var(--mobile-nav-space));
    min-height: 0;
    overflow: hidden;
  }

  body.is-discovery .page,
  body.is-discovery .page > .shell,
  body.is-discovery .discover-shell,
  body.is-discovery .discover-layout,
  body.is-discovery .discover-product {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  body.is-discovery .discover-shell { display: block; }

  body.is-discovery .discover-shell { position: relative; }

  body.is-discovery .discover-layout { display: block; }

  body.is-discovery .discover-product {
    width: min(100%, 600px);
    height: 100%;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    touch-action: none;
  }

  body.is-discovery .discover-image {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    background-position: center;
  }

  body.is-discovery .discover-controls {
    position: absolute;
    left: 50%;
    bottom: 82px;
    z-index: 8;
    margin: 0;
    transform: translateX(-50%);
  }

  body.is-discovery .discover-details {
    display: block;
    position: absolute;
    right: max(0px, calc((100% - 600px) / 2));
    bottom: 0;
    left: max(0px, calc((100% - 600px) / 2));
    z-index: 7;
    max-width: none;
    max-height: 72%;
    overflow-y: auto;
    padding: 12px 24px 28px;
    border: 0;
    border-radius: 24px 24px 0 0;
    transform: translateY(calc(100% - 62px));
    transition: transform .32s cubic-bezier(.22,.7,.24,1);
    overscroll-behavior: contain;
  }

  body.is-discovery .discover-details.is-open { transform: translateY(0); }

  body.is-discovery .discover-details-handle {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 42px;
    margin: -7px 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  body.is-discovery .discover-details-handle::before {
    content: "";
    width: 46px;
    height: 5px;
    border-radius: 99px;
    background: #b9c6c0;
  }

  body.is-discovery .discover-details:not(.is-open) > :not(.discover-details-handle) {
    visibility: hidden;
  }
}

@media (forced-colors: active) {
  .carousel-slide,
  .product-card,
  .filters-panel,
  .content-panel,
  .data-card,
  .auth-dialog,
  .discover-details {
    border: 1px solid CanvasText;
  }

  .status-pill,
  .filter-chip,
  .favorite-button {
    border: 1px solid currentColor;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-slide,
  .discover-details,
  .image-main > img,
  .zoom-stage img {
    transition: none !important;
  }

  .carousel-dot.is-active::after,
  .carousel-dot[aria-current="true"]::after {
    animation: none !important;
    transform: scaleX(1);
  }
}

/* Final cascade guards for the refined components. */
.auth-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  color: var(--white);
  background: var(--ember);
  box-shadow: 0 8px 20px rgba(185, 59, 37, .2);
}

.auth-trigger:hover {
  color: var(--white);
  background: var(--ember-dark);
}

.auth-trigger[hidden],
.account-trigger[hidden] {
  display: none !important;
}

.admin-actions {
  justify-content: flex-start;
}

.product-gallery {
  grid-template-areas: "thumbs main";
}

.gallery-thumbnails { grid-area: thumbs; }
.image-main { grid-area: main; width: 100%; padding: 0; border: 0; }

@media (max-width: 1200px) {
  .desktop-nav .nav-pill { display: inline-flex; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-grid; }
  .product-gallery { grid-template-areas: "main" "thumbs"; }
}

/* Homepage seller showcase and category entry point. */
.seller-showcase {
  min-width: 0;
}

.seller-showcase.is-static {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 4px 3px 12px;
}

.seller-showcase.is-marquee {
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
  touch-action: pan-x;
}

.seller-showcase.is-marquee::-webkit-scrollbar { display: none; }

.seller-marquee-track {
  display: flex;
  width: max-content;
  animation: seller-marquee var(--seller-marquee-duration, 28s) linear infinite;
  will-change: transform;
}

.seller-marquee-group {
  display: flex;
  flex: none;
  gap: 14px;
  padding-right: 14px;
}

.seller-marquee-group .seller-bubble {
  width: 132px;
  flex: 0 0 132px;
}

.seller-showcase.is-marquee:hover .seller-marquee-track,
.seller-showcase.is-marquee:focus-within .seller-marquee-track,
.seller-showcase.is-marquee:active .seller-marquee-track {
  animation-play-state: paused;
}

.seller-showcase:focus-visible {
  border-radius: 14px;
  outline: 3px solid rgba(194, 69, 47, .24);
  outline-offset: 3px;
}

.seller-logo {
  overflow: hidden;
}

.seller-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes seller-marquee {
  to { transform: translateX(-50%); }
}

.home-category-section {
  margin-top: 18px;
}

.home-category-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--spruce-100);
  border-radius: 24px;
  background: linear-gradient(120deg, var(--spruce-50), #fff 58%, #f9eae5);
  box-shadow: 0 12px 34px rgba(18, 48, 37, .06);
}

.home-category-cta::after {
  content: "4 / 50";
  position: absolute;
  right: 22%;
  bottom: -30px;
  color: rgba(23, 63, 49, .055);
  font-size: clamp(70px, 10vw, 126px);
  font-weight: 850;
  line-height: 1;
  pointer-events: none;
}

.home-category-cta > * { position: relative; z-index: 1; }
.home-category-cta h2 { margin: 4px 0 6px; color: var(--spruce-950); font-size: clamp(26px, 4vw, 38px); }
.home-category-cta p { max-width: 610px; margin: 0; color: var(--muted); }
.home-category-button { flex: 0 0 auto; min-width: 210px; }
.home-category-button svg { width: 20px; height: 20px; }

/* Admin product filters and seller ownership column. */
.admin-filter-panel {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) repeat(5, minmax(135px, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(18, 48, 37, .045);
}

.admin-filter-panel label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-filter-panel input,
.admin-filter-panel select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--white);
}

.admin-filter-panel input:focus,
.admin-filter-panel select:focus {
  border-color: var(--spruce-700);
  outline: 3px solid rgba(23, 63, 49, .1);
}

.admin-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.admin-load-more {
  display: flex;
  justify-content: center;
}

.admin-load-more[hidden] { display: none; }

.table-seller {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  color: var(--spruce-950);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.table-seller-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: var(--spruce-800);
  font-size: 10px;
}

.table-seller-logo img { width: 100%; height: 100%; object-fit: cover; }

/* Homepage seller administration. */
.admin-showcase-grid {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr);
  align-items: start;
  gap: 18px;
}

.showcase-logo-preview {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border: 2px solid var(--ember);
  border-radius: 50%;
  color: var(--white);
  background: var(--spruce-800);
  font-size: 15px;
  font-weight: 800;
}

.showcase-logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.showcase-logo-preview img[hidden], .showcase-logo-preview span[hidden] { display: none; }
.showcase-new-preview { display: flex; justify-content: center; padding: 4px 0; }
.showcase-selected-seller { display: flex; align-items: center; gap: 14px; padding: 13px; border-radius: 14px; background: var(--spruce-50); }
.showcase-selected-seller div:last-child { display: grid; gap: 3px; }
.showcase-selected-seller small { color: var(--muted); }

.showcase-admin-list { display: grid; }

.showcase-admin-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.showcase-admin-row:last-child { border-bottom: 0; }
.showcase-admin-row > div:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.showcase-admin-row small { color: var(--muted); }
.showcase-admin-row em { color: var(--danger); font-size: 11px; font-style: normal; }
.showcase-admin-row.is-inactive { background: #fff9f7; }

@media (max-width: 1180px) {
  .admin-filter-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-filter-search { grid-column: span 2; }
}

@media (max-width: 900px) {
  .seller-showcase.is-static {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 110px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .seller-showcase.is-static .seller-bubble { scroll-snap-align: start; }
  .seller-marquee-group .seller-bubble { width: 110px; flex-basis: 110px; }
  .admin-showcase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .home-category-cta { align-items: stretch; flex-direction: column; gap: 18px; }
  .home-category-cta::after { right: -12px; bottom: 15px; }
  .home-category-button { width: 100%; min-width: 0; }
  .admin-filter-panel { grid-template-columns: 1fr; }
  .admin-filter-search { grid-column: auto; }
  .admin-filter-actions { justify-content: stretch; }
  .admin-filter-actions > * { flex: 1; }
  .showcase-admin-row { grid-template-columns: auto minmax(0, 1fr); }
  .showcase-admin-row .admin-actions { grid-column: 1 / -1; padding-left: 79px; }
}

@media (prefers-reduced-motion: reduce) {
  .seller-showcase.is-marquee .seller-marquee-track { animation: none !important; transform: none !important; }
  .seller-showcase.is-marquee .seller-marquee-group[aria-hidden="true"] { display: none; }
}
