:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --panel: #121214;
  --panel-2: #19191c;
  --line: #2a2a2f;
  --line-strong: #3a3a40;
  --text: #f4f4f5;
  --muted: #a8a8ad;
  --soft: #d7d7db;
  --red: #e50914;
  --red-dark: #b80710;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Current shop layout */
.shop-hero {
  display: grid;
  grid-template-columns: minmax(430px, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(20px, 3.4vw, 48px);
  align-items: center;
  height: calc(100svh - 72px);
  min-height: 650px;
  max-height: 920px;
  overflow: hidden;
  padding: clamp(16px, 2.6vw, 34px) clamp(16px, 3.2vw, 48px);
  border-bottom: 1px solid var(--line);
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(16px, 2vh, 22px);
  max-width: 680px;
}

.mode-card {
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 13px 16px;
  color: var(--text);
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mode-card:hover {
  border-color: var(--line-strong);
  background: #17171a;
}

.mode-switch.needs-choice .mode-card {
  border-color: var(--red);
  background:
    linear-gradient(180deg, rgba(229, 9, 20, 0.18), rgba(229, 9, 20, 0.06)),
    var(--panel);
  box-shadow:
    0 0 0 2px rgba(229, 9, 20, 0.42),
    0 14px 34px rgba(229, 9, 20, 0.18);
  animation: mode-choice-pulse 680ms ease 0s 2;
}

.mode-card strong {
  font-size: 1.15rem;
}

.mode-card span {
  color: var(--muted);
  line-height: 1.35;
}

.mode-card.active {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(229, 9, 20, 0.24), rgba(229, 9, 20, 0.1)),
    var(--panel);
  border-color: var(--red);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(229, 9, 20, 0.18);
}

.mode-card.active span {
  color: var(--white);
}

@keyframes mode-choice-pulse {
  0%,
  100% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-3px);
  }
}

.hero-chat {
  min-height: 48px;
}

