:root {
  --bg: #101114;
  --panel: #181a20;
  --panel-2: #20232b;
  --text: #f7f7f8;
  --muted: #a8afbd;
  --line: #303440;
  --orange: #ff7a1a;
  --cyan: #22d3ee;
  --fuchsia: #f43f8b;
  --green: #22c55e;
  --danger: #ef4444;
  --button-text: #111111;
  --hover: #22d3ee;
  --radius: 8px;
  --shadow-soft: 0 16px 44px rgba(0, 0, 0, .22);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, .18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html:has([data-admin-app]),
body:has([data-admin-app]) {
  height: 100vh;
  overflow: hidden;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

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

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--line);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #4b5161;
  background-clip: padding-box;
}

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

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

button {
  border: 0;
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(13, 14, 18, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.brand-copy small {
  max-width: 380px;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-copy small[hidden] {
  display: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--orange), var(--fuchsia));
  color: #111;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

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

.brand-mark.has-logo {
  overflow: hidden;
  background: var(--panel-2);
  color: transparent;
}

.nav {
  display: flex;
  gap: 6px;
  color: var(--muted);
}

.nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: color .18s ease, background .18s ease;
}

.nav a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
}

.search-box {
  position: relative;
  flex: 1 1 320px;
  max-width: 760px;
  display: flex;
  align-items: center;
}

.search {
  flex: 1;
  width: 100%;
  min-width: 180px;
  padding: 12px 54px 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted);
  background: transparent;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.search-submit:hover,
.search-submit:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--cyan) 16%, transparent);
  transform: translateY(-50%);
  outline: none;
}

.search-submit svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 94%, #000);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
}

.search-suggestion {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: calc(var(--radius) - 2px);
  color: var(--text);
  background: transparent;
  text-align: left;
  transition: background .16s ease, color .16s ease;
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
  background: color-mix(in srgb, var(--cyan) 14%, transparent);
  outline: none;
}

.suggestion-main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.suggestion-kind {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.search-all {
  margin-top: 4px;
  color: var(--muted);
  justify-content: flex-start;
  border-top: 1px solid color-mix(in srgb, var(--line) 64%, transparent);
  border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px);
}

.search:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--hover);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hover) 24%, transparent);
}

.icon-btn,
.primary,
.secondary,
.chip {
  min-height: 40px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1.1;
  font-weight: 850;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.icon-btn {
  min-width: 48px;
  width: 48px;
  height: 48px;
  position: relative;
  background: var(--panel-2);
  color: var(--text);
  line-height: 1;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--cyan);
  color: #071115;
  font-size: 12px;
  font-weight: 800;
}

.primary {
  padding: 0 18px;
  background: var(--orange);
  color: var(--button-text);
  border: 1px solid color-mix(in srgb, var(--orange) 82%, #ffffff);
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 9px 22px color-mix(in srgb, var(--orange) 26%, transparent);
}

.secondary,
.chip {
  padding: 0 16px;
  background: color-mix(in srgb, var(--panel-2) 92%, transparent);
  color: var(--text);
  border: 1px solid var(--line);
}

.primary:hover,
.secondary:hover,
.chip:hover,
.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--hover);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.secondary:hover,
.chip:hover,
.icon-btn:hover {
  background: color-mix(in srgb, var(--panel-2) 78%, var(--hover));
}

.primary:focus-visible,
.secondary:focus-visible,
.chip:focus-visible,
.icon-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hover) 28%, transparent);
}

.cart-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.cart-header-btn .cart-icon {
  width: 25px;
  height: 25px;
}

.cart-header-btn.cart-pulse {
  animation: cartPulse .38s ease;
}

.hero {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: end;
  padding: 72px clamp(18px, 6vw, 80px) 54px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16,17,20,.18), var(--bg)),
    url("https://images.unsplash.com/photo-1542291026-7eec264c27ff?auto=format&fit=crop&w=1800&q=80") center/cover;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity .9s ease;
}

.hero-slide-bg.active {
  opacity: 1;
}

.hero-slide-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.78) saturate(1.04);
}

.hero-slide-bg.has-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 17, 20, .18), var(--bg));
}

.hero-inner {
  max-width: 760px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .26));
}

.hero.third-party-ad .eyebrow,
.hero.third-party-ad [data-hero-title],
.hero.third-party-ad [data-hero-copy],
.hero.third-party-ad .hero-actions .secondary {
  display: none;
}

.hero.third-party-ad .hero-inner {
  align-self: end;
  max-width: 360px;
}

.hero.third-party-ad .hero-actions .primary {
  pointer-events: none;
  min-height: 0;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--cyan) 44%, transparent);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  color: var(--cyan);
  box-shadow: none;
  cursor: default;
  font-size: 14px;
}

.hero-dots {
  position: absolute;
  left: clamp(16px, 6vw, 80px);
  bottom: 22px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(247, 247, 248, .38);
}

.hero-dots button.active {
  background: var(--orange);
}

.eyebrow {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: #111;
  background: var(--cyan);
  font-weight: 900;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: .95;
  max-width: 10ch;
}

.hero p,
.section-head p,
.muted {
  color: var(--muted);
}

.hero p {
  max-width: 620px;
  font-size: 18px;
}

.hero-actions,
.row,
.tabs,
.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.report-actions {
  margin: 12px 0 22px;
}

.section {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 52px clamp(16px, 5vw, 48px);
}

.promo-slide {
  position: relative;
  width: min(680px, 82vw);
  aspect-ratio: 16 / 6;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel-2);
}

.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.06);
}

.promo-slide span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(16, 17, 20, .78);
  color: var(--text);
  font-weight: 900;
}

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.catalog-controls {
  min-width: min(360px, 100%);
  display: grid;
  gap: 10px;
  justify-items: end;
}

.category-tabs {
  justify-content: flex-end;
  gap: 8px;
}

.chip.active {
  color: var(--button-text);
  background: var(--orange);
  border-color: color-mix(in srgb, var(--orange) 82%, #fff);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--orange) 18%, transparent);
}

.chip.active-soft {
  color: var(--cyan);
  background: color-mix(in srgb, var(--panel-2) 76%, var(--cyan));
  border-color: color-mix(in srgb, var(--cyan) 62%, var(--line));
}

.chip-more {
  color: var(--cyan);
  border-color: color-mix(in srgb, var(--cyan) 44%, var(--line));
}

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

.category-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(8px);
}

.category-dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 44px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--cyan) 10%, transparent), transparent 34%),
    color-mix(in srgb, var(--panel) 96%, #050607);
  box-shadow: 0 28px 84px rgba(0, 0, 0, .46);
}

.category-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 113, 113, .52);
  border-radius: 11px;
  background: rgba(127, 29, 29, .44);
  color: #ffffff;
  font-size: 0;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.category-modal-close::before {
  content: "\00d7";
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform: translateY(-1px);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.category-modal-close:hover {
  transform: translateY(-1px);
  background: rgba(153, 27, 27, .64);
  border-color: rgba(254, 202, 202, .62);
}

.category-dialog-head {
  padding-right: 48px;
}

.category-dialog-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
}

.category-dialog-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.category-modal-search {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 850;
}

.category-modal-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--text);
}

.category-modal-search input:focus {
  outline: 0;
  border-color: var(--hover);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hover) 22%, transparent);
}

.category-modal-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.category-option {
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel-2) 78%, transparent);
  color: var(--text);
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

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

.category-option strong {
  font-size: 16px;
  line-height: 1.1;
}

.category-option small {
  color: var(--muted);
  font-weight: 650;
}

.category-option:hover,
.category-option.active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--cyan) 60%, var(--line));
  background: color-mix(in srgb, var(--panel-2) 76%, var(--cyan));
}

