:root {
  --bg: #f7f7f3;
  --surface: #ffffff;
  --surface-2: #f1f3f0;
  --text: #050607;
  --muted: #647174;
  --faint: #9aa4a8;
  --line: #deded8;
  --line-strong: #c9cac4;
  --header: #06100d;
  --header-soft: #081a15;
  --accent: #23e2bd;
  --accent-2: #cba653;
  --danger: #d82d3a;
  --whatsapp: #10c768;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #090a0c;
  --surface: #0d0e11;
  --surface-2: #121417;
  --text: #f5f2ea;
  --muted: #a2a9ad;
  --faint: #737b80;
  --line: #25272b;
  --line-strong: #33363b;
  --header: #08090b;
  --header-soft: #101214;
  --accent: #d8b65f;
  --accent-2: #d8b65f;
  --danger: #e13a45;
  --whatsapp: #18df7a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}

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

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

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

select {
  color-scheme: light;
}

select option {
  background: var(--surface);
  color: var(--text);
}

select optgroup {
  background: var(--surface);
  color: var(--accent-2);
  font-weight: 900;
}

select optgroup[hidden] {
  display: none;
}

select optgroup option {
  color: var(--text);
  font-weight: 500;
}

:root[data-theme="dark"] select {
  color-scheme: dark;
}

:root[data-theme="dark"] select option {
  background: #101214;
  color: #f5f2ea;
}

:root[data-theme="dark"] select optgroup {
  background: #101214;
  color: #d8b65f;
}

select option:checked {
  background: var(--accent);
  color: var(--header);
}

.site-header {
  background: linear-gradient(100deg, var(--header-soft), var(--header) 58%);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header.compact {
  margin-bottom: 54px;
}

.topbar,
.admin-header {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(300px, 420px) auto;
  align-items: center;
  gap: 28px;
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  padding: 36px 0 30px;
}

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

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
}

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

.brand strong {
  color: #fff;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
}

.brand small {
  margin-top: 4px;
  color: #b6c5c0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.search {
  display: flex;
  align-items: center;
  height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
}

.topbar .search {
  justify-self: stretch;
}

.topbar .header-actions {
  justify-self: end;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-quick-search {
  display: none;
}

.search::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 12px;
  border: 2px solid #6e7778;
  border-radius: 999px;
  box-shadow: 9px 9px 0 -7px #6e7778;
}

.search input,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.search input {
  color: #d7e2de;
  font-size: 18px;
}

.search input::placeholder {
  color: #a9bab4;
}

.search button {
  min-width: 84px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 8px 14px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.search button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.header-actions a,
.theme-toggle,
.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #c7d4d0;
  cursor: pointer;
  font-weight: 800;
}

.header-actions a:hover,
.theme-toggle:hover {
  color: var(--accent);
}

.admin-link {
  position: relative;
  width: 38px;
  min-width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 18px color-mix(in srgb, var(--accent) 12%, transparent);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.admin-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.admin-link-icon {
  position: relative;
  display: block;
  width: 21px;
  height: 21px;
}

.admin-link-icon::before,
.admin-link-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  border: 2px solid currentColor;
}

.admin-link-icon::before {
  left: 50%;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translateX(-50%);
}

.admin-link-icon::after {
  left: 3px;
  right: 3px;
  bottom: 2px;
  height: 10px;
  border-top: 0;
  border-radius: 11px 11px 5px 5px;
}

.top-whatsapp {
  gap: 8px;
  color: var(--accent) !important;
}

.catalog-link {
  position: relative;
  gap: 8px;
  min-height: 38px !important;
  border: 1px solid color-mix(in srgb, var(--accent) 46%, transparent) !important;
  border-radius: 999px !important;
  padding: 0 14px !important;
  color: #dce5e1 !important;
  background: color-mix(in srgb, var(--accent) 6%, transparent) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
  isolation: isolate;
  animation: theme-button-glow 2.8s ease-in-out infinite;
  animation-delay: 0.55s;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.catalog-link::before {
  content: "";
  width: 11px;
  height: 11px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.catalog-link::after {
  content: "";
  position: absolute;
  inset: -4px -6px;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: inherit;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  opacity: 0.42;
  animation: theme-button-halo 2.8s ease-out infinite;
  animation-delay: 0.55s;
}

.catalog-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: color-mix(in srgb, var(--accent) 13%, transparent) !important;
}

.detail-header-search {
  width: min(420px, 100%);
  justify-self: stretch;
}

.top-whatsapp img,
.whatsapp-button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.theme-toggle {
  position: relative;
  gap: 9px;
  border-radius: 999px;
  padding: 0 10px;
  color: #dce5e1;
  isolation: isolate;
  animation: theme-button-glow 2.8s ease-in-out infinite;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  inset: -4px -6px;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: inherit;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  opacity: 0.42;
  animation: theme-button-halo 2.8s ease-out infinite;
}

.theme-toggle-icon {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: var(--accent);
  box-shadow: inset -6px -5px 0 currentColor;
  animation: theme-attention 2.8s ease-in-out infinite;
}

.theme-toggle-icon::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: 0;
  animation: theme-ring 2.8s ease-out infinite;
}

:root[data-theme="light"] .theme-toggle-icon {
  box-shadow: inset 0 0 0 5px currentColor;
}

@keyframes theme-button-glow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }

  48% {
    box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 24%, transparent);
  }
}

@keyframes theme-button-halo {
  0% {
    opacity: 0.16;
    transform: scale(0.94);
  }

  45% {
    opacity: 0.5;
  }

  100% {
    opacity: 0.12;
    transform: scale(1.08);
  }
}

@keyframes theme-attention {
  0%,
  100% {
    filter: drop-shadow(0 0 0 color-mix(in srgb, var(--accent) 0%, transparent));
    transform: rotate(0deg);
  }

  45% {
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 58%, transparent));
    transform: rotate(-10deg);
  }

  60% {
    transform: rotate(8deg);
  }
}

@keyframes theme-ring {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }

  38% {
    opacity: 0.36;
  }

  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

.category-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.category-carousel::before,
.category-carousel::after {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 13px;
  z-index: 1;
  width: 72px;
  pointer-events: none;
}

.category-carousel::before {
  left: 46px;
  background: linear-gradient(90deg, var(--header), transparent);
}

.category-carousel::after {
  right: 46px;
  background: linear-gradient(270deg, var(--header), transparent);
}

.category-nav {
  display: flex;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-behavior: auto;
  scrollbar-width: none;
  padding: 8px 0;
}

.category-marquee {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

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

.category-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--accent) 46%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 7%, transparent);
  color: #a9b6b3;
  padding: 0 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.category-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  pointer-events: none;
}

.category-button:hover,
.category-button.active {
  color: #fff;
}

