:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dce2ea;
  --accent: #087f5b;
  --accent-strong: #066247;
  --blue: #1d4ed8;
  --gold: #f2b84b;
  --danger: #c24135;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(220, 226, 234, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: linear-gradient(135deg, var(--ink), #263244);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 96px;
  height: 44px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-size-button:hover {
  color: var(--ink);
}

.nav-size-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.nav-size-button svg {
  width: 18px;
  height: 18px;
}

.header-actions,
.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 127, 91, 0.35);
}

.theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 74px);
  align-items: end;
  overflow: hidden;
  padding: clamp(46px, 7vw, 96px) clamp(18px, 5vw, 64px);
  color: #ffffff;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 14, 22, 0.9), rgba(10, 14, 22, 0.56), rgba(10, 14, 22, 0.14)),
    linear-gradient(0deg, rgba(10, 14, 22, 0.72), transparent 52%);
}

.hero-media,
.hero-slides,
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slides img {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.7s ease, transform 6.2s ease;
}

.hero-slides img.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: #ffffff;
  background: rgba(9, 15, 24, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero:hover .hero-carousel-arrow,
.hero-carousel-arrow:focus-visible {
  opacity: 1;
}

.hero-carousel-arrow:hover {
  background: rgba(9, 15, 24, 0.72);
  transform: translateY(-50%) scale(1.05);
}

.hero-carousel-arrow[hidden] {
  display: none;
}

.hero-carousel-prev {
  left: clamp(14px, 2.5vw, 38px);
}

.hero-carousel-next {
  right: clamp(14px, 2.5vw, 38px);
}

.hero-carousel-dots {
  position: absolute;
  right: clamp(18px, 5vw, 64px);
  bottom: clamp(18px, 4vw, 42px);
  z-index: 2;
  display: flex;
  gap: 7px;
  align-items: center;
}

.hero-carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.48);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-carousel-dots button.is-active {
  width: 24px;
  background: #ffffff;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-bottom: clamp(18px, 4vw, 42px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p,
.feature-copy p,
.checkout-band p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
  line-height: 1.65;
}

.hero-actions,
.checkout-actions,
.dialog-actions,
.manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.cart-button,
.icon-button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.button:hover,
.cart-button:hover,
.icon-button:hover,
.chip:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.button {
  padding: 0 18px;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(8, 127, 91, 0.27);
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.primary svg {
  margin-right: 8px;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.button.ghost-dark {
  background: #eef2f6;
  color: var(--ink);
}

.button.danger {
  background: #fff0ed;
  color: var(--danger);
}

.icon-button {
  width: 44px;
  padding: 0;
  background: #eef2f6;
  color: var(--ink);
}

.cart-button {
  gap: 8px;
  padding: 0 14px;
  background: var(--ink);
  color: #ffffff;
}

.cart-button span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.8rem;
}

.catalog-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 28px;
  max-width: none;
  margin: 0;
  padding: 28px clamp(22px, 2.3vw, 44px) 58px;
}

.filter-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.filter-sidebar-header,
.catalog-heading-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-sidebar-header .eyebrow {
  margin-bottom: 4px;
}

.filter-sidebar-header h2 {
  margin: 0;
  font-size: 1.18rem;
}

.filter-close,
.mobile-filter-trigger {
  display: none;
}

.search-field {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-field svg {
  flex: 0 0 auto;
  width: 18px;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 8px;
  background: transparent;
}

.filter-group {
  display: grid;
  gap: 7px;
}

.filter-select select,
.color-select select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 34px 0 12px;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    #ffffff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
  appearance: none;
}

.chip {
  justify-content: flex-start;
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

.chip.is-active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.category-chip.depth-1 {
  margin-left: 10px;
}

.category-chip.depth-2,
.category-chip.depth-3 {
  margin-left: 18px;
  font-size: 0.86rem;
}

.category-menu {
  position: relative;
  display: grid;
  width: 100%;
}

.category-menu-button {
  gap: 8px;
}

.category-menu-button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.category-menu.is-open .category-menu-button svg {
  transform: rotate(180deg);
}

.category-menu.is-active .category-menu-button,
.category-menu.is-open .category-menu-button {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.category-menu-panel {
  position: static;
  display: none;
  width: 100%;
  padding: 5px 0 0;
}

.category-menu.is-open .category-menu-panel {
  display: grid;
  gap: 4px;
}

.category-menu-panel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  width: 100%;
  padding-right: 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  text-align: left;
}

.category-menu-panel button:hover,
.category-menu-panel button.is-active {
  background: var(--surface-soft);
  color: var(--accent-strong);
}

.category-branch {
  display: grid;
  gap: 3px;
}

.category-branch-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.category-branch.is-open > .category-branch-toggle svg {
  transform: rotate(90deg);
}

.category-branch-panel {
  display: none;
  gap: 3px;
}

.category-branch.is-open > .category-branch-panel {
  display: grid;
}

.category-branch.is-active > .category-branch-toggle {
  color: var(--accent-strong);
}

.catalog-content {
  min-width: 0;
  max-width: 1080px;
}

.catalog-highlights {
  margin: 0 0 26px;
  padding: 2px 0 10px;
}

.catalog-highlights-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 4px 9px;
  scrollbar-color: var(--accent) transparent;
  scroll-snap-type: x proximity;
}

.catalog-highlights-track::-webkit-scrollbar {
  height: 7px;
}

.catalog-highlights-track::-webkit-scrollbar-track {
  background: transparent;
}

.catalog-highlights-track::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 62%, transparent);
  border-radius: 999px;
}

.catalog-highlight {
  display: grid;
  flex: 0 0 86px;
  gap: 7px;
  justify-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  scroll-snap-align: start;
}