.category-option.active::after {
  content: "Seleccionado";
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cyan) 22%, transparent);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.category-empty {
  padding: 18px;
  border: 1px dashed color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: var(--radius);
  color: var(--muted);
  background: color-mix(in srgb, var(--panel-2) 52%, transparent);
}

.catalog-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: -2px 0 24px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 48%, transparent);
  border-radius: var(--radius);
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 54%, transparent);
  font-size: 13px;
}

.catalog-status strong {
  color: var(--text);
  font-weight: 850;
}

.catalog-status small {
  color: var(--cyan);
  font-weight: 800;
}

.catalog-groups {
  display: grid;
  gap: 34px;
}

.catalog-group {
  padding-top: 2px;
}

.catalog-group + .catalog-group {
  padding-top: 30px;
  border-top: 1px solid color-mix(in srgb, var(--line) 34%, transparent);
}

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

.catalog-group-head h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1;
}

.catalog-group-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.rubric-label {
  margin: 0 0 6px !important;
  color: var(--cyan) !important;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-more-rubros {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 2px;
  padding: 16px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 28%, transparent);
  color: var(--muted);
}

.catalog-more-rubros div {
  display: grid;
  gap: 2px;
}

.catalog-more-rubros strong {
  color: var(--text);
  font-size: 16px;
}

.catalog-more-rubros span {
  font-size: 14px;
}

.catalog-more-rubros .secondary,
.catalog-group-head .secondary {
  min-height: 36px;
  padding: 0 14px;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 210px));
  gap: 18px;
  justify-content: start;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 94%, #ffffff), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--orange) 75%, var(--line));
  box-shadow: var(--shadow-soft);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--panel-2);
}

.product-body {
  min-height: 184px;
  padding: 12px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-meta {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
}

.product-card h3 {
  margin-top: 5px;
  min-height: 39px;
  font-size: 16px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .muted {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.3;
  min-height: 31px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  margin: auto 0 10px;
  font-size: 17px;
  font-weight: 900;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  align-items: center;
}

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

.product-card .primary,
.product-card .secondary {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
}

.buy-btn {
  width: 100%;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-whatsapp-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: currentColor;
}

.btn-whatsapp-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 999px;
  color: currentColor;
}

.btn-whatsapp-mark svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cart-card-btn {
  width: 42px;
  padding: 0;
}

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

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(7px);
}

.modal-open {
  overflow: hidden;
}

.product-dialog {
  position: relative;
  width: min(860px, calc(100vw - 76px));
  max-height: min(690px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(240px, 288px);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "gallery info"
    "gallery purchase";
  align-content: start;
  align-items: stretch;
  gap: 0 34px;
  padding: 20px 22px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 96%, #050607);
  box-shadow: 0 28px 82px rgba(0, 0, 0, .48);
}

.product-modal-close,
.ad-modal-close,
.mail-close,
.dispatch-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: color-mix(in srgb, var(--danger) 82%, #111111);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.product-modal-close:hover,
.ad-modal-close:hover,
.mail-close:hover,
.dispatch-close:hover {
  transform: translateY(-1px);
  background: #dc2626;
  border-color: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .34);
}

.product-gallery {
  grid-area: gallery;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  min-height: 0;
  align-self: start;
  height: clamp(292px, 47vh, 390px);
}

.product-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.product-thumbs button {
  width: 56px;
  aspect-ratio: 1;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--panel-2);
  transition: border-color .16s ease, transform .16s ease;
}

.product-thumbs button.active,
.product-thumbs button:hover {
  border-color: var(--hover);
}

.product-thumbs button:hover {
  transform: translateY(-1px);
}

.product-thumbs img,
.product-main-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.product-main-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-2) 88%, #000000);
  border: 1px solid rgba(255, 255, 255, .10);
}

.product-main-image img {
  object-fit: contain;
  background: color-mix(in srgb, var(--panel-2) 88%, #ffffff);
}

.product-modal-info {
  grid-area: info;
  padding: 0 28px 10px 0;
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.product-modal-info h2 {
  margin-top: 9px;
  max-width: 18ch;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
}

.product-modal-info p {
  margin: 12px 0;
  color: var(--muted);
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.5;
}

.product-modal-info .price {
  margin-top: 8px;
  font-size: 27px;
}

.product-purchase-box {
  align-self: end;
  grid-area: purchase;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px 22px 0 0;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.product-purchase-box .primary,
.product-purchase-box .secondary {
  width: min(210px, 100%);
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.product-purchase-box > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.product-purchase-box > div strong {
  font-size: 15px;
}

.product-purchase-box > div p {
  margin: 0;
}

@media (min-width: 821px) {
  .product-dialog {
    --product-detail-height: clamp(390px, 60vh, 510px);
  }

  .product-gallery,
  .product-main-image {
    height: var(--product-detail-height);
  }

  .product-thumbs {
    max-height: var(--product-detail-height);
  }

  .product-purchase-box .primary {
    font-size: 14px;
    letter-spacing: 0;
  }
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 49;
  pointer-events: none;
  opacity: 0;
  background: rgba(0, 0, 0, .46);
  transition: opacity .18s ease;
}

.cart-overlay.open {
  pointer-events: auto;
  opacity: 1;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  width: min(420px, 100%);
  min-height: 100vh;
  padding: 22px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  transform: translateX(110%);
  transition: transform .22s ease;
  overflow: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .34);
}

.drawer .primary {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
}

.drawer .section-head .icon-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(248, 113, 113, .52);
  background: rgba(127, 29, 29, .44);
  color: #fff7f7;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
}

.drawer .section-head .icon-btn:hover {
  border-color: rgba(254, 202, 202, .62);
  background: rgba(153, 27, 27, .64);
}

.cart-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.cart-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.cart-flyer {
  position: fixed;
  z-index: 80;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  display: grid;
  place-items: center;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--orange);
  color: var(--button-text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
  animation: cartFly .58s cubic-bezier(.2, .82, .22, 1) forwards;
}

.cart-flyer img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.cart-flyer .cart-icon {
  width: 20px;
  height: 20px;
}

@keyframes cartFly {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--cart-fly-x), var(--cart-fly-y), 0) scale(.35);
  }
}

@keyframes cartPulse {
  0%, 100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.1);
  }
}

.cart-item,
.tracking-box,
.form-panel,
.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  margin: 10px 0;
  background: color-mix(in srgb, var(--panel) 92%, var(--panel-2));
}

.cart-item img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
}

.qty {
  width: 64px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}

.qty-control {
  display: grid;
  grid-template-columns: 34px 38px 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.qty-control button {
  width: 34px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 900;
}

.qty-control span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 36px;
  color: var(--text);
  font-weight: 800;
}

.form-panel {
  max-width: 960px;
  margin: 40px auto;
  padding: clamp(20px, 4vw, 30px);
  box-shadow: var(--shadow-card);
}

.contact-page {
  min-height: calc(100vh - 78px);
  padding-top: 58px;
}

.contact-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.contact-head {
  max-width: 720px;
  margin-bottom: 26px;
}

.contact-head h1 {
  max-width: none;
  font-size: clamp(36px, 5vw, 58px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 22px;
  align-items: start;
}

.contact-grid.quote-only {
  grid-template-columns: minmax(360px, 720px);
}

.contact-card {
  margin: 0;
  max-width: none;
  min-height: 100%;
  box-shadow: var(--shadow-card);
}

.contact-card h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

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

.field {
  display: grid;
  gap: 7px;
}

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

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, var(--panel));
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.password-field input {
  width: 100%;
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel-2) 82%, #000000);
  color: var(--muted);
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--cyan) 62%, var(--line));
  color: var(--cyan);
}

.password-toggle svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .18s ease;
}

.whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.42);
}

.whatsapp svg {
  width: 32px;
  height: 32px;
  display: block;
  fill: currentColor;
}

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