.category-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 78%, transparent);
  background: color-mix(in srgb, var(--surface-2) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.category-button.active {
  border-color: color-mix(in srgb, var(--accent) 88%, #fff 8%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent) 13%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), 0 12px 28px color-mix(in srgb, var(--accent) 13%, transparent);
}

.category-scroll-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 18%, transparent);
  color: var(--accent);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.category-scroll-button span {
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.category-scroll-prev span {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.category-scroll-next span {
  transform: rotate(45deg) translate(-1px, 1px);
}

.category-scroll-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 66%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 14%, transparent);
}

.category-carousel:not(.is-scrollable) .category-scroll-button {
  opacity: 0.35;
  pointer-events: none;
}

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

.contact-strip {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: 0;
  padding: 16px max(32px, calc((100% - 1380px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.32);
  color: #87908f;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.contact-strip a {
  color: var(--accent);
  letter-spacing: 0;
  text-transform: none;
}

.contact-strip a::after {
  content: " ->";
}

.catalog-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 70px;
  width: min(1380px, calc(100% - 64px));
  margin: 72px auto 72px;
}

.filters,
.login-panel,
.table-panel,
.product-form {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.filters {
  align-self: start;
  position: sticky;
  top: 24px;
}

.filter-header {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.filter-header h1,
.section-title h2,
.detail-info h1,
.admin-title h1,
.login-panel h1 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.05;
}

.filter-header h1 {
  font-size: 34px;
}

.filter-header p,
.section-title p,
.lead {
  color: var(--muted);
}

.filter-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 46px;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 62%, transparent);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.filter-search:focus-within {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.filter-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  padding: 0 12px 0 14px;
  font-size: 15px;
  font-weight: 700;
}

.filter-search input::placeholder {
  color: var(--faint);
}

.filter-search button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.filter-search button:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.filter-search-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.filter-search-icon::before,
.filter-search-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.filter-search-icon::before {
  inset: 1px 4px 5px 1px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.filter-search-icon::after {
  right: 1px;
  bottom: 2px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  color: var(--text);
  font-weight: 700;
}

.field > span,
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.field select,
.field input,
.field textarea {
  min-height: 36px;
  color: var(--text);
  font-size: 18px;
}

.field textarea {
  border: 1px solid var(--line);
  padding: 12px;
}

.native-subcategory-filter,
.native-brand-filter {
  display: none;
}

.category-picker,
.brand-picker {
  position: relative;
  gap: 14px;
  z-index: 80;
}

.category-picker-toggle,
.brand-picker-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  text-align: left;
}

.category-picker-toggle span,
.brand-picker-toggle span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-picker-toggle::after,
.brand-picker-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  justify-self: end;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.category-picker-toggle[aria-expanded="true"]::after,
.brand-picker-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.category-tree,
.brand-tree {
  position: fixed;
  left: 0;
  top: 0;
  display: grid;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  gap: 0;
  overflow-y: auto;
  border: 0;
  border-right: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 0;
  box-shadow: var(--shadow);
  z-index: 2147483647;
  isolation: isolate;
  transform: translateZ(0);
}

.category-tree {
  width: var(--category-tree-width, min(420px, 88vw));
}

.brand-tree {
  width: var(--brand-tree-width, min(360px, 84vw));
}

.category-tree[hidden],
.brand-tree[hidden] {
  display: none;
}

.category-drawer-backdrop,
.brand-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(0.5px);
  z-index: 2147483646;
}

.category-drawer-backdrop[hidden],
.brand-drawer-backdrop[hidden] {
  display: none;
}

body.drawer-open {
  overflow: hidden;
}

body.mobile-filter-open {
  overflow: hidden;
}

:root[data-theme="dark"] .category-tree,
:root[data-theme="dark"] .brand-tree {
  background: #101214;
}

.tree-menu-title {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--faint);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

:root[data-theme="dark"] .tree-menu-title {
  background: #101214;
}

.tree-all-button,
.tree-group-toggle,
.tree-subcategory-button,
.brand-all-button,
.brand-option-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.brand-options {
  display: grid;
}

.brand-all-button,
.brand-option-button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
}

.brand-all-button {
  color: var(--text);
  text-transform: uppercase;
}

.brand-option-button {
  color: var(--muted);
}

.brand-all-button span:last-child,
.brand-option-button span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-all-button:hover,
.brand-all-button.active,
.brand-option-button:hover,
.brand-option-button.active {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
}

.brand-option-button[hidden] {
  display: none;
}

.brand-check {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 5px;
  opacity: 0.82;
}

.brand-all-button.active .brand-check,
.brand-option-button.active .brand-check {
  background: var(--accent);
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--surface) 86%, transparent);
  opacity: 1;
}

.tree-all-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.tree-all-button:hover,
.tree-all-button.active {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  color: var(--accent);
}

.tree-group {
  border: 1px solid transparent;
  border-width: 0;
  border-bottom: 1px solid var(--line);
}

.tree-group[hidden],
.tree-subcategory-button[hidden] {
  display: none;
}

.tree-group.active,
.tree-group.expanded {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.tree-group-toggle {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.tree-group-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.72;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.tree-group.expanded .tree-group-toggle::after {
  transform: rotate(-135deg);
}

.tree-group-name {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-group-count {
  display: none;
}

.tree-group-toggle:hover .tree-group-name,
.tree-group.active .tree-group-name,
.tree-group.expanded .tree-group-name {
  color: var(--accent);
}

.tree-subcategories {
  display: none;
  gap: 2px;
  padding: 0;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}

.tree-group.expanded .tree-subcategories {
  display: grid;
}

.tree-subcategory-button {
  position: relative;
  min-height: 36px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  padding: 6px 12px 6px 82px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tree-category-all-button {
  color: var(--text);
  text-transform: uppercase;
}

.tree-subcategory-button::before {
  content: "";
  position: absolute;
  left: 52px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 5px;
  background: transparent;
  transform: translateY(-50%);
  opacity: 0.72;
}

.tree-subcategory-button::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: color-mix(in srgb, var(--line-strong) 76%, transparent);
}

.tree-subcategory-button:hover,
.tree-subcategory-button.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.tree-subcategory-button.active::before {
  background: var(--accent);
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--surface) 86%, transparent);
}

.tree-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: currentColor;
}

.tree-icon::before,
.tree-icon::after {
  content: "";
  display: block;
  box-sizing: border-box;
}

.tree-icon::before {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.tree-icon-cctv::before {
  border-radius: 999px;
}

.tree-icon-cctv::after {
  position: absolute;
  bottom: 3px;
  width: 12px;
  height: 2px;
  background: currentColor;
}

.tree-icon-redes::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  box-shadow: -9px 11px 0 -2px currentColor, 9px 11px 0 -2px currentColor;
}

.tree-icon-redes::after {
  position: absolute;
  top: 14px;
  width: 20px;
  height: 10px;
  border: solid currentColor;
  border-width: 0 2px 2px;
}

.tree-icon-intercomunicadores::before,
.tree-icon-sensores-contra-incendio::before,
.tree-icon-alarmas::before {
  border-radius: 999px 999px 5px 5px;
}