.catalog-highlight > span:last-child {
  display: -webkit-box;
  overflow: hidden;
  max-width: 86px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-highlight-ring {
  display: grid;
  position: relative;
  width: 76px;
  height: 76px;
  place-items: center;
  padding: 5px;
  overflow: visible;
  --highlight-ring: conic-gradient(from 25deg, #b77912, var(--gold), #ffe08a, #d69b26, #b77912);
  background: transparent;
  border-radius: 999px;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.catalog-highlight-ring::before {
  display: none;
}

.catalog-highlight-ring::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  border: 3px solid transparent;
  border-top-color: #ffd76c;
  border-right-color: rgba(242, 184, 75, 0.76);
  border-radius: inherit;
  filter: drop-shadow(0 0 4px rgba(242, 184, 75, 0.78));
  animation: catalog-highlight-ring-spin 2.4s linear infinite;
}

.catalog-highlight.type-clearance .catalog-highlight-ring {
  --highlight-ring: conic-gradient(from 25deg, #b77912, var(--gold), #ffe08a, #d69b26, #b77912);
}

.catalog-highlight.type-advertising .catalog-highlight-ring {
  --highlight-ring: conic-gradient(from 25deg, #b77912, var(--gold), #ffe08a, #d69b26, #b77912);
}

.catalog-highlight-ring img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-soft);
  border: 0;
  border-radius: inherit;
}

@keyframes catalog-highlight-ring-spin {
  to { transform: rotate(360deg); }
}

.catalog-highlight:hover .catalog-highlight-ring,
.catalog-highlight:focus-visible .catalog-highlight-ring {
  transform: translateY(-3px) scale(1.025);
}

.catalog-highlight:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 4px;
  border-radius: 10px;
}

.filter-scrim {
  display: none;
}

.female-catalog {
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.female-heading {
  margin-bottom: 22px;
}

.text-action {
  min-height: 38px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 900;
}

.text-action:hover {
  color: var(--ink);
}

.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 52px clamp(18px, 5vw, 24px);
}

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

.section-heading p:last-child {
  color: var(--muted);
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.pagination[hidden] {
  display: none;
}

.page-button,
.page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 900;
}

.page-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.page-button:hover:not(:disabled),
.page-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.page-gap {
  color: var(--muted);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 127, 91, 0.35);
  box-shadow: 0 20px 46px rgba(17, 24, 39, 0.14);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #dfe5ec;
}

.image-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-image img,
.image-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.product-card:hover .image-open img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.03);
}

.gallery-dots {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  gap: 7px;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 2px 0;
  cursor: grab;
  scrollbar-width: none;
  touch-action: pan-x;
}

.gallery-dots::-webkit-scrollbar {
  display: none;
}

.gallery-dots.is-dragging {
  cursor: grabbing;
}

.gallery-dots button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  opacity: 0.86;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.25);
}

.gallery-dots button:hover,
.gallery-dots button.is-active {
  opacity: 1;
  transform: translateY(-1px);
  border-color: var(--gold);
}

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

.product-badge-stack {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}

.product-tag,
.stock-badge,
.promo-badge,
.clearance-badge,
.photo-color-badge {
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(17, 24, 39, 0.88);
  color: #ffffff;
}

.photo-color-badge {
  position: absolute;
  right: 12px;
  bottom: 62px;
  max-width: calc(100% - 24px);
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
}

.stock-badge {
  background: var(--gold);
  color: #111827;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  animation: softBadgePulse 2.8s ease-in-out infinite;
}

.stock-badge.is-sold-out {
  background: #fce7e2;
  color: var(--danger);
  animation: none;
}

.promo-badge {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.26);
  animation: softBadgePulse 2.8s ease-in-out infinite;
}

.promo-filter.is-active {
  background: #d92d20;
  border-color: #d92d20;
  color: #ffffff;
}

.clearance-badge {
  background: linear-gradient(120deg, #b42318, #f97316);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(194, 65, 18, 0.28);
  animation: clearanceSignal 2.8s ease-in-out infinite;
}

.clearance-filter.is-active {
  background: #c2410c;
  border-color: #c2410c;
  color: #ffffff;
}

.product-card.is-clearance {
  border-color: rgba(234, 88, 12, 0.58);
  box-shadow: 0 16px 32px rgba(194, 65, 18, 0.12);
}

@keyframes softBadgePulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  }

  50% {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(8, 127, 91, 0.24);
  }
}