.footer {
  margin-top: 48px;
  padding: 54px clamp(16px, 5vw, 64px) 32px;
  border-top: 1px solid var(--line);
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 94%, #000000);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(24px, 5vw, 68px);
  color: var(--text);
}

.footer h2 {
  margin: 0 0 28px;
  max-width: 340px;
  font-size: 42px;
  line-height: 1.15;
}

.footer h3 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 18px;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 13px;
}

.footer-links a,
.footer-links span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  line-height: 1.45;
}

.footer-links .footer-copy {
  max-width: 34ch;
  color: color-mix(in srgb, var(--muted) 92%, var(--text));
  font-family: inherit;
  line-height: 1.55;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 900;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--hover);
  background: var(--panel-2);
}

.social-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.social-link-muted {
  opacity: .72;
  cursor: default;
}

.footer-contact {
  margin-top: 26px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.footer-contact div {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.footer-contact a {
  color: var(--muted);
}

.footer-small-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: currentColor;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 12px;
}

.footer-legal-links a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--secondary);
}

.footer-policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.footer-policy {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.footer-policy h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
  text-transform: uppercase;
}

.footer-policy p {
  margin: 0;
  white-space: pre-line;
  line-height: 1.5;
}

.footer-rights {
  color: var(--muted);
}

.legal-page {
  padding-top: 44px;
}

.legal-wrap {
  width: min(980px, 100%);
  margin: 0 auto;
}

.legal-head {
  margin-bottom: 22px;
}

.legal-head h1 {
  max-width: 860px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
}

.legal-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.legal-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--secondary) 50%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--secondary) 10%, transparent);
  color: var(--text);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.step {
  min-height: 76px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
}

.step.active,
.step.done {
  color: var(--text);
  border-color: var(--cyan);
}

.admin-layout {
  position: fixed;
  inset: 0;
  width: 100vw;
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 100vh;
  overflow: hidden;
}

.admin-mobile-topbar,
.admin-sidebar-backdrop {
  display: none;
}

.sidebar {
  padding: 18px;
  background: #0b0c0f;
  border-right: 1px solid var(--line);
  height: 100vh;
  overflow-y: auto;
}

.sidebar button {
  width: 100%;
  margin: 6px 0;
  justify-content: center;
}

.sidebar button.is-active {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--panel-2) 72%, var(--orange));
}

.nav-badge-btn {
  position: relative;
  overflow: visible;
}

.nav-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0b0c0f;
  border-radius: 999px;
  background: var(--orange);
  color: var(--button-text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

.danger-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--danger);
  color: #fff;
  font-weight: 900;
}

.admin-confirm {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(3px);
}

.admin-confirm-card {
  width: min(460px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.admin-confirm-card h2,
.admin-confirm-card p {
  margin: 0;
}

.admin-confirm-card p {
  margin-top: 10px;
  line-height: 1.45;
}

.admin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.admin-main {
  padding: 24px;
  height: 100vh;
  overflow-y: auto;
}

.admin-page-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1;
}

.admin-panel {
  padding: 20px;
  margin: 16px 0;
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.dashboard-panel {
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.system-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 12px 0 10px;
}

.system-status-item {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.system-status-item span,
.system-status-item small {
  color: var(--muted);
}

.system-status-item strong {
  color: var(--cyan);
}

.system-status-item.warn {
  border-color: color-mix(in srgb, var(--orange) 62%, var(--line));
}

.system-status-item.warn strong {
  color: var(--orange);
}

.metric-grid > div {
  min-height: 120px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.metric-grid > div small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-grid strong {
  font-size: 28px;
}

.analytics-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 2px;
}

.analytics-head h2,
.analytics-head p {
  margin: 0;
}

.analytics-head p {
  margin-top: 6px;
}

.analytics-filters {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.analytics-filters .field {
  min-width: 150px;
}

.analytics-filters .primary {
  min-height: 40px;
  padding: 0 18px;
}

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

.interaction-metrics > div {
  min-height: 104px;
  padding: 16px;
  gap: 6px;
}

.interaction-metrics strong {
  font-size: 30px;
  line-height: 1;
}

.ad-performance-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  gap: 12px;
  align-items: center;
  min-height: 126px;
  margin: 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--cyan) 26%, var(--line));
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 10%, var(--panel)), var(--panel-2));
}

.ad-performance-panel h3,
.ad-performance-panel p {
  margin: 0;
}

.ad-performance-panel .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cyan) 16%, transparent);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-performance-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ad-performance-metrics div {
  min-height: 78px;
  min-width: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 76%, transparent);
}

.ad-performance-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ad-performance-metrics strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--text);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.analytics-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 12px;
  min-height: 430px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-2) 70%, transparent);
}

.analytics-card-head h3 {
  margin: 0;
  min-height: 44px;
  font-size: 19px;
  line-height: 1.1;
}

.analytics-card-head p {
  margin: 5px 0 0;
  min-height: 38px;
}

.analytics-ranking {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 340px;
  min-height: 0;
  overflow: auto;
  padding-right: 3px;
}

.analytics-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.analytics-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--cyan) 16%, transparent);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.analytics-row-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.analytics-row-title {
  min-width: 0;
  display: grid;
  gap: 1px;
}

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

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

.analytics-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 52%, transparent);
}

.analytics-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.analytics-row-value {
  min-width: 34px;
  text-align: right;
  font-size: 17px;
  font-weight: 900;
}

.analytics-edit {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

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

.form-actions.full {
  grid-column: 1 / -1;
}

.form-actions .primary,
.form-actions .secondary {
  width: auto;
  min-width: 132px;
}

.scroll-list {
  max-height: min(52vh, 620px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scroll-list-sm {
  max-height: min(34vh, 360px);
}

.scroll-list table {
  min-width: 900px;
}

.scroll-list thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
}

.scroll-list > .ad-list-card:first-child {
  margin-top: 0;
}

.config-form {
  display: grid;
  gap: 18px;
}

.product-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: start;
}

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

.banner-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 22px;
  align-items: start;
}

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

.product-preview-panel {
  position: sticky;
  top: 96px;
}

.banner-preview-panel {
  position: sticky;
  top: 96px;
}

.product-preview-panel .product-card {
  max-width: 230px;
}

.product-images-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-2) 68%, transparent);
}

.product-images-preview > p {
  margin: 0;
}

.image-preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.image-preview-head span {
  font-size: 13px;
  font-weight: 850;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 9px;
}

.image-preview-tile {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
  text-align: left;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.image-preview-tile:hover {
  transform: translateY(-1px);
  border-color: var(--hover);
}

.image-preview-tile.active {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--panel) 84%, var(--orange));
  color: var(--text);
}

.image-preview-tile img {
  width: 100%;
  aspect-ratio: 1 / .78;
  object-fit: cover;
  border-radius: 6px;
  background: var(--panel-2);
}

.image-preview-tile span {
  justify-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-2) 88%, transparent);
  font-size: 11px;
  font-weight: 850;
}

.image-preview-tile.active span {
  background: var(--orange);
  color: var(--button-text);
}

.footer-editor {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.footer-form {
  display: grid;
  gap: 16px;
}

.admin-section-title h2,
.admin-section-title p {
  margin: 0;
}

.admin-section-title {
  display: grid;
  gap: 4px;
}

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

.switch-row {
  min-height: 54px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 800;
}

.switch-row input {
  appearance: none;
  width: 46px;
  height: 26px;
  position: relative;
  flex: 0 0 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
}

.switch-row input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .18s ease, background .18s ease;
}

.switch-row input:checked {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, .18);
}

.switch-row input:checked::after {
  transform: translateX(20px);
  background: var(--cyan);
}

.footer-preview-panel {
  position: static;
}