.hero-showcase {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-self: center;
  width: 100%;
  height: min(100%, calc(100svh - 116px));
  min-height: 0;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.hero-visual::after {
  display: none;
}

.media-photo-stack {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.media-photo-bg {
  position: absolute;
  inset: -18px;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  object-fit: cover;
  filter: blur(12px) saturate(1.08);
  opacity: 0.78;
  transform: scale(1.08);
}

.hero-photo-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.media-photo-main {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.hero-visual .media-photo-stack {
  background: transparent;
  border-radius: 0;
  isolation: isolate;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.hero-visual .hero-stack-current {
  z-index: 1;
}

.hero-visual .hero-stack-next {
  z-index: 2;
  opacity: 0;
  transform: scale(1.012);
}

.hero-visual .hero-stack-next.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-visual .media-photo-bg {
  opacity: 0.78;
}

.hero-visual .media-photo-main {
  object-fit: contain;
  object-position: center;
  transform: none;
  transform-origin: center;
  will-change: transform;
}

.shop-hero .eyebrow {
  display: none;
}

.seo-product-intro,
.seo-category-intro {
  scroll-margin-top: 84px;
  border-bottom: 1px solid var(--line);
}

.seo-product-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 28px;
  align-items: center;
  padding: 34px clamp(16px, 4vw, 48px);
  background: #101012;
}

.seo-product-copy {
  display: grid;
  gap: 14px;
  max-width: 920px;
}

.seo-product-copy .eyebrow,
.seo-category-intro .eyebrow {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.seo-product-copy h1,
.seo-category-intro h1 {
  max-width: 980px;
  margin: 0;
  font-size: 3.1rem;
  line-height: 1.02;
}

.seo-product-copy p,
.seo-category-intro p {
  max-width: 860px;
  margin: 0;
  color: var(--soft);
  line-height: 1.58;
}

.seo-product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-product-facts span {
  padding: 7px 9px;
  color: var(--white);
  background: #151518;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 760;
}

.seo-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.seo-product-media {
  align-self: stretch;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
}

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

.seo-category-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 32px clamp(16px, 4vw, 48px);
  background: #101012;
}

.trust-page {
  min-height: calc(100svh - 72px);
}

.trust-hero {
  padding: 46px clamp(16px, 4vw, 48px) 30px;
  background: #101012;
  border-bottom: 1px solid var(--line);
}

.trust-hero .eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.trust-hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: 3.1rem;
  line-height: 1.03;
}

.trust-hero p:not(.eyebrow) {
  max-width: 840px;
  margin: 14px 0 0;
  color: var(--soft);
  line-height: 1.58;
}

.trust-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-content article {
  min-height: 220px;
  padding: 28px clamp(16px, 4vw, 48px);
  background: var(--bg);
}

.trust-content h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.trust-content p {
  max-width: 820px;
  margin: 0 0 10px;
  color: var(--soft);
  line-height: 1.58;
}

.trust-content a {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.64);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(16px, 4vw, 48px);
  color: var(--soft);
  background: #09090a;
  border-top: 1px solid var(--line);
}

.site-footer > div {
  display: grid;
  gap: 5px;
}

.site-footer strong {
  color: var(--white);
}

.site-footer span {
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}

.site-footer a {
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 760;
}

.site-footer a:hover {
  color: var(--white);
}

.hero-visual .media-photo-main.hero-pan-down {
  animation: hero-photo-pan-down 10s ease-in-out infinite alternate;
}

.hero-visual .media-photo-main.hero-pan-up {
  animation: hero-photo-pan-up 10s ease-in-out infinite alternate;
}

@keyframes hero-photo-pan-down {
  from {
    transform: translate(-5%, -4%) scale(1.3);
  }

  to {
    transform: translate(5%, 4%) scale(1.3);
  }
}

@keyframes hero-photo-pan-up {
  from {
    transform: translate(5%, 4%) scale(1.3);
  }

  to {
    transform: translate(-5%, -4%) scale(1.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .media-photo-stack {
    transition: none;
  }

  .hero-visual .media-photo-main {
    animation: none;
    object-position: center;
    transform: none;
  }
}

.hero-visual .product-art {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.hero-visual .product-art::before {
  width: 46%;
  height: 70%;
}

.hero-product-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-product-bar div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hero-product-bar strong,
.hero-product-bar span,
.hero-product-bar b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-product-bar span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-product-bar b {
  color: var(--white);
}

.hero-product-button {
  min-height: 48px;
}

.category-band {
  padding: 26px clamp(16px, 4vw, 48px) 14px;
  border-bottom: 1px solid var(--line);
}

.compact-heading {
  margin-bottom: 14px;
}

.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.category-pill {
  flex: 0 0 auto;
  min-width: 110px;
  min-height: 52px;
  padding: 0 18px;
  color: var(--soft);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 780;
}

.category-pill.active,
.category-pill:hover {
  color: var(--white);
  background: var(--panel-2);
  border-color: var(--line-strong);
}

.simple-filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 860px;
  margin: 0 0 22px;
}

.float-field {
  position: relative;
  display: block;
}

.float-field input,
.float-field select,
.float-field textarea {
  padding-top: 18px;
}

.float-field > span {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  max-width: calc(100% - 24px);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1;
  transform: translateY(-50%);
  transform-origin: left top;
  pointer-events: none;
  transition:
    transform 150ms ease,
    color 150ms ease,
    font-size 150ms ease;
}

.float-field textarea + span {
  top: 24px;
}

.float-field input:focus + span,
.float-field input:not(:placeholder-shown) + span,
.float-field textarea:focus + span,
.float-field textarea:not(:placeholder-shown) + span,
.float-field select + span {
  color: var(--soft);
  font-size: 0.68rem;
  transform: translateY(-18px);
}

.search-field {
  min-width: 0;
}

.product-media {
  isolation: isolate;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  color: var(--white);
  background: rgba(11, 11, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-size: 1.8rem;
  transform: translateY(-50%);
}

.gallery-arrow.left {
  left: 10px;
}

.gallery-arrow.right {
  right: 10px;
}

.gallery-arrow:hover {
  background: rgba(229, 9, 20, 0.86);
}

.wholesale-fields {
  display: grid;
  gap: 10px;
}

.compact-action {
  min-width: 74px;
}

body[data-purchase-mode="retail"] .mode-card[data-mode-choice="retail"],
body[data-purchase-mode="wholesale"] .mode-card[data-mode-choice="wholesale"] {
  border-color: var(--red);
}

@media (max-width: 1120px) {
  .shop-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

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

  .hero-visual,
  .hero-visual .product-art {
    min-height: 420px;
  }
}

@media (max-width: 860px) {
  .simple-filter-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .shop-hero,
  .category-band {
    padding-left: 12px;
    padding-right: 12px;
  }

  .mode-switch {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-visual .product-art {
    min-height: 360px;
  }

  .hero-product-bar {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .category-pill {
    min-width: 96px;
  }

  .header-actions {
    grid-template-columns: 0.6fr 0.65fr 1fr;
  }
}

@media (min-width: 1121px) {
  .shop-hero {
    height: calc(100svh - 72px);
  }

  .shop-hero .hero-copy {
    max-height: 100%;
    overflow: hidden;
  }
}

@media (max-width: 1120px) {
  .shop-hero {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .hero-showcase {
    height: auto;
  }
}

@media (max-height: 820px) and (min-width: 1121px) {
  .shop-hero {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .shop-hero h1 {
    font-size: clamp(2.35rem, 3.25vw, 3.85rem);
  }

  .hero-text {
    margin-top: 12px;
    font-size: 0.98rem;
  }

  .mode-switch {
    margin-top: 14px;
  }

  .mode-card {
    min-height: 68px;
    padding: 11px 14px;
  }

  .mode-card span {
    font-size: 0.92rem;
  }

  .shop-hero .hero-tools {
    margin-top: 14px;
  }

  .hero-product-button {
    min-height: 44px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
}

body.admin-page {
  background: #0b0b0d;
}

body.drawer-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

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

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

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(11, 11, 13, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: #17171a;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-weight: 800;
}

.brand-mark-image {
  overflow: hidden;
  padding: 0;
  background: transparent;
}

.brand-mark-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  scrollbar-width: none;
}

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

.top-nav a {
  flex: 0 0 auto;
  padding: 9px 11px;
  color: var(--soft);
  border-radius: 6px;
  font-size: 0.92rem;
}

.top-nav a:hover {
  background: var(--panel-2);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.owner-tools {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: #17171a;
  border: 1px dashed #4a4a52;
  border-radius: 8px;
}

body.owner-mode .owner-tools {
  display: inline-flex;
}

.owner-tools span {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.owner-help-panel {
  position: sticky;
  top: 72px;
  z-index: 35;
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px clamp(16px, 4vw, 48px);
  background: #18181b;
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.owner-help-panel[hidden] {
  display: none;
}

.owner-help-panel h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
}

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

.help-grid p {
  display: grid;
  gap: 5px;
  min-height: 74px;
  margin: 0;
  padding: 10px;
  background: #0f0f11;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.help-grid strong {
  color: var(--white);
}

.help-grid span,
.help-note {
  color: var(--soft);
  line-height: 1.42;
}

.help-note {
  grid-column: 1 / -1;
  margin: 0;
}

.cta-button,
.ghost-button,
.icon-button,
.file-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.cta-button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.ghost-button,
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}

.ghost-button:hover,
.file-button:hover,
.icon-button:hover {
  background: var(--panel-2);
  border-color: var(--line-strong);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: var(--panel);
  border-color: var(--line);
  font-size: 1.5rem;
}

.commerce-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: stretch;
  min-height: calc(100svh - 96px);
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 48px) 28px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.shop-hero h1 {
  max-width: 690px;
  font-size: clamp(2.65rem, 3.7vw, 4.25rem);
  line-height: 0.96;
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3.4vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1rem;
}

.hero-text {
  max-width: 680px;
  margin: clamp(14px, 2vh, 18px) 0 0;
  color: var(--soft);
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  line-height: 1.45;
}

.hero-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(100%, 680px);
  margin-top: clamp(16px, 2.2vh, 24px);
}

.search-box,
.filter-panel label,
.admin-form label,
.request-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.search-box {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: #0f0f11;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 104px;
  padding: 11px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #6a6a72;
}

.search-box input {
  min-height: 46px;
  padding: 0;
  background: transparent;
  border: 0;
}

.hero-whatsapp {
  min-height: 48px;
}

.hero-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(132px, 1fr);
  gap: 12px;
  min-height: 480px;
}

.hero-pattern {
  position: relative;
  grid-column: 1 / -1;
  min-height: 280px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 22%, rgba(229, 9, 20, 0.32), transparent 14%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 34%),
    #151518;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.hero-pattern::before,
.hero-pattern::after {
  content: "";
  position: absolute;
  inset: 26px;
  background:
    linear-gradient(90deg, transparent 0 44%, rgba(255, 255, 255, 0.8) 44% 46%, transparent 46% 54%, rgba(255, 255, 255, 0.8) 54% 56%, transparent 56%),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(229, 9, 20, 0.75) 18px 20px, transparent 20px 38px),
    repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255, 255, 255, 0.55) 22px 24px, transparent 24px 44px);
  clip-path: polygon(36% 0, 64% 0, 83% 18%, 72% 100%, 28% 100%, 17% 18%);
  opacity: 0.88;
}

.hero-pattern::after {
  inset: auto 20px 20px auto;
  width: 170px;
  height: 170px;
  background:
    radial-gradient(circle, transparent 0 30%, rgba(255, 255, 255, 0.82) 31% 34%, transparent 35%),
    repeating-conic-gradient(from 45deg, rgba(229, 9, 20, 0.85) 0 8deg, rgba(255, 255, 255, 0.75) 8deg 16deg, transparent 16deg 24deg);
  clip-path: none;
  opacity: 0.55;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 132px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-stat strong {
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 1;
}

.hero-stat span {
  color: var(--muted);
  line-height: 1.35;
}

.hero-stat.accent {
  background: var(--red);
  border-color: var(--red);
}

.hero-stat.accent span {
  color: rgba(255, 255, 255, 0.86);
}

.catalog-shell,
.owner-panel {
  scroll-margin-top: 84px;
  padding: 34px clamp(16px, 4vw, 48px) 48px;
  border-bottom: 1px solid var(--line);
}

body.admin-page .owner-panel {
  scroll-margin-top: 0;
}

body.admin-page #productsAdmin {
  padding-top: 8px;
}

body.admin-page #productsAdmin .section-heading {
  margin-bottom: 18px;
}

body.admin-page #productsAdmin .section-heading .eyebrow {
  display: none;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading > p,
#resultCount {
  margin: 0;
  color: var(--muted);
}

.catalog-pagination,
.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.admin-pagination-top {
  justify-content: flex-start;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.catalog-pagination[hidden] {
  display: none;
}

.catalog-pagination button,
.catalog-pagination span,
.admin-pagination button,
.admin-pagination span {
  min-width: 42px;
  min-height: 40px;
  padding: 0 13px;
  color: var(--white);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.catalog-pagination span,
.admin-pagination span {
  display: grid;
  place-items: center;
  color: var(--muted);
  border-color: transparent;
}

.catalog-pagination button.active,
.admin-pagination button.active {
  background: var(--red);
  border-color: var(--red);
}

.catalog-pagination button:disabled,
.admin-pagination button:disabled {
  cursor: default;
  opacity: 0.42;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  color: var(--soft);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 740;
}

.filter-chip.active,
.filter-chip:hover {
  color: var(--white);
  background: var(--panel-2);
  border-color: var(--line-strong);
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 22px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  background: #111113;
  border: 1px solid #202025;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  background: #141416;
  border-color: #3a3a42;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px);
}

.product-card:focus-visible {
  outline: 2px solid rgba(229, 9, 20, 0.72);
  outline-offset: 3px;
}

.product-card-media {
  --photo-main-inset: 14px;
}

.product-view-media {
  --photo-main-inset: 18px;
}

.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: transparent;
}

.product-media::after {
  display: none;
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition:
    opacity 140ms ease,
    transform 180ms ease;
}

.product-media .media-photo-stack {
  position: absolute;
  inset: 0;
  display: block;
  background: transparent;
  isolation: isolate;
}

.product-card-media .media-photo-bg,
.product-view-media .media-photo-bg {
  display: block;
  inset: -16px;
  z-index: 0;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  object-fit: cover;
  filter: blur(12px) saturate(1.08);
  opacity: 0.82;
  transform: scale(1.08);
  transform-origin: center;
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.product-card-media .media-photo-main,
.product-view-media .media-photo-main {
  position: absolute;
  inset: var(--photo-main-inset);
  z-index: 1;
  width: calc(100% - var(--photo-main-inset) - var(--photo-main-inset));
  height: calc(100% - var(--photo-main-inset) - var(--photo-main-inset));
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.product-card-media .media-photo-main {
  object-fit: contain;
  transform: scale(1);
  transform-origin: center;
}

.product-card:hover .product-card-media .media-photo-main,
.product-card:focus-visible .product-card-media .media-photo-main {
  transform: scale(1.035);
}

.product-card:hover .product-card-media .media-photo-bg,
.product-card:focus-visible .product-card-media .media-photo-bg {
  opacity: 0.9;
  transform: scale(1.12);
}

.product-media img.is-changing {
  opacity: 0.36;
  transform: scale(0.985);
}

.product-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 34%),
    #151518;
}

.product-art::before {
  content: "";
  width: 55%;
  height: 72%;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.78) 18px 20px, transparent 20px 38px),
    repeating-linear-gradient(45deg, transparent 0 20px, var(--accent, rgba(229, 9, 20, 0.82)) 20px 23px, transparent 23px 43px),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  clip-path: polygon(34% 0, 66% 0, 85% 18%, 72% 100%, 28% 100%, 15% 18%);
}