@keyframes clearanceSignal {
  0%,
  100% {
    transform: translateY(0);
    filter: saturate(1);
  }

  50% {
    transform: translateY(-2px);
    filter: saturate(1.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stock-badge,
  .promo-badge,
  .clearance-badge,
  .floating-whatsapp {
    animation: none;
  }
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

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

.product-title-row h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.28;
}

.wholesale-offer {
  margin: -5px 0 0;
  padding: 8px 10px;
  color: var(--accent-strong);
  background: rgba(8, 127, 91, 0.08);
  border: 1px solid rgba(8, 127, 91, 0.2);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.wholesale-offer strong {
  color: var(--accent-strong);
  white-space: nowrap;
}

.price {
  min-width: max-content;
  color: var(--accent-strong);
  font-size: 1.04rem;
  font-weight: 950;
}

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

.sizes,
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sizes {
  min-height: 34px;
}

.color-options {
  min-height: 75px;
  align-content: flex-start;
}

.size-option,
.color-option {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  font-weight: 850;
}

.size-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
}

.size-option::before {
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
  opacity: 0.55;
}

.color-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.color-option span {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(17, 24, 39, 0.2);
  border-radius: 999px;
}

.color-select {
  flex: 1 1 132px;
}

.color-select select {
  width: 100%;
  min-height: 34px;
  padding-left: 10px;
  font-size: 0.86rem;
}

.size-option.is-selected,
.color-option.is-selected {
  border-color: var(--accent);
  background: #e7f6f1;
  color: var(--accent-strong);
}

.size-guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.size-guide-link:hover {
  border-color: rgba(8, 127, 91, 0.35);
  background: #e7f6f1;
  color: var(--accent-strong);
}

.add-button {
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  padding: clamp(38px, 6vw, 70px) clamp(18px, 5vw, 64px);
  background: #121922;
  color: #ffffff;
}

.feature-copy p {
  color: rgba(255, 255, 255, 0.76);
}

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

.feature-grid article {
  min-height: 220px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.feature-grid span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  border-radius: 8px;
}

.feature-grid h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.checkout-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 48px clamp(18px, 5vw, 64px);
  background: #ffffff;
}

.checkout-band p {
  color: var(--muted);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: end;
  background: rgba(17, 24, 39, 0.52);
}

.drawer.is-open {
  display: flex;
}

.drawer-panel {
  width: min(520px, 100%);
  height: 100%;
  overflow: auto;
  padding: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.drawer-header,
.dialog-header,
.admin-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.cart-items,
.manager-list {
  display: grid;
  gap: 10px;
}

.cart-empty {
  padding: 22px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.cart-item,
.manager-row,
.order-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.cart-item {
  grid-template-columns: 68px 1fr auto;
}

.manager-row {
  grid-template-columns: 64px 1fr auto;
}

.order-row {
  grid-template-columns: 240px 1fr auto;
}

.cart-item img,
.manager-row img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
}

.manager-row img {
  width: 64px;
  height: 64px;
}

.cart-item h3,
.manager-row h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.cart-item p,
.manager-row p,
.order-row p,
.order-row span {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.wholesale-settings {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(150px, 0.65fr) minmax(180px, 0.8fr);
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(8, 127, 91, 0.22);
  border-radius: 10px;
  background: rgba(8, 127, 91, 0.045);
}

.wholesale-settings .field-hint {
  grid-column: 1 / -1;
}

.wholesale-settings label:not(.check-field) {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.wholesale-settings.is-inactive > label:not(.check-field) {
  opacity: 0.5;
}

.product-selection {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.product-selection input,
.product-bulk-toolbar input,
.drive-label-toggle input {
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.product-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 16px 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.product-bulk-toolbar > label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.product-bulk-toolbar > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.product-bulk-toolbar > div {
  display: flex;
  flex: 1 1 430px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.product-bulk-toolbar button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
}

.product-bulk-toolbar button[data-bulk-label="promotion"][data-bulk-value="1"] {
  color: #b42318;
  border-color: #f4b3aa;
  background: #fff1ef;
}

.product-bulk-toolbar button[data-bulk-label="clearance"][data-bulk-value="1"] {
  color: #b54708;
  border-color: #f7c998;
  background: #fff7ed;
}

.product-bulk-toolbar .bulk-save-button {
  color: #fff;
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.product-bulk-toolbar .bulk-save-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.qty-controls,
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button,
.row-actions button,
.current-image button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: #eef2f6;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.qty-controls button {
  width: 30px;
}

.row-actions button,
.current-image button {
  padding: 0 11px;
}

.checkout-form,
.manager-form,
.settings-form,
.drive-settings-form,
.login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.checkout-form label,
.manager-form label,
.settings-form label,
.drive-settings-form label,
.login-form label,
.current-image label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.check-field {
  min-height: 48px;
  align-content: center;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-field input {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.stock-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  transition: opacity 0.18s ease;
}

.stock-field.is-inactive {
  opacity: 0.52;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  outline: 0;
}

input[type="file"] {
  padding: 10px;
  background: #f8fafc;
}

input[type="file"]::file-selector-button {
  min-height: 36px;
  margin-right: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
}

.field-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(8, 127, 91, 0.12);
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}

dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(92vh, 920px);
  overflow: auto;
  padding: clamp(20px, 3vw, 32px);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(8, 15, 28, 0.32);
  scrollbar-color: var(--accent) transparent;
  scrollbar-gutter: stable;
}

dialog::backdrop {
  background: rgba(8, 14, 24, 0.7);
  backdrop-filter: blur(3px);
}

dialog::-webkit-scrollbar {
  width: 10px;
}

dialog::-webkit-scrollbar-track {
  margin: 14px 0;
  background: transparent;
}

dialog::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.order-dialog textarea {
  display: block;
  width: 100%;
  min-height: 220px;
  padding: 16px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: 650 0.92rem/1.55 Inter, system-ui, sans-serif;
  resize: vertical;
}

.order-dialog .dialog-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

dialog .dialog-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

dialog .dialog-header h2 {
  margin-bottom: 0;
  color: var(--ink);
}

.pix-dialog {
  width: min(620px, calc(100vw - 28px));
}

.payment-method-dialog,
.installment-dialog {
  width: min(600px, calc(100vw - 28px));
}

.payment-method-copy {
  margin: -4px 0 20px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}

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

.payment-method-card {
  display: grid;
  gap: 8px;
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.payment-method-card:hover,
.payment-method-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(8, 127, 91, 0.16);
  outline: 0;
  transform: translateY(-2px);
}

.payment-method-card.is-pix {
  background: linear-gradient(145deg, rgba(8, 127, 91, 0.12), var(--surface-soft));
}

.payment-method-card strong {
  font-size: 1.06rem;
}

.payment-method-card small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
}

.payment-method-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 950;
}

.installment-copy {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.installment-copy > span {
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #087f5b, #37bf92);
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 950;
}

.installment-copy strong {
  color: var(--ink);
  font-size: 1.06rem;
}

.installment-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}

.installment-actions {
  margin-top: 18px;
}

.pix-order-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.pix-order-total strong {
  color: var(--accent-strong);
  font-size: 1.08rem;
}

.pix-payment {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.pix-qr-wrap {
  display: grid;
  place-items: center;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.pix-qr-wrap img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 8px;
}

.pix-payment-copy {
  display: grid;
  gap: 10px;
}

.pix-payment-copy strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.3;
}

.pix-payment-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}

.pix-key-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.pix-key-field span {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.pix-key-field code {
  min-width: 0;
  flex: 1;
  padding: 10px;
  overflow: hidden;
  color: var(--ink);
  font: 700 0.72rem/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.pix-key-field button {
  flex: 0 0 auto;
  padding: 0 12px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
}

.pix-actions {
  margin-top: 20px;
}

.photo-dialog {
  width: min(980px, calc(100vw - 28px));
}

.catalog-highlight-dialog {
  width: fit-content;
  max-width: calc(100vw - 24px);
  max-height: calc(100svh - 24px);
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.catalog-highlight-viewer {
  display: block;
}

.catalog-highlight-viewer img {
  display: block;
  width: auto;
  max-width: calc(100vw - 24px);
  max-height: calc(100svh - 24px);
  object-fit: contain;
}

.photo-viewer {
  position: relative;
  display: grid;
  place-items: center;
  background: #111827;
  border-radius: 8px;
}

.photo-dialog img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
  background: #111827;
}

.photo-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #162235;
  border: 1px solid rgba(15, 23, 42, 0.16);
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.photo-arrow:hover,
.photo-arrow:focus-visible {
  background: var(--accent);
  color: #ffffff;
  outline: 0;
}

.photo-prev {
  left: 14px;
}

.photo-next {
  right: 14px;
}

.message-dialog p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.size-dialog {
  width: min(1060px, calc(100vw - 28px));
}

.size-guide-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 750;
}

.size-guide-intro strong {
  color: var(--ink);
}

.size-guide {
  display: grid;
  gap: 16px;
}

.size-table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.size-table-card h3 {
  margin: 0;
  padding: 12px 14px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.98rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.size-table-wrap {
  overflow-x: auto;
}

.size-table-card table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.size-table-card th,
.size-table-card td {
  padding: 11px 12px;
  border: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.size-table-card thead th {
  background: #f2f5f8;
  color: var(--ink);
  font-weight: 950;
}

.size-table-card tbody th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: left;
  text-transform: uppercase;
}

.size-table-card td {
  font-weight: 900;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 35;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background: #25d366;
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.36);
  animation: whatsappPulse 2.4s ease-in-out infinite;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  animation-play-state: paused;
  transform: scale(1.06);
}

@keyframes whatsappPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.48), 0 16px 34px rgba(37, 211, 102, 0.36);
  }

  50% {
    transform: scale(1.07);
    box-shadow: 0 0 0 13px rgba(37, 211, 102, 0), 0 18px 38px rgba(37, 211, 102, 0.45);
  }
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 5vw, 64px);
  background: var(--ink);
  color: #ffffff;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.social-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.social-icon:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.social-icon.whatsapp-link {
  background: #25d366;
  border-color: #25d366;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  transform: translateY(20px);
  opacity: 0;
  max-width: 360px;
  padding: 12px 14px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

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