.footer-preview {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(120px, 1fr));
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101114;
}

.footer-preview h2 {
  margin: 0 0 20px;
  line-height: 1.1;
}

.footer-preview h3 {
  margin: 0 0 14px;
  font-size: 14px;
  text-transform: uppercase;
}

.footer-preview .social-link {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.footer-preview-policies {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.footer-preview-policies section {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-2) 74%, transparent);
}

.footer-preview-policies h4 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
}

.footer-preview-policies p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-line;
}

.appearance-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.appearance-form {
  display: grid;
  gap: 12px;
}

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

.theme-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.theme-card {
  min-height: 88px;
  padding: 10px;
  display: grid;
  gap: 10px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.theme-card:hover {
  transform: translateY(-2px);
  border-color: var(--hover);
}

.theme-card.active {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.theme-select {
  width: 100%;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.theme-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.theme-actions .secondary {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.theme-actions .danger-lite {
  margin-left: auto;
}

.theme-add-card {
  place-items: center;
  align-content: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 900;
  color: var(--cyan);
  cursor: pointer;
}

.danger-lite {
  border-color: rgba(239, 68, 68, .55);
  color: #fecaca;
}

.theme-protected-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(34, 211, 238, .35);
  border-radius: var(--radius);
  background: rgba(34, 211, 238, .08);
  color: var(--muted);
}

.theme-protected-note strong {
  color: var(--text);
}

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

.compact-actions .primary,
.compact-actions .secondary {
  width: auto;
  min-width: 190px;
  padding-inline: 18px;
}

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

.color-field {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.color-field .color-label {
  grid-column: 1 / -1;
  font-weight: 900;
}

.color-field .color-help {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}

.color-field input[type="color"] {
  width: 58px;
  height: 50px;
  padding: 4px;
  cursor: pointer;
}

.color-field input[type="text"] {
  align-self: stretch;
  min-height: 50px;
}

.config-header-preview {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-2) 82%, #000000);
}

.config-header-preview > p {
  margin: 0;
}

.config-header-bar {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 14, 18, .88);
  overflow: hidden;
}

.config-preview-brand {
  flex: 0 0 auto;
}

.config-preview-brand .brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.config-preview-brand .brand-copy {
  max-width: 260px;
}

.config-preview-nav {
  flex: 0 0 auto;
}

.config-preview-nav span {
  color: var(--muted);
  font-weight: 800;
}

.config-preview-search {
  flex: 1 1 260px;
  min-width: 180px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 86%, #000000);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.config-preview-cart {
  flex: 0 0 52px;
  position: relative;
}

.password-panel {
  margin-top: 18px;
}

.password-form-grid {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.password-form-grid .form-actions {
  justify-content: flex-start;
}

.consultation-inbox {
  display: grid;
  gap: 16px;
}

.consultation-mailbox {
  display: grid;
  gap: 14px;
}

.compact-metrics {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  max-width: 560px;
}

.compact-metrics > div {
  min-height: 72px;
  padding: 12px 14px;
  gap: 4px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-2) 82%, var(--bg));
}

.compact-metrics strong {
  font-size: 22px;
}

.consultation-scroll {
  max-height: calc(100vh - 330px);
  min-height: 260px;
}

.consultation-board {
  display: grid;
  gap: 12px;
}

.consultation-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.consultation-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.consultation-header h3 {
  margin: 8px 0 2px;
  font-size: 21px;
}

.consultation-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.contact-chip,
.quote-image {
  min-height: 40px;
  padding: 9px 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  word-break: break-word;
}

.contact-chip[aria-disabled="true"] {
  pointer-events: none;
  color: var(--muted);
}

.quote-message {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
}

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

.consultation-actions .secondary,
.consultation-actions .primary-soft {
  width: auto;
  min-height: 38px;
  padding-inline: 13px;
  text-decoration: none;
}

.primary-soft {
  border-color: rgba(255, 122, 26, .65);
  background: rgba(255, 122, 26, .12);
  color: var(--text);
}

.empty-state {
  padding: 20px;
}

.mailbox-shell {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 80%, var(--bg));
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, .18);
}

.mailbox-head {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(260px, 1.4fr) minmax(110px, .35fr);
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: color-mix(in srgb, var(--panel-2) 65%, var(--bg));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mailbox-list {
  max-height: calc(100vh - 400px);
  min-height: 280px;
  overflow: auto;
  scrollbar-color: color-mix(in srgb, var(--cyan) 50%, var(--line)) transparent;
  scrollbar-width: thin;
}

.mail-row {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(260px, 1.4fr) minmax(110px, .35fr);
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 88%, var(--bg));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.mail-row:hover {
  background: color-mix(in srgb, var(--panel-2) 92%, var(--cyan));
}

.mail-row.unread {
  background: color-mix(in srgb, var(--panel) 92%, var(--orange));
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--orange) 72%, var(--panel));
}

.mail-row .status {
  width: max-content;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.mail-state {
  justify-items: start;
}

.mail-state .status {
  min-width: 76px;
  justify-content: center;
  color: var(--muted);
}

.mail-state .status-warn {
  color: color-mix(in srgb, var(--orange) 82%, var(--text));
}

.mail-state .status-ok {
  color: #86efac;
}

.mail-sender,
.mail-subject,
.mail-state {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mail-sender strong,
.mail-subject strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-sender strong {
  font-size: 14px;
}

.mail-subject strong {
  font-size: 14px;
  font-weight: 800;
}

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

.mail-subject {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.mail-subject small {
  grid-column: 2;
}

.consultation-modal {
  position: fixed;
  inset: 0;
  z-index: 135;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(4px);
}

.mail-dialog {
  width: min(650px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto auto minmax(84px, 1fr) auto auto;
  gap: 10px;
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 94%, var(--bg));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .46);
}

.mail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(239, 68, 68, .5);
  border-radius: 999px;
  background: rgba(239, 68, 68, .18);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}

.mail-close:hover {
  background: var(--danger);
  border-color: var(--danger);
}

.mail-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-right: 40px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.mail-dialog-head h2 {
  margin: 6px 0 3px;
  font-size: 20px;
  line-height: 1.12;
}

.mail-dialog-head .status {
  padding: 3px 8px;
  font-size: 11px;
}

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

.mail-from div {
  min-height: 52px;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-2) 82%, var(--bg));
  min-width: 0;
}

.mail-from span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mail-from a {
  color: color-mix(in srgb, var(--cyan) 82%, var(--text));
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mail-from strong,
.mail-from a {
  font-size: 13px;
  line-height: 1.25;
}

.mail-body {
  min-height: 90px;
  max-height: 190px;
  padding: 13px 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 86%, #000);
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
}

.mail-body p {
  margin: 0;
}

.mail-state-editor,
.mail-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.mail-state-editor {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-2) 84%, var(--bg));
}

.mail-state-editor > span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.nav-badge[hidden] {
  display: none !important;
}

.mail-state-editor .secondary,
.mail-actions .secondary,
.mail-actions .primary-soft {
  width: auto;
  min-height: 32px;
  padding-inline: 11px;
  border-radius: 9px;
  font-size: 12px;
  text-decoration: none;
}

.mail-state-editor .secondary.is-selected {
  border-color: color-mix(in srgb, var(--cyan) 58%, var(--line));
  background: rgba(34, 211, 238, .10);
  color: var(--text);
}

.mail-actions {
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.mail-actions .mail-action-quiet {
  margin-left: auto;
}

.mail-actions .mail-action-main {
  border-color: color-mix(in srgb, var(--cyan) 34%, var(--line));
  background: color-mix(in srgb, var(--panel-2) 88%, var(--cyan));
}

.mail-actions .mail-action-danger {
  border-color: rgba(239, 68, 68, .42);
  background: rgba(239, 68, 68, .08);
  color: #fecaca;
}

.appearance-preview {
  position: sticky;
  top: 22px;
}

.theme-preview-surface {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  justify-items: start;
}

.theme-preview-surface .product-card {
  max-width: 230px;
}

.advertising-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(430px, 1fr);
  gap: 16px;
  align-items: start;
}

