:root {
  --color-bg: #fdfdfa;
  --color-surface: #ffffff;
  --color-surface-soft: #f7f6f1;

  --color-text: #12151b;
  --color-text-soft: #3f4957;
  --color-text-muted: #6f7887;

  --color-border: #dfdbd1;
  --color-border-strong: #ccc4b6;

  --color-red: #e5483f;
  --color-red-hover: #c93b33;

  --color-yellow: #f2b632;
  --color-yellow-hover: #daa11f;

  --color-black-accent: #111318;

  --color-success: #4d9b6e;
  --color-success-bg: #eaf6ee;

  --color-alert: #d84a3a;
  --color-alert-bg: #fcebe8;

  --bg: var(--color-bg);
  --surface: var(--color-surface);
  --surface-2: var(--color-surface);
  --surface-muted: var(--color-surface-soft);
  --text: var(--color-text);
  --text-body: var(--color-text-soft);
  --text-muted: var(--color-text-muted);
  --line: var(--color-border);
  --line-strong: var(--color-border-strong);
  --accent: var(--color-yellow);
  --accent-strong: var(--color-yellow-hover);
  --red: var(--color-red);
  --red-strong: var(--color-red-hover);
  --ok: var(--color-success);
  --shadow-soft: 0 10px 24px rgba(17, 19, 24, 0.06);
  --shadow-card: 0 14px 28px rgba(17, 19, 24, 0.08);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-pill: 999px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: "Public Sans", "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(253, 250, 250, 0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-4);
}