.admin-page {
  background: #eef2f6;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100svh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100svh;
  padding: 22px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.admin-nav {
  display: grid;
  gap: 6px;
  margin: 12px 0 auto;
}

.admin-nav a {
  padding: 12px;
  color: var(--muted);
  border-radius: 8px;
  font-weight: 850;
}

.admin-nav a:hover {
  background: #eef2f6;
  color: var(--ink);
}

.admin-nav a.is-active {
  background: var(--ink);
  color: #ffffff;
}

.admin-main {
  min-width: 0;
  padding: 28px clamp(18px, 4vw, 42px);
}

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

.admin-topbar h1,
.login-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.admin-section {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

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

.admin-card,
.login-panel {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.login-panel {
  max-width: 460px;
  margin: 10vh auto 0;
}

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

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 18px;
}

.metric-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 850;
}

.metric-card strong {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1;
}

.category-bars {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 42px;
  gap: 12px;
  align-items: center;
}

.bar-row span,
.bar-row strong {
  font-weight: 850;
}

.bar-row div {
  height: 12px;
  overflow: hidden;
  background: #e8edf3;
  border-radius: 999px;
}

.bar-row i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: inherit;
}

.revenue-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  min-height: 260px;
  padding: 10px 0 0;
}

.revenue-bar {
  display: grid;
  grid-template-rows: 22px minmax(120px, 1fr) auto;
  flex: 1;
  gap: 8px;
  min-width: 58px;
  height: 240px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-align: center;
}

.revenue-bar i {
  align-self: end;
  display: block;
  height: var(--height);
  min-height: 8px;
  background: linear-gradient(180deg, var(--blue), var(--accent));
  border-radius: 8px 8px 3px 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.revenue-bar strong {
  color: var(--ink);
  font-size: 0.74rem;
  line-height: 1.2;
}

.catalog-chart {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
}

.donut-chart {
  position: relative;
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  border-radius: 999px;
}

.donut-chart::after {
  position: absolute;
  inset: 24px;
  content: "";
  background: #ffffff;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
}

.donut-chart span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  text-align: center;
  font-size: 2rem;
  font-weight: 950;
}

.donut-chart small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.donut-legend,
.mini-orders {
  display: grid;
  gap: 9px;
}

.donut-legend span,
.mini-orders article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-weight: 850;
}

.donut-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.donut-legend strong,
.mini-orders b {
  color: var(--ink);
}

.mini-orders article {
  grid-template-columns: 1fr auto;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-orders span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.manager-form .full,
.settings-form .full,
.drive-settings-form .full,
.manager-actions,
.manager-list,
.current-images,
.upload-preview,
.category-checks {
  grid-column: 1 / -1;
}

.category-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.7fr) minmax(170px, 0.9fr) auto;
  gap: 12px;
  align-items: end;
}

.category-form-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.category-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

#categorySelect {
  min-height: 150px;
  background: #f8fafc;
}

#categorySelect option {
  padding: 8px 10px;
  border-radius: 6px;
}

.category-admin-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.category-admin-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-admin-item span {
  font-weight: 850;
}

.category-admin-item small {
  display: inline-flex;
  margin-left: 6px;
  padding: 3px 7px;
  background: #e7f6f1;
  color: var(--accent-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.category-admin-item code {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.78rem;
}

.category-item-actions {
  grid-row: 1 / 3;
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.category-admin-item button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: #eef2f6;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.category-admin-item [data-delete-category] {
  background: #fff0ed;
  color: var(--danger);
}

.category-admin-item [data-add-child-category] {
  background: #e7f6f1;
  color: var(--accent-strong);
}

.category-admin-item .source-category-badge {
  color: #1665ad;
  background: #eaf3ff;
}

.category-drive-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.current-images,
.upload-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.current-image,
.upload-preview-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.current-image img,
.upload-preview-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.upload-preview-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--accent-strong);
  background: #e7f6f1;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.status-pill.is-warning {
  color: #a65b00;
  background: #fff4d8;
}

.drive-integration-card {
  gap: 14px;
}

.drive-settings-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.drive-account {
  grid-column: 1 / -1;
  padding: 10px 12px;
  color: var(--accent-strong);
  background: #e7f6f1;
  border: 1px solid #b7ead9;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.drive-sync-status {
  margin-top: 14px;
}

.drive-sync-progress {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 11px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.drive-sync-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.drive-sync-progress-header strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.drive-sync-track {
  height: 9px;
  overflow: hidden;
  background: #dfe7e5;
  border-radius: 999px;
}

.drive-sync-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #3bbf92);
  border-radius: inherit;
  transition: width 0.35s ease;
}