.advertising-sections {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
  overflow: visible;
}

.advertising-form {
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: visible;
}

.advertising-form h2,
.advertising-list h2 {
  margin: 0;
}

.ad-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

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

.segmented label {
  min-height: 40px;
  display: grid;
  position: relative;
  cursor: pointer;
}

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

.segmented span {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.segmented label:hover span {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--cyan) 52%, var(--line));
  background: color-mix(in srgb, var(--panel-2) 84%, var(--cyan));
}

.segmented input:checked + span {
  color: #061216;
  background: var(--cyan);
  border-color: var(--cyan);
}

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

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
}

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

.ad-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ad-summary-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 94%, var(--bg));
}

.ad-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ad-summary-card strong {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  line-height: 1;
}

.ad-summary-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.ad-create-grid,
.ad-manage-grid {
  display: grid;
  gap: 14px;
}

.ad-create-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(540px, 100%), 1fr));
  align-items: start;
}

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

.ad-create-grid {
  align-items: start;
  margin-top: 12px;
}

.ad-manage-grid {
  align-items: start;
  margin-top: 14px;
}

.ad-create-column {
  display: grid;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.slider-behavior-box {
  background: color-mix(in srgb, var(--panel-2) 72%, var(--bg));
}

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

.slider-behavior-head > span {
  color: var(--text);
  font-weight: 850;
}

.slider-behavior-box .form-grid {
  margin-top: 2px;
}

.ad-creator-card {
  height: auto;
  min-height: 0;
  align-self: start;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.ad-creator-card.is-editing {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cyan) 60%, transparent), 0 16px 34px rgba(0, 0, 0, .16);
}

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

.ad-form-head h2,
.ad-form-head p {
  margin: 0;
}

.ad-box .segmented:has(label:nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ad-destination-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.ad-destination-btn {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 92%, #000000);
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.ad-destination-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--cyan) 58%, var(--line));
  background: color-mix(in srgb, var(--panel-2) 78%, var(--cyan));
  color: var(--text);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.ad-destination-btn.is-selected {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #061216;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--cyan) 20%, transparent);
}

.ad-destination-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--cyan) 72%, #ffffff);
  outline-offset: 2px;
}

.ad-destination-box {
  overflow: visible;
}

.ad-destination-field {
  display: block;
  min-height: 58px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 68%, transparent);
}

.ad-destination-field .field,
.ad-destination-field .muted {
  margin: 0;
}

[data-ad-category-destination],
[data-ad-product-destination],
[data-ad-custom-destination] {
  margin-top: 2px;
}

.ad-box:has(.ad-destination-options) {
  align-content: start;
}

.origin-propia {
  border-color: rgba(34, 211, 238, .2);
  background: rgba(34, 211, 238, .08);
  color: var(--cyan);
}

.origin-tercero {
  border-color: rgba(244, 63, 139, .26);
  background: rgba(244, 63, 139, .10);
  color: color-mix(in srgb, var(--fuchsia) 82%, var(--text));
}

.ad-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 5px 0;
}

.ad-manage-grid .advertising-list {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 420px;
}

.ad-manage-grid .scroll-list {
  max-height: 520px;
  overflow: auto;
}

.advertising-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ad-section-preview {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.ad-section-preview > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-preview-frame {
  min-height: 92px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-2) 78%, var(--bg));
}

.ad-preview-frame img,
.ad-preview-frame video {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg);
}

.modal-preview-mini .ad-preview-frame {
  grid-template-columns: 110px 1fr;
  width: min(520px, 100%);
  min-height: 86px;
}

.modal-preview-mini .ad-preview-frame img,
.modal-preview-mini .ad-preview-frame video {
  aspect-ratio: 4 / 3;
}

.ad-countdown {
  margin: 4px 0 0;
  width: max-content;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid rgba(34, 211, 238, .24);
  border-radius: 999px;
  background: rgba(34, 211, 238, .08);
  color: color-mix(in srgb, var(--cyan) 82%, var(--text));
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.ad-countdown.no-expiration {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

.ad-countdown.expired {
  border-color: rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .08);
  color: #fecaca;
}

.is-hidden {
  display: none !important;
}

/* Admin refinement layer: compact, calm, and data-first. */
[data-admin-app] {
  font-size: 14px;
}

.admin-layout {
  grid-template-columns: 196px 1fr;
}

.sidebar {
  padding: 14px 12px;
}

.sidebar .brand {
  gap: 10px;
  font-size: 17px;
}

.sidebar .brand-mark {
  width: 36px;
  height: 36px;
}

.sidebar button {
  min-height: 38px;
  margin: 4px 0;
  padding: 0 12px;
  justify-content: center;
  font-size: 14px;
  font-weight: 760;
}

.sidebar .primary {
  min-height: 40px;
  margin-top: 10px;
}

.admin-main {
  padding: 18px 20px;
}

.admin-main > h1 {
  margin: 0 0 12px;
  font-size: 30px !important;
  line-height: 1.04;
}

.admin-main h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.15;
}

.admin-section-title {
  gap: 3px;
}

.admin-section-title p,
.admin-main .muted {
  font-size: 13px;
}

.admin-help-line {
  max-width: 820px;
  margin: -4px 0 14px;
  line-height: 1.45;
}

.admin-panel {
  padding: 15px;
  margin: 12px 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 94%, var(--bg));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.admin-main .primary,
.admin-main .secondary,
.admin-main .chip,
.admin-main select {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 13px;
  font-weight: 760;
}

.admin-main .icon-btn {
  min-width: 38px;
  width: 38px;
  height: 38px;
}

.form-grid {
  gap: 11px;
}

.field {
  gap: 5px;
}

.field span {
  font-size: 13px;
  font-weight: 760;
}

.field input,
.field textarea,
.field select {
  min-height: 40px;
  padding: 9px 11px;
  font-size: 14px;
}

.field textarea {
  min-height: 96px;
}

.form-actions {
  gap: 8px;
}

.metric-grid {
  gap: 10px;
}

.metric-grid > div {
  min-height: 78px;
  padding: 13px 14px;
  gap: 4px;
  align-content: center;
  border-radius: 10px;
}

.metric-grid strong {
  font-size: 22px;
  line-height: 1.1;
}

.dashboard-metrics {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  max-width: 760px;
  margin-bottom: 12px;
}

.dashboard-panel .interaction-metrics > div {
  min-height: 104px;
  padding: 16px;
  gap: 6px;
}

.dashboard-panel .interaction-metrics strong {
  font-size: 30px;
  line-height: 1;
}

.report-actions {
  margin: 4px 0 12px;
  gap: 8px;
}

.admin-main table {
  font-size: 13px;
}

.admin-main th,
.admin-main td {
  padding: 8px 10px;
}

.admin-main th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-main .status {
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 760;
}

.table-toolbar {
  align-items: end;
  gap: 10px;
}

.table-toolbar .field {
  min-width: 190px;
}

.scroll-list {
  max-height: min(46vh, 520px);
}

.scroll-list-sm {
  max-height: min(30vh, 300px);
}

.product-editor,
.banner-editor,
.appearance-editor,
.advertising-layout {
  gap: 16px;
}

.appearance-editor {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  gap: 14px;
}

.product-editor,
.config-form,
.footer-form,
.appearance-form,
.advertising-form,
.advertising-list {
  max-height: calc(100vh - 118px);
  overflow: auto;
}

.product-editor {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
}