.tree-icon-energia::before {
  width: 12px;
  height: 20px;
  border-radius: 3px;
}

.tree-icon-energia::after {
  position: absolute;
  top: 8px;
  width: 6px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: skewX(-18deg);
}

.tree-icon-software::before {
  border-radius: 999px;
}

.tree-icon-accesorios::before {
  width: 20px;
  height: 8px;
  border-radius: 999px;
}

.tree-icon-servicios::before {
  border-radius: 3px;
  transform: rotate(45deg);
}

.reset-button,
.secondary-button,
.detail-button,
.back-link,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.reset-button {
  position: relative;
  width: 100%;
  min-height: 54px;
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
  gap: 0;
  background: color-mix(in srgb, var(--surface-2) 38%, transparent);
  color: var(--muted);
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.reset-button-copy {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  width: 100%;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.reset-button-kicker {
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.reset-button:hover,
.secondary-button:hover,
.detail-button:hover,
.back-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.reset-button:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent), 0 10px 24px color-mix(in srgb, var(--accent) 8%, transparent);
}

.reset-button.has-filters {
  border-color: color-mix(in srgb, var(--accent) 72%, #fff 8%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, transparent), color-mix(in srgb, var(--surface-2) 78%, transparent));
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent), 0 14px 34px color-mix(in srgb, var(--accent) 16%, transparent);
  animation: reset-filter-pulse 2.8s ease-in-out infinite;
}

.reset-button.has-filters .reset-button-kicker {
  color: var(--accent);
}

.reset-button.has-filters:hover,
.reset-button.has-filters:focus-visible {
  border-color: #fff0b8;
  background: linear-gradient(135deg, #fff0b8 0%, var(--accent-2) 48%, #a57a25 100%);
  color: #070809;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff8d3 45%, transparent), 0 18px 42px color-mix(in srgb, var(--accent-2) 30%, transparent);
  animation: none;
}

.reset-button.has-filters:hover .reset-button-kicker,
.reset-button.has-filters:focus-visible .reset-button-kicker {
  color: #1b1407;
}

@keyframes reset-filter-pulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent), 0 10px 24px color-mix(in srgb, var(--accent) 10%, transparent);
  }

  48% {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent), 0 17px 38px color-mix(in srgb, var(--accent) 24%, transparent);
  }
}

.section-title,
.admin-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}

.section-title h2,
.admin-title h1 {
  font-size: clamp(34px, 3.8vw, 48px);
}

.section-title p {
  margin: 0;
  min-height: 41px;
  border: 1px solid var(--line);
  padding: 10px 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-height: 220px;
}

.product-grid.loading {
  opacity: 0.68;
}

.seo-coverage-shell {
  width: min(1450px, calc(100% - 44px));
  margin: 42px auto 72px;
}

.seo-coverage-hero {
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 44%),
    var(--panel);
}

.seo-coverage-hero h1 {
  max-width: 980px;
  margin-top: 14px;
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 0.96;
}