.drive-sync-progress.is-running .drive-sync-track i {
  position: relative;
  overflow: hidden;
}

.drive-sync-progress.is-running .drive-sync-track i::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: drive-progress-shine 1.3s linear infinite;
}

.drive-sync-progress small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.drive-sync-progress.is-error {
  border-color: #e8a49d;
  background: #fff4f2;
}

.drive-sync-progress.is-error .drive-sync-track i {
  background: var(--danger);
}

@keyframes drive-progress-shine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.drive-format-help {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.drive-format-help summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.drive-format-help pre {
  margin: 12px 0;
  padding: 12px;
  overflow: auto;
  color: var(--ink);
  background: var(--surface-soft);
  border-radius: 8px;
  font: 0.8rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.drive-format-help p {
  margin: 0;
}

.manager-row-drive {
  grid-template-columns: 64px minmax(190px, 0.75fr) minmax(530px, 1.25fr);
}

.manager-row-drive.is-pending {
  border-color: #ebc268;
  background: #fffdf7;
}

.manager-row-drive.is-missing {
  grid-template-columns: 64px minmax(0, 1fr);
  opacity: 0.72;
}

.source-badge {
  display: inline-flex;
  margin-bottom: 5px;
  padding: 3px 7px;
  color: #1665ad;
  background: #eaf3ff;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.drive-inventory-form {
  display: grid;
  grid-template-columns: minmax(140px, 1.45fr) minmax(105px, 0.9fr) minmax(86px, 0.65fr) minmax(76px, 0.55fr) auto auto auto;
  gap: 8px;
  align-items: end;
}

.drive-inventory-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.drive-inventory-form input {
  min-width: 0;
  min-height: 36px;
  padding: 7px 8px;
}

.drive-inventory-form .drive-inventory-name {
  min-width: 0;
}

.drive-inventory-form .drive-label-toggle {
  display: inline-flex;
  align-items: center;
  align-self: end;
  min-height: 36px;
  gap: 5px;
  padding: 0 4px;
  color: var(--ink);
  white-space: nowrap;
}

.drive-wholesale-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(100px, auto) minmax(110px, 140px) minmax(130px, 160px);
  gap: 8px;
  align-items: end;
  padding-top: 2px;
}

.drive-wholesale-fields .drive-label-toggle {
  align-self: end;
}

.drive-inventory-form button {
  min-height: 36px;
  padding: 0 11px;
  color: var(--accent-strong);
  background: #e7f6f1;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.form-note.is-error {
  color: var(--danger);
}

.orders-table {
  display: grid;
  gap: 10px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.kanban-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 360px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.kanban-column.is-drag-target {
  background: #eef9f5;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.kanban-column-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.kanban-column-header div {
  display: grid;
  gap: 3px;
}

.kanban-column-header strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.kanban-column-header span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.kanban-column-header b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--accent-strong);
  background: #e7f6f1;
  border-radius: 999px;
  font-size: 0.78rem;
}

.kanban-cards {
  display: grid;
  align-content: start;
  gap: 10px;
}

.kanban-empty {
  padding: 22px 12px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 750;
  text-align: center;
}

.kanban-card {
  display: grid;
  gap: 11px;
  padding: 11px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.04);
  cursor: grab;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.is-dragging {
  opacity: 0.42;
}