.header-inner--public {
  grid-template-columns: 1fr auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand-logo {
  height: 34px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.brand--footer {
  margin-bottom: var(--space-2);
}

.site-footer .brand-logo {
  height: 30px;
  max-width: 180px;
}

.header-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.7rem;
  background: var(--surface-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.admin-link {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.admin-link:hover,
.admin-link:focus-visible {
  color: var(--red);
  border-color: var(--red);
}

.button {
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: #3a2a08;
  border-radius: var(--radius-pill);
  padding: 0.72rem 1.2rem;
  min-height: 42px;
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(216, 158, 34, 0.2);
  transition: 160ms ease;
}

.button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(216, 158, 34, 0.24);
}

.button:focus-visible {
  outline: 3px solid rgba(216, 158, 34, 0.35);
  outline-offset: 2px;
}

.button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.button--ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button--ghost:hover {
  background: var(--color-surface-soft);
}

.button--secondary {
  background: var(--red);
  border-color: var(--red-strong);
  color: #fff;
  box-shadow: 0 8px 16px rgba(201, 60, 52, 0.22);
}

.button--secondary:hover {
  background: var(--red-strong);
  box-shadow: 0 12px 20px rgba(201, 60, 52, 0.26);
}

.button--icon {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1.2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-6);
  padding-top: calc(var(--space-7) - 0.5rem);
  padding-bottom: calc(var(--space-7) - 0.5rem);
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-content {
  max-width: 62ch;
  position: relative;
  z-index: 5;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -1rem -1.35rem -1.2rem -1.5rem;
  z-index: -1;
  pointer-events: none;
  border-radius: 18px;
  background: linear-gradient(
    90deg,
    rgba(253, 253, 250, 0.82) 0%,
    rgba(253, 253, 250, 0.66) 58%,
    rgba(253, 253, 250, 0.24) 100%
  );
}

.hero-visual {
  position: relative;
  z-index: 4;
}

.tagline {
  margin: 0 0 var(--space-3);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

h1,
.section-title,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--color-black-accent);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  max-width: 14ch;
}

.lead {
  margin: var(--space-3) 0 0;
  color: var(--text-body);
  font-size: 0.95rem;
  max-width: 34ch;
}

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  flex-wrap: wrap;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.hero-points li {
  color: var(--text-body);
  font-weight: 500;
}

.hero-points li::before {
  content: "•";
  color: var(--red);
  margin-right: var(--space-2);
}

.hero-slideshow {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  position: relative;
  z-index: 5;
}

.hero-flow {
  position: absolute;
  inset: -2rem 0 -1.2rem;
  width: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.52;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.hero-flow__row {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.hero-flow__row--top {
  top: 0;
}

.hero-flow__row--middle {
  top: 35%;
}

.hero-flow__row--fill-a {
  top: 17%;
}

.hero-flow__row--fill-b {
  top: 53%;
}

.hero-flow__row--bottom {
  top: 70%;
}

.hero-flow__lane {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  width: max-content;
  animation: hero-flow-marquee 88s linear infinite;
  will-change: transform;
}

.hero-flow__lane--reverse {
  animation-direction: reverse;
  animation-duration: 96s;
}

.hero-flow__lane--slow {
  animation-duration: 108s;
}

.hero-flow__row--top .hero-flow__lane {
  gap: 1.05rem;
}

.hero-flow__row--fill-a .hero-flow__lane,
.hero-flow__row--fill-b .hero-flow__lane {
  gap: 0.84rem;
}

.hero-flow__row--middle .hero-flow__lane {
  gap: 0.88rem;
}

.hero-flow__row--bottom .hero-flow__lane {
  gap: 1.14rem;
}

.hero-flow__card {
  margin: 0;
  width: 7.8rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 19, 24, 0.12);
  opacity: 0.9;
  transform: translateZ(0);
}

.hero-flow__row--filler .hero-flow__card {
  width: 7.1rem;
  opacity: 0.62;
  box-shadow: 0 8px 18px rgba(17, 19, 24, 0.08);
}

.hero-flow__row--top .hero-flow__card {
  transform: translateY(0.22rem) translateZ(0);
}

.hero-flow__row--fill-a .hero-flow__card {
  transform: translateY(-0.1rem) scale(0.96) translateZ(0);
}

.hero-flow__row--middle .hero-flow__card {
  transform: translateY(-0.36rem) translateZ(0);
}

.hero-flow__row--fill-b .hero-flow__card {
  transform: translateY(0.15rem) scale(0.95) translateZ(0);
}

.hero-flow__row--bottom .hero-flow__card {
  transform: translateY(-0.14rem) translateZ(0);
}

.hero-flow__card img {
  width: 100%;
  height: 10.8rem;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.hero-flow__row--filler .hero-flow__card img {
  filter: saturate(0.82) contrast(1.01);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(253, 253, 250, 0.42) 0%,
    rgba(253, 253, 250, 0.26) 34%,
    rgba(253, 253, 250, 0.1) 58%,
    rgba(253, 253, 250, 0.03) 100%
  );
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(253, 253, 250, 0.1) 0%,
    rgba(253, 253, 250, 0.02) 28%,
    rgba(253, 253, 250, 0.02) 72%,
    rgba(253, 253, 250, 0.09) 100%
  );
}

@keyframes hero-flow-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-visual__label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.media-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, var(--surface-muted));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

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

.hero-slide__details {
  margin-top: var(--space-4);
}

.hero-slide__details strong {
  display: block;
  font-size: 1.1rem;
}

.hero-slide__details small {
  display: block;
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-weight: 600;
}

.hero-slide__details span {
  display: block;
  margin-top: var(--space-2);
  color: var(--red);
  font-size: 1.15rem;
  font-weight: 800;
}

.hero-slideshow__controls {
  margin-top: var(--space-4);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

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

.section-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.section-subtitle {
  margin: var(--space-2) 0 0;
  color: var(--text-body);
  font-size: 0.95rem;
}

.featured-controls {
  display: flex;
  gap: var(--space-2);
}

.featured-scroll {
  --featured-cols: 5;
  margin-top: var(--space-5);
  overflow-x: auto;
  padding: var(--space-3);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.featured-scroll::-webkit-scrollbar {
  height: 9px;
}

.featured-scroll::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: var(--radius-pill);
}

.featured-track {
  display: flex;
  gap: var(--space-4);
  min-width: 100%;
}

.featured-track .product-card {
  flex: 0 0 calc((100% - (var(--space-4) * (var(--featured-cols) - 1))) / var(--featured-cols));
  width: calc((100% - (var(--space-4) * (var(--featured-cols) - 1))) / var(--featured-cols));
  scroll-snap-align: start;
}

.featured-track .product-card .media-wrap {
  aspect-ratio: 5 / 6;
}

.product-card--compact {
  grid-template-rows: auto auto auto;
}

.product-card--compact .product-card__meta,
.product-card--compact .product-card__footer {
  display: none;
}

.product-card--compact .product-card__title {
  font-size: 0.95rem;
}

.inventory-header {
  align-items: start;
}

.inventory-status {
  margin: var(--space-2) 0 0;
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 700;
}

.filters {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) repeat(4, minmax(145px, 1fr)) auto;
  gap: var(--space-2);
  justify-items: stretch;
  width: min(920px, 100%);
}

.filters input,
.filters select {
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  min-width: 150px;
  font: inherit;
}

.filters .button {
  min-height: 42px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.inventory-grid {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.inventory-grid[data-view="full"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
}

.product-card {
  padding: 0.85rem;
  display: grid;
  gap: 0.65rem;
  grid-template-rows: auto auto minmax(2.6em, auto) auto;
  align-content: start;
  height: 100%;
  content-visibility: auto;
  contain-intrinsic-size: 440px;
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(17, 19, 24, 0.1);
  border-color: var(--line);
}

.product-card__media {
  position: relative;
}

.product-card__badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.product-card__meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.product-card__title {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 800;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.product-card__footer {
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.inventory-actions {
  margin-top: var(--space-5);
  text-align: center;
}

.inventory-actions .button {
  min-width: 220px;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  background: var(--surface-muted);
  border-radius: var(--radius-m);
  padding: var(--space-6);
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
}

.section--neutral {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-7) clamp(1rem, 3vw, 2.5rem);
}

.trust-head {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.trust-head p {
  margin: var(--space-3) 0 0;
  color: var(--text-body);
}

.trust-grid {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-card {
  padding: var(--space-5);
}

.trust-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.trust-card p {
  margin: var(--space-2) 0 0;
  color: var(--text-body);
}

.owner-cta {
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
}

.owner-cta__actions {
  display: grid;
  gap: var(--space-2);
}

.owner-cta__micro {
  margin: var(--space-3) 0 0;
  color: var(--text-body);
  font-size: 0.92rem;
}

.owner-cta--compact {
  padding: var(--space-5);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-5);
}

.contact-card,
.contact-info {
  padding: var(--space-6);
}

.contact-card form {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.contact-card label {
  font-weight: 700;
  font-size: 0.92rem;
}

.contact-card input,
.contact-card textarea,
.contact-card select {
  width: 100%;
  margin-top: var(--space-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  background: var(--surface-2);
}

.contact-card input:focus-visible,
.contact-card textarea:focus-visible,
.contact-card select:focus-visible {
  outline: 3px solid rgba(216, 158, 34, 0.25);
  outline-offset: 2px;
  border-color: rgba(216, 158, 34, 0.78);
}

.contact-card form.was-validated input:invalid,
.contact-card form.was-validated textarea:invalid,
.contact-card form.was-validated select:invalid {
  border-color: rgba(216, 74, 58, 0.55);
}

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

.contact-form-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.form-feedback {
  min-height: 1.4em;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(77, 155, 110, 0.3);
  background: var(--color-success-bg);
  font-size: 0.88rem;
  color: var(--ok);
  font-weight: 600;
  visibility: hidden;
}

.form-feedback:not(:empty) {
  visibility: visible;
}

.form-feedback.is-error {
  color: var(--color-alert);
  border-color: rgba(216, 74, 58, 0.4);
  background: var(--color-alert-bg);
}

.form-feedback.is-loading {
  color: var(--text-muted);
  border-color: var(--line);
  background: var(--surface-muted);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info h3 {
  margin: 0 0 var(--space-4);
}

.contact-info p {
  margin: 0 0 var(--space-3);
  color: var(--text-body);
}

.contact-info strong {
  color: var(--text);
}

.contact-info a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.contact-info__list {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.contact-pill {
  background: var(--color-surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.44rem 0.8rem;
  color: var(--text-body);
  font-size: 0.85rem;
  font-weight: 600;
}

.privacy-note {
  margin-top: var(--space-4);
  padding: var(--space-5);
}

.privacy-note h3 {
  margin: 0 0 var(--space-3);
}

.privacy-note p {
  margin: 0 0 var(--space-2);
  color: var(--text-body);
}

.privacy-note a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tag-row {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.34rem 0.72rem;
}

.tag--accent {
  background: rgba(242, 182, 50, 0.22);
  color: var(--text);
  border: 1px solid rgba(216, 158, 34, 0.4);
}

.tag--ghost {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-muted);
}

.site-footer {
  margin-top: var(--space-7);
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--text);
  padding-top: var(--space-6);
}

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

.site-footer .brand {
  color: var(--text);
}

.site-footer p {
  margin: var(--space-2) 0 0;
  color: var(--text-body);
  font-size: 0.96rem;
  line-height: 1.6;
}

.site-footer h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: var(--space-6);
  padding: var(--space-4) 0 var(--space-5);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.footer-bottom small {
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer .attribution {
  color: var(--text-muted);
}

.admin-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  padding: var(--space-7) 0 var(--space-6);
}

.admin-hero__card,
.upload-card,
.uploads-list {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
}

.admin-note,
.panel-note,
.file-preview {
  color: var(--text-muted);
}

.admin-section {
  padding-top: 0;
}

.admin-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr 1fr;
}

.upload-card .fields {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: var(--space-4);
}

.upload-card label {
  font-weight: 700;
  font-size: 0.9rem;
}

.upload-card input,
.upload-card select {
  margin-top: var(--space-2);
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  padding: 0.6rem 0.7rem;
  font: inherit;
}

.upload-card input[type="file"] {
  padding: 0.5rem;
}

.upload-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-m);
  padding: var(--space-5);
  text-align: center;
  background: var(--surface-muted);
  color: var(--text-muted);
}

.upload-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: var(--space-2) var(--space-3);
}

.upload-item img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.upload-item .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 1080px) {
  .inventory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .inventory-grid[data-view="full"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .featured-scroll {
    --featured-cols: 4;
  }

  .trust-grid,
  .footer-grid,
  .contact-grid,
  .admin-grid,
  .admin-hero,
  .hero {
    grid-template-columns: 1fr;
  }

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

  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .owner-cta {
    grid-template-columns: 1fr;
  }

  .hero-flow {
    inset: -0.9rem 0 -0.4rem;
    opacity: 0.38;
  }

  .hero-flow__row--middle {
    top: 36%;
  }

  .hero-flow__row--fill-a {
    top: 18%;
  }

  .hero-flow__row--fill-b {
    top: 55%;
  }

  .hero-flow__row--bottom {
    top: 72%;
  }

  .hero-flow__card {
    width: 6rem;
  }

  .hero-flow__card img {
    height: 8.1rem;
  }
}

@media (max-width: 900px) {
  .inventory-grid,
  .inventory-grid[data-view="full"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-scroll {
    --featured-cols: 3;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand nav"
      "meta meta";
    row-gap: var(--space-2);
    min-height: auto;
    padding: var(--space-3) 0;
  }

  .header-inner--public {
    grid-template-areas:
      "brand brand"
      "meta meta";
  }

  .brand {
    grid-area: brand;
  }

  .brand-logo {
    height: 30px;
    max-width: 170px;
  }

  .nav {
    grid-area: nav;
  }

  .header-meta {
    grid-area: meta;
    justify-self: start;
  }

  .hero-ctas {
    flex-direction: row;
    align-items: stretch;
    margin: var(--space-4) 0;
    gap: var(--space-2);
  }

  .hero-ctas .button {
    flex: 1;
    min-height: 38px;
    padding: 0.58rem 0.8rem;
    font-size: 0.86rem;
  }

  .hero {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    gap: var(--space-3);
  }

  .hero::before {
    background: linear-gradient(
      92deg,
      rgba(253, 253, 250, 0.34) 0%,
      rgba(253, 253, 250, 0.2) 36%,
      rgba(253, 253, 250, 0.08) 62%,
      rgba(253, 253, 250, 0.02) 100%
    );
  }

  .hero h1 {
    font-size: clamp(1.45rem, 6.8vw, 1.78rem);
    max-width: 17ch;
  }

  .lead {
    font-size: 0.86rem;
    max-width: 42ch;
  }

  .hero-flow {
    display: block;
    height: 7.1rem;
    inset: -0.3rem 0 auto;
    opacity: 0.24;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  }

  .hero-flow__row--top {
    top: 8%;
  }

  .hero-flow__row--middle {
    display: block;
    top: 52%;
  }

  .hero-flow__row--fill-a,
  .hero-flow__row--fill-b,
  .hero-flow__row--bottom {
    display: none;
  }

  .hero-flow__row--top .hero-flow__lane,
  .hero-flow__row--middle .hero-flow__lane {
    gap: 0.72rem;
  }

  .hero-flow__row--top .hero-flow__card {
    width: 5rem;
    opacity: 0.48;
    transform: translateY(0.1rem) translateZ(0);
  }

  .hero-flow__row--middle .hero-flow__card {
    width: 4.7rem;
    opacity: 0.36;
    transform: translateY(-0.08rem) translateZ(0);
  }

  .hero-flow__row--top .hero-flow__card img {
    height: 6.9rem;
    filter: saturate(0.84) contrast(1.02);
  }

  .hero-flow__row--middle .hero-flow__card img {
    height: 6.5rem;
    filter: saturate(0.8) contrast(1);
  }

  .hero-content {
    gap: var(--space-2);
  }

  .hero-content::before {
    inset: -0.62rem -0.72rem -0.68rem -0.8rem;
    background: linear-gradient(
      95deg,
      rgba(253, 253, 250, 0.84) 0%,
      rgba(253, 253, 250, 0.62) 58%,
      rgba(253, 253, 250, 0.22) 100%
    );
  }

  .hero-slideshow {
    padding: 0.66rem;
    border-color: var(--line-strong);
    box-shadow: 0 10px 20px rgba(17, 19, 24, 0.08);
  }

  .hero-visual {
    justify-self: center;
    width: min(250px, 72vw);
    z-index: 4;
  }

  .hero-visual__label {
    font-size: 0.62rem;
    margin-bottom: 0.35rem;
  }

  .hero-slide__details {
    margin-top: var(--space-2);
  }

  .hero-slide__details strong {
    font-size: 0.94rem;
  }

  .hero-slide__details small {
    font-size: 0.76rem;
    line-height: 1.32;
  }

  .hero-media-wrap {
    aspect-ratio: 7 / 9;
  }

  .hero-slideshow__controls {
    margin-top: var(--space-2);
  }

  .inventory-grid,
  .inventory-grid[data-view="full"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: var(--space-2);
  }

  .featured-controls {
    display: flex;
    justify-self: end;
  }

  .featured-controls .button {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .featured-scroll {
    --featured-cols: 2;
    padding: 0.56rem;
    margin-top: var(--space-3);
    border-color: var(--line-strong);
    box-shadow: 0 10px 18px rgba(17, 19, 24, 0.06);
  }

  .featured-track {
    gap: var(--space-2);
  }

  .product-card {
    padding: 0.62rem;
    gap: 0.46rem;
  }

  .featured-track .product-card {
    padding: 0.5rem;
    gap: 0.4rem;
  }

  .featured-track .product-card .media-wrap {
    aspect-ratio: 11 / 14;
  }

  .featured-track .product-card__badge {
    display: none;
  }

  .product-card__title {
    font-size: 0.84rem;
    line-height: 1.24;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card__meta {
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .filters input,
  .filters select,
  .filters button {
    width: 100%;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem;
  }

  #filter-search,
  #search,
  #filter-sort,
  #clear-filters {
    grid-column: 1 / -1;
  }

  .filters input,
  .filters select {
    min-height: 36px;
    padding: 0.44rem 0.6rem;
    font-size: 0.84rem;
  }

  .filters .button {
    min-height: 36px;
    font-size: 0.82rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .contact-card,
  .contact-info {
    padding: var(--space-5);
  }

  .owner-cta__actions .button {
    width: 100%;
  }

  .privacy-note {
    padding: var(--space-4);
  }

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

  .upload-card .fields {
    grid-template-columns: 1fr;
  }

  .site-footer {
    margin-top: var(--space-6);
    padding-top: var(--space-3);
  }

  .footer-grid {
    gap: var(--space-2);
  }

  .site-footer p {
    font-size: 0.82rem;
    line-height: 1.35;
    margin-top: 0.25rem;
  }

  .site-footer h4 {
    font-size: 0.84rem;
  }

  .footer-bottom {
    margin-top: var(--space-3);
    padding: var(--space-2) 0 var(--space-3);
    gap: 0.3rem var(--space-2);
  }

  .footer-bottom small {
    font-size: 0.72rem;
  }

  .footer-admin {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-flow__lane {
    animation: none;
  }

  .hero-flow {
    display: none;
  }

  .product-card,
  .product-card:hover {
    transition: none;
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero-flow {
    display: block;
    height: 5.3rem;
    inset: -0.22rem 0 auto;
    opacity: 0.18;
  }

  .hero-flow__row--middle {
    display: none;
  }

  .hero-flow__row--top {
    top: 14%;
  }

  .hero-flow__row--top .hero-flow__card {
    width: 4.6rem;
    opacity: 0.38;
  }

  .hero-flow__row--top .hero-flow__card img {
    height: 6.1rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .inventory-grid,
  .inventory-grid[data-view="full"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-scroll {
    --featured-cols: 2;
  }

  .featured-track {
    gap: var(--space-2);
  }

  .featured-scroll {
    padding: 0.42rem;
  }

  .featured-track .product-card {
    padding: 0.42rem;
  }

  .featured-controls .button {
    width: 32px;
    height: 32px;
  }

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