.product-art.vest::before {
  width: 62%;
  height: 62%;
  clip-path: polygon(22% 0, 43% 0, 50% 17%, 57% 0, 78% 0, 89% 100%, 58% 100%, 50% 55%, 42% 100%, 11% 100%);
}

.product-art.skirt::before {
  width: 58%;
  height: 56%;
  clip-path: polygon(28% 0, 72% 0, 94% 100%, 6% 100%);
}

.product-art.dress::before {
  width: 60%;
  height: 78%;
  clip-path: polygon(34% 0, 66% 0, 82% 17%, 64% 48%, 88% 100%, 12% 100%, 36% 48%, 18% 17%);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  max-width: calc(100% - 20px);
  padding: 6px 8px;
  color: var(--white);
  background: rgba(11, 11, 13, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.product-card-header {
  display: grid;
  gap: 5px;
}

.product-card-header h3 {
  min-height: 2.35em;
  line-height: 1.16;
}

.product-card-header h3 a {
  display: block;
}

.product-code {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  color: var(--white);
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid rgba(229, 9, 20, 0.5);
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.product-code-modal {
  margin: 4px 0 8px;
}

.product-card-header span {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-card-header .product-code {
  color: var(--white);
  font-size: 0.74rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-pill {
  padding: 5px 7px;
  color: var(--soft);
  background: #0f0f11;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 720;
}

.product-facts {
  display: grid;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.product-facts p {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  line-height: 1.35;
}

.product-facts span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.product-facts b {
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

.price-row strong {
  font-size: 1.22rem;
}

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

.price-reveal-button {
  min-height: 36px;
  padding: 7px 11px;
  color: var(--white);
  background: #151518;
  border: 1px solid var(--red);
  border-radius: 7px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.price-reveal-button:hover {
  background: rgba(229, 9, 20, 0.14);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.workflow-band,
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 5vw, 56px);
  align-items: center;
  padding: 44px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.production-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  padding: 28px clamp(16px, 4vw, 48px);
  background: #101012;
  border-bottom: 1px solid var(--line);
}

.production-band h2 {
  max-width: 760px;
}

.production-band p:not(.eyebrow) {
  max-width: 840px;
  margin: 10px 0 0;
  color: var(--soft);
  line-height: 1.55;
}

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

.production-points span {
  display: grid;
  min-height: 50px;
  place-items: center;
  padding: 10px;
  color: var(--white);
  text-align: center;
  background: rgba(229, 9, 20, 0.13);
  border: 1px solid rgba(229, 9, 20, 0.36);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 820;
}

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

.workflow-band > div > p:not(.eyebrow) {
  max-width: 540px;
  margin: 10px 0 0;
  color: var(--soft);
  line-height: 1.55;
}

.workflow-list article {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workflow-list strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
}

.workflow-list p,
.contact-band p {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

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

.contact-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-whatsapp {
  display: grid;
  gap: 4px;
  min-width: 210px;
  padding: 10px 14px;
  color: var(--white);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.contact-whatsapp span {
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-whatsapp strong {
  font-size: 1.08rem;
  line-height: 1.2;
}

.contact-whatsapp:hover {
  border-color: rgba(255, 255, 255, 0.42);
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(20px, 5vw, 56px);
  align-items: center;
  min-height: calc(100svh - 73px);
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.admin-login h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
}

.admin-login p,
.admin-explainer p {
  max-width: 740px;
  color: var(--soft);
  line-height: 1.6;
}

.login-box {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-box label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.login-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-workspace {
  padding-bottom: 48px;
}

.admin-workspace[hidden],
.admin-login[hidden] {
  display: none;
}

.admin-explainer {
  display: grid;
  gap: 10px;
  padding: 28px clamp(16px, 4vw, 48px);
  background: #151518;
  border-bottom: 1px solid var(--line);
}

.admin-explainer h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.admin-explainer p {
  margin: 0;
}

.admin-stats-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  gap: 18px;
  align-items: stretch;
  padding: 24px clamp(16px, 4vw, 48px);
  background: #151518;
  border-bottom: 1px solid var(--line);
}

.admin-stats-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.admin-stats-copy h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.admin-stats-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--soft);
  line-height: 1.45;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.admin-stat-card {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 840;
  line-height: 1.25;
  text-transform: uppercase;
}

.admin-stat-card strong {
  color: var(--white);
  font-size: clamp(1.35rem, 2.6vw, 2.25rem);
  line-height: 1;
}

.admin-only-panel {
  border-bottom: 1px solid var(--line);
}

.owner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.owner-note {
  margin: 0 0 16px;
  padding: 14px 16px;
  color: var(--soft);
  background: #151518;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.55;
}

.admin-form,
.admin-inbox,
.settings-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-inbox {
  align-content: start;
}

#productsAdmin .owner-grid {
  grid-template-columns: minmax(360px, 0.92fr) minmax(480px, 1.08fr);
  align-items: stretch;
  min-height: 0;
}

#productForm,
#productsAdmin .admin-inbox {
  height: min(760px, calc(100svh - 150px));
  max-height: min(760px, calc(100svh - 150px));
  overflow: auto;
  overscroll-behavior: contain;
}

#productForm {
  align-content: start;
  gap: 12px;
  padding: 14px;
}

#productForm label {
  gap: 6px;
}

#productForm input,
#productForm select {
  min-height: 40px;
}

#productForm [aria-invalid="true"] {
  border-color: var(--red) !important;
  box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.28);
}

#productForm textarea {
  min-height: 86px;
}

#productForm textarea[name="sizes"] {
  min-height: 112px;
}