.kanban-card-top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.kanban-product-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.kanban-order-id {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.kanban-card h3,
.kanban-card p {
  margin: 0;
}

.kanban-card h3 {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanban-card-top p,
.kanban-card-footer,
.kanban-status-select {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.kanban-products {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.kanban-products strong {
  color: var(--ink);
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kanban-card-footer strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.kanban-status-select {
  display: grid;
  gap: 5px;
}

.kanban-status-select select {
  min-height: 34px;
  padding-block: 5px;
  font-size: 0.8rem;
}

html[data-theme="dark"] {
  --bg: #0f141b;
  --surface: #151d27;
  --surface-soft: #1d2733;
  --ink: #f3f6fa;
  --muted: #a7b3c2;
  --line: #2d3948;
  --accent: #27b083;
  --accent-strong: #4dd0a4;
  --blue: #66a3ff;
  --gold: #f4c95d;
  --danger: #ff8a78;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .admin-page {
  background: var(--bg);
  color: var(--ink);
}

html[data-theme="dark"] .site-header {
  background: rgba(15, 20, 27, 0.9);
  border-color: rgba(45, 57, 72, 0.9);
}

html[data-theme="dark"] .admin-sidebar,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .login-panel,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .filter-sidebar,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .checkout-band,
html[data-theme="dark"] .drawer-panel,
html[data-theme="dark"] dialog,
html[data-theme="dark"] .cart-item,
html[data-theme="dark"] .manager-row,
html[data-theme="dark"] .order-row,
html[data-theme="dark"] .size-table-card {
  background: var(--surface);
  border-color: var(--line);
}

html[data-theme="dark"] dialog,
html[data-theme="dark"] dialog h1,
html[data-theme="dark"] dialog h2,
html[data-theme="dark"] dialog h3,
html[data-theme="dark"] dialog strong {
  color: var(--ink);
}

html[data-theme="dark"] dialog {
  color-scheme: dark;
  background: #151d27;
}

html[data-theme="dark"] .order-dialog textarea {
  color: #f3f6fa;
  background: #101823;
}

html[data-theme="dark"] .pix-order-total strong {
  color: var(--accent-strong);
}

html[data-theme="dark"] .photo-arrow {
  color: #162235;
  background: #f3f6fa;
}

html[data-theme="dark"] .search-field,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] #categorySelect,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .size-option,
html[data-theme="dark"] .color-option,
html[data-theme="dark"] .filter-select select,
html[data-theme="dark"] .color-select select {
  background-color: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] input[type="file"],
html[data-theme="dark"] .cart-empty,
html[data-theme="dark"] .mini-orders article,
html[data-theme="dark"] .category-admin-item,
html[data-theme="dark"] .category-admin-item small,
html[data-theme="dark"] .current-image,
html[data-theme="dark"] .upload-preview-item,
html[data-theme="dark"] .size-guide-link,
html[data-theme="dark"] .check-field,
html[data-theme="dark"] .button.ghost-dark,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .qty-controls button,
html[data-theme="dark"] .row-actions button,
html[data-theme="dark"] .current-image button,
html[data-theme="dark"] .category-admin-item button {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .chip.is-active,
html[data-theme="dark"] .cart-button,
html[data-theme="dark"] .admin-nav a.is-active,
html[data-theme="dark"] .size-table-card h3 {
  background: #20364b;
  color: #f4f8fc;
  border-color: #395872;
}

html[data-theme="dark"] .button.primary,
html[data-theme="dark"] .size-option.is-selected,
html[data-theme="dark"] .color-option.is-selected {
  background: var(--accent);
  color: #08130f;
}

html[data-theme="dark"] .page-button.is-active,
html[data-theme="dark"] .page-button:hover:not(:disabled),
html[data-theme="dark"] .admin-sidebar .admin-nav a.is-active,
html[data-theme="dark"] .category-menu.is-active .category-menu-button,
html[data-theme="dark"] .category-menu.is-open .category-menu-button {
  background: var(--accent);
  border-color: var(--accent);
  color: #08130f;
}

html[data-theme="dark"] .category-menu-panel {
  background: var(--surface);
  border-color: var(--line);
}

html[data-theme="dark"] .filter-sidebar-header {
  background: var(--surface);
}

html[data-theme="dark"] .category-menu-panel button {
  color: var(--ink);
}

html[data-theme="dark"] .category-menu-panel button:hover,
html[data-theme="dark"] .category-menu-panel button.is-active {
  background: var(--surface-soft);
  color: var(--accent-strong);
}

html[data-theme="dark"] .category-admin-item [data-add-child-category],
html[data-theme="dark"] .category-admin-item small {
  background: rgba(39, 176, 131, 0.16);
  color: var(--accent-strong);
}

html[data-theme="dark"] .photo-color-badge {
  background: rgba(18, 29, 42, 0.94);
  color: #f4f8fc;
  border: 1px solid rgba(180, 205, 226, 0.3);
}

html[data-theme="dark"] .product-tag {
  background: rgba(5, 11, 18, 0.92);
}

html[data-theme="dark"] .stock-badge.is-sold-out {
  background: rgba(194, 65, 53, 0.2);
  color: #ffb4aa;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .status-pill {
  background: rgba(39, 176, 131, 0.18);
  color: #75e5bd;
}

html[data-theme="dark"] .status-pill.is-warning,
html[data-theme="dark"] .manager-row-drive.is-pending {
  color: #ffd47a;
  background: rgba(166, 91, 0, 0.18);
}

html[data-theme="dark"] .drive-account,
html[data-theme="dark"] .drive-inventory-form button {
  color: #75e5bd;
  background: rgba(39, 176, 131, 0.18);
  border-color: rgba(117, 229, 189, 0.3);
}

html[data-theme="dark"] .drive-sync-track {
  background: #2d3948;
}

html[data-theme="dark"] .drive-sync-progress.is-error {
  background: rgba(194, 65, 53, 0.16);
  border-color: rgba(255, 180, 170, 0.42);
}

html[data-theme="dark"] .kanban-card {
  background: var(--surface);
}

html[data-theme="dark"] .kanban-column.is-drag-target {
  background: rgba(39, 176, 131, 0.13);
  border-color: var(--accent);
}

html[data-theme="dark"] .kanban-column-header b {
  color: #75e5bd;
  background: rgba(39, 176, 131, 0.18);
}

html[data-theme="dark"] .source-badge {
  color: #8bc5ff;
  background: rgba(28, 111, 188, 0.2);
}

html[data-theme="dark"] .text-action {
  color: #75e5bd;
}

html[data-theme="dark"] .page-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] input[type="file"]::file-selector-button {
  background: var(--accent);
  color: #08130f;
}

html[data-theme="dark"] input[type="file"]::file-selector-button:hover,
html[data-theme="dark"] .button.primary:hover,
html[data-theme="dark"] .add-button:hover {
  background: #35c091;
  color: #08130f;
}

html[data-theme="dark"] .button.ghost-dark:hover,
html[data-theme="dark"] .icon-button:hover,
html[data-theme="dark"] .qty-controls button:hover,
html[data-theme="dark"] .row-actions button:hover,
html[data-theme="dark"] .current-image button:hover,
html[data-theme="dark"] .category-admin-item button:hover,
html[data-theme="dark"] .size-guide-link:hover {
  background: #243242;
  color: var(--ink);
}

html[data-theme="dark"] .product-image,
html[data-theme="dark"] .bar-row div,
html[data-theme="dark"] .photo-viewer,
html[data-theme="dark"] .photo-dialog img {
  background: #0a0f16;
}

html[data-theme="dark"] .donut-chart::after {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

html[data-theme="dark"] .size-table-card thead th,
html[data-theme="dark"] .size-table-card tbody th {
  background: var(--surface-soft);
  color: var(--ink);
}

html[data-theme="dark"] .feature-band,
html[data-theme="dark"] .site-footer {
  background: #090d13;
}

@media (max-width: 980px) {
  .section-heading,
  .checkout-band,
  .admin-topbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .catalog-shell {
    grid-template-columns: 212px minmax(0, 1fr);
    gap: 20px;
    padding-inline: 22px;
  }

  .feature-band,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .metric-grid,
  .dashboard-grid,
  .current-images,
  .upload-preview,
  .category-admin-list {
    grid-template-columns: 1fr;
  }

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

  .catalog-chart {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .catalog-shell {
    display: block;
    padding: 20px 12px 42px;
  }

  .filter-sidebar {
    position: static;
    display: none;
    max-height: none;
    margin: 0 0 16px;
    padding: 16px;
    overflow: visible;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    transform: none;
  }

  .filter-sidebar::before {
    display: none;
  }

  .filter-sidebar.is-open {
    display: grid;
  }

  .filter-sidebar-header {
    position: static;
    padding: 0;
  }

  .filter-close {
    display: inline-grid;
  }

  .filter-scrim {
    display: none !important;
  }

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

  .chip {
    min-height: 46px;
    padding-inline: 10px;
    font-size: 0.82rem;
  }

  .category-menu-panel button {
    min-height: 38px;
    font-size: 0.82rem;
  }

  .mobile-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
  }

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

  .section-heading {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .catalog-heading-actions {
    flex: 0 0 auto;
  }

  .catalog-heading-actions #resultCount {
    display: none;
  }
}

@media (max-width: 1180px) and (min-width: 681px) {
  .manager-row-drive {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .drive-inventory-form {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  body {
    background: #ffffff;
  }

  html[data-theme="dark"] body {
    background: var(--bg);
  }

  .site-header {
    min-height: 64px;
    padding: 10px 12px;
  }

  .brand small,
  .nav-links {
    display: none;
  }

  .cart-button {
    font-size: 0;
    padding: 0 10px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .cart-button span {
    font-size: 0.8rem;
  }

  .hero {
    min-height: calc(100svh - 64px);
    padding: 32px 16px 76px;
  }

  h1 {
    font-size: clamp(2.25rem, 14vw, 3.6rem);
  }

  .product-grid,
  .manager-form,
  .settings-form,
  .drive-settings-form,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .product-label-options,
  .wholesale-settings,
  .pix-payment,
  .payment-method-options {
    grid-template-columns: 1fr;
  }

  .installment-copy {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
  }

  .installment-copy > span {
    width: 68px;
    height: 68px;
    font-size: 1.12rem;
  }

  .pix-qr-wrap {
    max-width: 250px;
    margin-inline: auto;
  }

  .pix-actions .button {
    width: 100%;
  }

  .product-image {
    aspect-ratio: 1 / 1;
  }

  .feature-band,
  .checkout-band,
  .site-footer,
  .admin-main {
    padding-inline: 16px;
  }

  .revenue-chart {
    overflow-x: auto;
    align-items: end;
  }

  .revenue-bar {
    flex: 0 0 64px;
  }

  .cart-item,
  .manager-row,
  .order-row {
    grid-template-columns: 56px 1fr;
  }

  .order-row p,
  .order-row > strong,
  .qty-controls,
  .row-actions,
  .drive-inventory-form {
    grid-column: 2;
  }

  .drive-inventory-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .drive-inventory-form .drive-inventory-name,
  .drive-inventory-form button {
    grid-column: 1 / -1;
  }

  .drive-inventory-form .drive-label-toggle {
    grid-column: auto;
    align-self: center;
  }

  .drive-wholesale-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .drive-wholesale-fields .drive-label-toggle {
    grid-column: 1 / -1;
  }

  .product-bulk-toolbar {
    align-items: stretch;
  }

  .product-bulk-toolbar > div {
    justify-content: flex-start;
  }

  .kanban-board {
    grid-template-columns: repeat(4, minmax(245px, 1fr));
  }

  .bar-row {
    grid-template-columns: 1fr 38px;
  }

  .bar-row div {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .admin-nav {
    display: flex;
    overflow: auto;
  }

  .site-footer {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: 110px;
  }

  .footer-socials {
    justify-content: center;
    width: 100%;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 18px;
  }
}

/* Atendimento e consulta de pedido */
.nav-order-lookup,
.hero-order-lookup {
  border: 0;
  cursor: pointer;
  font-weight: 850;
}

.nav-order-lookup {
  padding: 0;
  background: transparent;
  color: var(--muted);
}

.nav-order-lookup:hover,
.nav-order-lookup:focus-visible {
  color: var(--accent-strong);
}

.hero-actions .whatsapp-link,
.hero-actions .instagram-link {
  background-size: 180% 100%;
  border-color: rgba(255, 255, 255, 0.42);
  animation: heroCtaGradient 9s ease-in-out infinite;
}

.hero-actions .whatsapp-link {
  background-image: linear-gradient(105deg, rgba(14, 143, 88, 0.25), rgba(37, 211, 102, 0.08), rgba(14, 143, 88, 0.25));
}

.hero-actions .instagram-link {
  background-image: linear-gradient(105deg, rgba(123, 66, 255, 0.22), rgba(232, 76, 151, 0.13), rgba(123, 66, 255, 0.22));
  animation-delay: -3s;
}

.hero-order-lookup {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.hero-order-lookup:hover,
.hero-order-lookup:focus-visible {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.hero-actions .whatsapp-link:hover,
.hero-actions .instagram-link:hover,
.hero-actions .whatsapp-link:focus-visible,
.hero-actions .instagram-link:focus-visible {
  animation-play-state: paused;
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

@keyframes heroCtaGradient {
  0%,
  100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.order-lookup-dialog {
  width: min(680px, calc(100vw - 28px));
  color: var(--ink);
}

.order-lookup-copy {
  margin: -4px 0 18px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}

.order-lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.order-lookup-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.order-lookup-results {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.order-lookup-loading,
.order-lookup-empty {
  padding: 16px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
}

.order-lookup-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.order-lookup-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.order-lookup-card-header div {
  display: grid;
  gap: 3px;
}

.order-lookup-card-header span {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.order-lookup-card-header strong {
  color: var(--ink);
  font-size: 1rem;
}

.order-lookup-card-header time {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.order-lookup-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 14px 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.order-lookup-status i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: #e4a62e;
  border-radius: 999px;
}

.order-lookup-status i.is-enviado { background: #4285f4; }
.order-lookup-status i.is-concluido { background: var(--accent); }

.order-lookup-items {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
}

.order-lookup-items > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.order-lookup-items img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-lookup-items span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.order-lookup-items b {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-lookup-items small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.order-lookup-note {
  display: grid;
  gap: 4px;
  margin: 2px 14px 14px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(8, 127, 91, 0.1);
  border: 1px solid rgba(8, 127, 91, 0.22);
  border-radius: 9px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.order-lookup-note strong {
  color: var(--accent-strong);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.kanban-customer-note {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.kanban-customer-note label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.kanban-customer-note textarea {
  min-height: 58px;
  padding: 8px;
  resize: vertical;
  font-size: 0.78rem;
}

.kanban-customer-note button {
  justify-self: start;
  min-height: 31px;
  padding: 0 10px;
  color: var(--accent-strong);
  background: #e7f6f1;
  border: 1px solid rgba(8, 127, 91, 0.18);
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
}

/* Scrolling stays visible and has the same contrast in both themes. */
html {
  scrollbar-color: #7a8aa0 #e8edf3;
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: #e8edf3;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9baabe, #738398);
  border: 3px solid #e8edf3;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #087f5b, #066247);
}

html[data-theme="dark"] {
  scrollbar-color: #6f849b #101823;
}

html[data-theme="dark"] *::-webkit-scrollbar-track {
  background: #101823;
}

html[data-theme="dark"] *::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #55708a, #364b61);
  border-color: #101823;
}

html[data-theme="dark"] *::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #35c091, #158664);
}

/* Explicit colors fix table cells that use the browser's dark form palette. */
html[data-theme="dark"] .size-dialog,
html[data-theme="dark"] .order-lookup-dialog {
  color: #f3f6fa;
  background: #151d27;
}

html[data-theme="dark"] .size-guide-intro,
html[data-theme="dark"] .size-guide-intro strong,
html[data-theme="dark"] .size-table-card td {
  color: #f3f6fa;
}

html[data-theme="dark"] .size-table-card td {
  background: #131d28;
}

html[data-theme="dark"] .order-lookup-card,
html[data-theme="dark"] .order-lookup-card-header,
html[data-theme="dark"] .order-lookup-empty,
html[data-theme="dark"] .order-lookup-loading {
  background: var(--surface);
  border-color: var(--line);
}

html[data-theme="dark"] .order-lookup-card-header strong,
html[data-theme="dark"] .order-lookup-items b,
html[data-theme="dark"] .order-lookup-note,
html[data-theme="dark"] .order-lookup-form label {
  color: var(--ink);
}

html[data-theme="dark"] .kanban-customer-note button {
  color: #75e5bd;
  background: rgba(39, 176, 131, 0.18);
  border-color: rgba(117, 229, 189, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions .whatsapp-link,
  .hero-actions .instagram-link {
    animation: none;
  }
}

@media (max-width: 680px) {
  .hero-actions {
    gap: 8px;
  }

  .hero-actions .button {
    flex: 1 1 145px;
  }

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

  .order-lookup-form .button {
    width: 100%;
  }

  .size-dialog {
    width: calc(100vw - 20px);
    max-height: 88svh;
    padding: 16px;
    overflow-x: hidden;
  }

  .size-table-wrap {
    max-width: 100%;
  }
}

.hero-carousel-manager {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.catalog-highlights-manager {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.hero-carousel-manager > div:first-child {
  display: grid;
  gap: 4px;
}

.catalog-highlights-manager > div:first-child {
  display: grid;
  gap: 4px;
}

.hero-carousel-manager strong {
  color: var(--ink);
}

.catalog-highlights-manager strong {
  color: var(--ink);
}

.catalog-highlight-add-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr);
  gap: 8px;
}

.catalog-highlight-add-fields label,
.catalog-highlight-admin-item label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.hero-carousel-add-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.hero-carousel-add-url button,
.hero-carousel-admin-image button {
  min-height: 40px;
  padding: 0 12px;
  color: var(--accent-strong);
  background: #e7f6f1;
  border: 1px solid rgba(8, 127, 91, 0.2);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.hero-carousel-image-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  padding-right: 3px;
  overflow: auto;
}

.catalog-highlights-admin-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  padding-right: 3px;
  overflow: auto;
}

.hero-carousel-admin-image {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.catalog-highlight-admin-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(145px, 0.45fr) auto;
  gap: 10px;
  align-items: end;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.catalog-highlight-admin-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: var(--surface-soft);
  border: 3px solid var(--accent);
  border-radius: 999px;
}

.catalog-highlight-admin-item[data-highlight-type="clearance"] img {
  border-color: var(--gold);
}

.catalog-highlight-admin-item[data-highlight-type="advertising"] img {
  border-color: var(--blue);
}

.catalog-highlight-admin-item img.is-broken {
  opacity: 0.35;
}

.catalog-highlight-admin-item button {
  min-height: 40px;
  padding: 0 12px;
  color: var(--danger);
  background: #fff1ef;
  border: 1px solid #f4b3aa;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.hero-carousel-admin-image img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  background: var(--surface-soft);
  border-radius: 6px;
}

.hero-carousel-admin-image img.is-broken {
  opacity: 0.35;
}

.hero-carousel-admin-image div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.hero-carousel-admin-image strong {
  font-size: 0.82rem;
}

.hero-carousel-admin-image small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="dark"] .hero-carousel-manager,
html[data-theme="dark"] .hero-carousel-admin-image,
html[data-theme="dark"] .catalog-highlights-manager,
html[data-theme="dark"] .catalog-highlight-admin-item {
  background: var(--surface-soft);
  border-color: var(--line);
}

html[data-theme="dark"] .hero-carousel-admin-image,
html[data-theme="dark"] .catalog-highlight-admin-item {
  background: var(--surface);
}

html[data-theme="dark"] .hero-carousel-add-url button,
html[data-theme="dark"] .hero-carousel-admin-image button {
  color: #75e5bd;
  background: rgba(39, 176, 131, 0.18);
  border-color: rgba(117, 229, 189, 0.3);
}

html[data-theme="dark"] .catalog-highlight-admin-item button {
  color: #ffb4aa;
  background: rgba(194, 65, 53, 0.17);
  border-color: rgba(255, 180, 170, 0.34);
}

@media (max-width: 680px) {
  .catalog-highlights {
    margin-bottom: 20px;
  }

  .catalog-highlights-track {
    gap: 12px;
    padding-inline: 2px;
  }

  .catalog-highlight {
    flex-basis: 74px;
  }

  .catalog-highlight > span:last-child {
    max-width: 74px;
    font-size: 0.7rem;
  }

  .catalog-highlight-ring {
    width: 66px;
    height: 66px;
  }

  .hero-carousel-arrow {
    width: 40px;
    height: 40px;
    opacity: 1;
  }

  .hero-carousel-dots {
    right: 16px;
    bottom: 18px;
  }

  .hero-carousel-add-url,
  .hero-carousel-admin-image,
  .catalog-highlight-add-fields,
  .catalog-highlight-admin-item {
    grid-template-columns: 1fr;
  }

  .hero-carousel-admin-image img {
    width: 100%;
    height: 132px;
  }

  .hero-carousel-admin-image button {
    width: 100%;
  }

  .catalog-highlight-admin-item img {
    width: 100%;
    height: 150px;
    border-radius: 10px;
  }

  .catalog-highlight-admin-item button {
    width: 100%;
  }
}