.product-preview-panel {
  top: 78px;
}

.product-preview-panel .product-card,
.theme-preview-surface .product-card {
  max-width: 210px;
}

.appearance-preview {
  max-height: calc(100vh - 118px);
  overflow: hidden;
}

.theme-preview-surface {
  gap: 8px;
  padding: 10px;
}

.theme-preview-surface .brand {
  gap: 8px;
  font-size: 14px;
}

.theme-preview-surface .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.theme-preview-surface .product-card {
  max-width: 168px;
}

.theme-preview-surface .product-card img {
  aspect-ratio: 16 / 9;
}

.theme-preview-surface .product-body {
  min-height: 112px;
  padding: 8px;
}

.theme-preview-surface .product-meta {
  font-size: 10px;
}

.theme-preview-surface .product-card h3 {
  min-height: 25px;
  margin-top: 3px;
  font-size: 12px;
}

.theme-preview-surface .product-card .muted {
  min-height: 22px;
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.25;
}

.theme-preview-surface .product-card .price {
  margin-bottom: 6px;
  font-size: 12px;
}

.theme-preview-surface .product-actions {
  grid-template-columns: 1fr 30px;
  gap: 5px;
}

.theme-preview-surface .product-actions-single {
  grid-template-columns: 1fr;
}

.theme-preview-surface .product-card .primary,
.theme-preview-surface .product-card .secondary {
  min-height: 28px;
  padding: 0 7px;
  font-size: 10px;
}

.theme-preview-surface .cart-card-btn {
  width: 30px;
}

.theme-preview-surface > .row {
  gap: 6px;
}

.theme-preview-surface > .row .primary,
.theme-preview-surface > .row .secondary {
  min-height: 30px;
  padding-inline: 10px;
  font-size: 11px;
}

.theme-preview-surface > .row .status {
  padding: 6px 9px;
  font-size: 10px;
}

.product-preview-panel > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-main .product-card h3 {
  font-size: 15px;
}

.admin-main .product-card .price {
  font-size: 15px;
}

.footer-form,
.config-form,
.appearance-form,
.advertising-form {
  gap: 12px;
}

.admin-main .ad-create-grid .advertising-form {
  max-height: none;
  overflow: visible;
}

.admin-main .ad-manage-grid .advertising-list {
  max-height: none;
  overflow: visible;
}

.admin-main .ad-manage-grid .scroll-list {
  max-height: min(42vh, 420px);
  overflow: auto;
}

.ad-destination-options {
  align-items: stretch;
}

.ad-destination-options label,
.ad-destination-options span {
  min-width: 0;
}

[data-ad-category-destination],
[data-ad-product-destination],
[data-ad-custom-destination] {
  min-width: 0;
}

.toggle-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.switch-row {
  min-height: 46px;
  padding: 9px 10px;
  font-size: 13px;
}

.footer-preview {
  padding: 18px;
  gap: 18px;
}

.footer-preview h2 {
  margin-bottom: 14px;
  font-size: 34px !important;
}

.theme-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.theme-card {
  position: relative;
  min-height: 58px;
  padding: 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-2) 72%, var(--panel));
  box-shadow: none;
  overflow: hidden;
}

.theme-select {
  min-height: 36px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.color-grid {
  grid-template-columns: repeat(auto-fit, minmax(218px, 1fr));
  gap: 9px;
}

.color-field {
  grid-template-columns: 40px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 4px 9px;
  min-height: 72px;
  padding: 9px;
  border-radius: 10px;
}

.color-field input[type="color"] {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.color-field input[type="text"] {
  grid-column: 3;
  grid-row: 1 / 3;
  min-height: 36px;
  padding-inline: 8px;
  text-align: center;
  font-size: 13px;
}

.color-field .color-label {
  grid-column: 2;
  grid-row: 1;
  font-size: 13px;
  line-height: 1.15;
}

.color-field .color-help {
  grid-column: 2;
  grid-row: 2;
  font-size: 11px;
  line-height: 1.25;
}

.theme-card::after {
  content: "";
  position: absolute;
  inset: auto 10px 8px 10px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.theme-card.active {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cyan) 70%, transparent), 0 12px 24px rgba(0, 0, 0, .12);
}

.theme-card.active::after {
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.theme-actions {
  gap: 5px;
}

.theme-actions .secondary {
  min-height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 11px;
}

.theme-actions .danger-lite {
  margin-left: 0;
}

.theme-add-card {
  gap: 0;
  color: var(--cyan);
  background: transparent;
  border-style: dashed;
  min-height: 58px;
}

.theme-add-card span {
  font-size: 24px;
  line-height: 1;
}

.theme-add-card small {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.compact-actions {
  gap: 8px;
}

.compact-actions .primary,
.compact-actions .secondary {
  min-width: 150px;
  width: auto;
  min-height: 38px;
}

.advertising-layout {
  grid-template-columns: minmax(290px, 390px) minmax(420px, 1fr);
  min-height: 0;
  align-items: stretch;
  overflow: visible;
}

.category-form {
  max-width: 700px;
  grid-template-columns: minmax(220px, 1fr) 96px 130px;
  align-items: end;
  gap: 9px 10px;
  padding: 13px;
}

.category-form .field.full {
  grid-column: auto;
}

.category-form label:nth-of-type(4) {
  grid-column: 1 / 3;
}

.category-form textarea {
  min-height: 36px;
  max-height: 58px;
}

.category-form .form-actions.full {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.advertising-sections .advertising-list {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 8px;
  margin: 0;
  max-height: none;
  min-height: 0;
  overflow: visible;
}

.advertising-sections {
  height: auto;
  align-content: start;
}

.advertising-sections .advertising-head {
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.advertising-sections .ad-section-preview {
  margin-bottom: 0;
}

.advertising-sections .ad-preview-frame {
  min-height: 70px;
  grid-template-columns: 120px 1fr;
  padding: 8px;
}

.advertising-sections .modal-preview-mini .ad-preview-frame {
  min-height: 66px;
}

.advertising-sections .scroll-list {
  max-height: 360px;
  min-height: 0;
  overflow: auto;
}

.advertising-sections .empty-state {
  min-height: 82px;
}

.ad-box {
  padding: 9px;
  gap: 7px;
}

.ad-list-card {
  padding: 12px;
}

.dispatch-dialog {
  width: min(860px, 100%);
}

.empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel-2);
}

.small-field {
  min-width: 180px;
}

.ad-list-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.ad-thumb {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg);
}

.compact-row {
  gap: 6px;
}

.ad-list-stats .status {
  background: color-mix(in srgb, var(--cyan) 8%, var(--panel));
  color: var(--muted);
}

.ad-preview-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  color: var(--text);
  cursor: default;
}

.ad-preview-card img,
.ad-preview-card video {
  width: 96px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

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

.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(7px);
}

.ad-modal-card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  max-height: min(86vh, 720px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 96%, #050607);
  box-shadow: 0 28px 84px rgba(0, 0, 0, .46);
}

.ad-modal-card img,
.ad-modal-card video {
  width: 100%;
  max-height: min(340px, 48vh);
  object-fit: cover;
  display: block;
}

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

.ad-modal-body {
  display: grid;
  gap: 12px;
  padding: 18px;
  overflow: visible;
}

.ad-modal-body[hidden] {
  display: none;
}

.ad-disclosure {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .35);
  color: var(--cyan);
  background: rgba(34, 211, 238, .12);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-modal-body h2,
.ad-modal-body p {
  margin: 0;
}

.ad-modal-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.ad-modal.third-party-ad .ad-modal-body h2:empty,
.ad-modal.third-party-ad .ad-modal-body p:empty {
  display: none;
}

.ad-modal.third-party-ad .ad-modal-body .primary {
  pointer-events: none;
  width: fit-content;
  min-height: 0;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--cyan) 42%, transparent);
  background: color-mix(in srgb, var(--panel-2) 82%, transparent);
  color: var(--cyan);
  box-shadow: none;
  cursor: default;
  font-size: 14px;
}