.seo-coverage-hero p {
  max-width: 860px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.seo-coverage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.seo-coverage-section {
  margin-top: 54px;
}

.seo-product-grid {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

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

.seo-link-grid a,
.seo-location-groups a {
  border: 1px solid var(--line);
  padding: 13px 15px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.seo-link-grid a:hover,
.seo-location-groups a:hover {
  border-color: color-mix(in srgb, var(--accent) 72%, transparent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.seo-province-grid {
  margin-top: 16px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  background: transparent;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-card:nth-child(3n + 1) {
  border-left: 0;
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at 18% 0%, rgba(35, 226, 189, 0.14), transparent 33%), #07100d;
  border-bottom: 1px solid var(--line);
}

:root[data-theme="dark"] .product-media {
  background: radial-gradient(circle at 18% 0%, rgba(216, 182, 95, 0.14), transparent 34%), #101010;
}

.media-ref {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 2;
  color: #8e989b;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-media img {
  width: calc(100% - clamp(44px, 13%, 72px));
  height: calc(100% - clamp(44px, 13%, 72px));
  object-fit: contain;
  padding: 0;
  transition: transform 180ms ease;
}

.product-card:hover .product-media img,
.product-card:hover .product-icon {
  transform: scale(1.025);
}

.product-icon {
  position: relative;
  width: 50px;
  height: 50px;
  color: var(--accent);
  transition: transform 180ms ease;
}

.product-icon::before,
.product-icon::after {
  content: "";
  position: absolute;
  border: 3px solid currentColor;
}

.icon-cctv .product-icon::before {
  inset: 9px 5px 12px 5px;
  border-radius: 8px;
}

.icon-cctv .product-icon::after {
  width: 12px;
  height: 12px;
  right: 9px;
  top: 18px;
  border-radius: 999px;
  background: currentColor;
}

.icon-intercomunicadores .product-icon::before,
.icon-otros .product-icon::before {
  inset: 4px 10px;
  border-radius: 7px;
}

.icon-intercomunicadores .product-icon::after,
.icon-otros .product-icon::after {
  width: 8px;
  height: 8px;
  left: 21px;
  top: 13px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 17px 0 -1px currentColor;
}

.icon-redes .product-icon::before {
  inset: 6px;
  border-radius: 999px;
}

.icon-redes .product-icon::after {
  width: 8px;
  height: 8px;
  left: 21px;
  top: 21px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: -16px -11px 0 -1px currentColor, 16px -11px 0 -1px currentColor, 0 17px 0 -1px currentColor;
}

.icon-sensores-contra-incendio .product-icon::before {
  inset: 4px 12px 6px;
  border-radius: 999px 999px 999px 5px;
  transform: rotate(18deg);
}

.icon-sensores-contra-incendio .product-icon::after {
  inset: 19px 21px 7px;
  border-width: 0 3px 3px 0;
  transform: rotate(35deg);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 24px 28px 28px;
}

.product-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 1fr);
  gap: 8px 12px;
  min-height: 44px;
  align-content: start;
  align-items: center;
}

.product-meta span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.product-meta span:first-child,
.product-meta span:nth-child(2) {
  color: var(--accent);
}

.product-meta span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta span:nth-child(2) {
  justify-self: end;
  max-width: 100%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta span:nth-child(3) {
  grid-column: 1 / -1;
}

.product-info h3 {
  min-height: 72px;
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
}

.product-info h3 a:hover {
  color: var(--accent);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.product-footer strong,
.detail-price {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}

.product-actions {
  display: grid;
  grid-template-columns: minmax(98px, 0.85fr) minmax(150px, 1.15fr);
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.product-actions .detail-button,
.product-actions .whatsapp-button {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
}

.product-actions .detail-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.detail-actions .secondary-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.product-actions .detail-button::after,
.detail-actions .secondary-button::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -75%;
  z-index: -1;
  width: 42%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    color-mix(in srgb, var(--accent) 14%, transparent) 34%,
    color-mix(in srgb, var(--accent) 70%, #fff) 50%,
    color-mix(in srgb, var(--accent) 14%, transparent) 66%,
    transparent 100%
  );
  opacity: 0;
  transform: skewX(-18deg);
  animation: detail-gold-sweep 6.2s ease-in-out infinite;
}

@keyframes detail-gold-sweep {
  0%,
  56% {
    left: -75%;
    opacity: 0;
  }

  67% {
    opacity: 0.85;
  }

  86% {
    left: 132%;
    opacity: 0;
  }

  100% {
    left: 132%;
    opacity: 0;
  }
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--whatsapp), transparent 45%);
  padding: 0 14px;
  background: transparent;
  color: var(--whatsapp);
  font-weight: 800;
  text-align: center;
}

.whatsapp-button:hover {
  background: var(--whatsapp);
  color: #06100d;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid color-mix(in srgb, var(--whatsapp), transparent 35%);
  border-radius: 999px;
  background: var(--whatsapp);
  box-shadow: var(--shadow);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.floating-whatsapp img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.floating-whatsapp.is-near-footer {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  visibility: hidden;
}

.site-footer {
  margin-top: 76px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  background:
    radial-gradient(circle at 94% 42%, color-mix(in srgb, var(--whatsapp) 12%, transparent), transparent 15%),
    linear-gradient(100deg, #07111a, #06100d 62%);
  color: #f6f8f7;
  padding: 30px max(32px, calc((100% - 1380px) / 2)) 18px;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(430px, 1.15fr) auto;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 24px;
}

.site-footer-brand {
  display: grid;
  gap: 7px;
}

.site-footer-brand strong {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: #c8d2d0;
  font-size: 16px;
}

.site-footer-inner > p {
  max-width: 680px;
  line-height: 1.55;
  text-wrap: balance;
}

.footer-location,
.footer-map-button,
.footer-quote-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-location {
  max-width: 100%;
  color: #c8d2d0;
  font-size: 15px;
  line-height: 1.35;
}

.footer-location:hover,
.footer-map-button:hover {
  color: var(--accent);
}

.footer-location-icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.footer-location-icon::before,
.footer-location-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.footer-location-icon::before {
  inset: 2px 4px 3px;
  border: 2px solid currentColor;
  border-radius: 999px 999px 999px 4px;
  transform: rotate(-45deg);
}

.footer-location-icon::after {
  left: 50%;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.footer-actions {
  display: grid;
  grid-template-columns: auto auto auto 52px;
  justify-items: stretch;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.footer-map-button {
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 0 16px;
  color: #c8d2d0;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.footer-map-button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.footer-quote-button {
  justify-content: center;
  min-height: 50px;
  border: 1px solid color-mix(in srgb, var(--accent) 56%, #fff);
  border-radius: var(--radius);
  padding: 0 20px;
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.footer-quote-button:hover {
  background: var(--accent);
  color: #06100d;
  transform: translateY(-1px);
}

.footer-whatsapp-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid color-mix(in srgb, var(--whatsapp), transparent 35%);
  border-radius: 999px;
  background: var(--whatsapp);
  box-shadow: 0 0 24px color-mix(in srgb, var(--whatsapp) 28%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.footer-whatsapp-button:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 34px color-mix(in srgb, var(--whatsapp) 42%, transparent);
}

.footer-whatsapp-button img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.site-footer-legal {
  padding-top: 16px;
  color: #d8e0dd;
  font-size: 15px;
  text-align: center;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.pagination[hidden] {
  display: none;
}

.page-button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page-prev,
.page-next {
  min-width: 108px;
  padding: 0 16px;
}

.page-button:hover,
.page-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #06100d;
}

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

.page-button:disabled:hover {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

.page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: var(--faint);
  font-weight: 900;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(300px, 48%) 1fr;
  align-items: start;
  gap: 48px;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto 72px;
}

.detail-media,
.detail-info {
  background: transparent;
  border: 1px solid var(--line);
}

.detail-media {
  position: relative;
  display: grid;
  place-items: center;
  align-self: start;
  min-height: clamp(360px, 44vw, 520px);
  overflow: hidden;
  background: radial-gradient(circle at 18% 0%, rgba(35, 226, 189, 0.14), transparent 33%), #07100d;
}

:root[data-theme="dark"] .detail-media {
  background: radial-gradient(circle at 18% 0%, rgba(216, 182, 95, 0.14), transparent 34%), #101010;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  padding: 38px;
}

.detail-info {
  padding: 42px;
}

.detail-info h1 {
  margin-top: 12px;
  font-size: clamp(24px, 2.05vw, 34px);
  line-height: 1.12;
}

.lead {
  font-size: 18px;
}

.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 34px;
}

.whatsapp-button-large {
  min-height: 44px;
}

.description-block {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.description-block h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 28px;
}

.description-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.description-block li {
  margin-bottom: 8px;
}

.detail-description {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  padding: 34px 38px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.detail-description ul {
  columns: 2;
  column-gap: 46px;
}

.detail-description li {
  break-inside: avoid;
  margin-bottom: 10px;
}

.detail-description p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.technical-description-assets {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.technical-description-assets img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-body {
  background: var(--bg);
}

.admin-header {
  width: 100%;
  grid-template-columns: minmax(240px, 1fr) auto;
  padding: 22px 32px;
  background: var(--header);
  color: #fff;
}

.admin-header nav {
  display: flex;
  gap: 18px;
  font-weight: 800;
}

.admin-header nav a,
.admin-header nav button {
  color: #c7d4d0;
}

.admin-header nav a:hover,
.admin-header nav button:hover {
  color: var(--accent);
}

.admin-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 48px auto 70px;
}

.admin-shell.narrow {
  width: min(860px, calc(100% - 32px));
}

.admin-title-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.primary-button {
  border-color: var(--accent);
  color: var(--text);
}

.primary-button:hover {
  background: var(--accent);
  color: #06100d;
}

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

.stats-grid article,
.login-panel,
.table-panel,
.product-form,
.taxonomy-form {
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--surface);
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.stats-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 36px;
}

.pricing-settings-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  gap: 16px;
  margin-bottom: 24px;
}

.pricing-setting-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  padding: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 8%, var(--surface)), var(--surface));
}

.pricing-setting-label,
.pricing-setting-form span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.pricing-setting-card strong {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
}

.pricing-setting-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pricing-provider-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  min-width: 220px;
}

.pricing-provider-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.pricing-provider-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pricing-provider-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.pricing-provider-row span small {
  display: block;
  margin-top: 3px;
  color: color-mix(in srgb, var(--muted) 82%, var(--text));
  font-size: 9px;
  letter-spacing: 1.4px;
}

.pricing-provider-row strong {
  margin-top: 0;
  font-size: 24px;
  white-space: nowrap;
}

.pricing-setting-form {
  display: grid;
  grid-template-columns: minmax(130px, 160px) minmax(110px, 140px) minmax(118px, 150px) auto;
  align-items: end;
  gap: 10px;
}

.pricing-setting-form label {
  display: grid;
  gap: 8px;
}

.pricing-setting-form input,
.pricing-setting-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.pricing-setting-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.pricing-setting-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.pricing-lock {
  border: 1px solid color-mix(in srgb, var(--accent-2) 42%, var(--line));
  padding: 8px 10px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.provider-sync-flash {
  white-space: normal;
  line-height: 1.6;
}

.provider-sync-panel {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  padding: 20px;
  background: var(--surface);
}

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

.provider-sync-heading h2 {
  margin: 6px 0 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
}

.provider-sync-heading p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.provider-backup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  padding: 14px;
  background: color-mix(in srgb, var(--accent) 5%, var(--bg));
}

.provider-backup-bar strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-weight: 900;
}

.provider-backup-bar small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.provider-sync-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  padding: 16px;
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}

.provider-sync-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.provider-sync-card-heading strong {
  display: block;
  margin-top: 5px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
}

.provider-sync-card-heading small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.provider-sync-status {
  border: 1px solid var(--line);
  padding: 7px 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.provider-sync-status.ready {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  color: var(--accent);
}

.provider-access-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.provider-access-form label {
  display: grid;
  gap: 7px;
}

.provider-access-form span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.provider-access-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.provider-access-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.provider-source-note {
  border: 1px solid var(--line);
  padding: 11px 12px;
  background: color-mix(in srgb, var(--surface-2) 42%, transparent);
}

.provider-source-note span,
.provider-file-field span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.provider-source-note strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  word-break: break-word;
}

.provider-source-note small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.provider-sync-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.provider-file-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.provider-file-field input {
  width: 100%;
  border: 1px dashed color-mix(in srgb, var(--accent) 34%, var(--line));
  padding: 10px;
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.primary-button:disabled,
.secondary-button:disabled {
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
  background: transparent;
  color: color-mix(in srgb, var(--muted) 58%, transparent);
  cursor: not-allowed;
  opacity: 0.66;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  padding: 18px;
  background: var(--surface);
}

.admin-filters label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-filters label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.admin-filters input,
.admin-filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.admin-filters input:focus,
.admin-filters select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.admin-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-self: end;
}

.table-panel {
  width: 100%;
  overflow: hidden;
}

.table-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.admin-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.admin-table .table-index {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 58px;
  min-width: 58px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 900;
  text-align: center;
}

.admin-table th.table-index {
  z-index: 3;
  color: var(--muted);
}

.table-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-product img {
  width: 58px;
  height: 48px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #07100d;
}

.table-product span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.supplier-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  padding: 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.supplier-badge-sego {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  color: var(--accent);
}

.supplier-badge-deltron {
  border-color: color-mix(in srgb, #6aa7ff 48%, var(--line));
  color: #8bbcff;
}

.table-empty {
  padding: 36px 18px !important;
  color: var(--muted);
  text-align: center !important;
  font-weight: 800;
}

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

.actions a,
.actions button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.actions a:hover,
.actions button:hover {
  color: var(--accent);
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  width: 100%;
}

.admin-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 38px;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--muted);
  font-weight: 900;
}