#productForm .form-split {
  gap: 10px;
}

#productForm .check-panel {
  gap: 8px;
  padding: 10px;
}

#productForm .field-help {
  padding: 10px;
  font-size: 0.84rem;
}

#productForm .form-actions {
  position: sticky;
  bottom: -14px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(18, 18, 20, 0), var(--panel) 28%);
}

#productForm .form-actions .cta-button,
#productForm .form-actions .ghost-button {
  width: auto;
  min-height: 48px;
}

#productsAdmin .admin-inbox {
  padding: 12px;
}

#productsAdmin .admin-inbox h3 {
  position: sticky;
  top: -12px;
  z-index: 2;
  padding: 12px 0 10px;
  background: linear-gradient(180deg, var(--panel) 72%, rgba(18, 18, 20, 0));
}

#customProductList {
  display: grid;
  gap: 6px;
}

#productsAdmin .inbox-item {
  gap: 8px;
  padding: 8px;
}

#productsAdmin .inbox-item p {
  margin: 0;
  line-height: 1.2;
}

.admin-product-row {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
}

.admin-product-thumb {
  width: 92px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  color: var(--muted);
  background: #151517;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-product-thumb.placeholder {
  display: grid;
  place-items: center;
  font-size: 0.78rem;
}

.admin-product-body {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 4px 10px;
  align-items: start;
  min-width: 0;
}