@media (min-width: 760px) {
  .ad-modal-card {
    width: min(690px, calc(100vw - 96px));
    max-height: min(76vh, 540px);
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(190px, .68fr);
  }

  .ad-modal-card [data-ad-modal-media] {
    min-height: clamp(280px, 34vw, 400px);
  }

  .ad-modal-card img,
  .ad-modal-card video {
    height: 100%;
    max-height: none;
  }

  .ad-modal-body {
    align-content: center;
    gap: 16px;
    padding: 32px 22px 28px 22px;
  }

  .ad-modal-body h2 {
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.02;
    letter-spacing: 0;
  }

  .ad-modal-body p {
    font-size: 18px;
    color: var(--muted);
  }

  .ad-modal-body .primary {
    width: fit-content;
    min-width: 160px;
    min-height: 44px;
    padding: 0 28px;
    font-size: 16px;
    box-shadow: 0 12px 34px rgba(255, 116, 23, .22);
  }

  .ad-modal-close {
    color: #fff7f7;
  }

  .ad-modal.media-only .ad-modal-card {
    display: block;
    width: min(640px, calc(100vw - 96px));
  }

  .ad-modal.media-only .ad-modal-card [data-ad-modal-media] {
    min-height: 0;
  }

  .ad-modal.media-only .ad-modal-card img,
  .ad-modal.media-only .ad-modal-card video {
    width: 100%;
    height: auto;
    max-height: min(76vh, 560px);
    object-fit: contain;
    background: color-mix(in srgb, var(--panel-2) 76%, #000);
  }
}

@media (min-width: 700px) and (max-height: 640px) {
  .ad-modal {
    padding: 10px;
  }

  .ad-modal-card {
    width: min(660px, 88vw);
    max-height: 86vh;
    display: grid;
    grid-template-columns: minmax(310px, 1.12fr) minmax(200px, .72fr);
  }

  .ad-modal-card [data-ad-modal-media] {
    min-height: 0;
  }

  .ad-modal-card img,
  .ad-modal-card video {
    height: 100%;
    max-height: 86vh;
    object-fit: cover;
  }

  .ad-modal-body {
    align-content: center;
    max-height: 86vh;
    padding: 24px 24px 22px;
  }

  .ad-modal-body h2 {
    font-size: 28px;
    line-height: 1.05;
  }
}

@media (max-width: 520px) {
  .ad-modal-card {
    max-height: 86vh;
  }

  .ad-modal-card img,
  .ad-modal-card video {
    max-height: 38vh;
  }

  .ad-modal-body {
    padding-bottom: 18px;
  }
}

.table-toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.table-toolbar .field {
  min-width: min(320px, 100%);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, .16);
  color: var(--cyan);
  font-weight: 800;
}

.status-info {
  background: rgba(255, 122, 26, .10);
  color: color-mix(in srgb, var(--orange) 84%, var(--text));
}

.status-warn {
  background: rgba(250, 204, 21, .10);
  color: #f8dfa1;
}

.status-ok {
  background: rgba(34, 197, 94, .16);
  color: #4ade80;
}

.status-paid {
  background: rgba(59, 130, 246, .16);
  color: #60a5fa;
}

.status-preparing {
  background: rgba(250, 204, 21, .16);
  color: #fde047;
}

.status-shipped {
  background: rgba(139, 92, 246, .18);
  color: #c4b5fd;
}

.status-delivered {
  background: rgba(34, 197, 94, .16);
  color: #4ade80;
}

.status-cancelled {
  background: rgba(239, 68, 68, .16);
  color: #f87171;
}

.status-pending {
  background: rgba(148, 163, 184, .14);
  color: #cbd5e1;
}

.input-warning {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .16) !important;
}

.dispatch-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .66);
  backdrop-filter: blur(8px);
}

.dispatch-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--hover));
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--cyan) 10%, transparent), transparent 32%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 96%, #ffffff), var(--panel));
  box-shadow: 0 26px 90px rgba(0, 0, 0, .48);
}

.dispatch-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--danger) 70%, #ffffff);
  background: var(--danger);
  color: #ffffff;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .26);
}

.product-modal-close,
.ad-modal-close,
.mail-close,
.dispatch-close {
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 113, 113, .52);
  border-radius: 11px;
  background: rgba(127, 29, 29, .44);
  color: #ffffff;
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
}

.product-modal-close::before,
.ad-modal-close::before,
.mail-close::before,
.dispatch-close::before {
  content: "×";
  display: block;
  transform: translateY(-1px);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.product-modal-close:hover,
.ad-modal-close:hover,
.mail-close:hover,
.dispatch-close:hover {
  transform: translateY(-1px);
  background: rgba(220, 38, 38, .78);
  border-color: rgba(255, 255, 255, .42);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .34);
}

.product-modal-close::before,
.ad-modal-close::before,
.mail-close::before,
.dispatch-close::before {
  content: "\00d7";
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform: translateY(-1px);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.ad-modal-close::before {
  transform: translateY(-1px);
  font-size: 27px;
  font-weight: 800;
}

.ad-modal-close {
  background: rgba(127, 29, 29, .44);
  border-color: rgba(248, 113, 113, .52);
  color: #fff7f7;
}

.ad-modal-close:hover {
  background: rgba(153, 27, 27, .64);
  border-color: rgba(254, 202, 202, .62);
}

.product-dialog,
.mail-dialog,
.ad-modal-card,
.dispatch-dialog {
  border-color: rgba(255, 255, 255, .11);
  border-radius: 14px;
  box-shadow: 0 28px 84px rgba(0, 0, 0, .46);
}

.product-modal,
.consultation-modal,
.ad-modal,
.dispatch-modal,
.admin-confirm {
  backdrop-filter: blur(8px);
}

.dispatch-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-right: 48px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.dispatch-head h2 {
  margin-top: 10px;
  max-width: 17ch;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.dispatch-head .muted + .muted {
  display: none;
}

.dispatch-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dispatch-kicker > span:first-child {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, .16);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dispatch-summary,
.dispatch-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

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

.dispatch-stats div {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-2) 78%, transparent);
}

.dispatch-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dispatch-stats strong {
  align-self: end;
  font-size: 14px;
  line-height: 1.25;
}

.shipping-label {
  display: grid;
  gap: 8px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-2) 74%, transparent);
}

.shipping-label span {
  color: var(--muted);
}

.free-shipping-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-top: 2px;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, #22c55e 40%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, #22c55e 16%, transparent);
  color: #4ade80;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.dispatch-summary summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.dispatch-products {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-2) 48%, transparent);
}

.dispatch-items {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.dispatch-items div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.dispatch-section-title h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.dispatch-section-title p {
  margin: 0;
}

.email-preview-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--cyan) 42%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-2) 86%, #ffffff);
  color: #16181d;
}

.preview-label {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cyan) 18%, #ffffff);
  color: #07313a;
  border: 1px solid color-mix(in srgb, var(--cyan) 50%, #ffffff);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.email-subject {
  padding: 9px 11px;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-weight: 900;
}

.email-preview-body {
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  color: #20242c;
  line-height: 1.5;
}

.email-preview-body p {
  margin: 0 0 12px;
}

@media (min-width: 620px) {
  .dispatch-dialog {
    width: min(900px, calc(100vw - 36px));
  }

  .dispatch-form {
    grid-template-columns: minmax(260px, .92fr) minmax(300px, 1fr);
    align-items: start;
  }

  .dispatch-section-title,
  .dispatch-form .form-actions {
    grid-column: 1 / -1;
  }

  .dispatch-form .form-grid {
    grid-column: 1;
  }

  .dispatch-form .email-preview-card {
    grid-column: 2;
  }
}