.admin-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 38px;
  color: var(--muted);
  font-weight: 900;
}

.admin-pagination a:hover,
.admin-pagination a.active {
  border-color: var(--accent);
  color: var(--accent);
}

.admin-pagination a.disabled {
  pointer-events: none;
  opacity: 0.35;
}

.admin-pagination a:last-child {
  margin-left: auto;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--bg);
}

.login-panel {
  width: min(430px, 100%);
}

.login-brand {
  margin-bottom: 26px;
}

.login-panel .brand strong {
  color: var(--text);
}

.login-panel .brand small {
  color: var(--muted);
}

.admin-form .field:first-child {
  margin-top: 0;
}

.product-form {
  padding: 26px;
}

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

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.form-actions.compact {
  margin-top: 18px;
}

.taxonomy-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.taxonomy-list-grid {
  display: grid;
  gap: 24px;
}

.taxonomy-form {
  padding: 26px;
}

.form-section-title {
  margin-bottom: 18px;
}

.form-section-title h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 24px;
}

.taxonomy-table {
  min-width: 680px;
}

.current-image {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.current-image img {
  width: 170px;
  height: 120px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #fff;
}

.billing-shell {
  width: min(1280px, calc(100% - 64px));
}

.billing-form {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.billing-panel {
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--surface);
}

.billing-document-panel .field,
.billing-panel .field {
  margin-top: 0;
}

.billing-grid,
.billing-customer-search {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.billing-grid .wide {
  grid-column: span 2;
}

.billing-customer-search {
  grid-template-columns: 150px minmax(190px, 1fr) auto;
}

.billing-simple-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  padding: 10px 12px;
  color: var(--text);
  font-weight: 900;
}

.billing-simple-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.billing-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.billing-product-search {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.billing-product-search .field {
  max-width: 520px;
  flex: 1 1 320px;
}

.billing-manual-item-button {
  min-height: 45px;
  white-space: nowrap;
}

.billing-product-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  width: min(620px, 100%);
  border: 1px solid var(--line);
  background: #0c0f10;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
}

.billing-product-results button {
  display: grid;
  gap: 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.billing-product-results button:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.billing-product-results span,
.billing-result-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.billing-result-empty {
  padding: 14px;
}

.billing-items-wrap {
  overflow-x: auto;
}

.billing-items-table,
.receipt-items {
  width: 100%;
  border-collapse: collapse;
}

.billing-items-table th,
.billing-items-table td,
.receipt-items th,
.receipt-items td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

.billing-items-table th,
.receipt-items th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.billing-items-table input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  padding: 0 9px;
  font: inherit;
  font-weight: 800;
}

.billing-description-input {
  min-width: 280px;
}

.billing-quantity {
  max-width: 90px;
}

.billing-unit-price {
  max-width: 130px;
}

.billing-line-total {
  color: var(--accent);
  font-weight: 900;
  white-space: nowrap;
}

.billing-remove-row {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: #f36b74;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.billing-empty {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.billing-notes-totals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.quotation-notes-fields {
  display: grid;
  gap: 14px;
}

.quotation-notes-totals {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.billing-totals {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 14px;
  background: color-mix(in srgb, var(--bg) 62%, var(--surface));
}

.billing-totals div,
.receipt-total-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.billing-totals span,
.receipt-total-box span,
.receipt-info-grid span,
.receipt-notes span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.billing-totals strong,
.receipt-total-box strong {
  color: var(--text);
  font-size: 18px;
}

.billing-total-row {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.billing-total-row strong {
  color: var(--accent);
  font-size: 24px;
}

.billing-recent {
  margin-top: 24px;
}

.table-action-separator {
  color: var(--muted);
  font-weight: 900;
}

.sunat-upload-panel {
  margin-bottom: 22px;
}

.sunat-upload-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.sunat-status-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  padding: 12px 14px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.sunat-status-card strong {
  color: var(--accent);
  font-family: var(--display);
  font-size: 20px;
}

.sunat-status-card span {
  color: var(--text);
  font-weight: 900;
}

.sunat-status-card a {
  margin-left: auto;
  color: var(--accent);
  font-weight: 900;
}

.receipt-page {
  border: 1px solid var(--line);
  padding: 30px;
  background: var(--surface);
}

.receipt-header,
.receipt-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
}

.receipt-header {
  align-items: start;
  margin-bottom: 26px;
}

.receipt-header img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.receipt-header strong,
.receipt-info-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 20px;
}

.receipt-header span,
.receipt-info-grid p {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.receipt-code {
  border: 1px solid var(--line);
  padding: 18px;
  text-align: center;
}

.receipt-code strong {
  color: var(--accent);
  font-family: var(--display);
  font-size: 28px;
}

.receipt-info-grid {
  margin-bottom: 26px;
}

.receipt-legal-banner {
  margin-bottom: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  padding: 12px 14px;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

.quotation-banner {
  border-color: color-mix(in srgb, #6bb7ff 40%, var(--line));
  background: color-mix(in srgb, #6bb7ff 8%, transparent);
}

.quote-pdf-page {
  overflow: hidden;
  border: 1px solid #15191f;
  background: #f6f2ec;
  color: #111823;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.quote-pdf-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px 38px 26px;
  background: linear-gradient(135deg, #171d25 0%, #10141a 100%);
  color: #fff;
}

.quote-pdf-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.quote-pdf-brand img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.quote-pdf-brand strong {
  display: block;
  margin-bottom: 6px;
  font-family: Bahnschrift, "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.quote-pdf-brand span,
.quote-pdf-brand a,
.quote-pdf-code-wrap small {
  display: block;
  margin-top: 4px;
  color: #bdd0e4;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 800;
}

.quote-pdf-brand a,
.quote-pdf-code-wrap a {
  color: inherit;
  text-decoration: none;
}

.quote-pdf-brand .quote-brand-contact {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.quote-pdf-brand .quote-brand-contact > span {
  display: inline-block;
  margin-top: 0;
}

.quote-pdf-code-wrap {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.quote-pdf-code {
  position: relative;
  min-width: 150px;
  border: 2px solid #c8a95d;
  padding: 10px 16px;
  text-align: center;
}

.quote-pdf-code::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(200, 169, 93, 0.55);
  pointer-events: none;
}

.quote-pdf-code span,
.quote-client-title,
.quote-client-meta span,
.quote-pdf-items th,
.quote-pdf-totals span,
.quote-amount-words span,
.quote-pdf-notes span {
  color: #8d7971;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.quote-pdf-code span {
  color: #c8a95d;
}

.quote-pdf-code strong {
  display: block;
  margin-top: 4px;
  font-family: "Courier New", Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
}

.quote-pdf-body {
  position: relative;
  padding: 28px 44px 30px;
}

.quote-pdf-accent {
  position: absolute;
  top: -4px;
  left: 0;
  width: 38%;
  height: 4px;
  background: #c8a95d;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.quote-pdf-banner {
  position: relative;
  margin-bottom: 34px;
  border-left: 2px solid #4c7db0;
  padding: 16px 120px 16px 18px;
  color: #37526b;
  font-size: 14px;
  line-height: 1.55;
}

.quote-status-stamp {
  position: absolute;
  top: -16px;
  right: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid #c8a95d;
  border-radius: 50%;
  color: #c8a95d;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-14deg);
  background: transparent;
  opacity: 1;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.quote-status-stamp::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(200, 169, 93, 0.62);
  border-radius: inherit;
}

.quote-client-card {
  position: relative;
  border: 1px solid #ded4c4;
  background: rgba(255, 255, 255, 0.44);
}

.quote-client-main {
  padding: 18px 24px 16px;
}

.quote-client-main strong {
  display: block;
  margin-top: 6px;
  color: #34475b;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.quote-client-main p {
  margin: 7px 0 0;
  color: #34475b;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
}

.quote-client-title {
  position: absolute;
  top: -9px;
  left: 22px;
  display: inline-block;
  margin: 0;
  padding: 0 10px;
  background: #f6f2ec;
}

.quote-client-field {
  display: grid;
  grid-template-columns: 94px 10px minmax(0, 1fr);
  align-items: baseline;
}

.quote-client-main p b {
  color: #8d7971;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.quote-client-main p i {
  color: #8d7971;
  font-style: normal;
  font-weight: 900;
}

.quote-client-meta {
  display: grid;
  grid-template-columns: 1.55fr 1.25fr 0.9fr;
  border-top: 1px solid #ded4c4;
}

.quote-client-meta div {
  display: flex;
  min-height: 46px;
  padding: 10px 22px;
  align-items: center;
  gap: 16px;
}

.quote-client-meta div + div {
  border-left: 1px solid #ded4c4;
}

.quote-client-meta span {
  white-space: nowrap;
}

.quote-client-meta strong {
  display: block;
  margin-top: 0;
  color: #111823;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  white-space: nowrap;
}

.quote-pdf-items {
  margin-top: 22px;
  border-top: 1px solid #111823;
  table-layout: fixed;
}

.quote-pdf-items th,
.quote-pdf-items td {
  border-bottom: 1px solid #ded4c4;
  padding: 16px 8px;
  color: #111823;
}

.quote-pdf-items th {
  color: #8d7971;
  font-size: 11px;
}

.quote-pdf-items th:first-child,
.quote-pdf-items td:first-child {
  width: 34%;
}

.quote-pdf-items th:nth-child(2),
.quote-pdf-items td:nth-child(2) {
  width: 21%;
}

.quote-pdf-items th:nth-child(3),
.quote-pdf-items td:nth-child(3) {
  width: 12%;
}

.quote-pdf-items th:nth-child(4),
.quote-pdf-items td:nth-child(4) {
  width: 16%;
}

.quote-pdf-items th:nth-child(5),
.quote-pdf-items td:nth-child(5) {
  width: 17%;
}

.quote-pdf-items td:first-child {
  color: #34475b;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.quote-pdf-items td:nth-child(2) {
  color: #55708c;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.quote-pdf-items td:nth-child(3),
.quote-pdf-items td:nth-child(4),
.quote-pdf-items td:nth-child(5) {
  text-align: center;
  white-space: nowrap;
}

.quote-pdf-items th:nth-child(3),
.quote-pdf-items th:nth-child(4),
.quote-pdf-items th:nth-child(5) {
  text-align: center;
}

.quote-pdf-items th:nth-child(2) {
  text-align: left;
}

.quote-pdf-items td:nth-child(3),
.quote-pdf-items td:nth-child(4),
.quote-pdf-items td:nth-child(5) {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 400;
}

.quote-pdf-items td:nth-child(4),
.quote-pdf-items td:nth-child(5) {
  font-size: 13px;
}

.quote-pdf-items td:nth-child(5) {
  font-weight: 400;
}

.quote-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  margin-top: 18px;
}

.document-summary-row {
  align-items: end;
}

.document-qr-box {
  display: inline-grid;
  justify-items: center;
  gap: 8px;
  width: 174px;
  min-height: 174px;
  border: 1px solid #ded4c4;
  padding: 12px;
  color: #34475b;
  background: rgba(255, 255, 255, 0.42);
}

.document-qr-box img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.document-qr-box span,
.document-qr-box strong {
  color: #8d7971;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-align: center;
  text-transform: uppercase;
}

.document-qr-box p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.quote-pdf-totals {
  display: grid;
  gap: 10px;
}

.quote-pdf-totals div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.quote-pdf-totals strong {
  color: #111823;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  font-weight: 400;
}

.quote-total-line {
  border-top: 1px solid #111823;
  padding-top: 14px;
  padding-bottom: 0;
}

.quote-total-line span,
.quote-total-line strong {
  color: #111823;
  font-weight: 900;
}

.quote-total-line strong {
  font-size: 14px;
}

.quote-amount-words {
  display: grid;
  justify-items: end;
  gap: 8px;
  margin: 18px 0 30px;
  border-top: 1px solid #ded4c4;
  padding-top: 20px;
  color: #333d49;
}

.quote-amount-words strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  text-align: right;
}

.quote-pdf-notes {
  border-top: 1px solid #ded4c4;
  padding-top: 22px;
}

.quote-pdf-notes p {
  color: #34475b;
  line-height: 1.6;
}

.quote-pdf-notes ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #8d7971;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 2;
  text-transform: uppercase;
}

.quote-pdf-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 44px;
  background: #11161d;
  color: #fff;
}

.quote-footer-message {
  display: grid;
  gap: 6px;
}

.quote-footer-message strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.quote-footer-message span {
  color: #bdd0e4;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.quote-footer-message a {
  color: #c8a95d;
  text-decoration: none;
}

.quote-footer-page {
  color: #c8a95d;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.receipt-total-box {
  display: grid;
  gap: 8px;
  width: min(320px, 100%);
  margin: 20px 0 0 auto;
  border: 1px solid var(--line);
  padding: 16px;
}

.receipt-total-box div:last-child {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.receipt-total-box div:last-child strong {
  color: var(--accent);
  font-size: 24px;
}

.receipt-verify {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-weight: 800;
}

.receipt-verify span {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.receipt-verify p {
  margin: 0;
}

.receipt-verify strong {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.receipt-verify small {
  color: var(--muted);
}

.receipt-notes {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.receipt-notes p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

.alert {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  padding: 12px;
  font-weight: 800;
}

.alert.error {
  color: #f36b74;
  background: transparent;
}

.alert.success {
  color: var(--accent);
  background: transparent;
}

.alert.warning {
  color: #ffd36a;
  background: transparent;
}

.admin-price-alert {
  display: grid;
  gap: 6px;
}

.back-link {
  width: 100%;
  margin-top: 16px;
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

  .catalog-shell {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 36px;
  }

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

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

  .billing-grid,
  .billing-customer-search,
  .billing-notes-totals,
  .receipt-header,
  .receipt-info-grid {
    grid-template-columns: 1fr;
  }

  .billing-grid .wide {
    grid-column: auto;
  }

  .stats-grid,
  .pricing-settings-panel,
  .provider-sync-grid,
  .taxonomy-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-setting-card,
  .pricing-setting-form {
    grid-template-columns: 1fr;
  }

  .pricing-setting-card {
    align-items: stretch;
    flex-direction: column;
  }

  .pricing-lock {
    align-self: flex-start;
  }
}

@media (max-width: 820px) {
  .catalog-shell,
  .detail-shell,
  .seo-coverage-shell {
    grid-template-columns: 1fr;
  }

  .detail-description ul {
    columns: 1;
  }

  .filters {
    position: static;
  }

  .section-title,
  .admin-title {
    align-items: start;
    flex-direction: column;
  }

  .admin-title-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  .footer-actions {
    justify-self: start;
    grid-template-columns: repeat(3, minmax(130px, 1fr)) 52px;
    width: min(580px, 100%);
  }

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

  .provider-backup-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .provider-sync-heading p {
    text-align: left;
  }

  .provider-sync-grid,
  .provider-sync-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar,
  .catalog-shell,
  .detail-shell,
  .seo-coverage-shell,
  .admin-shell,
  .billing-shell {
    width: min(100% - 24px, 1380px);
  }

  .seo-coverage-hero {
    padding: 26px 20px;
  }

  .seo-coverage-hero h1 {
    font-size: 34px;
  }

  .brand {
    min-width: 0;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 130;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  }

  .topbar {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: 74px;
    gap: 0;
    padding: 18px 104px 16px 0;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand small {
    font-size: 10px;
    letter-spacing: 1.8px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand {
    gap: 10px;
  }

  .mobile-menu-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 4;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-2) 20%, transparent);
    color: #dce5e1;
    cursor: pointer;
  }

  .mobile-quick-search {
    position: absolute;
    top: 50%;
    right: 54px;
    z-index: 5;
    display: grid;
    grid-template-columns: 0 42px;
    align-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-2) 20%, transparent);
    transition: left 0.22s ease, width 0.22s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .mobile-quick-search input {
    min-width: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color: #f5f2ea;
    opacity: 0;
    outline: none;
    padding: 0 10px 0 14px;
    font-size: 16px;
    font-weight: 800;
    transition: opacity 0.14s ease;
  }

  .mobile-quick-search input::placeholder {
    color: #8e989b;
  }

  .mobile-search-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-left: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
  }

  .site-header.mobile-search-open .mobile-quick-search {
    left: 0;
    right: 54px;
    grid-template-columns: minmax(0, 1fr) 42px;
    width: auto;
    border-color: var(--accent);
    background: #0d0f12;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34), 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
  }

  .site-header.mobile-search-open .mobile-quick-search input {
    opacity: 1;
  }

  .site-header.mobile-search-open .brand {
    opacity: 0.2;
  }

  .mobile-menu-toggle span,
  .mobile-menu-toggle::before,
  .mobile-menu-toggle::after {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .mobile-menu-toggle::before,
  .mobile-menu-toggle::after {
    position: absolute;
  }

  .mobile-menu-toggle::before {
    transform: translateY(-8px);
  }

  .mobile-menu-toggle::after {
    transform: translateY(8px);
  }

  .site-header.mobile-menu-open .mobile-menu-toggle span {
    opacity: 0;
  }

  .site-header.mobile-menu-open .mobile-menu-toggle::before {
    transform: rotate(45deg);
  }

  .site-header.mobile-menu-open .mobile-menu-toggle::after {
    transform: rotate(-45deg);
  }

  .topbar .search,
  .topbar .header-actions,
  .category-carousel,
  .contact-strip {
    display: none;
  }

  .header-actions {
    gap: 12px 18px;
  }

  .contact-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .catalog-shell {
    margin-top: 46px;
  }

  .filters {
    display: none;
  }

  .site-header.mobile-menu-open + .catalog-shell .filters {
    position: fixed;
    inset: 96px 12px 14px;
    z-index: 120;
    display: block;
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--surface) 96%, #000);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
    padding: 22px 18px 26px;
  }

  :root[data-theme="dark"] .site-header.mobile-menu-open + .catalog-shell .filters {
    background: #0d0f12;
  }

  .site-header.mobile-menu-open + .catalog-shell .filter-header {
    padding-bottom: 24px;
  }

  .site-header.mobile-menu-open + .catalog-shell .filter-header h1 {
    font-size: 32px;
  }

  .product-grid,
  .stats-grid,
  .pricing-settings-panel,
  .form-grid,
  .taxonomy-form-grid,
  .admin-filters {
    grid-template-columns: 1fr;
  }

  .table-summary,
  .admin-filter-actions {
    grid-template-columns: 1fr;
  }

  .table-summary {
    flex-direction: column;
  }

  .product-card {
    grid-template-rows: auto 1fr;
    border-right: 0;
  }

  .product-media {
    aspect-ratio: 4 / 3;
  }

  .product-media img {
    width: calc(100% - 84px);
    height: calc(100% - 92px);
  }

  .media-ref {
    top: 12px;
    right: 16px;
    font-size: 11px;
    padding: 2px 6px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
  }

  .product-info {
    padding: 24px;
  }

  .product-info h3 {
    min-height: 0;
  }

  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .pagination {
    justify-content: flex-start;
  }

  .admin-pagination a:last-child {
    margin-left: 0;
  }

  .page-prev,
  .page-next {
    width: calc(50% - 5px);
  }

  .detail-media {
    min-height: 330px;
  }

  .detail-info {
    padding: 26px;
  }

  .detail-description {
    padding: 26px;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .primary-button,
  .secondary-button,
  .whatsapp-button {
    width: 100%;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  .floating-whatsapp img {
    width: 32px;
    height: 32px;
  }

  .site-footer {
    margin-top: 48px;
    padding: 28px 18px 20px;
  }

  .footer-location,
  .site-footer p {
    font-size: 14px;
  }

  .footer-actions {
    grid-template-columns: 1fr 52px;
    width: 100%;
  }

  .footer-map-button {
    grid-column: 1 / -1;
  }

  .footer-quote-button {
    width: 100%;
  }

  .footer-whatsapp-button {
    justify-self: end;
  }
}

@page {
  size: A4;
  margin: 5mm;
}

@media print {
  :root {
    color-scheme: light;
  }

  html,
  body,
  .admin-body {
    margin: 0;
    background: #fff;
    color: #111;
  }

  .print-hidden,
  .admin-header,
  .theme-toggle {
    display: none !important;
  }

  .admin-shell,
  .admin-shell.narrow {
    width: 100%;
    margin: 0;
  }

  .receipt-page {
    border: 0;
    padding: 0;
    background: #fff;
    color: #111;
  }

  .quote-pdf-page {
    border: 0;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .quote-pdf-header {
    padding: 20px 30px 18px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .quote-pdf-brand {
    gap: 14px;
  }

  .quote-pdf-brand img {
    width: 98px;
    height: 98px;
  }

  .quote-pdf-brand strong {
    font-size: 21px;
  }

  .quote-pdf-brand span,
  .quote-pdf-brand a {
    font-size: 10.5px;
  }

  .quote-pdf-code {
    min-width: 126px;
    padding: 8px 14px;
  }

  .quote-pdf-code span {
    font-size: 9px;
    letter-spacing: 2.4px;
  }

  .quote-pdf-code strong {
    font-size: 17px;
  }

  .quote-pdf-body {
    padding: 22px 36px 20px;
  }

  .quote-pdf-accent {
    background: #c8a95d !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .quote-status-stamp {
    top: -16px;
    right: 14px;
    width: 76px;
    height: 76px;
    font-size: 10.5px;
    border-color: #c8a95d;
    border-width: 1px;
    color: #c8a95d;
    background: transparent !important;
    box-shadow: none;
    opacity: 1;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .quote-client-main {
    padding: 15px 20px 13px;
  }

  .quote-client-title,
  .quote-client-meta span {
    font-size: 9.5px;
    letter-spacing: 2px;
    white-space: nowrap;
  }

  .quote-client-main p {
    margin-top: 6px;
    font-size: 12px;
  }

  .quote-client-field {
    grid-template-columns: 88px 8px minmax(0, 1fr);
  }

  .quote-client-meta {
    grid-template-columns: 1.55fr 1.3fr 0.85fr;
  }

  .quote-client-meta div {
    min-height: 40px;
    padding: 9px 18px;
    gap: 12px;
  }

  .quote-client-meta strong {
    font-size: 12px;
  }

  .quote-pdf-items {
    margin-top: 16px;
  }

  .quote-pdf-items th,
  .quote-pdf-items td {
    padding: 12px 6px;
  }

  .quote-pdf-items th {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .quote-pdf-items td:first-child {
    font-size: 13.5px;
    line-height: 1.5;
  }

  .quote-pdf-items td:nth-child(2),
  .quote-pdf-items td:nth-child(3),
  .quote-pdf-items td:nth-child(4),
  .quote-pdf-items td:nth-child(5) {
    font-size: 12px;
  }

  .quote-summary-row {
    grid-template-columns: minmax(0, 1fr) 225px;
    gap: 20px;
    margin-top: 14px;
  }

  .quote-pdf-totals {
    gap: 7px;
  }

  .quote-pdf-totals strong,
  .quote-total-line strong {
    font-size: 12px;
  }

  .quote-total-line {
    padding-top: 9px;
  }

  .quote-amount-words {
    margin: 12px 0 16px;
    padding-top: 12px;
  }

  .quote-amount-words strong {
    font-size: 13px;
  }

  .quote-pdf-notes {
    padding-top: 14px;
  }

  .quote-pdf-notes ul {
    margin-top: 9px;
    font-size: 9.5px;
    letter-spacing: 2px;
    line-height: 1.7;
  }

  .quote-pdf-footer {
    padding: 14px 36px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .quote-footer-message strong {
    font-size: 11.5px;
  }

  .quote-footer-message span,
  .quote-footer-page {
    font-size: 9.5px;
  }

  .receipt-code,
  .receipt-legal-banner,
  .receipt-verify,
  .receipt-total-box,
  .receipt-items th,
  .receipt-items td {
    border-color: #bbb;
  }

  .receipt-code strong,
  .receipt-verify strong,
  .receipt-total-box div:last-child strong {
    color: #111;
  }

  .receipt-legal-banner {
    background: #f6f6f6;
  }
}