.admin-product-title {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.admin-product-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.internal-code {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  color: var(--white);
  background: rgba(229, 9, 20, 0.16);
  border: 1px solid rgba(229, 9, 20, 0.62);
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
}

.admin-product-ua,
.admin-product-sizes {
  color: var(--soft);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-ua {
  grid-column: 1;
  grid-row: 2;
}

.admin-product-sizes {
  grid-column: 1;
  grid-row: 3;
}

.admin-product-facts,
.admin-product-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-product-facts {
  grid-column: 2;
  grid-row: 2;
  justify-content: flex-end;
}

.admin-product-prices {
  grid-column: 2;
  grid-row: 3;
  justify-content: flex-end;
}

.admin-product-facts span,
.admin-product-prices span {
  min-height: 22px;
  padding: 2px 7px;
  color: var(--soft);
  background: #111114;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 750;
}

#productsAdmin .admin-sale-actions,
#productsAdmin .admin-item-actions {
  gap: 5px;
}

#productsAdmin .admin-sale-actions {
  grid-column: 1 / -1;
  grid-row: 4;
}

#productsAdmin .admin-item-actions {
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

#productsAdmin .admin-sale-actions button,
#productsAdmin .admin-item-actions button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 0.86rem;
}

.settings-form {
  padding: 0 0 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

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

.settings-layout .settings-form {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-status {
  margin: 0;
  color: var(--soft);
  line-height: 1.45;
}

.admin-guide-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #151518;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-guide-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

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

.owner-preview-badge {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 120;
  max-width: min(560px, calc(100vw - 24px));
  padding: 11px 14px;
  color: var(--white);
  background: #202024;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 760;
  transform: translateX(-50%);
}

.form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-help {
  align-self: end;
  margin: 0;
  padding: 12px;
  color: var(--soft);
  background: #0f0f11;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.check-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  color: var(--muted);
  background: #0f0f11;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-panel legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.size-preset-panel {
  gap: 10px;
}

.fabric-preset-panel {
  gap: 8px;
}

.fabric-preset-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fabric-preset-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 7px !important;
  min-height: 34px;
  padding: 0 10px;
  color: var(--text) !important;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem !important;
  text-transform: none !important;
}

.fabric-preset-chip:has(input:checked) {
  color: var(--white) !important;
  background: rgba(229, 9, 20, 0.16);
  border-color: rgba(229, 9, 20, 0.72);
}

.fabric-preset-chip input {
  width: 18px;
  min-height: 18px !important;
  margin: 0;
}

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

.size-preset-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 190px;
  overflow: auto;
  overscroll-behavior: contain;
}

.size-preset-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 7px !important;
  min-height: 36px;
  padding: 0 10px;
  color: var(--text) !important;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem !important;
  text-transform: none !important;
}

.size-preset-chip:has(input:checked) {
  color: var(--white) !important;
  background: rgba(229, 9, 20, 0.16);
  border-color: rgba(229, 9, 20, 0.72);
}

.size-preset-chip input {
  width: 18px;
  min-height: 18px !important;
  margin: 0;
}

.custom-size-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(130px, 1fr) auto;
  gap: 8px;
}

.custom-size-row input {
  min-height: 38px !important;
}

.custom-size-row .ghost-button {
  min-height: 38px;
}

.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  color: var(--text) !important;
  font-size: 0.95rem !important;
  text-transform: none !important;
}

.check-row input {
  width: 20px;
  min-height: 20px;
  margin: 0;
}

.sale-type-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sale-type-panel legend {
  grid-column: 1 / -1;
}