.email-button {
  width: max-content;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--button-text);
  font-weight: 900;
  text-decoration: none;
}

.email-button.disabled {
  background: #d1d5db;
  color: #6b7280;
}

.email-placeholder {
  color: #9ca3af;
  font-style: italic;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: spin .7s linear infinite;
}

.admin-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 160;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .34);
  font-weight: 800;
}

.admin-toast.ok {
  border-color: rgba(34, 197, 94, .5);
}

.admin-toast.warn {
  border-color: rgba(245, 158, 11, .6);
}

.admin-toast.error {
  border-color: rgba(239, 68, 68, .7);
}

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

@media (max-width: 1180px) {
  .interaction-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ad-performance-panel {
    grid-template-columns: 1fr;
  }
  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-grid .analytics-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  body.admin-menu-open {
    overflow: hidden;
  }
  .admin-layout {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 64px 1fr;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  .admin-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, #0b0c0f 94%, var(--panel));
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  }
  .admin-mobile-topbar .brand {
    color: var(--text);
    text-decoration: none;
  }
  .admin-menu-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-2);
  }
  .admin-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform .18s ease, opacity .18s ease;
  }
  .admin-layout.menu-open .admin-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .admin-layout.menu-open .admin-menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .admin-layout.menu-open .admin-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 125;
    display: block;
    opacity: 0;
    pointer-events: none;
    border: 0;
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(3px);
    transition: opacity .2s ease;
  }
  .admin-layout.menu-open .admin-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 130;
    width: min(82vw, 310px);
    height: 100vh;
    height: 100dvh;
    padding: 18px 16px;
    border-right: 1px solid var(--line);
    box-shadow: 24px 0 70px rgba(0, 0, 0, .46);
    transform: translateX(-104%);
    transition: transform .22s ease;
  }
  .admin-layout.menu-open .sidebar {
    transform: translateX(0);
  }
  .sidebar > .brand {
    margin-bottom: 14px;
  }
  .sidebar button {
    min-height: 44px;
    margin: 6px 0;
    justify-content: flex-start;
    padding-inline: 16px;
    text-align: left;
  }
  .sidebar .primary {
    justify-content: center;
    margin-top: 14px;
  }
  .admin-main {
    grid-row: 2;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    padding: 14px;
    overflow-y: auto;
  }
  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav {
    order: 3;
    width: auto;
    overflow-x: auto;
  }
  .search-box {
    order: 4;
    width: 100%;
    max-width: none;
  }
  .search {
    width: 100%;
  }
  h1 {
    max-width: 8ch;
  }
  .form-grid,
  .contact-grid,
  .product-editor,
  .banner-editor,
  .footer-editor,
  .appearance-editor,
  .advertising-layout,
  .ad-summary-grid,
  .ad-create-grid,
  .ad-manage-grid,
  .ad-performance-panel,
  .analytics-grid,
  .interaction-metrics,
  .timeline {
    grid-template-columns: 1fr;
  }
  .ad-performance-metrics {
    grid-template-columns: 1fr;
  }
  .ad-creator-card {
    height: auto;
    min-height: 0;
  }
  .admin-main {
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    padding: 14px;
    overflow-y: auto;
  }
  .admin-main h1 {
    max-width: none;
  }
  .advertising-form,
  .advertising-list {
    margin: 10px 0;
  }
  .advertising-list {
    order: -1;
  }
  .ad-box {
    padding: 9px;
  }
  .product-preview-panel {
    position: static;
  }
  .dispatch-dialog {
    width: min(620px, 100%);
    padding: 16px;
  }
  .dispatch-head h2 {
    font-size: 25px;
  }
  .product-modal {
    padding: 12px;
    align-items: start;
    overflow-y: auto;
  }
  .product-dialog {
    width: min(620px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "gallery"
      "info"
      "purchase";
    align-content: start;
    gap: 14px;
    padding: 52px 16px 16px;
  }
  .product-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: auto;
    gap: 10px;
  }
  .product-thumbs {
    order: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    padding: 2px 0;
  }
  .product-thumbs button {
    flex: 0 0 52px;
    width: 52px;
  }
  .product-main-image {
    height: auto;
    min-height: 0;
    max-height: min(44vh, 340px);
    aspect-ratio: 4 / 3;
  }
  .product-main-image img {
    height: 100%;
    object-fit: contain;
  }
  .product-modal-info {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .product-purchase-box {
    grid-column: auto;
    margin-top: 0;
    padding: 0;
  }
  .product-purchase-box .primary,
  .product-purchase-box .secondary {
    width: 100%;
    min-height: 38px;
  }
  .banner-preview-panel {
    position: static;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .catalog-controls {
    width: 100%;
    justify-items: start;
  }
  .category-tabs {
    width: 100%;
    justify-content: flex-start;
  }
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .category-tabs .chip {
    flex: 0 0 auto;
  }
  .catalog-status {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .catalog-group-head {
    align-items: start;
    flex-direction: column;
  }
  .catalog-group-head .secondary {
    min-height: 36px;
  }
  .catalog-more-rubros {
    align-items: start;
    flex-direction: column;
  }
  .category-modal {
    align-items: end;
    padding: 12px;
  }
  .category-dialog {
    width: 100%;
    max-height: 86dvh;
    padding: 18px;
    border-radius: 14px 14px 10px 10px;
  }
  .category-option {
    min-height: 54px;
  }
  .category-option.active::after {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-preview-panel {
    position: static;
  }
  .appearance-preview {
    position: static;
  }
  .footer-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: auto;
    padding: 10px 14px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-copy small {
    display: none;
  }

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

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

  .product-body {
    min-height: 176px;
    padding: 10px;
  }

  .product-card h3 {
    min-height: 36px;
    font-size: 15px;
  }

  .product-card .muted {
    min-height: 31px;
    font-size: 12px;
  }

  .product-actions {
    grid-template-columns: 1fr 38px;
    gap: 7px;
  }

  .product-card .primary,
  .product-card .secondary {
    min-height: 36px;
    padding: 0 8px;
    font-size: 11px;
  }

  .cart-card-btn {
    width: 38px;
  }

  .dispatch-modal {
    padding: 8px;
  }

  .dispatch-dialog {
    padding: 13px;
  }

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

  .product-modal {
    padding: 8px;
  }

  .product-dialog {
    padding: 12px;
    padding-top: 48px;
  }

  .product-main-image {
    min-height: 0;
    max-height: 40vh;
    aspect-ratio: 4 / 3;
  }

  .product-modal-info h2 {
    max-width: none;
    padding-right: 0;
    font-size: 23px;
  }

  .product-modal-info p {
    font-size: 13px;
  }

  .product-modal-info .price {
    font-size: 23px;
  }

  .product-purchase-box > div {
    gap: 8px;
    margin-bottom: 4px;
  }

  .product-purchase-box .primary,
  .product-purchase-box .secondary {
    font-size: 13px;
  }

  .section {
    padding: 38px 14px;
  }
}

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

.product-modal-close::before,
.product-modal-close::after,
.ad-modal-close::before,
.ad-modal-close::after,
.mail-close::before,
.mail-close::after,
.dispatch-close::before,
.dispatch-close::after,
.drawer .section-head .icon-btn::before,
.drawer .section-head .icon-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.product-modal-close::before,
.ad-modal-close::before,
.mail-close::before,
.dispatch-close::before,
.drawer .section-head .icon-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.product-modal-close::after,
.ad-modal-close::after,
.mail-close::after,
.dispatch-close::after,
.drawer .section-head .icon-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.drawer .section-head .icon-btn {
  position: relative;
  font-size: 0;
}