.sale-type-panel .check-row {
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sale-type-panel .check-row:has(input:checked) {
  color: var(--white) !important;
  background: rgba(229, 9, 20, 0.16);
  border-color: rgba(229, 9, 20, 0.72);
}

.vest-pricing-panel {
  gap: 10px;
}

.vest-pricing-section {
  display: grid;
  gap: 10px;
}

.vest-pricing-section[hidden] {
  display: none;
}

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

.vest-pricing-section .ghost-button {
  width: max-content;
  max-width: 100%;
  min-height: 40px;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.photo-preview .empty-state {
  grid-column: 1 / -1;
  padding: 14px;
}

.photo-preview-item {
  display: grid;
  gap: 6px;
  padding: 6px;
  background: #0f0f11;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.photo-preview-item.active {
  border-color: var(--red);
}

.photo-preview-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.photo-preview-item div {
  display: grid;
  gap: 5px;
}

.photo-preview-item button,
.admin-sale-actions button,
.danger-button {
  min-height: 34px;
  padding: 7px 9px;
  color: var(--text);
  background: #111114;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 760;
}

.photo-preview-item button:hover,
.admin-sale-actions button:hover {
  border-color: var(--line-strong);
}

.admin-sale-actions,
.admin-item-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#productsAdmin .admin-sale-actions,
#productsAdmin .admin-item-actions {
  gap: 5px;
}

#productsAdmin .admin-sale-actions button,
#productsAdmin .admin-item-actions button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 0.86rem;
}

.admin-sale-actions button.active {
  color: var(--white);
  background: rgba(229, 9, 20, 0.18);
  border-color: var(--red);
}

.danger-button {
  color: #fff;
  background: #2a0b0e;
  border-color: rgba(229, 9, 20, 0.45);
}

.admin-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
}

.admin-confirm {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 18px;
  color: var(--text);
  background: #121215;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-confirm h3 {
  margin: 0;
  font-size: 20px;
}

.admin-confirm p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.inbox-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #0f0f11;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.inbox-item p {
  margin: 0;
  color: var(--soft);
  line-height: 1.45;
}

.request-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(620px, 100vw);
  height: 100svh;
  background: #101012;
  border-left: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform 220ms ease;
}

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

.drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 12px;
  background: #101012;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  font-size: 1.6rem;
  line-height: 1.12;
}

.request-items {
  min-height: 0;
  max-height: min(390px, 42svh);
  overflow: auto;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

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

.cart-products-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 14px;
  background:
    linear-gradient(90deg, rgba(229, 9, 20, 0.18), rgba(229, 9, 20, 0.04)),
    #151518;
  border: 1px solid rgba(229, 9, 20, 0.58);
  border-left: 4px solid var(--red);
  border-radius: 8px;
}

.cart-products-heading div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cart-products-heading span {
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 850;
}

.cart-products-heading strong {
  color: var(--soft);
  font-size: 0.86rem;
  line-height: 1.25;
}

.cart-products-heading b {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.cart-products-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.3;
}

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

.request-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.request-item-photo {
  width: 82px;
  height: 98px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.request-item-photo-empty {
  background: #0f0f11;
}

.request-item-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.request-item header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.request-item h3 {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.96rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.remove-item {
  width: 30px;
  height: 30px;
  color: var(--muted);
  background: #0f0f11;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.request-item-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.request-item-meta strong {
  color: var(--white);
  text-align: right;
}

.request-item-sizes {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.request-item-sizes li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 26px;
  padding: 4px 7px;
  color: var(--soft);
  background: #0f0f11;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.82rem;
}

.request-item-sizes li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-item-sizes li b {
  color: var(--white);
}

.request-item-sizes li small {
  color: var(--muted);
  font-weight: 760;
}

.request-form {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding: 10px 18px 18px;
}

.request-form-section {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  background: #121214;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.request-form-heading {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.step-badge {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
  font-weight: 900;
}

.request-form-heading strong,
.request-form-heading p {
  display: block;
  margin: 0;
}

.request-form-heading strong {
  color: var(--white);
  font-size: 0.94rem;
  line-height: 1.2;
}

.request-form-heading p {
  display: none;
}

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

.request-form-grid .float-field:last-child {
  grid-column: 1 / -1;
}

.request-form .float-field {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
}

.request-note {
  display: none;
}

.quick-whatsapp-note {
  display: none;
  gap: 4px;
  padding: 8px 10px;
  color: var(--white);
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.42);
  border-radius: 8px;
}

.quick-whatsapp-note strong,
.quick-whatsapp-note span {
  display: block;
}

.quick-whatsapp-note span {
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.38;
}

.drawer-actions {
  position: sticky;
  bottom: -18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 6px;
  background: linear-gradient(to top, #101012 82%, rgba(16, 16, 18, 0));
}

.drawer-actions .cta-button {
  min-height: 48px;
  font-size: 1rem;
}

.request-form textarea {
  min-height: 78px;
}

.request-form .wholesale-fields textarea {
  min-height: 58px;
}

.inbox-item-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.inbox-item-header .danger-button {
  width: auto;
  min-width: 92px;
  padding: 9px 12px;
}

.admin-request-items {
  display: grid;
  gap: 10px;
}

.admin-request-product {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  background: #09090a;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-request-product img,
.admin-request-photo-placeholder {
  width: 96px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  color: var(--muted);
  background: #151517;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-request-photo-placeholder {
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

.admin-request-product a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.66);
}

.product-modal {
  width: min(1440px, calc(100vw - 32px));
  max-height: min(860px, calc(100svh - 48px));
  overflow: hidden;
  padding: 0;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-modal::backdrop {
  background: transparent;
}

.modal-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 1.45fr) minmax(500px, 0.95fr);
  gap: 0;
  min-height: min(790px, calc(100svh - 48px));
}

.modal-media {
  display: grid;
  place-items: center;
  min-height: 100%;
  background: transparent;
}

.modal-media .product-view-media {
  width: 100%;
  height: min(790px, calc(100svh - 80px));
  min-height: 0;
  aspect-ratio: auto;
  background: transparent;
  border-radius: 0;
}

.modal-media .product-view-media::after {
  display: none;
}

.modal-media .gallery-arrow {
  width: 42px;
  height: 52px;
  background: rgba(11, 11, 13, 0.76);
}

.modal-media .media-photo-main {
  object-fit: contain;
  object-position: center;
}

.modal-body {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 10px;
  max-height: min(860px, calc(100svh - 48px));
  overflow: auto;
  padding: 16px;
}

.modal-body .meta-row {
  align-items: flex-start;
}

.modal-body .meta-pill {
  align-self: flex-start;
}

.product-view-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  background: var(--panel);
}

.product-view-header h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1.45rem, 1.85vw, 2.2rem);
  line-height: 1.08;
}

.modal-body p {
  margin: 0;
  color: var(--soft);
  line-height: 1.45;
}

.modal-availability-summary {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  background: #0f0f11;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal-material-summary {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid rgba(229, 9, 20, 0.32);
  border-radius: 8px;
}

.modal-material-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.modal-material-summary strong {
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.25;
}

.modal-availability-summary p {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  font-size: 0.9rem;
}

.modal-availability-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.modal-availability-summary strong {
  color: var(--white);
  font-size: 0.94rem;
  line-height: 1.25;
}

.modal-step {
  padding: 10px 12px;
  color: var(--soft);
  background: #0f0f11;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.35;
}

.modal-mode-panel {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.24), rgba(229, 9, 20, 0.08)),
    #151012;
  border: 2px solid rgba(229, 9, 20, 0.72);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(229, 9, 20, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.modal-mode-panel[hidden] {
  display: none;
}

.modal-mode-panel.attention {
  animation: modal-mode-attention 520ms ease;
}

.modal-mode-panel strong {
  display: block;
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.2;
}

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

.modal-mode-button {
  display: grid;
  gap: 2px;
  align-content: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-weight: 850;
}

.modal-mode-button:hover {
  border-color: rgba(229, 9, 20, 0.72);
  background: rgba(229, 9, 20, 0.12);
}

.modal-mode-button span,
.modal-mode-button small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-mode-button small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.modal-mode-button.active {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.24);
}

.modal-mode-button.active small {
  color: rgba(255, 255, 255, 0.86);
}

@keyframes modal-mode-attention {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.44);
  }

  45% {
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.2);
  }

  100% {
    transform: translateY(0);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  }
}

.size-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.size-table-wrap.needs-selection {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.22);
  animation: size-selection-attention 520ms ease;
}

@keyframes size-selection-attention {
  0%,
  100% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-2px);
  }
}

.size-table {
  width: 100%;
  min-width: 480px;
  table-layout: fixed;
  border-collapse: collapse;
}

.size-table th,
.size-table td {
  padding: 7px 7px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  vertical-align: middle;
  font-size: 0.88rem;
}

.size-table th {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.size-table th:nth-child(1),
.size-table td:nth-child(1) {
  width: 18%;
}

.size-table th:nth-child(2),
.size-table td:nth-child(2) {
  width: 29%;
}

.size-table th:nth-child(3),
.size-table td:nth-child(3) {
  width: 17%;
  padding-right: 10px;
}

.size-table th:nth-child(4),
.size-table td:nth-child(4) {
  width: 21%;
  padding-left: 12px;
}

.size-table th:nth-child(5),
.size-table td:nth-child(5) {
  width: 15%;
}

.size-table tr:last-child td {
  border-bottom: 0;
}

.size-table label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 850;
  white-space: nowrap;
}

.size-table input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.size-table input[type="number"] {
  width: min(68px, 100%);
  min-height: 30px;
  box-sizing: border-box;
}

.size-table td:nth-child(4) {
  font-weight: 850;
  white-space: nowrap;
}

.size-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.size-status.stock {
  color: #ffffff;
  border-color: rgba(80, 170, 105, 0.55);
  background: rgba(80, 170, 105, 0.16);
}

.size-status.order {
  color: var(--soft);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.modal-choice-action {
  min-height: 52px;
  box-shadow: 0 10px 28px rgba(229, 9, 20, 0.28);
}

.modal-cart-confirm {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  width: min(420px, calc(100% - 32px));
  padding: 12px;
  color: var(--white);
  background: #202024;
  border: 1px solid rgba(229, 9, 20, 0.48);
  border-radius: 8px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: cart-confirm-in 180ms ease;
}

.modal-cart-confirm img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.modal-cart-confirm-body {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding-right: 34px;
}

.modal-cart-confirm strong {
  font-size: 1rem;
  line-height: 1.2;
}

.modal-cart-confirm span {
  color: var(--soft);
  font-size: 0.86rem;
  line-height: 1.35;
}

.modal-cart-confirm-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 30px;
  height: 30px;
}

.modal-cart-confirm-actions {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 8px;
  margin-top: 2px;
}

.modal-cart-confirm-actions .ghost-button,
.modal-cart-confirm-actions .cta-button {
  min-height: 40px;
}

@keyframes cart-confirm-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 140;
  display: grid;
  gap: 7px;
  max-width: min(680px, calc(100vw - 32px));
  max-height: min(70svh, 520px);
  overflow: auto;
  padding: 14px 16px;
  color: var(--white);
  background: #202024;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 18px)) scale(0.98);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

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

.toast span {
  color: var(--soft);
  line-height: 1.38;
}

.toast a {
  justify-self: start;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.toast-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 8px;
  margin-top: 4px;
}

.toast-actions-single {
  grid-template-columns: minmax(0, 1fr);
}

.toast-actions .cta-button,
.toast-actions .ghost-button {
  min-height: 42px;
  padding: 0 14px;
}

.empty-state {
  padding: 22px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.55;
}

@media (max-width: 1120px) {
  .product-modal {
    width: min(760px, calc(100vw - 24px));
    overflow: auto;
  }

  .modal-content {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .modal-body {
    max-height: none;
    overflow: visible;
  }

  .modal-media .product-view-media {
    height: min(58svh, 560px);
    min-height: 320px;
  }

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

  .commerce-hero,
  .production-band,
  .workflow-band {
    grid-template-columns: 1fr;
  }

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

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

  #productForm,
  #productsAdmin .admin-inbox {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  #productForm .form-actions,
  #productsAdmin .admin-inbox h3 {
    position: static;
    background: transparent;
  }
}

@media (max-width: 860px) {
  .product-modal {
    overflow: auto;
  }

  .modal-content {
    min-height: 0;
  }

  .modal-body {
    max-height: none;
    overflow: visible;
  }

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

  .top-nav {
    order: 3;
    justify-content: stretch;
  }

  .top-nav a {
    flex: 1;
    text-align: center;
  }

  .header-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .header-actions > * {
    flex: 1;
  }

  .owner-tools {
    flex: 1 1 100%;
    justify-content: center;
  }

  .admin-login,
  .owner-help-panel,
  .hero-tools,
  .filter-panel,
  .settings-layout,
  .workflow-list,
  .owner-grid,
  .modal-content,
  .seo-product-intro,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .seo-product-copy h1,
  .seo-category-intro h1 {
    font-size: 2.35rem;
  }

  .seo-product-media {
    min-height: 420px;
  }

  .seo-category-intro {
    align-items: start;
    flex-direction: column;
  }

  .trust-content {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .contact-actions {
    justify-content: stretch;
  }

  .contact-actions > * {
    flex: 1 1 220px;
  }

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

  .modal-media .product-view-media {
    height: min(62svh, 520px);
    min-height: 340px;
  }

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

  h1 {
    font-size: clamp(2.35rem, 16vw, 4.8rem);
  }
}

@media (max-width: 560px) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  .site-header {
    gap: 10px;
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

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

  .brand strong {
    font-size: 0.96rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

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

  .top-nav a {
    flex: 0 0 auto;
    min-width: 96px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
  }

  .admin-header .header-actions {
    grid-template-columns: 1fr;
  }

  .cta-button,
  .ghost-button,
  .file-button,
  .icon-button {
    min-height: 46px;
  }

  input,
  select {
    min-height: 48px;
  }

  textarea {
    min-height: 126px;
  }

  .owner-help-panel,
  .commerce-hero,
  .catalog-shell,
  .workflow-band,
  .contact-band,
  .seo-product-intro,
  .seo-category-intro,
  .owner-panel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .seo-product-copy h1,
  .seo-category-intro h1 {
    font-size: 2rem;
  }

  .seo-product-media {
    min-height: 320px;
  }

  .trust-hero,
  .trust-content article,
  .site-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .trust-hero h1 {
    font-size: 2rem;
  }

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

  .hero-board {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    justify-content: start;
  }

  .hero-pattern {
    min-height: 220px;
  }

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

  .form-split,
  .card-actions,
  .drawer-actions,
  .modal-cart-confirm-actions,
  .modal-mode-actions,
  .modal-actions {
    grid-template-columns: 1fr;
  }

  .request-drawer {
    width: 100vw;
  }

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

  .admin-login {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .admin-login h1 {
    font-size: clamp(2.1rem, 14vw, 3.8rem);
  }

  .login-box,
  .admin-form,
  .admin-inbox {
    padding: 12px;
  }

  .admin-explainer {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .photo-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .section-heading .ghost-button,
  .admin-form .cta-button {
    width: 100%;
  }

  .product-media {
    aspect-ratio: 1 / 1.14;
  }

  .modal-body {
    padding: 14px;
  }

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

  .request-form-grid .float-field:last-child {
    grid-column: auto;
  }

  .request-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .request-item-photo {
    width: 76px;
    height: 96px;
  }

  .modal-cart-confirm {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .size-table th,
  .size-table td {
    padding: 9px 6px;
  }

  .size-table input[type="number"] {
    width: min(62px, 100%);
  }
}

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

.request-drawer[aria-hidden="true"] {
  visibility: hidden;
}

.request-drawer.open {
  visibility: visible;
}

@media (max-width: 860px) {
  .admin-guide-actions,
  .shop-hero .hero-tools {
    grid-template-columns: 1fr;
  }

  .admin-stats-panel {
    grid-template-columns: 1fr;
  }

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

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

  #productForm,
  #productsAdmin .admin-inbox {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  #productForm .form-actions,
  #productsAdmin .admin-inbox h3 {
    position: static;
    background: transparent;
  }
}

@media (max-width: 560px) {
  .site-header .header-actions {
    grid-template-columns: 0.6fr 0.65fr 1fr;
  }

  .shop-hero,
  .category-band {
    padding-left: 12px;
    padding-right: 12px;
  }

  .admin-explainer {
    gap: 8px;
  }

  #productForm {
    padding: 12px;
  }

  .sale-type-panel {
    grid-template-columns: 1fr;
  }

  .mode-switch,
  .simple-filter-panel,
  .production-points,
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-visual .product-art {
    min-height: 360px;
  }

  .admin-product-row {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .admin-product-thumb {
    width: 86px;
  }

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

  .admin-product-title,
  .admin-product-ua,
  .admin-product-sizes,
  .admin-product-facts,
  .admin-product-prices,
  #productsAdmin .admin-sale-actions,
  #productsAdmin .admin-item-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .admin-product-facts,
  .admin-product-prices,
  #productsAdmin .admin-item-actions {
    justify-content: flex-start;
  }
}
