:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --line: #d9e0ee;
  --text: #1f2a3d;
  --muted: #68758b;
  --primary: #2342a0;
  --primary-dark: #1a2f74;
  --primary-soft: #eaf0ff;
  --accent: #ef6a1f;
  --accent-dark: #c95311;
  --dark: #1c2d44;
  --success: #1b7f54;
  --danger: #c0414a;
  --shadow: 0 18px 40px rgba(23, 38, 62, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(35, 66, 160, 0.08), transparent 24rem),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

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

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main { flex: 1; }

.top-ribbon {
  background: #eef3fb;
  border-bottom: 1px solid rgba(217, 224, 238, 0.9);
}

.top-ribbon-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.top-ribbon-inner p { margin: 0; }
.top-ribbon-meta { display: flex; gap: 1rem; flex-wrap: wrap; }
.top-ribbon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, #087d86 0%, #1769a6 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(8, 125, 134, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.top-ribbon-link svg {
  width: 0.95rem;
  height: 0.95rem;
}

.top-ribbon-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 12px 26px rgba(23, 105, 166, 0.28);
}

@media (max-width: 900px) {
  .top-ribbon-meta {
    gap: 0.55rem;
    justify-content: flex-end;
  }

  .top-ribbon-link {
    font-size: 0.76rem;
    padding: 0.2rem 0.58rem;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(23, 38, 62, 0.05);
}

.header-main {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1rem 0 1.1rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.site-brand-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  background: white;
  border-radius: 1rem;
  padding: 0.35rem;
  border: 1px solid rgba(217, 224, 238, 0.8);
}

.site-brand-mark,
.footer-brand-mark {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, #ffb36b 100%);
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
}

.site-brand-copy strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.05;
}

.site-brand-copy small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-search input {
  width: 100%;
  height: 3.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(31, 42, 61, 0.14);
  padding: 0 1.15rem;
  background: #fff;
}

.search-button,
.accent-button,
.dark-button,
.ghost-button,
.light-button,
.btn,
.btn-accent,
.btn-dark,
.btn-outline,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
  text-align: center;
}

.search-button,
.btn,
.accent-button,
.dark-button,
.ghost-button,
.light-button,
.btn-accent,
.btn-dark,
.btn-outline,
.btn-light {
  padding: 0.9rem 1.25rem;
}

.search-button,
.accent-button,
.btn-accent {
  background: var(--accent);
  color: white;
}

.dark-button,
.btn-dark {
  background: var(--dark);
  color: white;
}

.ghost-button,
.btn-outline {
  background: white;
  color: var(--primary-dark);
  border-color: rgba(35, 66, 160, 0.16);
}

.light-button,
.btn-light {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
}

.search-button:hover,
.accent-button:hover,
.dark-button:hover,
.ghost-button:hover,
.light-button:hover,
.btn:hover,
.btn-accent:hover,
.btn-dark:hover,
.btn-outline:hover,
.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-block { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-account {
  min-width: 10rem;
}

.account-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
}

.account-links {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.header-cart {
  min-width: 4.6rem;
  min-height: 4.2rem;
  padding: 0.65rem 0.8rem;
  border-radius: 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header-cart span {
  font-size: 0.76rem;
  color: var(--muted);
}

.header-cart strong {
  font-size: 1.05rem;
}

.nav-band {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.nav-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav-menu,
.nav-tools {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  overflow-x: auto;
}

.nav-menu a,
.nav-tools a {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.95rem 0;
  font-weight: 700;
  border-bottom: 3px solid transparent;
}

.nav-menu a.is-active,
.nav-menu a:hover,
.nav-tools a:hover {
  color: white;
  border-bottom-color: white;
}

.alert {
  margin: 1rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  font-weight: 700;
}

.alert-success {
  background: rgba(27, 127, 84, 0.12);
  border: 1px solid rgba(27, 127, 84, 0.18);
  color: var(--success);
}

.alert-danger {
  background: rgba(192, 65, 74, 0.12);
  border: 1px solid rgba(192, 65, 74, 0.18);
  color: var(--danger);
}

.showcase-section,
.home-categories,
.home-products,
.page-banner,
.filters-section,
.products-section,
.product-detail-page,
.auth-page,
.account-section,
.cart-section,
.checkout-section,
.confirmation-section,
.admin-shell {
  padding: 1.35rem 0 3rem;
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.68fr);
  gap: 1.3rem;
}

.showcase-slider,
.side-card,
.catalog-card,
.panel-card,
.auth-card,
.admin-panel,
.admin-slide-card,
.admin-product-card,
.confirmation-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(217, 224, 238, 0.9);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
}

.showcase-slider {
  overflow: hidden;
  background: linear-gradient(135deg, #1d2f56 0%, #30455e 100%);
}

.showcase-track {
  position: relative;
  min-height: 26rem;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.78fr);
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.showcase-slide.is-active { display: grid; }

.showcase-copy {
  color: white;
}

.showcase-badge,
.section-label,
.section-kicker,
.side-kicker {
  display: inline-flex;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.showcase-badge,
.side-kicker { color: #ffddc9; }
.section-label,
.section-kicker { color: var(--primary); }

.showcase-copy h1,
.section-heading h2,
.admin-topbar h1,
.section-title,
.detail-title {
  margin: 0;
  line-height: 1.02;
}

.showcase-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  max-width: 10ch;
}

.showcase-copy p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.87);
  line-height: 1.8;
  max-width: 34rem;
}

.showcase-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.showcase-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-media img,
.catalog-card-media img,
.detail-image-frame img,
.admin-slide-preview img,
.admin-product-image img,
.admin-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.showcase-media img {
  width: min(100%, 26rem);
  aspect-ratio: 0.95 / 1;
  padding: 1rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.98);
}

.showcase-dots {
  position: absolute;
  left: 2rem;
  bottom: 1.2rem;
  display: flex;
  gap: 0.5rem;
}

.showcase-dot {
  width: 0.85rem;
  height: 0.85rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.showcase-dot.is-active { background: #fff; }

.showcase-side {
  display: grid;
  gap: 1rem;
}

.side-card {
  padding: 1.4rem;
}

.side-card-highlight {
  background: linear-gradient(180deg, #2140a2 0%, #1a327a 100%);
  color: white;
}

.side-card-highlight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
}

.side-card-highlight h2,
.side-card-stats h2 {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
}

.side-actions,
.catalog-card-actions,
.detail-actions,
.admin-slide-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.side-actions { margin-top: 1.2rem; }

.side-card-stats {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.side-stat-list {
  display: grid;
  gap: 0.85rem;
}

.side-stat-list div {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(217, 224, 238, 0.9);
  background: white;
}

.side-stat-list strong {
  display: block;
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.side-stat-list span {
  display: block;
  color: var(--muted);
  margin-top: 0.2rem;
}

.section-heading,
.results-head,
.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.1rem;
}

.section-heading h2,
.admin-topbar h1,
.section-title {
  font-size: clamp(1.75rem, 2.7vw, 2.7rem);
}

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.detail-resource-bar {
  margin: 1rem 0 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.detail-description {
  margin-top: 1.2rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(217, 224, 238, 0.9);
}

.detail-description h2 {
  margin: 0 0 0.7rem;
  font-size: 1.08rem;
  color: var(--primary-dark);
}

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

.products-section-tight {
  padding-top: 0.5rem;
}

.section-copy,
.detail-copy,
.auth-copy p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.category-tile {
  padding: 1.1rem 1.15rem;
  border-radius: 1.2rem;
  background: white;
  border: 1px solid rgba(217, 224, 238, 0.9);
  box-shadow: var(--shadow);
}

.category-tile strong {
  display: block;
  font-size: 1rem;
}

.category-tile span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
}

.catalog-grid,
.product-grid,
.admin-slide-grid,
.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.catalog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.catalog-card-media,
.admin-slide-preview,
.admin-product-image {
  display: block;
  aspect-ratio: 0.97 / 1;
  padding: 1rem;
  background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
}

.catalog-card-body,
.admin-slide-card,
.admin-product-card,
.auth-card,
.panel-card,
.admin-panel,
.confirmation-card {
  padding: 1.25rem;
}

.catalog-card-meta,
.catalog-card-stats,
.product-topline,
.results-head,
.info-row,
.summary-row,
.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.catalog-card-meta {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.catalog-card-title {
  margin: 0.8rem 0 0.5rem;
  font-size: 1.08rem;
  line-height: 1.4;
}

.catalog-card-copy {
  margin: 0;
  min-height: 4.4rem;
  color: var(--muted);
  line-height: 1.6;
}

.catalog-card-stats {
  margin: 1rem 0;
}

.catalog-card-stats > div,
.detail-metrics > div {
  flex: 1;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(217, 224, 238, 0.85);
  border-radius: 1rem;
  background: var(--surface-soft);
}

.catalog-card-stats span,
.detail-metrics span,
.summary-row span,
.checkout-item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.catalog-card-stats strong,
.detail-metrics strong,
.summary-row strong,
.checkout-item strong,
.confirmation-code {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.05rem;
}

.catalog-card-lock,
.price-lock {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #eff4ff 0%, #fbfcff 100%);
  border: 1px dashed rgba(35, 66, 160, 0.22);
}

.catalog-card-lock strong,
.price-lock strong {
  display: block;
  color: var(--primary-dark);
}

.catalog-card-lock span,
.price-lock span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.6;
}

.page-banner {
  padding-bottom: 1rem;
}

.filters-panel,
.form-stack,
.buy-form,
.admin-form-grid,
.admin-product-search {
  display: grid;
  gap: 1rem;
}

.filters-panel {
  grid-template-columns: 2fr 1fr 1fr auto auto;
  align-items: end;
}

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

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

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

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(31, 42, 61, 0.12);
  background: white;
  padding: 0.95rem 1rem;
  color: var(--text);
}

.field small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
}

.field-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
}

.field-checkbox label { margin: 0; }
.field-checkbox input { width: auto; }

.auth-grid,
.detail-layout,
.account-grid,
.cart-layout,
.checkout-layout {
  display: grid;
  gap: 1.2rem;
}

.auth-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  align-items: center;
}

.auth-grid-wide {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.auth-copy {
  max-width: 38rem;
}

.auth-footnote {
  margin-top: 1rem;
  color: var(--muted);
}

.auth-card,
.panel-card,
.detail-gallery,
.detail-content {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(217, 224, 238, 0.9);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
}

.detail-layout {
  grid-template-columns: 0.92fr 1.08fr;
}

.detail-gallery,
.detail-content { padding: 1.4rem; }

.detail-image-frame {
  aspect-ratio: 0.97 / 1;
  padding: 1rem;
  border-radius: 1.3rem;
  background: linear-gradient(180deg, #f5f7fc 0%, #ffffff 100%);
  border: 1px solid rgba(217, 224, 238, 0.9);
}

.detail-tags,
.checkbox {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1rem 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.46rem 0.74rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.pill-success {
  background: rgba(27, 127, 84, 0.12);
  color: var(--success);
}

.pill-danger {
  background: rgba(192, 65, 74, 0.12);
  color: var(--danger);
}

.checkbox input { width: auto; }

.inline-form { margin: 0; }

.account-grid,
.cart-layout,
.checkout-layout {
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.82fr);
}

.stack-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stack-actions-center {
  justify-content: center;
}

.panel-title {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
}

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

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

th, td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(217, 224, 238, 0.8);
  text-align: left;
}

th {
  background: #f4f7fc;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cart-product img {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1rem;
  background: white;
  padding: 0.35rem;
  border: 1px solid rgba(217, 224, 238, 0.9);
  object-fit: contain;
}

.cart-product span {
  display: block;
  color: var(--muted);
  margin-top: 0.25rem;
  font-size: 0.88rem;
}

.qty-input {
  width: 5.2rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(31, 42, 61, 0.12);
}

.summary-row,
.checkout-item {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(217, 224, 238, 0.88);
  background: white;
}

.summary-row-strong strong {
  color: var(--primary-dark);
  font-size: 1.18rem;
}

.checkout-items { display: grid; gap: 0.7rem; }

.confirmation-card {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.confirmation-code {
  margin: 1.4rem auto;
  max-width: 22rem;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  background: var(--primary-soft);
  border: 1px solid rgba(35, 66, 160, 0.18);
  color: var(--primary-dark);
}

.admin-shell { padding-top: 1.4rem; }

.admin-topbar { margin-bottom: 1.25rem; }

.admin-tabs {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-tabs a {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(217, 224, 238, 0.92);
  font-weight: 700;
  color: var(--muted);
}

.admin-tabs a.is-active {
  background: var(--primary-dark);
  color: white;
}

.admin-panel {
  padding: 1.4rem;
}

.admin-section + .admin-section {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(217, 224, 238, 0.8);
}

.admin-section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.admin-preview-card {
  min-height: 12rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(35, 66, 160, 0.25);
  background: #f7faff;
}

.admin-preview-card span {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.admin-preview-card img {
  width: 100%;
  height: calc(100% - 1.4rem);
}

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

.admin-brand-grid,
.admin-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

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

.admin-slide-card,
.admin-product-card,
.admin-brand-card,
.admin-category-card {
  display: grid;
  gap: 0.85rem;
}

.admin-slide-preview,
.admin-product-image {
  border-radius: 1.2rem;
  border: 1px solid rgba(217, 224, 238, 0.9);
}

.admin-slide-preview-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.admin-product-editor-card {
  gap: 0.72rem;
  padding: 1rem;
}

.admin-product-editor-card .field label {
  margin-bottom: 0.3rem;
  font-size: 0.76rem;
}

.admin-product-editor-card .field input,
.admin-product-editor-card .field textarea {
  padding: 0.78rem 0.9rem;
  border-radius: 0.9rem;
}

.admin-product-editor-card .field textarea {
  min-height: 5rem;
  resize: vertical;
}

.admin-product-editor-card .admin-form-grid.compact {
  gap: 0.75rem;
}

.admin-product-image-compact {
  aspect-ratio: 1.45 / 0.78;
  min-height: 9.5rem;
  padding: 0.7rem;
}

.admin-brand-preview,
.admin-category-preview {
  min-height: 9rem;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(217, 224, 238, 0.9);
  background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
}

.admin-brand-preview img,
.admin-category-preview img {
  width: 100%;
  max-width: 14rem;
  max-height: 3.4rem;
  object-fit: contain;
}

.admin-brand-preview span,
.admin-category-preview span {
  color: var(--muted);
  font-weight: 700;
}

.admin-brand-card-compact,
.admin-category-card-compact {
  gap: 0.6rem;
  padding: 0.85rem;
  align-content: start;
}

.admin-brand-preview-compact,
.admin-category-preview-compact {
  min-height: 5.2rem;
  padding: 0.8rem;
  border-radius: 1rem;
}

.admin-brand-preview-compact img {
  max-width: 9rem;
  max-height: 2.35rem;
}

.admin-category-preview-compact img {
  max-width: 5.4rem;
  max-height: 4.2rem;
}

.admin-brand-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-brand-head strong {
  font-size: 0.98rem;
  color: var(--primary-dark);
  line-height: 1.2;
}

.admin-brand-head span,
.admin-brand-stats span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-brand-stats {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-brand-upload-field label {
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
}

.admin-brand-upload-field input {
  padding: 0.5rem 0.7rem;
  border-radius: 0.8rem;
  font-size: 0.82rem;
}

.admin-brand-upload-field input::file-selector-button {
  margin-right: 0.55rem;
  padding: 0.42rem 0.7rem;
  border: 0;
  border-radius: 0.65rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
}

.admin-brand-save-button {
  padding: 0.72rem 0.95rem;
}

.admin-request-stats {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-request-stat {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.admin-request-stat.is-pending,
.admin-request-badge.status-pendiente {
  background: rgba(242, 175, 43, 0.16);
  color: #9b6500;
}

.admin-request-stat.is-approved,
.admin-request-badge.status-activo {
  background: rgba(26, 132, 93, 0.14);
  color: #15754a;
}

.admin-request-stat.is-rejected,
.admin-request-badge.status-rechazado {
  background: rgba(194, 63, 74, 0.14);
  color: #b0303c;
}

.admin-request-stat.is-inactive,
.admin-request-badge.status-inactivo {
  background: rgba(111, 126, 153, 0.16);
  color: #536177;
}

.admin-request-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 0.9rem;
  align-items: end;
}

.admin-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.admin-request-card {
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(217, 224, 238, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-request-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.admin-request-head strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1rem;
  line-height: 1.2;
}

.admin-request-head span {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-request-badge {
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-request-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.9rem;
}

.admin-request-data > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.72rem 0.8rem;
  border-radius: 0.95rem;
  background: rgba(244, 247, 252, 0.88);
}

.admin-request-data span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-request-data strong {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.4;
}

.admin-request-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-request-manage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.admin-request-manage .field {
  margin: 0;
}

.admin-request-manage .accent-button {
  min-height: 3rem;
}

@media (max-width: 760px) {
  .admin-request-data {
    grid-template-columns: 1fr;
  }

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

.admin-product-search {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.site-footer {
  margin-top: auto;
  background: white;
  border-top: 1px solid rgba(217, 224, 238, 0.9);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 0.9fr 1.25fr 0.85fr;
  gap: 2.2rem;
  padding: 2.9rem 0 2.2rem;
}

.footer-column {
  min-width: 0;
}

.footer-heading {
  margin: 0 0 1.2rem;
  color: #2739a5;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social-links a {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f3443;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  color: #2739a5;
  transform: translateY(-1px);
}

.footer-social-links svg {
  width: 1.18rem;
  height: 1.18rem;
}

.footer-contact-list,
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
  color: var(--muted);
}

.footer-contact-list-rich li,
.footer-link-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
}

.footer-contact-icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.14rem;
  flex: 0 0 auto;
  color: #4c5ec6;
}

.footer-contact-icon svg {
  width: 100%;
  height: 100%;
}

.footer-contact-list-rich span,
.footer-contact-list-rich a,
.footer-link-list a {
  color: #5d6a86;
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer-contact-list-rich a:hover,
.footer-link-list a:hover,
.footer-contact-list-rich a:focus-visible,
.footer-link-list a:focus-visible {
  color: #2739a5;
}

.footer-claims-link {
  margin-top: 1.3rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: #2739a5;
  color: #fff;
}

.footer-claims-link-copy {
  display: grid;
  gap: 0.25rem;
}

.footer-claims-link-copy strong {
  font-size: 1rem;
  line-height: 1.1;
}

.footer-claims-link-copy span {
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.8);
}

.footer-claims-link-media {
  flex: 0 0 4.25rem;
  display: grid;
  place-items: center;
}

.footer-claims-link-media img {
  width: 100%;
  max-width: 4rem;
  max-height: 2.9rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-payment-logos {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.payment-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  font-weight: 800;
}

.payment-logo.is-visa {
  color: #1a49b5;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.payment-logo.is-mastercard {
  color: #1b1f2a;
  font-size: 0.94rem;
}

.payment-logo-mastercard-mark {
  position: relative;
  width: 2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
}

.payment-logo-mastercard-mark i {
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  display: block;
}

.payment-logo-mastercard-mark i:first-child {
  left: 0;
  background: #ea001b;
}

.payment-logo-mastercard-mark i:last-child {
  right: 0;
  background: #ff9f1a;
  mix-blend-mode: multiply;
}

.payment-logo.is-pagoefectivo {
  color: #1f2530;
  font-size: 0.98rem;
}

.payment-logo-pe-mark {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: #ffc400;
  color: #1c2330;
  font-size: 1.2rem;
  font-weight: 900;
  font-style: italic;
}

.payment-logo.is-plin {
  color: #11a76c;
}

.payment-logo-plin-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  min-height: 1.6rem;
  padding: 0.12rem 0.46rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #17c57b 0%, #0aa4a7 100%);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: lowercase;
}

.footer-bottom {
  border-top: 1px solid rgba(217, 224, 238, 0.9);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
}

.footer-bottom-copy {
  display: grid;
  gap: 0.45rem;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: #2739a5;
  font-size: 0.84rem;
  font-weight: 700;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  padding: 0.7rem 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(217, 224, 238, 0.96);
  box-shadow: 0 -10px 28px rgba(15, 32, 61, 0.1);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  color: #434f68;
  font-size: 0.96rem;
  line-height: 1.45;
}

.cookie-banner a {
  color: #1d73be;
  font-weight: 700;
}

.cookie-banner-button {
  min-width: 8.2rem;
  padding: 0.78rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: #3142a8;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.cookie-banner-button:hover,
.cookie-banner-button:focus-visible {
  opacity: 0.96;
  transform: translateY(-1px);
}

.cookie-policy-page {
  padding: 2.2rem 0 3rem;
}

.cookie-policy-card {
  display: grid;
  gap: 1.4rem;
  padding: 1.5rem;
}

.cookie-policy-card section {
  display: grid;
  gap: 0.7rem;
}

.cookie-policy-card h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.cookie-policy-card p,
.cookie-policy-card li {
  color: var(--muted);
  line-height: 1.72;
}

.cookie-policy-card ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
}

.cookie-policy-table {
  width: 100%;
  border-collapse: collapse;
}

.cookie-policy-table th,
.cookie-policy-table td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(217, 224, 238, 0.9);
  text-align: left;
  vertical-align: top;
}

.cookie-policy-table th {
  color: var(--primary-dark);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-policy-table td {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.cookie-policy-note {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(29, 115, 190, 0.06);
  border: 1px solid rgba(29, 115, 190, 0.12);
}

@media (max-width: 1120px) {
  .header-main,
  .showcase-layout,
  .detail-layout,
  .auth-grid,
  .account-grid,
  .cart-layout,
  .checkout-layout,
  .footer-bottom-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-grid,
  .product-grid,
  .admin-slide-grid,
  .admin-product-grid,
  .admin-brand-grid,
  .admin-category-grid,
  .admin-request-grid,
  .category-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters-panel,
  .admin-form-grid,
  .admin-request-toolbar {
    grid-template-columns: 1fr 1fr;
  }

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

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-button {
    align-self: flex-end;
  }
}

@media (max-width: 760px) {
  .container { width: min(100% - 1rem, 100%); }

  .top-ribbon-inner,
  .section-heading,
  .results-head,
  .admin-topbar,
  .header-actions,
  .nav-band-inner,
  .footer-bottom-inner,
  .showcase-actions,
  .catalog-card-actions,
  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .showcase-slide {
    grid-template-columns: 1fr;
    padding: 1.4rem;
  }

  .showcase-track {
    min-height: 34rem;
  }

  .catalog-grid,
  .product-grid,
  .admin-slide-grid,
  .admin-product-grid,
  .admin-brand-grid,
  .admin-category-grid,
  .admin-request-grid,
  .category-strip,
  .filters-panel,
  .admin-form-grid,
  .admin-product-search,
  .admin-request-toolbar {
    grid-template-columns: 1fr;
  }

  .nav-menu,
  .nav-tools {
    gap: 0.8rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding: 2rem 0 1.6rem;
  }

  .footer-heading {
    margin-bottom: 0.8rem;
    font-size: 0.88rem;
  }

  .footer-contact-list-rich span,
  .footer-contact-list-rich a,
  .footer-link-list a {
    font-size: 0.88rem;
  }

  .footer-payment-logos {
    gap: 0.8rem;
  }

  .payment-logo.is-visa {
    font-size: 1.45rem;
  }

  .cookie-banner {
    padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom));
  }

  .cookie-banner p {
    font-size: 0.87rem;
  }

  .cookie-banner-button {
    width: 100%;
    min-width: 0;
  }

  .cookie-policy-card {
    padding: 1.1rem;
  }

  .cookie-policy-table th,
  .cookie-policy-table td {
    padding: 0.75rem 0.55rem;
    font-size: 0.86rem;
  }

  .header-search {
    flex-direction: column;
  }
}

/* SANNI storefront refresh inspired by sonepar.pe */
:root {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --line: #d7dfeb;
  --text: #12223c;
  --muted: #5f6e86;
  --primary: #2b3f9d;
  --primary-dark: #1c2f79;
  --primary-soft: #e9efff;
  --accent: #ff6d1b;
  --accent-dark: #dc5710;
  --dark: #13243f;
  --success: #15754a;
  --danger: #c23f4a;
  --shadow: 0 22px 46px rgba(15, 32, 61, 0.11);
}

body {
  font-family: "Roboto", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(43, 63, 157, 0.08), transparent 22rem),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
}

.top-ribbon {
  background: #1d73be;
  border-bottom: 0;
}

.top-ribbon-inner {
  padding: 0.44rem 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.94);
}

.top-ribbon-inner p,
.top-ribbon-meta span {
  color: rgba(255, 255, 255, 0.94);
}

.top-ribbon-meta {
  gap: 0.9rem;
}

.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(19, 36, 63, 0.06);
}

.header-main {
  grid-template-columns: minmax(150px, auto) minmax(560px, 1fr) auto;
  gap: 0.8rem;
  padding: 0.42rem 0 0.48rem;
}

.site-brand-logo {
  width: 3.1rem;
  height: 3.1rem;
  padding: 0.22rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(215, 223, 235, 0.85);
  box-shadow: 0 8px 16px rgba(15, 32, 61, 0.06);
}

.site-brand-mark,
.footer-brand-mark {
  width: 2.95rem;
  height: 2.95rem;
  border-radius: 0.82rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 120%);
  box-shadow: 0 12px 22px rgba(36, 53, 132, 0.14);
}

.site-brand-copy strong {
  font-size: 0.9rem;
  line-height: 1.05;
}

.site-brand-copy small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
}

.header-search {
  min-width: 0;
  width: 100%;
  align-items: stretch;
  gap: 0.48rem;
}

.search-autocomplete-shell {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.search-autocomplete-shell-block {
  width: 100%;
}

.header-search input {
  height: 2.5rem;
  border-radius: 0.9rem;
  padding: 0 0.95rem;
  border: 1px solid rgba(18, 34, 60, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.search-autocomplete-panel {
  position: absolute;
  top: calc(100% + 0.42rem);
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  gap: 0.28rem;
  max-height: 23rem;
  overflow-y: auto;
  padding: 0.42rem;
  border: 1px solid rgba(210, 220, 238, 0.96);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 20px 38px rgba(15, 32, 61, 0.14);
}

.search-autocomplete-panel[hidden] {
  display: none;
}

.search-autocomplete-item {
  width: 100%;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.72rem;
  align-items: center;
  padding: 0.5rem 0.55rem;
  border: 0;
  border-radius: 0.88rem;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.search-autocomplete-item:hover,
.search-autocomplete-item.is-active {
  background: #f3f7ff;
  transform: translateY(-1px);
}

.search-autocomplete-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 0.25rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(220, 227, 238, 0.95);
  background: #fff;
}

.search-autocomplete-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-autocomplete-meta {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.search-autocomplete-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: baseline;
}

.search-autocomplete-brand {
  color: #3045b0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.search-autocomplete-sku {
  color: var(--muted);
  font-size: 0.74rem;
}

.search-autocomplete-title {
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.search-autocomplete-note {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.42;
}

.search-autocomplete-empty {
  padding: 0.8rem 0.9rem;
  border-radius: 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.search-button,
.btn,
.accent-button,
.dark-button,
.ghost-button,
.light-button,
.btn-accent,
.btn-dark,
.btn-outline,
.btn-light {
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
}

.search-button,
.accent-button,
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8d43 100%);
}

.search-button {
  min-height: 2.5rem;
  padding: 0 1.15rem;
}

.dark-button,
.btn-dark {
  background: linear-gradient(135deg, #172a4a 0%, #263b66 100%);
}

.ghost-button,
.btn-outline {
  background: #fff;
  border-color: rgba(43, 63, 157, 0.16);
  color: var(--primary-dark);
}

.light-button,
.btn-light,
.ghost-button-soft {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.light-button,
.btn-light {
  background: rgba(255, 255, 255, 0.14);
}

.ghost-button-soft {
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.35rem;
  align-items: center;
}

.header-support-link,
.header-icon-button,
.header-cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(215, 223, 235, 0.9);
  background: #fff;
  box-shadow: 0 7px 14px rgba(15, 32, 61, 0.06);
}

.header-support-link {
  padding: 0 0.72rem;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
}

.header-icon-button,
.header-cart-icon {
  width: 2.35rem;
  padding: 0;
  color: var(--dark);
}

.header-icon-button svg,
.header-cart-icon svg {
  width: 1rem;
  height: 1rem;
}

.header-account-menu {
  position: relative;
}

.header-account-menu summary {
  list-style: none;
  cursor: pointer;
}

.header-account-menu summary::-webkit-details-marker {
  display: none;
}

.header-account-dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 15rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(215, 223, 235, 0.95);
  background: #fff;
  box-shadow: 0 22px 38px rgba(15, 32, 61, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  z-index: 60;
}

.header-account-menu:hover .header-account-dropdown,
.header-account-menu[open] .header-account-dropdown,
.header-account-menu:focus-within .header-account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-account-dropdown strong {
  display: block;
  font-size: 1rem;
  color: var(--dark);
}

.header-account-dropdown > span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.account-links {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.account-links a {
  font-weight: 800;
  color: var(--primary-dark);
}

.header-cart-icon {
  overflow: visible;
}

.header-cart-badge {
  position: absolute;
  top: -0.14rem;
  right: -0.1rem;
  min-width: 0.95rem;
  height: 0.95rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
}

.nav-band {
  background: linear-gradient(90deg, #25388f 0%, #334ab0 100%);
}

.nav-band-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
}

.nav-categories-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.1);
}

.nav-categories-icon {
  position: relative;
  width: 1.15rem;
  height: 0.85rem;
  display: inline-block;
}

.nav-categories-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.nav-categories-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  border-top: 2px solid currentColor;
}

.nav-categories-caret {
  margin-left: auto;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.nav-menu,
.nav-tools {
  gap: 1rem;
}

.nav-menu a,
.nav-tools a,
.nav-categories-link {
  border-bottom-width: 0;
}

.nav-menu a,
.nav-tools a {
  padding: 1rem 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.nav-menu a.is-active,
.nav-menu a:hover,
.nav-tools a:hover,
.nav-categories-link:hover {
  color: #fff;
}

.nav-categories-dropdown {
  position: relative;
}

.nav-categories-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.nav-categories-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-categories-dropdown[open] .nav-categories-caret {
  transform: rotate(225deg);
}

.nav-categories-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  width: min(76rem, calc(100vw - 2rem));
  padding: 0;
  border-radius: 1.15rem;
  border: 1px solid rgba(215, 223, 235, 0.95);
  background: #fff;
  box-shadow: 0 24px 40px rgba(15, 32, 61, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  z-index: 65;
}

.nav-categories-dropdown:hover .nav-categories-panel,
.nav-categories-dropdown[open] .nav-categories-panel,
.nav-categories-dropdown:focus-within .nav-categories-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-categories-all {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.7rem;
  padding: 0.72rem 0.9rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  border: 1px solid rgba(217, 224, 236, 0.94);
  color: var(--primary-dark);
  font-weight: 800;
}

.nav-taxonomy-desktop {
  display: grid;
  grid-template-columns: minmax(18rem, 19.5rem) minmax(0, 1fr);
  min-height: 28rem;
}

.nav-taxonomy-sidebar {
  padding: 0.95rem 0.9rem;
  border-right: 1px solid rgba(223, 230, 240, 0.92);
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.98) 0%, rgba(240, 246, 255, 0.98) 100%);
}

.nav-taxonomy-group-list {
  display: grid;
  gap: 0.14rem;
  max-height: 29rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.nav-taxonomy-group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.78rem;
  padding: 0.72rem 0.78rem;
  border-radius: 0.95rem;
  background: transparent;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.nav-taxonomy-group:hover,
.nav-taxonomy-group:focus-visible,
.nav-taxonomy-group.is-active {
  background: rgba(29, 115, 190, 0.06);
  border-color: rgba(29, 115, 190, 0.16);
  transform: translateX(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.nav-taxonomy-group.is-empty {
  opacity: 0.82;
}

.nav-taxonomy-group-copy {
  min-width: 0;
}

.nav-taxonomy-group-copy strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.16;
}

.nav-taxonomy-group-copy span {
  display: block;
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.24;
}

.nav-taxonomy-group-arrow {
  width: 0.56rem;
  height: 0.56rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  color: rgba(24, 47, 82, 0.42);
}

.nav-categories-item-icon {
  width: 1.78rem;
  height: 1.78rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.nav-categories-item-icon svg {
  width: 0.98rem;
  height: 0.98rem;
}

.nav-categories-item-copy {
  min-width: 0;
}

.nav-categories-item-copy strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.18;
}

.nav-categories-item-copy span {
  display: block;
  margin-top: 0.14rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.nav-categories-item-icon.is-cable {
  color: #d84f4a;
  background: rgba(216, 79, 74, 0.12);
}

.nav-categories-item-icon.is-energy {
  color: #2280c8;
  background: rgba(34, 128, 200, 0.12);
}

.nav-categories-item-icon.is-motor {
  color: #1d73be;
  background: rgba(29, 115, 190, 0.12);
}

.nav-categories-item-icon.is-light {
  color: #f2b300;
  background: rgba(242, 179, 0, 0.14);
}

.nav-categories-item-icon.is-measure {
  color: #f26f2f;
  background: rgba(242, 111, 47, 0.12);
}

.nav-categories-item-icon.is-tool {
  color: #4f79b9;
  background: rgba(79, 121, 185, 0.12);
}

.nav-categories-item-icon.is-home {
  color: #2aa8c7;
  background: rgba(42, 168, 199, 0.12);
}

.nav-categories-item-icon.is-fluid {
  color: #4c8fd0;
  background: rgba(76, 143, 208, 0.12);
}

.nav-categories-item-icon.is-chem {
  color: #e56d58;
  background: rgba(229, 109, 88, 0.12);
}

.nav-categories-item-icon.is-general {
  color: #7187a4;
  background: rgba(113, 135, 164, 0.12);
}

.nav-taxonomy-detail {
  min-width: 0;
  max-height: 29rem;
  overflow-y: auto;
  padding: 1.05rem 1.2rem 1.15rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 251, 255, 0.98) 100%);
}

.nav-taxonomy-pane {
  display: none;
}

.nav-taxonomy-pane.is-active {
  display: block;
}

.nav-taxonomy-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(224, 231, 241, 0.95);
}

.nav-taxonomy-pane-intro {
  min-width: 0;
}

.nav-taxonomy-pane-kicker {
  display: inline-flex;
  margin-bottom: 0.42rem;
  color: #6c7e97;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-taxonomy-pane-title {
  display: inline-flex;
  color: #173150;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: 1.8rem;
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  transition: color 160ms ease;
}

.nav-taxonomy-pane-title:hover,
.nav-taxonomy-pane-title:focus-visible {
  color: #214d7a;
}

.nav-taxonomy-pane-intro p {
  margin: 0.5rem 0 0;
  max-width: 44rem;
  color: #64778f;
  font-size: 0.95rem;
  line-height: 1.55;
}

.nav-taxonomy-pane-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 56, 143, 0.18);
  color: #25388f;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav-taxonomy-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
  padding-top: 1.1rem;
}

.nav-taxonomy-column {
  min-width: 0;
}

.nav-taxonomy-category {
  display: inline-flex;
  margin-bottom: 0.78rem;
  color: #203ea5;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.nav-taxonomy-lines {
  display: grid;
  gap: 0.48rem;
}

.nav-taxonomy-line {
  color: #1d2f4a;
  font-size: 0.96rem;
  line-height: 1.28;
  transition: color 160ms ease, transform 160ms ease;
}

.nav-taxonomy-line:hover,
.nav-taxonomy-line:focus-visible {
  color: #1f77d2;
  transform: translateX(2px);
}

.nav-taxonomy-line.is-fallback {
  color: #667a93;
  font-style: italic;
}

.nav-taxonomy-empty,
.nav-taxonomy-mobile-empty {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px dashed rgba(196, 208, 226, 0.92);
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
  color: #5f7290;
}

.nav-taxonomy-empty strong {
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-taxonomy-mobile {
  display: none;
  padding: 0.8rem;
}

.nav-taxonomy-mobile-list {
  display: grid;
  gap: 0.65rem;
}

.nav-taxonomy-mobile-group {
  border: 1px solid rgba(217, 224, 236, 0.96);
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  overflow: hidden;
}

.nav-taxonomy-mobile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.88rem 0.92rem;
  cursor: pointer;
  list-style: none;
}

.nav-taxonomy-mobile-summary::-webkit-details-marker {
  display: none;
}

.nav-taxonomy-mobile-copy strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.16;
}

.nav-taxonomy-mobile-copy span {
  display: block;
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-taxonomy-mobile-caret {
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  color: rgba(27, 49, 82, 0.48);
  transition: transform 180ms ease;
}

.nav-taxonomy-mobile-group[open] .nav-taxonomy-mobile-caret {
  transform: rotate(225deg);
}

.nav-taxonomy-mobile-body {
  display: grid;
  gap: 0.8rem;
  padding: 0 0.92rem 0.92rem;
}

.nav-taxonomy-mobile-parent-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 56, 143, 0.18);
  color: #25388f;
  font-size: 0.78rem;
  font-weight: 800;
}

.nav-taxonomy-mobile-category {
  display: grid;
  gap: 0.48rem;
}

.nav-taxonomy-mobile-category-link {
  color: #203ea5;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.nav-taxonomy-mobile-lines {
  display: grid;
  gap: 0.42rem;
  padding-left: 0.2rem;
}

.nav-taxonomy-mobile-line {
  color: #344a67;
  font-size: 0.8rem;
  line-height: 1.28;
}

.nav-mobile-only {
  display: none;
}

.nav-mobile-sections {
  margin-top: 0.9rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(221, 228, 239, 0.92);
}

.nav-mobile-section + .nav-mobile-section {
  margin-top: 0.95rem;
}

.nav-mobile-heading {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-mobile-links {
  display: grid;
  gap: 0.5rem;
}

.nav-mobile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.82rem 0.9rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  border: 1px solid rgba(217, 224, 236, 0.96);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-mobile-links a.is-active {
  background: rgba(44, 72, 188, 0.08);
  border-color: rgba(44, 72, 188, 0.22);
}

.nav-mobile-link-arrow {
  width: 0.58rem;
  height: 0.58rem;
  flex: 0 0 auto;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.48;
}

.brand-ribbon-section {
  padding: 0.55rem 0 0;
}

.brand-ribbon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
  min-height: 4.3rem;
  padding: 0.55rem 0.45rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(215, 223, 235, 0.9);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.brand-ribbon-slider {
  gap: 0;
}

.brand-ribbon-label,
.highlight-kicker,
.footer-kicker {
  display: inline-flex;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.brand-ribbon-label,
.footer-kicker {
  color: var(--primary-dark);
}

.highlight-kicker {
  color: var(--primary);
}

.brand-ribbon-window {
  min-width: 0;
  overflow: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.brand-ribbon-window::-webkit-scrollbar {
  display: none;
}

.brand-ribbon-track {
  display: flex;
  gap: 0.78rem;
  align-items: center;
  width: max-content;
  padding: 0 0.35rem;
}

.brand-ribbon-arrow {
  width: 2rem;
  height: 2rem;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: #c0c6d1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.brand-ribbon-arrow:hover,
.brand-ribbon-arrow:focus-visible {
  color: #9aa3b1;
  background: rgba(18, 34, 60, 0.04);
  outline: 0;
}

.brand-ribbon-arrow:disabled {
  opacity: 0.26;
  cursor: default;
}

.brand-ribbon-arrow svg {
  width: 1.1rem;
  height: 1.1rem;
}

.brand-chip {
  border-radius: 999px;
  background: linear-gradient(180deg, #fbfcff 0%, #eef2fb 100%);
  border: 1px solid rgba(215, 223, 235, 0.9);
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.brand-chip-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.15rem;
  min-height: 2.4rem;
  padding: 0.28rem 0.3rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 180ms ease;
}

.brand-chip-logo:hover,
.brand-chip-logo:focus-visible {
  transform: translateY(-1px);
  outline: 0;
}

.brand-chip-logo img {
  display: block;
  max-width: 5.55rem;
  max-height: 1.7rem;
  object-fit: contain;
  filter: grayscale(1) saturate(0) contrast(1.08);
  opacity: 1;
  mix-blend-mode: normal;
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.brand-chip-logo:hover img,
.brand-chip-logo:focus-visible img {
  filter: none;
  opacity: 1;
  transform: scale(1.2);
}

.brand-chip-logo span {
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
  color: #70798d;
  transition: color 180ms ease, opacity 180ms ease;
}

.brand-chip-logo:hover span,
.brand-chip-logo:focus-visible span {
  color: var(--primary-dark);
}

.showcase-section {
  padding: 1rem 0 1.8rem;
}

.showcase-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.7fr);
  gap: 1rem;
  align-items: stretch;
}

.showcase-layout-full {
  grid-template-columns: 1fr;
}

.showcase-slider,
.side-card,
.catalog-card,
.panel-card,
.auth-card,
.admin-panel,
.admin-slide-card,
.admin-product-card,
.confirmation-card {
  border: 1px solid rgba(215, 223, 235, 0.9);
  border-radius: 1.65rem;
  box-shadow: var(--shadow);
}

.showcase-slider {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.22), transparent 16rem),
    radial-gradient(circle at 10% 92%, rgba(0, 0, 0, 0.16), transparent 14rem),
    linear-gradient(130deg, #1e327e 0%, #2384d0 44%, #ff5a1b 128%);
}

.showcase-track {
  position: relative;
  height: 52vh;
  min-height: 19rem;
  max-height: 28rem;
}

.showcase-slide {
  grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.88fr);
  align-items: stretch;
  gap: 1rem;
  padding: 1.15rem 1.55rem;
}

.showcase-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  min-height: 100%;
  padding-bottom: 2.25rem;
  z-index: 1;
}

.showcase-badge {
  margin-bottom: 0.7rem;
  padding: 0.44rem 0.74rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.showcase-copy h1 {
  font-family: "Roboto", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 12ch;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.showcase-copy p {
  margin-top: 0.55rem;
  max-width: 32rem;
  font-size: 0.9rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: rgba(255, 255, 255, 0.93);
}

.showcase-actions {
  margin-top: auto;
  padding-top: 0.85rem;
}

.showcase-media {
  position: relative;
  z-index: 1;
}

.showcase-media img {
  width: min(100%, 17rem);
  aspect-ratio: 1 / 1;
  padding: 0.75rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 46px rgba(10, 16, 32, 0.22);
}

.featured-spotlight-section {
  padding: 0 0 1.8rem;
}

.featured-spotlight-slider {
  position: relative;
  overflow: hidden;
  border-radius: 1.55rem;
  border: 1px solid rgba(215, 223, 235, 0.9);
  background: linear-gradient(135deg, #ffffff 0%, #eef3ff 100%);
  box-shadow: var(--shadow);
}

.featured-spotlight-track {
  min-height: 21rem;
}

.featured-spotlight-slide {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.4rem;
  padding: 1.7rem 2rem 2rem;
}

.featured-spotlight-copy h2 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.featured-spotlight-copy p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.featured-spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  align-items: center;
  margin-top: 1rem;
}

.featured-spotlight-meta strong {
  color: var(--primary-dark);
  font-size: 1.15rem;
}

.featured-spotlight-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.featured-spotlight-media {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.35rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 18px 34px rgba(15, 32, 61, 0.08);
}

.featured-spotlight-media img {
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.featured-spotlight-dots {
  left: 2rem;
  bottom: 1.1rem;
}

.showcase-dots {
  left: 2.3rem;
  bottom: 1.45rem;
  z-index: 2;
}

.showcase-dot {
  width: 0.74rem;
  height: 0.74rem;
  background: rgba(255, 255, 255, 0.45);
  transition: 180ms ease;
}

.showcase-dot.is-active {
  width: 2rem;
  background: #fff;
}

.showcase-side {
  grid-template-rows: auto auto 1fr;
}

.side-card {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.98);
}

.side-card-highlight {
  background: linear-gradient(180deg, #24368f 0%, #172760 100%);
  color: #fff;
}

.side-card-highlight p {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.72;
}

.side-card-support {
  background: linear-gradient(180deg, #fff7ee 0%, #ffffff 100%);
}

.side-card-support p {
  margin: 0.55rem 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.side-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.side-actions {
  margin-top: 1.05rem;
}

.side-card-stats {
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
}

.side-stat-list {
  gap: 0.75rem;
}

.side-stat-list div {
  padding: 0.95rem 1rem;
  border-radius: 1.1rem;
  background: #fff;
}

.home-highlights,
.benefits-section {
  padding: 0 0 2rem;
}

.site-benefits-section {
  padding-top: 0.35rem;
}

.benefits-card {
  padding: 2.6rem 2rem 2rem;
  border-radius: 0;
  background: #f1f3f5;
  border: 1px solid rgba(215, 223, 235, 0.75);
}

.benefits-card h2 {
  margin: 0 0 2rem;
  text-align: center;
  color: #3f4a59;
  font-size: clamp(1.85rem, 2.4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.benefits-item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 1rem;
  text-align: center;
}

.benefits-icon {
  display: inline-grid;
  place-items: center;
  width: 5.8rem;
  height: 5.8rem;
  color: #616a77;
}

.benefits-icon svg {
  width: 100%;
  height: 100%;
}

.benefits-item p {
  margin: 0;
  max-width: 12rem;
  color: #5d6673;
  font-size: 0.98rem;
  line-height: 1.35;
}

.page-banner-compact {
  padding: 0.55rem 0 0.2rem;
}

.page-banner-compact .section-kicker {
  margin-bottom: 0.35rem;
}

.page-banner-compact .section-title {
  font-size: clamp(1.55rem, 2.7vw, 2.55rem);
  line-height: 1.08;
}

.page-banner-compact .section-copy {
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.filters-section-compact {
  padding: 0.1rem 0 0.75rem;
}

.filters-panel-compact {
  grid-template-columns: minmax(0, 2.2fr) minmax(190px, 1.1fr) minmax(190px, 1fr) auto auto;
  gap: 0.7rem;
  align-items: end;
}

.filters-panel-compact .field label {
  margin-bottom: 0.28rem;
  font-size: 0.72rem;
}

.filters-panel-compact .field input,
.filters-panel-compact .field select {
  min-height: 2.55rem;
  padding: 0.62rem 0.85rem;
  border-radius: 0.95rem;
}

.filters-panel-compact .field-checkbox {
  padding-bottom: 0.3rem;
  align-self: end;
}

.filters-panel-compact .field-submit .btn {
  min-height: 2.55rem;
  padding: 0 1rem;
}

.results-head-compact {
  margin-top: 0.45rem;
  align-items: center;
}

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

.highlight-card {
  min-height: 100%;
  padding: 1.2rem 1.2rem 1.15rem;
  border-radius: 1.45rem;
  border: 1px solid rgba(215, 223, 235, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  box-shadow: var(--shadow);
}

.highlight-card p {
  margin: 0.65rem 0 0.95rem;
  color: var(--muted);
  line-height: 1.72;
}

.highlight-card strong {
  color: var(--primary-dark);
}

.home-categories,
.home-products {
  padding: 0 0 2.5rem;
}

.home-products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-products-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(215, 223, 235, 0.9);
  box-shadow: 0 12px 24px rgba(21, 37, 71, 0.06);
}

.home-products-filter-menu {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.home-products-filter-menu label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-products-filter-menu select {
  min-width: 10rem;
  min-height: 2.3rem;
  padding: 0.5rem 2rem 0.5rem 0.8rem;
  border-radius: 0.92rem;
  border: 1px solid rgba(215, 223, 235, 0.92);
  background: rgba(255, 255, 255, 0.98);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(21, 37, 71, 0.05);
}

.home-products-filter {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  padding: 0.68rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.home-products-filter:hover,
.home-products-filter:focus-visible {
  color: var(--primary-dark);
  outline: 0;
}

.home-products-filter.is-active {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(34, 57, 144, 0.18);
}

.home-products-panel[hidden] {
  display: none;
}

.home-products-empty {
  padding: 1.15rem 1.25rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(215, 223, 235, 0.9);
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  box-shadow: 0 14px 28px rgba(18, 34, 60, 0.05);
}

.home-products-empty strong {
  display: block;
  color: var(--primary-dark);
}

.home-products-empty span {
  display: block;
  margin-top: 0.35rem;
}

.home-products-limit {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.home-products-limit label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.home-products-limit select {
  min-width: 5.25rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(215, 223, 235, 0.92);
  background: rgba(255, 255, 255, 0.98);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0.68rem 0.9rem;
  box-shadow: 0 12px 24px rgba(21, 37, 71, 0.05);
}

.section-heading {
  margin-bottom: 1.2rem;
  align-items: end;
}

.section-label {
  color: var(--primary-dark);
}

.section-heading h2 {
  font-size: clamp(1.85rem, 2.8vw, 2.85rem);
}

.category-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.category-tile {
  padding: 1.15rem 1.2rem;
  border-radius: 1.45rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid rgba(215, 223, 235, 0.9);
  box-shadow: var(--shadow);
}

.category-tile strong {
  color: var(--primary-dark);
  font-size: 1.04rem;
}

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

.catalog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(15, 32, 61, 0.14);
}

.catalog-card-media {
  aspect-ratio: 0.98 / 1;
  padding: 1.15rem;
  background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
}

.catalog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
  padding: 1.15rem;
}

.catalog-card-meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
}

.catalog-card-title {
  margin: 0;
  min-height: 4.4rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.catalog-card-title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.catalog-card-copy {
  min-height: 3.5rem;
  font-size: 0.94rem;
}

.catalog-card-stats {
  margin: 0;
  gap: 0.65rem;
}

.catalog-card-stats > div {
  padding: 0.82rem 0.9rem;
  border-radius: 1rem;
  background: var(--surface-soft);
}

.catalog-card-lock {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
}

.catalog-card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.catalog-card-actions .ghost-button,
.catalog-card-actions .dark-button,
.catalog-card-actions .accent-button,
.catalog-card-actions .btn {
  width: 100%;
}

.site-footer {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.footer-top {
  grid-template-columns: 1.1fr 1fr 0.78fr;
  gap: 1.5rem;
  padding: 2.7rem 0 2rem;
}

.footer-column {
  padding: 0.25rem 0;
}

.footer-column h3 {
  margin: 0.25rem 0 1rem;
  font-size: 1.25rem;
}

.footer-branding {
  align-items: flex-start;
}

.footer-branding p,
.footer-contact-list,
.footer-brand-list,
.footer-claims p,
.footer-bottom p {
  color: var(--muted);
}

.claims-card {
  padding: 0.9rem;
  border-radius: 1.35rem;
  background: #fff;
}

.claims-card img {
  aspect-ratio: 1.32 / 1;
}

.footer-brand-list li,
.footer-contact-list li {
  line-height: 1.7;
}

.footer-bottom {
  background: rgba(255, 255, 255, 0.9);
}

.payment-badges span {
  background: linear-gradient(180deg, #ffffff 0%, #edf2fb 100%);
}

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

  .showcase-layout,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .showcase-side,
  .highlight-grid,
  .benefits-grid,
  .catalog-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-side {
    display: grid;
  }

  .nav-band-inner {
    grid-template-columns: 1fr;
  }
}

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

  .home-products-toolbar {
    justify-content: stretch;
    align-items: stretch;
    flex-direction: column;
  }

  .home-products-filters {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .home-products-limit {
    margin-left: 0;
    justify-content: flex-end;
  }

  .top-ribbon-inner,
  .footer-bottom-inner,
  .section-heading,
  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions,
  .nav-band-inner {
    grid-template-columns: 1fr;
  }

  .top-ribbon-inner {
    text-align: left;
    gap: 0.45rem;
  }

  .top-ribbon-meta {
    gap: 0.45rem 1rem;
  }

  .header-main {
    padding: 0.85rem 0 1rem;
  }

  .site-brand {
    align-items: center;
  }

  .site-brand-copy strong {
    font-size: 1.4rem;
  }

  .header-search {
    width: 100%;
  }

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

  .nav-band {
    padding-bottom: 0.3rem;
  }

  .nav-band-inner {
    gap: 0.55rem;
    padding-top: 0.2rem;
  }

  .nav-categories-link {
    justify-content: center;
    border-radius: 1rem;
    margin-top: 0.2rem;
  }

  .nav-categories-panel {
    position: static;
    width: 100%;
    margin-top: 0.45rem;
    box-shadow: none;
  }

  .nav-taxonomy-desktop {
    grid-template-columns: minmax(15rem, 16.5rem) minmax(0, 1fr);
    min-height: 24rem;
  }

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

  .nav-menu,
  .nav-tools {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .nav-menu::-webkit-scrollbar,
  .nav-tools::-webkit-scrollbar,
  .brand-ribbon-track::-webkit-scrollbar {
    display: none;
  }

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

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

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

  .showcase-slide {
    grid-template-columns: 1fr;
    padding: 1.55rem;
  }

  .featured-spotlight-slide {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }

  .showcase-track {
    height: auto;
    min-height: 31rem;
    max-height: none;
  }

  .featured-spotlight-track {
    min-height: 29rem;
  }

  .showcase-copy h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .showcase-media img {
    width: min(100%, 22rem);
  }

  .showcase-side {
    grid-template-columns: 1fr;
  }

  .brand-ribbon {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0.4rem;
    padding: 0.55rem 0.4rem;
    align-items: stretch;
  }

  .brand-ribbon-window {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .brand-ribbon-window::-webkit-scrollbar {
    display: none;
  }

  .brand-ribbon-track {
    gap: 1.1rem;
    padding: 0 0.15rem;
  }

  .brand-ribbon-arrow {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    padding: 2.1rem 0 1.7rem;
  }
}

@media (max-width: 640px) {
  .header-search,
  .showcase-actions,
  .side-actions {
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-support-link {
    flex: 1 1 auto;
    justify-content: center;
  }

  .header-search input,
  .search-button {
    width: 100%;
  }

  .site-brand {
    gap: 0.75rem;
  }

  .site-brand-logo,
  .site-brand-mark,
  .footer-brand-mark {
    width: 3.4rem;
    height: 3.4rem;
  }

  .site-brand-copy strong {
    font-size: 1.18rem;
  }

  .site-brand-copy small {
    letter-spacing: 0.12em;
  }

  .nav-menu,
  .nav-tools {
    flex-wrap: wrap;
  }

  .nav-menu a,
  .nav-tools a {
    padding: 0.7rem 0;
    font-size: 0.88rem;
  }

  .showcase-section {
    padding-top: 0.8rem;
  }

  .showcase-slide {
    padding: 1.2rem;
  }

  .showcase-track {
    min-height: 27rem;
  }

  .showcase-copy p,
  .side-card-highlight p,
  .side-card-support p,
  .highlight-card p,
  .section-copy {
    font-size: 0.93rem;
    line-height: 1.62;
  }

  .showcase-dots {
    left: 1.2rem;
    bottom: 1rem;
  }

  .highlight-grid,
  .benefits-grid,
  .category-strip {
    grid-template-columns: 1fr;
  }

  .benefits-card {
    padding: 2rem 1.15rem 1.5rem;
  }

  .benefits-card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.55rem;
  }

  .filters-panel-compact {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .filters-panel-compact .field-checkbox,
  .filters-panel-compact .field-submit {
    padding-bottom: 0;
  }

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

  .catalog-card-body {
    padding: 0.95rem;
  }

  .catalog-card-title {
    min-height: 3.9rem;
    font-size: 0.96rem;
  }

  .catalog-card-copy {
    min-height: 3.1rem;
    font-size: 0.88rem;
  }

  .catalog-card-stats,
  .catalog-card-actions {
    grid-template-columns: 1fr;
  }

  .footer-top {
    gap: 1.2rem;
  }
}

@media (max-width: 420px) {
  .home-products-toolbar {
    gap: 0.6rem;
  }

  .home-products-filters {
    display: none;
  }

  .home-products-filter-menu {
    display: inline-flex;
    width: 100%;
  }

  .home-products-filter-menu label {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .home-products-filter-menu select {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 2.1rem;
    padding: 0.42rem 1.7rem 0.42rem 0.72rem;
    font-size: 0.76rem;
    font-weight: 600;
  }

  .container {
    width: min(100% - 0.8rem, 100%);
  }

  .top-ribbon-inner {
    font-size: 0.82rem;
  }

  .header-main {
    gap: 0.85rem;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .header-support-link {
    padding: 0 0.8rem;
    font-size: 0.84rem;
  }

  .header-account-dropdown {
    right: 0;
    min-width: 13.2rem;
  }

  .header-search input {
    height: 3.15rem;
  }

  .showcase-track {
    min-height: 24rem;
  }

  .featured-spotlight-track {
    min-height: 26rem;
  }

  .showcase-copy h1 {
    font-size: clamp(1.7rem, 10vw, 2.4rem);
  }

  .showcase-media img {
    width: min(100%, 18rem);
    padding: 0.95rem;
  }

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

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

  .home-products-filter {
    width: 100%;
    text-align: center;
  }

  .home-products-limit {
    width: 100%;
    justify-content: space-between;
  }

  .home-products-limit label {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .home-products-limit select {
    width: auto;
    min-height: 2.1rem;
    font-size: 0.76rem;
    font-weight: 600;
  }

  .catalog-card-title {
    min-height: auto;
  }
}

/* Catalog search experience inspired by sonepar results */
.catalog-search-layout {
  padding: 0.15rem 0 2rem;
}

.catalog-search-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-areas: "sidebar results";
  gap: 1.3rem;
  align-items: start;
}

.catalog-sidebar {
  grid-area: sidebar;
}

.catalog-results {
  grid-area: results;
  min-width: 0;
}

.catalog-sidebar-card,
.catalog-results-toolbar {
  border: 1px solid rgba(215, 223, 235, 0.9);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(15, 32, 61, 0.08);
}

.catalog-sidebar-card {
  padding: 1.2rem 1rem;
}

.catalog-sidebar-mobile-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.catalog-sidebar-mobile-head strong {
  color: var(--dark);
  font-size: 1rem;
}

.catalog-sidebar-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(43, 63, 157, 0.16);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--primary-dark);
  font-size: 1.35rem;
  line-height: 1;
}

.catalog-sidebar-block + .catalog-sidebar-block {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(215, 223, 235, 0.72);
}

.catalog-sidebar-block h2,
.catalog-sidebar-block h3 {
  margin: 0 0 0.9rem;
  color: var(--dark);
}

.catalog-sidebar-block h2 {
  font-size: 1.05rem;
}

.catalog-sidebar-block h3 {
  font-size: 0.98rem;
}

.catalog-filter-accordion {
  display: grid;
  gap: 0.8rem;
}

.catalog-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  list-style: none;
  cursor: pointer;
  color: var(--dark);
  font-size: 0.98rem;
  font-weight: 800;
  user-select: none;
}

.catalog-filter-summary::-webkit-details-marker {
  display: none;
}

.catalog-filter-summary-caret {
  width: 0.52rem;
  height: 0.52rem;
  flex: 0 0 auto;
  border-right: 2px solid rgba(88, 103, 126, 0.72);
  border-bottom: 2px solid rgba(88, 103, 126, 0.72);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.catalog-filter-accordion[open] .catalog-filter-summary-caret {
  transform: rotate(225deg);
}

.catalog-filter-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.catalog-sidebar-card input[type="search"],
.catalog-sidebar-card input[type="text"],
.catalog-sidebar-card input[type="number"],
.catalog-sidebar-card select,
.catalog-sidebar-card input:not([type="radio"]):not([type="checkbox"]) {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.68rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(18, 34, 60, 0.12);
}

.catalog-filter-list {
  display: grid;
  gap: 0.3rem;
  max-height: 17rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.catalog-filter-accordion .catalog-filter-list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.catalog-filter-option,
.catalog-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0;
  color: var(--text);
}

.catalog-filter-option input,
.catalog-check input {
  margin: 0;
}

.catalog-filter-option span,
.catalog-check span {
  flex: 1;
  line-height: 1.35;
}

.catalog-filter-option small {
  color: var(--muted);
}

.catalog-results-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.catalog-results-copy {
  display: grid;
  gap: 0.2rem;
}

.catalog-results-copy strong {
  font-size: 1rem;
  color: var(--dark);
}

.catalog-results-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.catalog-results-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.catalog-filter-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.45rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(43, 63, 157, 0.2);
  border-radius: 0.82rem;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(15, 32, 61, 0.06);
}

.catalog-filter-toggle strong {
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(48, 69, 176, 0.12);
  color: #23318c;
  font-size: 0.72rem;
  line-height: 1;
}

.catalog-filter-toggle-icon {
  position: relative;
  width: 0.95rem;
  height: 0.8rem;
  display: inline-block;
}

.catalog-filter-toggle-icon::before,
.catalog-filter-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px solid currentColor;
}

.catalog-filter-toggle-icon::before {
  top: 0.12rem;
  box-shadow: 0 0.27rem 0 currentColor;
}

.catalog-filter-toggle-icon::after {
  bottom: 0.12rem;
}

.catalog-sort-form {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.catalog-sort-form label {
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}

.catalog-sort-form select {
  min-width: 12rem;
  min-height: 2.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(43, 63, 157, 0.22);
  background: #fff;
}

.product-grid-sonepar {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.05rem;
}

.catalog-card {
  position: relative;
  border-radius: 0.95rem;
  border: 1px solid rgba(43, 63, 157, 0.16);
  box-shadow: none;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.catalog-card:hover {
  transform: translateY(-2px);
  border-color: #3045b0;
  box-shadow: 0 16px 28px rgba(34, 49, 132, 0.12);
}

.catalog-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 0.96;
  padding: 0.95rem 0.95rem 0.7rem;
  background: #fff;
}

.catalog-card-ribbon {
  position: absolute;
  left: 0;
  bottom: 0.65rem;
  padding: 0.36rem 0.75rem;
  border-radius: 0 999px 999px 0;
  background: #7146a6;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.catalog-card-body {
  padding: 0.75rem 0.8rem 0.8rem;
  gap: 0.55rem;
}

.catalog-card-brand {
  color: #3045b0;
  min-height: 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.catalog-card-brand.is-empty,
.catalog-card-copy.is-empty {
  visibility: hidden;
}

.catalog-card-sku {
  color: var(--muted);
  min-height: 0.95rem;
  font-size: 0.74rem;
}

.catalog-card-title {
  min-height: 3.35rem;
  font-size: 0.88rem;
  line-height: 1.33;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.catalog-card-copy {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.42;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-card-price {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  margin-top: auto;
  color: #23318c;
}

.catalog-card-price strong {
  font-size: 1.18rem;
  line-height: 1;
}

.catalog-card-price small {
  font-size: 0.72rem;
  font-weight: 700;
}

.catalog-card-lock {
  margin-top: auto;
  padding: 0.7rem 0.8rem;
  font-size: 0.78rem;
}

.catalog-card-actions-sonepar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 0.4rem;
  border: 1px solid #3045b0;
  border-radius: 0.78rem;
  overflow: hidden;
}

.catalog-outline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.55rem;
  background: #fff;
  color: #23318c;
  font-size: 0.83rem;
  font-weight: 700;
  transition: background-color 150ms ease, color 150ms ease;
}

.catalog-outline-action + .catalog-outline-action {
  border-left: 1px solid #3045b0;
}

.catalog-outline-action:hover {
  background: #3045b0;
  color: #fff;
}

.catalog-outline-action.is-disabled {
  background: #fafbff;
  color: #93a0bc;
}

.catalog-card-buy {
  margin-top: 0.45rem;
}

.catalog-buy-button {
  width: 100%;
  min-height: 2.25rem;
  border: 0;
  border-radius: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3045b0;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background-color 150ms ease, transform 150ms ease;
}

.catalog-buy-button:hover {
  background: #22318c;
  transform: translateY(-1px);
}

.catalog-buy-button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 1100px) {
  .catalog-search-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "results";
  }

  .catalog-sort-form {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .home-products-toolbar {
    gap: 0.6rem;
  }

  .home-products-filters {
    display: none;
  }

  .home-products-filter-menu {
    display: inline-flex;
    width: 100%;
  }

  .home-products-filter-menu select {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.catalog-filters-open {
    overflow: hidden;
  }

  .catalog-search-grid {
    grid-template-areas: "results";
  }

  .catalog-sidebar {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0.75rem;
    background: rgba(13, 20, 38, 0.44);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .catalog-sidebar.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .catalog-sidebar-card {
    width: min(24rem, 100%);
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    padding: 0.95rem 0.9rem 1rem;
    transform: translateY(0.6rem);
    transition: transform 180ms ease;
    overscroll-behavior: contain;
  }

  .catalog-sidebar.is-open .catalog-sidebar-card {
    transform: translateY(0);
  }

  .catalog-sidebar-mobile-head {
    display: flex;
  }

  .catalog-sidebar-block + .catalog-sidebar-block {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
  }

  .catalog-sidebar-block h2,
  .catalog-sidebar-block h3 {
    margin-bottom: 0.7rem;
  }

  .catalog-filter-list {
    max-height: 12rem;
  }

  .catalog-results-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.78rem 0.85rem;
  }

  .catalog-results-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: end;
    gap: 0.6rem;
  }

  .catalog-filter-toggle {
    display: inline-flex;
    justify-content: center;
  }

  .catalog-sort-form {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.35rem;
  }

  .catalog-sort-form select {
    width: 100%;
    min-width: 0;
  }

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

  .catalog-filter-list {
    max-height: none;
  }
}

@media (max-width: 480px) {
  .catalog-results-actions {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    padding: 0.45rem;
  }

  .catalog-sidebar-card {
    width: 100%;
    max-height: calc(100dvh - 0.9rem);
    border-radius: 1rem;
  }

  .catalog-filter-toggle,
  .catalog-sort-form select {
    min-height: 2.6rem;
  }

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

@media (max-width: 860px) {
  .top-ribbon-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem 0.85rem;
  }

  .top-ribbon-inner p {
    flex: 1 1 13rem;
    min-width: 0;
    margin: 0;
  }

  .top-ribbon-meta {
    justify-content: flex-end;
    gap: 0.35rem 0.85rem;
    font-size: 0.82rem;
  }

  .header-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "search search";
    gap: 0.7rem 0.85rem;
    padding: 0.65rem 0 0.78rem;
    align-items: center;
  }

  .site-brand {
    grid-area: brand;
    min-width: 0;
    gap: 0.72rem;
  }

  .site-brand-copy {
    min-width: 0;
  }

  .site-brand-copy strong {
    font-size: 1.02rem;
  }

  .site-brand-copy small {
    font-size: 0.56rem;
    line-height: 1.3;
  }

  .header-search {
    grid-area: search;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.48rem;
  }

  .header-actions {
    grid-area: actions;
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .header-support-link {
    display: none;
  }

  .search-button {
    min-width: 6.5rem;
  }

  .nav-band {
    padding: 0.5rem 0;
  }

  .nav-band-inner {
    display: block;
    padding-top: 0;
  }

  .nav-categories-dropdown {
    display: block;
    width: 100%;
  }

  .nav-categories-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 1rem;
    margin-top: 0;
    padding: 0.92rem 1rem;
  }

  .nav-categories-panel {
    position: static;
    width: 100%;
    margin-top: 0.45rem;
    padding: 0;
    border-radius: 1rem;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: 0 16px 28px rgba(15, 32, 61, 0.12);
  }

  .nav-categories-dropdown[open] .nav-categories-panel {
    display: block;
  }

  .nav-taxonomy-desktop {
    display: none;
  }

  .nav-taxonomy-mobile {
    display: block;
  }

  .nav-menu,
  .nav-tools {
    display: none;
  }

  .nav-mobile-only {
    display: block;
  }

  .showcase-slide {
    grid-template-columns: minmax(0, 1.34fr) minmax(108px, 0.66fr);
    align-items: end;
    gap: 0.55rem;
    padding: 0.92rem 0.95rem 1.45rem;
  }

  .showcase-track {
    height: min(62vw, 23rem);
    min-height: 18.5rem;
    max-height: 23rem;
  }

  .showcase-copy {
    padding-bottom: 1.35rem;
    padding-right: 0.1rem;
  }

  .showcase-copy h1 {
    max-width: none;
    font-size: 1.42rem;
    line-height: 0.98;
    letter-spacing: -0.035em;
  }

  .showcase-copy p {
    max-width: 16rem;
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .showcase-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.38rem;
    padding-top: 0.55rem;
  }

  .showcase-actions .accent-button,
  .showcase-actions .light-button {
    padding: 0.62rem 0.82rem;
    font-size: 0.78rem;
  }

  .showcase-media {
    align-self: center;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .showcase-media img {
    width: min(100%, 12.6rem);
    max-height: 12.6rem;
    padding: 0.46rem;
    border-radius: 1rem;
  }

  .showcase-dots {
    left: 1rem;
    bottom: 0.8rem;
  }
}

@media (max-width: 640px) {
  .top-ribbon-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    justify-content: stretch;
    gap: 0.2rem 0.55rem;
    padding: 0.22rem 0;
    font-size: 0.67rem;
  }

  .top-ribbon-meta {
    display: contents;
  }

  .top-ribbon-inner p,
  .top-ribbon-meta span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
  }

  .top-ribbon-meta span {
    justify-self: end;
  }

  .top-ribbon-meta span:last-child {
    max-width: 7.8rem;
  }

  .header-main {
    gap: 0.38rem 0.55rem;
    padding: 0.24rem 0 0.38rem;
  }

  .site-brand-logo,
  .site-brand-mark {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.72rem;
  }

  .site-brand-copy strong {
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
  }

  .site-brand-copy small {
    display: none;
  }

  .header-actions {
    display: inline-flex;
    flex-direction: row;
    gap: 0.24rem;
    width: max-content;
    justify-content: flex-end;
    align-self: center;
    align-items: center;
    flex-wrap: nowrap;
    margin-left: auto;
  }

  .header-account-menu,
  .header-cart-icon {
    flex: 0 0 auto;
  }

  .header-search {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem;
  }

  .header-search input {
    width: 100%;
    height: 2.24rem;
    padding: 0 0.78rem;
    border-radius: 0.8rem;
    font-size: 0.92rem;
  }

  .search-button {
    width: auto;
    min-width: 4.7rem;
    min-height: 2.24rem;
    padding: 0 0.8rem;
    font-size: 0.9rem;
  }

  .header-icon-button,
  .header-cart-icon {
    width: 2.34rem;
    min-height: 2.34rem;
    border-radius: 999px;
  }

  .header-icon-button svg,
  .header-cart-icon svg {
    width: 1.05rem;
    height: 1.05rem;
  }

  .header-cart-badge {
    top: -0.08rem;
    right: -0.05rem;
    min-width: 0.88rem;
    height: 0.88rem;
    font-size: 0.56rem;
  }

  .showcase-track {
    height: min(68vw, 19.5rem);
    min-height: 16rem;
    max-height: 19.5rem;
  }

  .showcase-slide {
    padding: 0.88rem 0.88rem 1.3rem;
  }

  .showcase-copy {
    padding-bottom: 1.2rem;
  }

  .showcase-copy h1 {
    font-size: 1.28rem;
    max-width: none;
  }

  .showcase-copy p {
    display: none;
  }

  .showcase-actions .accent-button,
  .showcase-actions .light-button {
    min-width: 0;
    font-size: 0.75rem;
  }

  .brand-ribbon {
    padding: 0.45rem 0.3rem;
    border-radius: 1.25rem;
  }
}

@media (max-width: 420px) {
  .top-ribbon-inner {
    gap: 0.18rem 0.42rem;
    font-size: 0.62rem;
  }

  .top-ribbon-inner p {
    font-size: 0.62rem;
  }

  .top-ribbon-meta {
    display: contents;
  }

  .top-ribbon-meta span {
    font-size: 0.62rem;
  }

  .top-ribbon-meta span:last-child {
    max-width: 6.9rem;
  }

  .header-main {
    gap: 0.3rem 0.45rem;
    padding: 0.2rem 0 0.32rem;
  }

  .header-actions {
    gap: 0.2rem;
  }

  .site-brand {
    gap: 0.46rem;
  }

  .site-brand-copy strong {
    font-size: 0.76rem;
  }

  .header-icon-button,
  .header-cart-icon {
    width: 2.18rem;
    min-height: 2.18rem;
  }

  .header-icon-button svg,
  .header-cart-icon svg {
    width: 0.98rem;
    height: 0.98rem;
  }

  .header-search input {
    height: 2.12rem;
    padding: 0 0.74rem;
    font-size: 0.88rem;
  }

  .search-button {
    min-width: 4.35rem;
    min-height: 2.12rem;
    padding: 0 0.7rem;
    font-size: 0.85rem;
  }

  .header-cart-badge {
    min-width: 0.82rem;
    height: 0.82rem;
    font-size: 0.52rem;
  }

  .nav-categories-link {
    padding: 0.74rem 0.82rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .nav-categories-panel {
    padding: 0;
  }

  .nav-mobile-heading {
    font-size: 0.62rem;
    letter-spacing: 0.11em;
  }

  .nav-mobile-links a {
    padding: 0.64rem 0.74rem;
    font-size: 0.76rem;
    font-weight: 600;
  }

  .showcase-track {
    height: min(82vw, 18.4rem);
    min-height: 15.5rem;
    max-height: 18.4rem;
  }

  .showcase-slide {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.82rem 0.8rem 1.18rem;
  }

  .showcase-badge {
    margin-bottom: 0.55rem;
    padding: 0.34rem 0.6rem;
    font-size: 0.64rem;
  }

  .showcase-copy {
    padding-right: 10.2rem;
    padding-bottom: 1.08rem;
  }

  .showcase-copy h1 {
    max-width: none;
    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: -0.03em;
    text-wrap: pretty;
  }

  .showcase-actions {
    gap: 0.34rem;
    padding-top: 0.42rem;
    max-width: 11rem;
  }

  .showcase-actions .accent-button,
  .showcase-actions .light-button {
    padding: 0.5rem 0.64rem;
    font-size: 0.68rem;
  }

  .showcase-media {
    position: absolute;
    right: 0.72rem;
    bottom: 0.9rem;
    width: 9.4rem;
    align-self: auto;
    justify-self: auto;
    pointer-events: none;
  }

  .showcase-media img {
    width: 100%;
    max-height: none;
    padding: 0.4rem;
    border-radius: 0.88rem;
  }

  .showcase-dots {
    left: 0.82rem;
    bottom: 0.68rem;
    gap: 0.34rem;
  }

  .showcase-dot {
    width: 0.56rem;
    height: 0.56rem;
  }

  .showcase-dot.is-active {
    width: 1.55rem;
  }
}

/* Product detail page inspired by sonepar product sheet */
.product-detail-sonepar {
  padding: 0.9rem 0 2.4rem;
}

.page-admin-bar,
.page-editor-card,
.catalog-context-card {
  margin-bottom: 1rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(217, 224, 238, 0.92);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.page-admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
}

.page-admin-bar-copy {
  display: grid;
  gap: 0.18rem;
}

.page-admin-bar-copy strong {
  color: var(--primary-dark);
  font-size: 0.96rem;
}

.page-admin-bar-copy span {
  color: var(--muted);
  font-size: 0.86rem;
}

.page-admin-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.page-editor-card {
  padding: 1.15rem;
}

.page-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-editor-head h2 {
  margin: 0.2rem 0 0;
  color: var(--primary-dark);
  font-size: 1.4rem;
}

.page-editor-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.page-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.72fr);
  gap: 1rem;
}

.page-editor-main,
.page-editor-side {
  display: grid;
  gap: 0.9rem;
}

.page-editor-switcher {
  display: inline-flex;
  gap: 0.45rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: #edf3ff;
  border: 1px solid rgba(35, 66, 160, 0.12);
}

.page-editor-switcher button {
  min-width: 6rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.page-editor-switcher button.is-active {
  background: linear-gradient(135deg, #2542a5 0%, #0e96e2 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(35, 66, 160, 0.18);
}

.page-editor-panels {
  margin-top: 0.8rem;
}

.page-editor-panel {
  display: none;
}

.page-editor-panel.is-active {
  display: block;
}

.page-editor-form textarea,
.page-editor-form input[type="text"],
.page-editor-form input[type="url"],
.page-editor-form input[type="file"] {
  width: 100%;
}

.page-editor-form textarea {
  min-height: 8rem;
}

.page-editor-preview {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(217, 224, 238, 0.9);
  background: linear-gradient(180deg, #fbfcff 0%, #f5f8ff 100%);
}

.page-editor-preview span {
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-editor-preview img {
  width: 100%;
  max-height: 18rem;
  object-fit: contain;
}

.page-editor-preview-empty {
  display: grid;
  place-items: center;
  min-height: 9rem;
  border-radius: 0.9rem;
  border: 1px dashed rgba(117, 133, 165, 0.48);
  color: var(--muted);
  text-align: center;
}

.catalog-context-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
}

.catalog-context-copy h1 {
  margin: 0;
  color: #173150;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.45rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.catalog-context-copy > p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.catalog-context-body {
  margin-top: 1rem;
}

.catalog-context-media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 15rem;
  padding: 1rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  border: 1px solid rgba(217, 224, 238, 0.9);
}

.catalog-context-media img {
  width: 100%;
  max-height: 18rem;
  object-fit: contain;
}

.rich-content {
  color: #334665;
  line-height: 1.78;
}

.rich-content > *:first-child {
  margin-top: 0;
}

.rich-content > *:last-child {
  margin-bottom: 0;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
  color: #173150;
  line-height: 1.18;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote {
  margin: 0 0 0.95rem;
}

.rich-content ul,
.rich-content ol {
  padding-left: 1.2rem;
}

.rich-content a {
  color: #1c62c9;
  text-decoration: underline;
}

.product-stage {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) minmax(360px, 0.94fr);
  gap: 0;
  overflow: hidden;
  border-radius: 1.55rem;
  border: 1px solid rgba(213, 221, 236, 0.95);
  background: #fff;
  box-shadow: 0 24px 58px rgba(26, 42, 92, 0.12);
}

.product-stage-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  padding: 1.2rem 0.8rem;
  background: #fff;
  border-right: 1px solid rgba(223, 228, 239, 0.9);
}

.product-stage-thumb {
  width: 100%;
  max-width: 4.7rem;
  aspect-ratio: 1 / 1;
  padding: 0.35rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(48, 69, 176, 0.26);
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.product-stage-thumb:hover,
.product-stage-thumb.is-active {
  border-color: #3045b0;
  box-shadow: 0 10px 22px rgba(35, 51, 140, 0.14);
  transform: translateY(-1px);
}

.product-stage-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-stage-media {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 34rem;
  padding: 1.4rem;
  background: #fff;
  border-right: 1px solid rgba(223, 228, 239, 0.9);
}

.product-stage-media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 34rem);
  padding: 1.45rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(223, 228, 239, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.product-stage-media-frame img {
  width: 100%;
  max-height: 30rem;
  object-fit: contain;
}

.product-stage-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1.5rem;
  background: linear-gradient(135deg, #2542a5 0%, #0e96e2 100%);
  color: #fff;
}

.product-stage-sku {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-stage-title {
  margin: 0;
  color: #fff;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  font-weight: 750;
  letter-spacing: -0.012em;
  line-height: 1.18;
  text-transform: uppercase;
  text-wrap: balance;
}

.product-stage-brand {
  margin: -0.25rem 0 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-stage-price-block {
  padding-top: 0.4rem;
}

.product-stage-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.product-stage-price-line strong {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1;
}

.product-stage-price-line span {
  font-size: 0.98rem;
  font-weight: 700;
}

.product-stage-price-line em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 2rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.45rem;
  background: #eb5456;
  color: #fff;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 700;
}

.product-stage-price-compare {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.92);
}

.product-stage-price-compare span {
  font-size: 0.95rem;
}

.product-stage-price-compare s {
  font-size: 1rem;
  font-weight: 700;
}

.product-stage-lock {
  display: grid;
  gap: 0.4rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.product-stage-lock strong,
.product-stage-lock span {
  color: #fff;
}

.product-stage-utility-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.product-stage-utility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border-radius: 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.product-stage-utility.is-disabled {
  opacity: 0.58;
  pointer-events: none;
}

.product-stage-specs {
  overflow: hidden;
  border-radius: 0.45rem;
  background: #fff;
  color: #1f2f50;
}

.product-stage-spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid rgba(227, 232, 240, 0.9);
}

.product-stage-spec-row:last-child {
  border-bottom: none;
}

.product-stage-spec-row span {
  color: #384d74;
  font-size: 0.96rem;
}

.product-stage-spec-row strong {
  color: #253b65;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: right;
}

.product-stage-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.72;
  font-size: 0.96rem;
}

.product-stage-purchase {
  margin-top: auto;
}

.product-stage-order-form,
.product-stage-guest-actions {
  display: grid;
  gap: 0.8rem;
}

.product-stage-order-row {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

.product-stage-qty {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  overflow: hidden;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.product-stage-qty-btn,
.product-stage-qty input {
  min-height: 3.35rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.product-stage-qty-btn {
  cursor: pointer;
}

.product-stage-qty input::-webkit-outer-spin-button,
.product-stage-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-stage-qty input {
  -moz-appearance: textfield;
}

.product-stage-buy-button,
.product-stage-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.9rem 1rem;
  border-radius: 0.7rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.product-stage-buy-button {
  border: 0;
  background: #11a2ea;
  color: #fff;
}

.product-stage-buy-button:hover {
  transform: translateY(-1px);
  background: #0b95d7;
}

.product-stage-cart-button {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: transparent;
  color: #fff;
}

.product-stage-cart-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.product-stage-buy-button[disabled],
.product-stage-cart-button[disabled] {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.product-stage-secondary-actions {
  display: grid;
}

.product-detail-description-card,
.product-detail-information-card {
  margin-top: 1.35rem;
  padding: 1.35rem 1.45rem 1.5rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(217, 224, 238, 0.92);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.product-detail-description-head h2 {
  margin: 0.2rem 0 0;
  color: var(--dark);
}

.product-detail-description-copy {
  margin-top: 0.9rem;
  color: var(--muted);
  line-height: 1.78;
}

.product-detail-information-card {
  display: grid;
  gap: 1.3rem;
}

.product-detail-information-block + .product-detail-information-block {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(221, 228, 238, 0.95);
}

.product-detail-information-title {
  margin: 0 0 0.78rem;
  color: #203a9e;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-detail-information-body {
  padding: 1rem 1.05rem;
  border-top: 4px solid rgba(35, 66, 160, 0.9);
  background: #f4f5f7;
  color: #2c3e5a;
  line-height: 1.78;
}

.product-detail-information-body p:first-child {
  margin-top: 0;
}

.product-detail-information-body p:last-child {
  margin-bottom: 0;
}

.product-detail-information-sheet {
  display: grid;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(217, 224, 238, 0.92);
  background: linear-gradient(180deg, #fbfcff 0%, #f3f7fc 100%);
}

.product-detail-sheet-button,
.product-detail-sheet-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.9rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.product-detail-sheet-button {
  background: linear-gradient(90deg, #1e8074 0%, #2f55b6 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(18, 50, 75, 0.14);
}

.product-detail-sheet-link {
  border: 1px solid rgba(35, 66, 160, 0.18);
  background: #fff;
  color: #2342a0;
}

.product-detail-sheet-button:hover,
.product-detail-sheet-link:hover,
.product-detail-sheet-button:focus-visible,
.product-detail-sheet-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(18, 50, 75, 0.14);
  filter: brightness(1.02);
}

.product-detail-sheet-copy,
.product-detail-information-empty {
  margin: 0;
  color: #5c6d85;
  line-height: 1.68;
}

.product-related-card {
  position: relative;
  margin-top: 1.35rem;
  padding: 1.25rem 1.25rem 1.35rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(217, 224, 238, 0.92);
  background:
    radial-gradient(circle at top right, rgba(17, 128, 116, 0.08), transparent 18rem),
    rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.product-related-head {
  margin-bottom: 0.72rem;
}

.product-related-head h2 {
  margin: 0;
  color: #142342;
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  line-height: 1.1;
}

.product-related-slider-wrap {
  position: relative;
}

.product-related-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 105, 166, 0.72);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: translateY(-50%);
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.product-related-arrow-prev {
  left: -1.05rem;
}

.product-related-arrow-next {
  right: -1.05rem;
}

.product-related-arrow:hover,
.product-related-arrow:focus-visible {
  color: #ffffff;
  transform: translateY(-50%) scale(1.04);
  background: linear-gradient(135deg, #1769a6 0%, #2f55b6 100%);
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(47, 85, 182, 0.22);
  outline: 0;
}

.product-related-window {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0.2rem;
  scrollbar-width: none;
  padding: 0.15rem 0.05rem 0.05rem;
}

.product-related-window::-webkit-scrollbar {
  display: none;
}

.product-related-track {
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  min-width: max-content;
}

.product-related-item {
  flex: 0 0 13.4rem;
  display: flex;
  flex-direction: column;
  min-height: 22.4rem;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 1rem;
  border: 1px solid rgba(217, 224, 238, 0.95);
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 38, 62, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-related-item:hover {
  transform: translateY(-3px);
  border-color: rgba(35, 66, 160, 0.28);
  box-shadow: 0 18px 34px rgba(23, 38, 62, 0.12);
}

.product-related-image {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 10.45rem;
  height: 10.45rem;
  overflow: hidden;
  padding: 0.85rem;
  background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
}

.product-related-image span {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: #ef6a1f;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.product-related-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-related-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.48rem;
  padding: 0.78rem 0.82rem 0.85rem;
}

.product-related-brand {
  min-height: 0.85rem;
  color: #68758b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-related-brand.is-empty {
  visibility: hidden;
}

.product-related-body h3 {
  margin: 0;
  min-height: 2.42rem;
  color: #162643;
  font-size: 0.9rem;
  line-height: 1.32;
}

.product-related-body h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-related-price {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.35rem;
  margin-top: auto;
}

.product-related-price strong {
  color: #0b6fae;
  font-size: 1.02rem;
  line-height: 1;
}

.product-related-price em {
  padding: 0.15rem 0.38rem;
  border-radius: 999px;
  background: rgba(239, 106, 31, 0.12);
  color: #c95311;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.product-related-price.is-locked {
  color: #68758b;
  font-size: 0.84rem;
  font-weight: 700;
}

.product-related-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #087d86 0%, #2342a0 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 0.12rem;
}

.product-related-link:hover,
.product-related-link:focus-visible {
  filter: brightness(1.06);
  outline: 0;
}

@media (max-width: 980px) {
  .page-admin-bar,
  .page-editor-head {
    flex-direction: column;
    align-items: stretch;
  }

  .page-editor-grid,
  .catalog-context-card {
    grid-template-columns: 1fr;
  }

  .page-admin-bar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .product-stage {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .product-stage-summary {
    grid-column: 1 / -1;
  }

  .product-stage-media {
    border-right: none;
  }
}

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

  .product-stage-thumbs {
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(223, 228, 239, 0.9);
  }

  .product-stage-media {
    min-height: 21rem;
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(223, 228, 239, 0.9);
  }

  .product-stage-summary {
    padding: 1.15rem 1rem 1.1rem;
  }

  .product-stage-title {
    font-size: clamp(0.98rem, 4.2vw, 1.12rem);
  }

  .product-stage-utility-row,
  .product-stage-order-row,
  .product-stage-guest-actions {
    grid-template-columns: 1fr;
  }

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

  .product-stage-spec-row strong {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .product-stage-thumb {
    max-width: 4rem;
  }

  .product-stage-price-line strong {
    font-size: 1.95rem;
  }

  .product-stage-price-line span,
  .product-stage-price-line em {
    font-size: 0.88rem;
  }

  .product-stage-spec-row,
  .product-detail-description-card,
  .product-detail-information-card {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .product-detail-sheet-button,
  .product-detail-sheet-link {
    width: 100%;
  }

  .product-related-card {
    padding: 1rem 0.9rem 1.1rem;
  }

  .product-related-head {
    align-items: flex-start;
  }

  .product-related-arrow {
    width: 2.05rem;
    height: 2.05rem;
    font-size: 1.35rem;
  }

  .product-related-arrow-prev {
    left: -0.72rem;
  }

  .product-related-arrow-next {
    right: -0.72rem;
  }

  .product-related-item {
    flex-basis: 11.6rem;
  }
}

/* Final footer override aligned to Sonepar-inspired multi-column footer */
.site-footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid rgba(217, 224, 238, 0.92);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.05fr 1.3fr 0.9fr 1.25fr 0.95fr;
  gap: 2.1rem;
  padding: 3rem 0 2.35rem;
}

.footer-column {
  min-width: 0;
  padding: 0;
}

.footer-heading {
  margin: 0 0 1.2rem;
  color: #2739a5;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-social-links a {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #323748;
  border-radius: 999px;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  color: #2739a5;
  transform: translateY(-1px);
}

.footer-social-links svg {
  width: 1.12rem;
  height: 1.12rem;
}

.footer-contact-list,
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.78rem;
}

.footer-contact-list-rich li,
.footer-link-list li {
  margin: 0;
}

.footer-contact-list-rich li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  color: var(--muted);
}

.footer-contact-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5c69ba;
}

.footer-contact-icon svg {
  width: 0.92rem;
  height: 0.92rem;
}

.footer-contact-list-rich a,
.footer-contact-list-rich span,
.footer-link-list a {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  text-decoration: none;
}

.footer-link-list a:hover,
.footer-link-list a:focus-visible,
.footer-contact-list-rich a:hover,
.footer-contact-list-rich a:focus-visible {
  color: #2739a5;
}

.footer-claims-link {
  margin-top: 1.2rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.95rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.45rem;
  background: #2739a5;
  color: #fff;
}

.footer-claims-link-copy {
  display: grid;
  gap: 0.2rem;
}

.footer-claims-link-copy strong {
  font-size: 1rem;
  line-height: 1.08;
}

.footer-claims-link-copy span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  line-height: 1.3;
}

.footer-claims-link-media {
  flex: 0 0 4.1rem;
  display: grid;
  place-items: center;
}

.footer-claims-link-media img {
  width: 100%;
  max-width: 3.8rem;
  max-height: 2.8rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-payment-logos {
  display: grid;
  gap: 0.95rem;
  align-content: start;
}

.payment-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  width: fit-content;
  color: #1f2433;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.payment-logo.is-visa {
  color: #1a55aa;
  font-size: 1.12rem;
  font-weight: 900;
}

.payment-logo.is-mastercard {
  gap: 0.38rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.payment-logo-mastercard-mark {
  position: relative;
  width: 1.78rem;
  height: 1rem;
}

.payment-logo-mastercard-mark i {
  position: absolute;
  top: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
}

.payment-logo-mastercard-mark i:first-child {
  left: 0;
  background: #ec001b;
}

.payment-logo-mastercard-mark i:last-child {
  right: 0;
  background: #f79e1b;
  opacity: 0.95;
}

.payment-logo.is-pagoefectivo {
  font-size: 0.92rem;
  font-weight: 800;
}

.payment-logo-pe-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f6c400;
  color: #202020;
  font-weight: 900;
}

.payment-logo.is-plin {
  color: #129e73;
}

.payment-logo-plin-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.85rem;
  min-height: 1.34rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #18c67c 0%, #0aa4a8 100%);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}

.footer-bottom {
  border-top: 1px solid rgba(217, 224, 238, 0.92);
  background: #fff;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}

.footer-bottom-copy {
  display: grid;
  gap: 0.4rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: #2739a5;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 1120px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.65rem 2rem;
  }
}

@media (max-width: 760px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding: 2rem 0 1.6rem;
  }

  .footer-heading {
    margin-bottom: 0.7rem;
    font-size: 0.84rem;
  }

  .footer-contact-list-rich a,
  .footer-contact-list-rich span,
  .footer-link-list a,
  .footer-bottom p,
  .footer-legal-links a {
    font-size: 0.88rem;
  }

  .footer-payment-logos {
    gap: 0.75rem;
  }
}

/* Admin refresh */
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(43, 63, 157, 0.1), transparent 22rem),
    linear-gradient(180deg, #f4f7fc 0%, #eef2f8 100%);
}

.admin-page-shell {
  min-height: 100vh;
}

.admin-shell {
  padding: 1rem 0 3rem;
}

.admin-shell .container {
  width: min(1320px, calc(100% - 1.8rem));
}

.admin-topbar {
  padding: 1.3rem 1.45rem;
  align-items: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(215, 223, 235, 0.95);
  border-radius: 1.45rem;
  background:
    linear-gradient(135deg, rgba(43, 63, 157, 0.06) 0%, rgba(255, 255, 255, 0.96) 34%, rgba(255, 109, 27, 0.04) 100%);
  box-shadow: 0 18px 36px rgba(15, 32, 61, 0.08);
}

.admin-topbar-copy {
  display: grid;
  gap: 0.55rem;
}

.admin-topbar h1 {
  font-size: clamp(1.75rem, 2.7vw, 2.35rem);
  letter-spacing: -0.03em;
}

.admin-topbar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-topbar-badges span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(35, 66, 160, 0.08);
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.admin-tabs {
  margin-bottom: 1rem;
  padding: 0.42rem;
  border: 1px solid rgba(215, 223, 235, 0.92);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(15, 32, 61, 0.06);
}

.admin-tabs a {
  padding: 0.72rem 0.95rem;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.admin-tabs a:hover,
.admin-tabs a:focus-visible {
  color: var(--primary-dark);
  border-color: rgba(35, 66, 160, 0.14);
}

.admin-panel {
  padding: 1rem;
  border-radius: 1.35rem;
}

.admin-panel-editor {
  display: grid;
  gap: 1rem;
}

.admin-panel .admin-section {
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(217, 224, 238, 0.9);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.admin-panel .admin-section + .admin-section {
  margin-top: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(217, 224, 238, 0.9);
}

.admin-section h2 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.admin-shell .section-copy {
  font-size: 0.94rem;
}

.admin-shell .field label {
  font-size: 0.68rem;
  letter-spacing: 0.11em;
}

.admin-shell .field input,
.admin-shell .field select,
.admin-shell .field textarea {
  padding: 0.78rem 0.9rem;
  border-radius: 0.92rem;
  font-size: 0.92rem;
}

.admin-shell .field textarea {
  min-height: 7rem;
  resize: vertical;
}

.admin-shell .field small {
  font-size: 0.76rem;
  line-height: 1.45;
}

.admin-preview-card {
  min-height: 8.75rem;
  padding: 0.85rem;
}

.admin-preview-card-compact {
  min-height: 7.8rem;
}

.admin-preview-card img {
  object-fit: contain;
}

.admin-shell .accent-button,
.admin-shell .dark-button,
.admin-shell .ghost-button,
.admin-shell .danger-button {
  padding: 0.76rem 1rem;
  font-size: 0.86rem;
}

.admin-shell .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(192, 65, 74, 0.24);
  border-radius: 999px;
  background: rgba(192, 65, 74, 0.1);
  color: var(--danger);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.admin-shell .danger-button:hover,
.admin-shell .danger-button:focus-visible {
  background: rgba(192, 65, 74, 0.16);
  outline: 0;
}

.admin-shell button:disabled,
.admin-shell .danger-button:disabled,
.admin-shell .ghost-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.admin-form-grid {
  gap: 0.85rem 0.95rem;
}

.admin-slide-grid {
  gap: 0.85rem;
}

.admin-product-grid {
  gap: 0.9rem;
}

.admin-brand-grid,
.admin-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-slide-card,
.admin-product-card,
.admin-brand-card,
.admin-category-card {
  gap: 0.7rem;
  padding: 0.95rem;
  border-radius: 1.1rem;
}

.admin-product-image-compact {
  min-height: 8.1rem;
}

.admin-request-card {
  padding: 0.95rem;
}

.admin-request-toolbar {
  grid-template-columns: minmax(0, 1fr) 220px auto;
}

.footer-payment-logos .payment-logo:not(.is-mastercard):not(.is-pagoefectivo) {
  min-height: 1.9rem;
}

.payment-logo.is-generic {
  color: #263248;
  font-size: 0.95rem;
}

/* Compact professional footer */
.site-footer {
  font-family: "Roboto", sans-serif;
}

.footer-top {
  grid-template-columns: 1.05fr 1.35fr 1fr 1.22fr 0.95fr;
  gap: 1.35rem;
  padding: 1.85rem 0 1.35rem;
}

.footer-heading {
  margin-bottom: 0.58rem;
  color: #26379d;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.18;
}

.footer-social-links {
  gap: 0.42rem;
}

.footer-social-links a {
  width: 1.35rem;
  height: 1.35rem;
}

.footer-social-links svg {
  width: 0.86rem;
  height: 0.86rem;
}

.footer-contact-list,
.footer-link-list {
  gap: 0.34rem;
}

.footer-contact-list-rich li {
  grid-template-columns: 0.78rem minmax(0, 1fr);
  gap: 0.44rem;
}

.footer-contact-icon {
  width: 0.78rem;
  height: 0.78rem;
}

.footer-contact-icon svg {
  width: 0.72rem;
  height: 0.72rem;
}

.footer-contact-list-rich a,
.footer-contact-list-rich span,
.footer-link-list a {
  font-size: 0.79rem;
  font-weight: 400;
  line-height: 1.32;
  color: #5f6d82;
}

.footer-claims-link {
  max-width: 13.8rem;
  margin-top: 0.62rem;
  gap: 0.58rem;
  padding: 0.58rem 0.68rem;
  border-radius: 0.35rem;
}

.footer-claims-link-copy {
  gap: 0.1rem;
}

.footer-claims-link-copy strong {
  font-size: 0.82rem;
  line-height: 1;
}

.footer-claims-link-copy span {
  font-size: 0.66rem;
  line-height: 1.12;
}

.footer-claims-link-media {
  flex-basis: 2.6rem;
}

.footer-claims-link-media img {
  max-width: 2.35rem;
  max-height: 1.95rem;
}

.footer-payment-logos {
  gap: 0.42rem;
}

.payment-logo {
  gap: 0.34rem;
  font-size: 0.82rem;
  line-height: 1.1;
}

.payment-logo.is-visa {
  font-size: 0.88rem;
}

.payment-logo.is-mastercard,
.payment-logo.is-pagoefectivo {
  font-size: 0.75rem;
}

.payment-logo-mastercard-mark {
  width: 1.38rem;
  height: 0.76rem;
}

.payment-logo-mastercard-mark i {
  width: 0.76rem;
  height: 0.76rem;
}

.payment-logo-pe-mark {
  width: 1.02rem;
  height: 1.02rem;
  border-radius: 0.25rem;
  font-size: 0.78rem;
}

.payment-logo-plin-mark {
  min-width: 2.05rem;
  min-height: 1rem;
  padding: 0.04rem 0.28rem;
  font-size: 0.68rem;
}

.footer-payment-logos .payment-logo:not(.is-mastercard):not(.is-pagoefectivo) {
  min-height: 1.2rem;
}

.footer-bottom-inner {
  padding: 0.52rem 0;
}

.footer-bottom-copy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom p,
.footer-legal-links a {
  font-size: 0.78rem;
  line-height: 1.2;
}

.footer-legal-links {
  margin-left: auto;
}

@media (max-width: 1120px) {
  .admin-brand-grid,
  .admin-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-shell .container {
    width: min(100% - 1rem, 100%);
  }

  .admin-topbar {
    padding: 1rem;
  }

  .admin-topbar-badges {
    gap: 0.45rem;
  }

  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tabs a {
    white-space: nowrap;
  }

  .admin-panel {
    padding: 0.85rem;
  }

  .admin-panel .admin-section {
    padding: 0.9rem;
  }

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

@media (max-width: 540px) {
  .admin-slide-grid,
  .admin-product-grid,
  .admin-brand-grid,
  .admin-category-grid,
  .admin-request-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact admin list views */
.admin-product-grid,
.admin-brand-grid,
.admin-category-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
}

.admin-product-editor-card {
  grid-template-columns: 8.6rem minmax(0, 1.6fr) minmax(20rem, 0.92fr);
  align-items: start;
  gap: 0.8rem 1rem;
}

.admin-product-image-compact {
  aspect-ratio: auto;
  min-height: 7.25rem;
  height: 7.25rem;
  padding: 0.55rem;
  overflow: hidden;
}

.admin-product-image-compact img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-product-editor-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 0.65rem 0.8rem;
  align-content: start;
}

.admin-product-editor-main > .field {
  margin: 0;
}

.admin-product-editor-main > .field:first-child,
.admin-product-editor-main > .admin-form-grid.compact,
.admin-product-editor-main > .field:nth-of-type(3),
.admin-product-editor-main > .field:nth-of-type(4) {
  grid-column: 1 / -1;
}

.admin-product-editor-side {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.admin-product-editor-side .admin-form-grid.compact {
  gap: 0.55rem 0.65rem;
}

.admin-product-editor-side .field {
  margin: 0;
}

.admin-product-editor-side .accent-button {
  width: 100%;
  justify-content: center;
}

.admin-product-editor-card .field label,
.admin-brand-upload-field label {
  margin-bottom: 0.22rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.admin-product-editor-card .field input,
.admin-product-editor-card .field select,
.admin-product-editor-card .field textarea,
.admin-brand-upload-field input {
  padding: 0.62rem 0.75rem;
  border-radius: 0.82rem;
  font-size: 0.84rem;
}

.admin-product-editor-card .field textarea {
  min-height: 3.5rem;
}

.admin-product-editor-card .field small,
.admin-brand-upload-field small {
  font-size: 0.7rem;
}

.admin-brand-card-row,
.admin-category-card-row {
  grid-template-columns: 7.6rem minmax(13rem, 0.9fr) minmax(17rem, 1fr) auto;
  align-items: center;
  gap: 0.75rem 0.9rem;
}

.admin-brand-preview-compact,
.admin-category-preview-compact {
  min-height: 4.6rem;
  height: 4.6rem;
  padding: 0.55rem 0.7rem;
}

.admin-brand-preview-compact img {
  max-width: 7.2rem;
  max-height: 2.05rem;
}

.admin-category-preview-compact img {
  max-width: 4.75rem;
  max-height: 3.25rem;
}

.admin-brand-summary {
  display: grid;
  gap: 0.35rem;
  align-content: center;
}

.admin-brand-head {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 0.18rem;
}

.admin-brand-head strong {
  font-size: 0.88rem;
  line-height: 1.15;
}

.admin-brand-head span,
.admin-brand-stats span {
  font-size: 0.72rem;
}

.admin-brand-stats {
  justify-content: flex-start;
  gap: 0.35rem 0.45rem;
}

.admin-brand-stats span {
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  background: rgba(35, 66, 160, 0.08);
  color: var(--primary-dark);
}

.admin-brand-upload-field {
  margin: 0;
}

.admin-brand-save-button {
  min-width: 7.5rem;
  padding: 0.7rem 0.85rem;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .admin-product-editor-card {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }

  .admin-product-editor-side {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .admin-product-editor-side .admin-form-grid.compact,
  .admin-product-editor-side .field {
    grid-column: 1;
  }

  .admin-product-editor-side .accent-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    min-width: 10.75rem;
    align-self: stretch;
  }

  .admin-brand-card-row,
  .admin-category-card-row {
    grid-template-columns: 6.75rem minmax(0, 1fr) minmax(0, 1fr);
  }

  .admin-brand-save-button {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 860px) {
  .admin-product-editor-card,
  .admin-brand-card-row,
  .admin-category-card-row {
    grid-template-columns: 1fr;
  }

  .admin-product-image-compact {
    width: 100%;
    max-width: 10rem;
  }

  .admin-product-editor-main,
  .admin-product-editor-side {
    grid-template-columns: 1fr;
  }

  .admin-product-editor-side .accent-button,
  .admin-brand-save-button {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }
}

/* Refine admin density: products horizontal, brands/categories in 3-column cards */
.admin-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.admin-product-editor-card {
  grid-template-columns: minmax(0, 1fr) 10.75rem;
  gap: 0.5rem 0.7rem;
  padding: 0.78rem 0.85rem;
  border-radius: 1rem;
  align-items: start;
}

.admin-product-image-compact {
  min-height: 5.7rem;
  height: 5.7rem;
  padding: 0.42rem;
  border-radius: 0.9rem;
}

.admin-product-image-side {
  width: 100%;
}

.admin-product-editor-main {
  grid-template-columns: 1fr;
  gap: 0.42rem;
}

.admin-product-editor-main > .field,
.admin-product-editor-side > .field,
.admin-product-editor-side > .admin-form-grid.compact {
  margin: 0;
}

.admin-product-editor-card .field label,
.admin-brand-upload-field label {
  margin-bottom: 0.16rem;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.admin-product-editor-card .field input,
.admin-product-editor-card .field select,
.admin-product-editor-card .field textarea,
.admin-brand-upload-field input {
  padding: 0.5rem 0.68rem;
  border-radius: 0.78rem;
  font-size: 0.8rem;
}

.admin-product-editor-card .field textarea {
  min-height: 2.75rem;
  line-height: 1.3;
}

.admin-product-editor-card .field small {
  margin-top: 0.22rem;
  font-size: 0.66rem;
  line-height: 1.3;
}

.admin-product-editor-side {
  grid-column: auto;
  grid-template-columns: 1fr;
  gap: 0.42rem;
  align-items: stretch;
  align-content: start;
}

.admin-product-editor-side .admin-form-grid.compact {
  gap: 0.45rem 0.55rem;
}

.admin-product-editor-side .checkbox {
  gap: 0.4rem;
}

.admin-product-editor-side .checkbox span {
  font-size: 0.77rem;
}

.admin-product-editor-side .accent-button {
  width: 100%;
  min-width: 0;
  grid-column: 1;
  grid-row: auto;
  min-height: 2.7rem;
  padding: 0.66rem 0.85rem;
  font-size: 0.8rem;
}

.admin-product-editor-side input[type="file"],
.admin-product-image-field input[type="file"],
.admin-brand-upload-field input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.42rem 0.55rem;
  overflow: hidden;
}

.admin-product-editor-side input[type="file"]::file-selector-button,
.admin-product-image-field input[type="file"]::file-selector-button,
.admin-brand-upload-field input[type="file"]::file-selector-button {
  margin-right: 0.45rem;
  padding: 0.38rem 0.58rem;
  border: 0;
  border-radius: 0.6rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
}

.admin-brand-grid,
.admin-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-brand-card-row,
.admin-category-card-row {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.52rem;
  padding: 0.82rem;
  border-radius: 1rem;
}

.admin-brand-preview-compact,
.admin-category-preview-compact {
  min-height: 4.35rem;
  height: 4.35rem;
  padding: 0.58rem 0.72rem;
}

.admin-brand-preview-compact img {
  max-width: 8rem;
  max-height: 2.1rem;
}

.admin-category-preview-compact img {
  max-width: 5rem;
  max-height: 3.1rem;
}

.admin-brand-summary {
  gap: 0.28rem;
}

.admin-brand-head {
  gap: 0.15rem;
}

.admin-brand-head strong {
  font-size: 0.86rem;
}

.admin-brand-head span,
.admin-brand-stats span {
  font-size: 0.7rem;
}

.admin-brand-stats {
  gap: 0.3rem 0.35rem;
}

.admin-brand-save-button {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  font-size: 0.8rem;
}

@media (max-width: 1180px) {
  .admin-product-editor-card {
    grid-template-columns: minmax(0, 1fr) 9.8rem;
  }

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

@media (max-width: 860px) {
  .admin-product-grid,
  .admin-brand-grid,
  .admin-category-grid {
    grid-template-columns: 1fr;
  }

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

.admin-order-stats {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-order-stat {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.74rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.admin-order-stat.is-pending { background: rgba(255, 137, 31, 0.12); color: #b55f13; }
.admin-order-stat.is-processing { background: rgba(35, 66, 160, 0.12); color: var(--primary-dark); }
.admin-order-stat.is-paid { background: rgba(38, 129, 84, 0.14); color: #19784e; }
.admin-order-stat.is-shipped { background: rgba(14, 128, 168, 0.12); color: #0a6a89; }
.admin-order-stat.is-delivered { background: rgba(27, 127, 84, 0.15); color: #176948; }
.admin-order-stat.is-cancelled { background: rgba(176, 63, 74, 0.12); color: #91333d; }

.admin-order-grid {
  display: grid;
  gap: 0.9rem;
}

.admin-order-card {
  gap: 0.75rem;
  padding: 1rem;
}

.admin-order-head,
.admin-order-meta,
.admin-order-actions {
  display: grid;
  gap: 0.7rem;
}

.admin-order-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.admin-order-head strong {
  display: block;
  font-size: 0.98rem;
  color: var(--primary-dark);
}

.admin-order-head span {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-order-head-badges {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-order-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-order-meta > div {
  padding: 0.7rem 0.78rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(217, 224, 238, 0.88);
  background: rgba(247, 250, 255, 0.96);
}

.admin-order-meta span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-order-meta strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--text);
}

.admin-order-items {
  display: grid;
  gap: 0.45rem;
}

.admin-order-item {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.58rem 0.72rem;
  border-radius: 0.9rem;
  background: white;
  border: 1px solid rgba(217, 224, 238, 0.84);
}

.admin-order-item span,
.admin-order-item em {
  font-size: 0.76rem;
  color: var(--muted);
}

.admin-order-item strong {
  font-size: 0.82rem;
  color: var(--text);
}

.admin-order-item em {
  font-style: normal;
  font-weight: 700;
  color: var(--primary-dark);
}

.admin-order-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
}

.admin-order-actions .field-wide {
  grid-column: 1 / 3;
}

.admin-order-actions .accent-button {
  min-width: 10rem;
}

@media (max-width: 980px) {
  .admin-order-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-order-actions .field-wide,
  .admin-order-actions .accent-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .admin-order-head,
  .admin-order-meta,
  .admin-order-actions,
  .admin-order-item {
    grid-template-columns: 1fr;
  }

  .admin-order-head-badges {
    justify-content: flex-start;
  }
}

/* Phase 2: compact admin workspace */
.admin-workspace {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 1rem;
  border: 1px solid rgba(217, 224, 238, 0.88);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(23, 38, 62, 0.08);
  padding: 0.9rem;
}

.admin-sidebar h2 {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-tabs.admin-tabs-sidebar {
  display: grid;
  gap: 0.45rem;
  background: transparent;
  border: 0;
  padding: 0;
}

.admin-tabs.admin-tabs-sidebar a {
  border-radius: 0.75rem;
  border: 1px solid rgba(217, 224, 238, 0.92);
  background: #f7faff;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.68rem 0.82rem;
}

.admin-tabs.admin-tabs-sidebar a.is-active {
  background: linear-gradient(140deg, #173b9a 0%, #1f8f8f 100%);
  border-color: transparent;
  color: #fff;
}

.admin-main {
  display: grid;
  gap: 0.95rem;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-dashboard-card {
  border-radius: 1rem;
  padding: 1rem;
  display: grid;
  gap: 0.48rem;
}

.admin-dashboard-card span {
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-dashboard-card strong {
  font-size: 1.35rem;
  color: var(--primary-dark);
}

.admin-dashboard-card a {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-brand-card-row,
.admin-category-card-row {
  display: grid;
  grid-template-columns: 86px minmax(170px, 1fr) minmax(190px, 1fr) minmax(210px, 1fr) auto;
  gap: 0.68rem;
  align-items: center;
}

.admin-brand-card-row .field,
.admin-category-card-row .field {
  margin: 0;
}

.admin-brand-upload-field input[type="file"] {
  min-height: 2.2rem;
}

.admin-product-editor-card .admin-product-editor-main textarea[name="descripcion_web"] {
  min-height: 6.8rem;
}

.admin-product-editor-card .admin-product-editor-main textarea[name="resumen"] {
  min-height: 4.2rem;
}

.admin-product-editor-side .admin-form-grid.compact {
  grid-template-columns: 1fr;
}

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

  .admin-sidebar {
    position: static;
  }

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

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

@media (max-width: 900px) {
  .admin-tabs.admin-tabs-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-brand-card-row,
  .admin-category-card-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-tabs.admin-tabs-sidebar {
    grid-template-columns: 1fr;
  }
}

/* Fix layout: categorias admin compact and stable */
.admin-main .admin-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-main .admin-category-card-v2 {
  display: grid;
  gap: 0.62rem;
  padding: 0.78rem;
  border-radius: 1rem;
  overflow: hidden;
}

.admin-main .admin-category-card-v2 .admin-category-card-top {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
}

.admin-main .admin-category-card-v2 .admin-category-preview-compact {
  min-height: 4.4rem;
  height: 4.4rem;
}

.admin-main .admin-category-card-v2 .admin-brand-summary {
  min-width: 0;
}

.admin-main .admin-category-card-v2 .admin-brand-head strong {
  display: block;
  overflow-wrap: anywhere;
}

.admin-main .admin-category-card-v2 .admin-brand-stats span {
  overflow-wrap: anywhere;
}

.admin-main .admin-category-card-v2 .admin-category-card-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-main .admin-category-card-v2 .admin-category-card-fields .field {
  margin: 0;
  min-width: 0;
}

.admin-main .admin-category-card-v2 .admin-category-card-fields .field-wide {
  grid-column: 1 / -1;
}

.admin-main .admin-category-card-v2 .admin-category-card-fields input,
.admin-main .admin-category-card-v2 .admin-category-card-fields select,
.admin-main .admin-category-card-v2 .admin-category-card-fields textarea {
  width: 100%;
  min-width: 0;
}

.admin-main .admin-category-card-v2 .admin-brand-upload-field input[type="file"] {
  width: 100%;
  min-width: 0;
}

.admin-main .admin-category-card-v2 .admin-category-card-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .admin-main .admin-category-card-v2 .admin-category-card-fields {
    grid-template-columns: 1fr;
  }
}

/* Fix layout: marcas admin compact and stable */
.admin-main .admin-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-main .admin-brand-card-v2 {
  display: grid;
  gap: 0.62rem;
  padding: 0.78rem;
  border-radius: 1rem;
  overflow: hidden;
}

.admin-main .admin-brand-card-v2 .admin-brand-card-top {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
}

.admin-main .admin-brand-card-v2 .admin-brand-preview-compact {
  min-height: 4.4rem;
  height: 4.4rem;
}

.admin-main .admin-brand-card-v2 .admin-brand-summary {
  min-width: 0;
}

.admin-main .admin-brand-card-v2 .admin-brand-head strong,
.admin-main .admin-brand-card-v2 .admin-brand-stats span {
  display: block;
  overflow-wrap: anywhere;
}

.admin-main .admin-brand-card-v2 .admin-brand-card-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.admin-main .admin-brand-card-v2 .admin-brand-card-fields .field {
  margin: 0;
  min-width: 0;
}

.admin-main .admin-brand-card-v2 .admin-brand-card-fields input,
.admin-main .admin-brand-card-v2 .admin-brand-card-fields select,
.admin-main .admin-brand-card-v2 .admin-brand-card-fields textarea,
.admin-main .admin-brand-card-v2 .admin-brand-upload-field input[type="file"] {
  width: 100%;
  min-width: 0;
}

.admin-main .admin-brand-card-v2 .admin-brand-card-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1320px) {
  .admin-main .admin-brand-grid,
  .admin-main .admin-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .admin-main .admin-brand-grid,
  .admin-main .admin-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-main .admin-brand-card-v2 .admin-brand-card-fields {
    grid-template-columns: 1fr;
  }
}

/* Fix layout: productos admin 3/2/1 columns */
.admin-main .admin-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-main .admin-product-grid .admin-product-editor-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  padding: 0.78rem;
  border-radius: 1rem;
  overflow: hidden;
}

.admin-main .admin-product-grid .admin-product-editor-main,
.admin-main .admin-product-grid .admin-product-editor-side {
  display: grid;
  gap: 0.55rem;
}

.admin-main .admin-product-grid .admin-product-editor-main .field,
.admin-main .admin-product-grid .admin-product-editor-side .field {
  margin: 0;
  min-width: 0;
}

.admin-main .admin-product-grid .admin-product-editor-main .field input,
.admin-main .admin-product-grid .admin-product-editor-main .field textarea,
.admin-main .admin-product-grid .admin-product-editor-main .field select,
.admin-main .admin-product-grid .admin-product-editor-side .field input,
.admin-main .admin-product-grid .admin-product-editor-side .field textarea,
.admin-main .admin-product-grid .admin-product-editor-side .field select {
  width: 100%;
  min-width: 0;
}

.admin-main .admin-product-grid .admin-product-editor-main .admin-form-grid.compact {
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.admin-main .admin-product-grid .admin-product-image-side {
  min-height: 4.5rem;
  height: 4.5rem;
  width: 100%;
  max-width: 100%;
}

.admin-main .admin-product-grid .admin-product-image-side img {
  max-height: 3.2rem;
  object-fit: contain;
}

.admin-main .admin-product-grid .admin-product-editor-main textarea[name="descripcion_web"] {
  min-height: 4.8rem;
}

.admin-main .admin-product-grid .admin-product-editor-main textarea[name="resumen"] {
  min-height: 3.1rem;
}

.admin-main .admin-product-grid .admin-product-editor-side .accent-button {
  width: 100%;
}

@media (max-width: 1320px) {
  .admin-main .admin-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .admin-main .admin-product-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin ultra-compact density for personal use */
.admin-body .admin-main .admin-brand-card-v2,
.admin-body .admin-main .admin-category-card-v2,
.admin-body .admin-main .admin-product-grid .admin-product-editor-card {
  font-size: 0.84rem;
}

.admin-body .admin-main .admin-brand-card-v2 .admin-brand-preview-compact,
.admin-body .admin-main .admin-category-card-v2 .admin-category-preview-compact,
.admin-body .admin-main .admin-product-grid .admin-product-image-side {
  min-height: 3.9rem;
  height: 3.9rem;
}

.admin-body .admin-main .admin-brand-card-v2 .field label,
.admin-body .admin-main .admin-category-card-v2 .field label,
.admin-body .admin-main .admin-product-grid .field label {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.18rem;
}

.admin-body .admin-main .admin-brand-card-v2 .field input,
.admin-body .admin-main .admin-brand-card-v2 .field select,
.admin-body .admin-main .admin-brand-card-v2 .field textarea,
.admin-body .admin-main .admin-category-card-v2 .field input,
.admin-body .admin-main .admin-category-card-v2 .field select,
.admin-body .admin-main .admin-category-card-v2 .field textarea,
.admin-body .admin-main .admin-product-grid .field input,
.admin-body .admin-main .admin-product-grid .field select,
.admin-body .admin-main .admin-product-grid .field textarea {
  min-height: 2rem;
  padding: 0.38rem 0.58rem;
  font-size: 0.83rem;
  border-radius: 0.82rem;
}

.admin-body .admin-main .admin-product-grid .admin-product-editor-main textarea[name="descripcion_web"] {
  min-height: 3.9rem;
}

.admin-body .admin-main .admin-product-grid .admin-product-editor-main textarea[name="resumen"] {
  min-height: 2.6rem;
}

.admin-body .admin-main .admin-product-grid .admin-product-editor-side .admin-form-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.5rem;
}

.admin-body .admin-main .admin-product-grid .admin-product-editor-side .checkbox {
  margin: 0;
}

.admin-body .admin-main .admin-product-grid .admin-product-editor-side .checkbox span {
  font-size: 0.74rem;
}

.admin-body .admin-main .admin-brand-card-v2 .accent-button,
.admin-body .admin-main .admin-category-card-v2 .accent-button,
.admin-body .admin-main .admin-product-grid .accent-button {
  min-height: 2rem;
  padding: 0.36rem 0.72rem;
  font-size: 0.82rem;
  border-radius: 999px;
}

.admin-body .admin-main .admin-product-grid .admin-compact-advanced {
  border: 1px dashed rgba(35, 66, 160, 0.22);
  border-radius: 0.8rem;
  padding: 0.35rem 0.5rem;
  background: rgba(35, 66, 160, 0.03);
}

.admin-body .admin-main .admin-product-grid .admin-compact-advanced > summary {
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-dark);
  list-style: none;
  user-select: none;
}

.admin-body .admin-main .admin-product-grid .admin-compact-advanced > summary::-webkit-details-marker {
  display: none;
}

.admin-body .admin-main .admin-product-grid .admin-compact-advanced > summary::before {
  content: "+ ";
}

.admin-body .admin-main .admin-product-grid .admin-compact-advanced[open] > summary::before {
  content: "- ";
}

.admin-body .admin-main .admin-product-grid .admin-compact-advanced .admin-compact-advanced-body {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.45rem;
}

@media (max-width: 1320px) {
  .admin-body .admin-main .admin-product-grid .admin-product-editor-side .admin-form-grid.compact {
    grid-template-columns: 1fr;
  }
}

/* Admin media library */
.admin-media-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-media-toolbar {
  display: grid;
  grid-template-columns: minmax(10rem, 0.32fr) minmax(16rem, 1fr) auto auto;
  align-items: end;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(217, 224, 238, 0.9);
  border-radius: 1rem;
  background: rgba(248, 251, 255, 0.92);
}

.admin-media-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.admin-media-stats > div {
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(217, 224, 238, 0.9);
  border-radius: 1rem;
  background: white;
}

.admin-media-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-media-stats strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--primary-dark);
  font-size: 1.08rem;
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-media-card {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.72rem;
  border: 1px solid rgba(217, 224, 238, 0.95);
  border-radius: 1.1rem;
  background: white;
  box-shadow: 0 12px 28px rgba(14, 28, 48, 0.06);
}

.admin-media-thumb {
  display: grid;
  place-items: center;
  height: 8.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(217, 224, 238, 0.86);
  background:
    linear-gradient(45deg, rgba(217, 224, 238, 0.35) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(217, 224, 238, 0.35) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(217, 224, 238, 0.35) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(217, 224, 238, 0.35) 75%);
  background-color: #fff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  overflow: hidden;
}

.admin-media-thumb img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}

.admin-media-info {
  display: grid;
  gap: 0.34rem;
  min-width: 0;
}

.admin-media-info strong {
  color: var(--primary-dark);
  font-size: 0.88rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-media-info code {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-media-badges,
.admin-media-usage {
  display: flex;
  gap: 0.24rem;
  flex-wrap: wrap;
}

.admin-media-badges span,
.admin-media-usage span {
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  background: rgba(35, 66, 160, 0.07);
  color: var(--primary-dark);
  font-size: 0.66rem;
  font-weight: 800;
}

.admin-media-badges .is-used {
  background: rgba(27, 127, 84, 0.12);
  color: var(--success);
}

.admin-media-badges .is-free {
  background: rgba(192, 65, 74, 0.1);
  color: var(--danger);
}

.admin-media-usage span {
  max-width: 100%;
  background: rgba(13, 130, 139, 0.08);
  color: #126b5e;
}

.admin-media-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.admin-media-actions form,
.admin-media-actions button {
  width: 100%;
}

.admin-media-actions .ghost-button,
.admin-media-actions .danger-button {
  width: 100%;
  min-height: 2.1rem;
  padding: 0.38rem 0.55rem;
  font-size: 0.76rem;
}

.admin-product-image-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.admin-product-image-tools .ghost-button {
  padding: 0.48rem 0.75rem;
  font-size: 0.78rem;
}

.admin-media-modal-open {
  overflow: hidden;
}

.admin-media-picker-modal[hidden] {
  display: none;
}

.admin-media-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.admin-media-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 36, 0.54);
  backdrop-filter: blur(4px);
}

.admin-media-picker-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.9rem;
  width: min(72rem, 96vw);
  max-height: min(46rem, 92vh);
  padding: 1rem;
  border: 1px solid rgba(217, 224, 238, 0.95);
  border-radius: 1.35rem;
  background: #f8fbff;
  box-shadow: 0 30px 70px rgba(8, 20, 36, 0.28);
}

.admin-media-picker-head,
.admin-media-picker-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-media-picker-head h2 {
  margin: 0.16rem 0 0;
}

.admin-media-picker-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(217, 224, 238, 0.95);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
}

.admin-media-picker-toolbar {
  align-items: end;
}

.admin-media-picker-toolbar .field {
  flex: 1 1 18rem;
}

.admin-media-picker-upload {
  display: grid;
  gap: 0.28rem;
  min-width: min(26rem, 100%);
}

.admin-media-picker-upload > label,
.admin-media-picker-new-file label,
.admin-media-process-form label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-media-picker-upload-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-media-picker-upload-row input[type="file"],
.admin-media-picker-new-file input[type="file"] {
  min-width: 0;
  font-size: 0.78rem;
}

.admin-media-picker-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.34fr);
  gap: 1rem;
  min-height: 0;
}

.admin-media-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 0.7rem;
  min-height: 0;
  overflow: auto;
  padding-right: 0.25rem;
}

.admin-media-picker-card {
  display: grid;
  gap: 0.42rem;
  padding: 0.55rem;
  border: 1px solid rgba(217, 224, 238, 0.95);
  border-radius: 0.9rem;
  background: #ffffff;
  color: var(--primary-dark);
  text-align: left;
  cursor: pointer;
}

.admin-media-picker-card:hover,
.admin-media-picker-card:focus-visible,
.admin-media-picker-card.is-selected {
  border-color: rgba(13, 130, 139, 0.48);
  box-shadow: 0 14px 28px rgba(13, 130, 139, 0.12);
  outline: 0;
}

.admin-media-picker-thumb {
  display: grid;
  place-items: center;
  height: 6.2rem;
  border-radius: 0.7rem;
  background:
    linear-gradient(45deg, rgba(217, 224, 238, 0.42) 25%, transparent 25%) 0 0 / 1rem 1rem,
    linear-gradient(45deg, transparent 75%, rgba(217, 224, 238, 0.42) 75%) 0 0 / 1rem 1rem,
    #ffffff;
}

.admin-media-picker-thumb img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}

.admin-media-picker-card strong {
  overflow: hidden;
  color: var(--primary-dark);
  font-size: 0.78rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-media-picker-card small {
  color: var(--muted);
  font-size: 0.68rem;
}

.admin-media-picker-side {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-height: 0;
  overflow: auto;
  padding: 0.75rem;
  border: 1px solid rgba(217, 224, 238, 0.95);
  border-radius: 1rem;
  background: #ffffff;
}

.admin-media-picker-preview {
  display: grid;
  place-items: center;
  min-height: 10rem;
  border: 1px dashed rgba(13, 130, 139, 0.36);
  border-radius: 0.9rem;
  background: #f7fbff;
  color: var(--muted);
}

.admin-media-picker-preview img {
  max-width: 92%;
  max-height: 9rem;
  object-fit: contain;
}

.admin-media-picker-side code {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-media-picker-new-file,
.admin-media-process-form {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(217, 224, 238, 0.82);
}

.admin-media-process-form div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.42rem;
}

.admin-media-process-form input[type="number"] {
  width: 100%;
}

@media (max-width: 1320px) {
  .admin-media-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .admin-media-picker-dialog {
    width: min(44rem, 96vw);
  }

  .admin-media-picker-head,
  .admin-media-picker-toolbar,
  .admin-media-picker-upload-row {
    display: grid;
  }

  .admin-media-picker-body,
  .admin-media-picker-grid {
    grid-template-columns: 1fr;
  }

  .admin-media-toolbar,
  .admin-media-stats,
  .admin-media-grid {
    grid-template-columns: 1fr;
  }

  .admin-media-head {
    display: grid;
  }
}

/* Taxonomia admin: categorias principales, categorias y lineas */
.admin-body .admin-main .admin-group-list-shell,
.admin-body .admin-main .admin-category-list-shell,
.admin-body .admin-main .admin-line-list-shell {
  gap: 0.52rem;
}

.admin-body .admin-main .admin-group-list-head,
.admin-body .admin-main .admin-group-list-row {
  grid-template-columns: 3.8rem minmax(14rem, 1.35fr) minmax(9rem, 0.75fr) minmax(15rem, 1fr) 5.6rem;
}

.admin-body .admin-main .admin-category-list-head,
.admin-body .admin-main .admin-category-list-row {
  grid-template-columns: 4.4rem 5.8rem minmax(16rem, 1.55fr) minmax(8rem, 0.72fr) minmax(13.5rem, 1fr) minmax(11rem, 0.88fr) 5.6rem;
}

.admin-body .admin-main .admin-line-list-head,
.admin-body .admin-main .admin-line-list-row {
  grid-template-columns: minmax(14rem, 1.05fr) minmax(16rem, 1.35fr) minmax(7rem, 0.52fr) minmax(14rem, 1fr) 5.6rem;
}

.admin-body .admin-main .admin-group-list-row,
.admin-body .admin-main .admin-category-list-row,
.admin-body .admin-main .admin-line-list-row {
  min-height: auto;
  padding: 0.42rem 0.52rem;
  border-radius: 0.82rem;
  gap: 0.5rem;
}

.admin-body .admin-main .admin-group-list-row:hover,
.admin-body .admin-main .admin-category-list-row:hover,
.admin-body .admin-main .admin-line-list-row:hover {
  border-color: rgba(13, 130, 139, 0.32);
  box-shadow: 0 10px 24px rgba(22, 40, 75, 0.055);
}

.admin-body .admin-main .admin-group-list-row .admin-list-col,
.admin-body .admin-main .admin-category-list-row .admin-list-col,
.admin-body .admin-main .admin-line-list-row .admin-list-col {
  align-self: center;
}

.admin-body .admin-main .admin-group-list-row .admin-list-col label,
.admin-body .admin-main .admin-category-list-row .admin-list-col label,
.admin-body .admin-main .admin-line-list-row .admin-list-col label {
  margin-bottom: 0.1rem;
  color: #5f6f8a;
  font-size: 0.6rem;
  letter-spacing: 0.07em;
}

.admin-body .admin-main .admin-group-list-row .admin-list-summary strong,
.admin-body .admin-main .admin-category-list-row .admin-list-summary strong,
.admin-body .admin-main .admin-line-list-row .admin-list-summary strong {
  display: block;
  color: #0a2142;
  font-size: 0.84rem;
  line-height: 1.12;
}

.admin-body .admin-main .admin-group-list-row .admin-list-summary small,
.admin-body .admin-main .admin-category-list-row .admin-list-summary small,
.admin-body .admin-main .admin-line-list-row .admin-list-summary small,
.admin-body .admin-main .admin-category-list-row .admin-list-col-name small {
  margin-top: 0.06rem;
  color: #65758f;
  font-size: 0.68rem;
  line-height: 1.15;
}

.admin-body .admin-main .admin-category-list-row .admin-list-col-code input,
.admin-body .admin-main .admin-category-list-row .admin-list-col-name input {
  min-height: 1.85rem;
  border-radius: 0.62rem;
  border-color: rgba(148, 171, 205, 0.58);
  background: #fff;
  color: #0a2142;
  font-size: 0.82rem;
  font-weight: 650;
}

.admin-body .admin-main .admin-category-list-row .admin-list-col-code input {
  text-align: center;
}

.admin-body .admin-main .admin-list-col-meta {
  align-content: center;
  display: flex;
  gap: 0.22rem;
  flex-wrap: wrap;
}

.admin-body .admin-main .admin-list-pill {
  padding: 0.08rem 0.42rem;
  border-color: rgba(35, 66, 160, 0.16);
  background: #f5f8ff;
  color: #19306c;
  font-size: 0.66rem;
  line-height: 1.2;
}

.admin-body .admin-main .admin-list-col-logo .admin-category-preview-compact,
.admin-body .admin-main .admin-list-col-logo .admin-taxonomy-icon-preview {
  width: 4rem;
  height: 3.25rem;
  min-height: 3.25rem;
  padding: 0.35rem;
  border-radius: 0.75rem;
}

.admin-body .admin-main .admin-list-col-logo .admin-category-preview-compact span {
  font-size: 0.68rem;
  line-height: 1.05;
}

.admin-body .admin-main .admin-list-col-logo .admin-category-preview-compact img {
  max-width: 3.45rem;
  max-height: 2.55rem;
}

.admin-body .admin-main .admin-taxonomy-icon-preview {
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 171, 205, 0.34);
  background: linear-gradient(145deg, #f8fbff, #eef6ff);
}

.admin-body .admin-main .admin-taxonomy-icon-preview .nav-categories-item-icon {
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
}

.admin-body .admin-main .admin-visibility-grid {
  display: flex;
  gap: 0.28rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-body .admin-main .admin-visibility-check {
  gap: 0.25rem;
  margin: 0;
  padding: 0.12rem 0.42rem;
  border: 1px solid rgba(35, 66, 160, 0.14);
  border-radius: 999px;
  background: rgba(35, 66, 160, 0.045);
  color: #19306c;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.1;
}

.admin-body .admin-main .admin-visibility-check input[type="checkbox"] {
  width: 0.9rem;
  min-width: 0.9rem;
  height: 0.9rem;
  min-height: 0.9rem;
  margin: 0;
  padding: 0;
  accent-color: #0b8f78;
}

.admin-body .admin-main .admin-list-col-upload input[type="file"] {
  max-width: 100%;
  color: #65758f;
  font-size: 0.68rem;
}

.admin-body .admin-main .admin-list-col-upload input[type="file"]::file-selector-button {
  min-height: 1.65rem;
  margin-right: 0.38rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(35, 66, 160, 0.2);
  border-radius: 0.62rem;
  background: linear-gradient(135deg, rgba(13, 130, 139, 0.1), rgba(35, 66, 160, 0.12));
  color: #19306c;
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-body .admin-main .admin-group-list-row .admin-list-col-action .accent-button,
.admin-body .admin-main .admin-category-list-row .admin-list-col-action .accent-button,
.admin-body .admin-main .admin-line-list-row .admin-list-col-action .accent-button {
  width: 100%;
  min-height: 1.75rem;
  padding: 0.24rem 0.42rem;
  border-radius: 0.72rem;
  font-size: 0.72rem;
}

@media (max-width: 1280px) {
  .admin-body .admin-main .admin-group-list-head,
  .admin-body .admin-main .admin-category-list-head,
  .admin-body .admin-main .admin-line-list-head {
    display: none;
  }

  .admin-body .admin-main .admin-group-list-row,
  .admin-body .admin-main .admin-category-list-row,
  .admin-body .admin-main .admin-line-list-row {
    grid-template-columns: 4.2rem minmax(0, 1fr) minmax(9rem, 0.7fr);
  }

  .admin-body .admin-main .admin-list-col-upload,
  .admin-body .admin-main .admin-list-col-visibility,
  .admin-body .admin-main .admin-list-col-action,
  .admin-body .admin-main .admin-list-col-context {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .admin-body .admin-main .admin-group-list-row,
  .admin-body .admin-main .admin-category-list-row,
  .admin-body .admin-main .admin-line-list-row {
    grid-template-columns: 3.8rem minmax(0, 1fr);
  }

  .admin-body .admin-main .admin-category-list-row .admin-list-col-code,
  .admin-body .admin-main .admin-category-list-row .admin-list-col-name,
  .admin-body .admin-main .admin-category-list-row .admin-list-col-meta,
  .admin-body .admin-main .admin-list-col-upload,
  .admin-body .admin-main .admin-list-col-visibility,
  .admin-body .admin-main .admin-list-col-action,
  .admin-body .admin-main .admin-list-col-context {
    grid-column: 1 / -1;
  }
}

/* Final compact admin: appearance and promotions */
.admin-body .admin-main .admin-customize.admin-panel-editor,
.admin-body .admin-main .admin-promotions-panel {
  gap: 0.72rem !important;
  padding: 0.82rem !important;
}

.admin-body .admin-main .admin-customize .admin-section,
.admin-body .admin-main .admin-promotions-panel .admin-section {
  padding: 0.78rem 0.9rem !important;
  border-radius: 1rem !important;
}

.admin-body .admin-main .admin-customize .admin-section h2,
.admin-body .admin-main .admin-promotions-panel .admin-section h2,
.admin-body .admin-main .admin-promotions-panel .admin-section h3 {
  margin: 0 0 0.38rem !important;
  color: #071f3e;
  font-size: 1rem !important;
  line-height: 1.1;
}

.admin-body .admin-main .admin-customize .section-copy,
.admin-body .admin-main .admin-promotions-panel .section-copy {
  margin: 0.1rem 0 0.48rem !important;
  color: #53657f;
  font-size: 0.8rem !important;
  line-height: 1.32;
}

.admin-body .admin-main .admin-customize .admin-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.55rem 0.62rem !important;
}

.admin-body .admin-main .admin-promotions-panel .promo-admin-form,
.admin-body .admin-main .admin-promotions-panel .promo-admin-form.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0.52rem 0.58rem !important;
  margin-bottom: 0.72rem !important;
}

.admin-body .admin-main .admin-customize .field-wide,
.admin-body .admin-main .admin-promotions-panel .field-wide {
  grid-column: 1 / -1;
}

.admin-body .admin-main .admin-customize .field label,
.admin-body .admin-main .admin-promotions-panel .field label {
  margin-bottom: 0.18rem;
  color: #64728a;
  font-size: 0.61rem !important;
  letter-spacing: 0.1em;
  line-height: 1.1;
}

.admin-body .admin-main .admin-customize .field input,
.admin-body .admin-main .admin-customize .field select,
.admin-body .admin-main .admin-customize .field textarea,
.admin-body .admin-main .admin-promotions-panel .field input,
.admin-body .admin-main .admin-promotions-panel .field select,
.admin-body .admin-main .admin-promotions-panel .field textarea {
  min-height: 2.05rem !important;
  padding: 0.43rem 0.58rem !important;
  border-radius: 0.68rem !important;
  color: #0a2142;
  font-size: 0.8rem !important;
}

.admin-body .admin-main .admin-customize .field textarea,
.admin-body .admin-main .admin-promotions-panel .field textarea {
  min-height: 4.55rem !important;
  line-height: 1.25;
}

.admin-body .admin-main .admin-customize .field small,
.admin-body .admin-main .admin-promotions-panel .field small {
  margin-top: 0.18rem;
  color: #6a7a93;
  font-size: 0.66rem !important;
  line-height: 1.25;
}

.admin-body .admin-main .admin-customize input[type="file"],
.admin-body .admin-main .admin-promotions-panel input[type="file"] {
  color: #687993;
  font-size: 0.68rem !important;
}

.admin-body .admin-main .admin-customize input[type="file"]::file-selector-button,
.admin-body .admin-main .admin-promotions-panel input[type="file"]::file-selector-button {
  min-height: 1.65rem;
  margin-right: 0.38rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(35, 66, 160, 0.2);
  border-radius: 0.62rem;
  background: linear-gradient(135deg, rgba(13, 130, 139, 0.1), rgba(35, 66, 160, 0.12));
  color: #19306c;
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-body .admin-main .admin-customize .admin-preview-card {
  min-height: 4.7rem !important;
  padding: 0.48rem !important;
  border-radius: 0.8rem;
}

.admin-body .admin-main .admin-customize .admin-preview-card span {
  margin-bottom: 0.24rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.admin-body .admin-main .admin-customize .admin-preview-card img {
  max-height: 3.55rem;
  object-fit: contain;
}

.admin-body .admin-main .admin-customize > .accent-button,
.admin-body .admin-main .admin-promotions-panel .accent-button,
.admin-body .admin-main .admin-promotions-panel .ghost-button,
.admin-body .admin-main .admin-promotions-panel .danger-button {
  min-height: 2rem !important;
  padding: 0.38rem 0.72rem !important;
  border-radius: 0.72rem !important;
  font-size: 0.74rem !important;
  line-height: 1.1;
}

.admin-body .admin-main .admin-customize > .accent-button {
  justify-self: end;
  min-width: 10rem;
}

.admin-body .admin-main .admin-promotions-panel .promo-admin-nav {
  position: sticky;
  top: 0.55rem;
  z-index: 5;
  gap: 0.34rem !important;
  margin: 0 0 0.62rem !important;
  padding: 0.3rem;
  border: 1px solid rgba(148, 171, 205, 0.22);
  border-radius: 999px;
  background: rgba(247, 251, 255, 0.92);
  backdrop-filter: blur(8px);
}

.admin-body .admin-main .admin-promotions-panel .promo-admin-nav a,
.admin-body .admin-main .admin-promotions-panel .promo-template-list span {
  min-height: 1.82rem !important;
  padding: 0.28rem 0.62rem !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
}

.admin-body .admin-main .admin-promotions-panel .checkbox {
  min-height: 2.05rem !important;
  gap: 0.35rem;
  padding: 0.28rem 0.58rem !important;
  border-radius: 0.72rem;
  color: #18315d;
  font-size: 0.72rem !important;
}

.admin-body .admin-main .admin-promotions-panel .checkbox input[type="checkbox"] {
  width: 0.92rem !important;
  min-width: 0.92rem !important;
  height: 0.92rem !important;
  min-height: 0.92rem !important;
  accent-color: #0b8f78;
}

.admin-body .admin-main .admin-promotions-panel .promo-admin-grid {
  grid-template-columns: 1fr !important;
  gap: 0.55rem !important;
}

.admin-body .admin-main .admin-promotions-panel .promo-admin-card {
  grid-template-columns: 12.2rem minmax(12rem, 1fr) auto !important;
  gap: 0.62rem !important;
  align-items: center !important;
  padding: 0.52rem 0.62rem !important;
  border-radius: 0.9rem !important;
}

.admin-body .admin-main .admin-promotions-panel .promo-admin-preview {
  min-height: 5.35rem !important;
  height: 5.35rem;
  border-radius: 0.72rem !important;
}

.admin-body .admin-main .admin-promotions-panel .promo-admin-preview img {
  object-fit: contain !important;
  background: #edf6fb;
}

.admin-body .admin-main .admin-promotions-panel .promo-admin-card strong {
  display: block;
  color: #071f3e;
  font-size: 0.88rem !important;
  line-height: 1.14;
}

.admin-body .admin-main .admin-promotions-panel .promo-admin-card p {
  margin-top: 0.18rem !important;
  font-size: 0.7rem !important;
  line-height: 1.18;
}

.admin-body .admin-main .admin-promotions-panel .promo-admin-actions {
  grid-column: auto !important;
  justify-content: flex-end;
  gap: 0.28rem !important;
  max-width: 31rem;
}

.admin-body .admin-main .admin-promotions-panel .promo-inline-visibility .checkbox {
  min-height: 1.95rem !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: 999px !important;
}

.admin-body .admin-main .admin-promotions-panel .quick-admin-list {
  gap: 0.48rem !important;
  margin-top: 0.62rem !important;
}

.admin-body .admin-main .admin-promotions-panel .quick-admin-card {
  grid-template-columns: 4.2rem 1.15fr 0.72fr 0.7fr 0.6fr auto !important;
  gap: 0.42rem !important;
  padding: 0.48rem 0.58rem !important;
  border-radius: 0.86rem !important;
}

.admin-body .admin-main .admin-promotions-panel .quick-admin-card > img {
  width: 3.55rem !important;
  height: 3.55rem !important;
  border-radius: 0.85rem !important;
}

.admin-body .admin-main .admin-promotions-panel .admin-table-wrap {
  margin-top: 0.58rem;
  border-radius: 0.9rem;
}

.admin-body .admin-main .admin-promotions-panel .admin-table th,
.admin-body .admin-main .admin-promotions-panel .admin-table td {
  padding: 0.42rem 0.5rem !important;
  font-size: 0.74rem !important;
}

.admin-body .admin-main .admin-promotions-panel .promo-table-actions {
  gap: 0.26rem !important;
}

.admin-body .admin-main .admin-promotions-panel .promo-template-list {
  display: grid !important;
  gap: 0.42rem !important;
}

.admin-body .admin-main .admin-promotions-panel .promo-template-row {
  justify-content: space-between;
  gap: 0.42rem !important;
  padding: 0.42rem 0.54rem !important;
  border: 1px solid rgba(148, 171, 205, 0.28);
  border-radius: 0.86rem;
  background: #fff;
}

@media (max-width: 1320px) {
  .admin-body .admin-main .admin-customize .admin-form-grid,
  .admin-body .admin-main .admin-promotions-panel .promo-admin-form,
  .admin-body .admin-main .admin-promotions-panel .promo-admin-form.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .admin-body .admin-main .admin-promotions-panel .promo-admin-card {
    grid-template-columns: 11rem minmax(0, 1fr) !important;
  }

  .admin-body .admin-main .admin-promotions-panel .promo-admin-actions {
    grid-column: 1 / -1 !important;
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .admin-body .admin-main .admin-customize .admin-form-grid,
  .admin-body .admin-main .admin-promotions-panel .promo-admin-form,
  .admin-body .admin-main .admin-promotions-panel .promo-admin-form.compact,
  .admin-body .admin-main .admin-promotions-panel .quick-admin-card,
  .admin-body .admin-main .admin-promotions-panel .promo-admin-card {
    grid-template-columns: 1fr !important;
  }

  .admin-body .admin-main .admin-promotions-panel .promo-admin-nav {
    position: static;
    border-radius: 0.95rem;
  }

  .admin-body .admin-main .admin-promotions-panel .promo-admin-preview {
    height: auto;
    min-height: 7rem !important;
  }
}

/* Admin list mode for brands/categories */
.admin-body .admin-main .admin-list-shell {
  display: grid;
  gap: 0.45rem;
}

.admin-body .admin-main .admin-list-head,
.admin-body .admin-main .admin-list-row {
  display: grid;
  align-items: center;
  gap: 0.45rem;
}

.admin-body .admin-main .admin-brand-list-head,
.admin-body .admin-main .admin-brand-list-row {
  grid-template-columns: 4.2rem minmax(11rem, 1.15fr) minmax(7.8rem, 0.7fr) minmax(13rem, 0.95fr) minmax(10.5rem, 0.8fr) 5.4rem;
}

.admin-body .admin-main .admin-category-list-head,
.admin-body .admin-main .admin-category-list-row {
  grid-template-columns: 4.8rem 6rem minmax(12rem, 1fr) minmax(7rem, 0.6fr) minmax(12rem, 1fr) 6.8rem;
}

.admin-body .admin-main .admin-list-head {
  padding: 0.3rem 0.5rem 0.2rem;
}

.admin-body .admin-main .admin-list-head span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 800;
}

.admin-body .admin-main .admin-list-row {
  border: 1px solid rgba(217, 224, 238, 0.9);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.38rem 0.45rem;
}

.admin-body .admin-main .admin-brand-list-row {
  gap: 0.34rem;
  padding: 0.28rem 0.38rem;
}

.admin-body .admin-main .admin-list-col {
  min-width: 0;
}

.admin-body .admin-main .admin-list-col label {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 0.14rem;
}

.admin-body .admin-main .admin-list-col input,
.admin-body .admin-main .admin-list-col select,
.admin-body .admin-main .admin-list-col textarea {
  width: 100%;
  min-width: 0;
  min-height: 1.9rem;
  padding: 0.28rem 0.52rem;
  border-radius: 0.75rem;
  font-size: 0.82rem;
}

.admin-body .admin-main .admin-list-col small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.admin-body .admin-main .admin-list-col-meta {
  display: grid;
  gap: 0.25rem;
}

.admin-body .admin-main .admin-list-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(35, 66, 160, 0.15);
  background: rgba(35, 66, 160, 0.07);
  color: var(--primary-dark);
  padding: 0.12rem 0.46rem;
  font-size: 0.7rem;
  font-weight: 700;
  width: fit-content;
}

.admin-body .admin-main .admin-list-col-logo .admin-brand-preview-compact,
.admin-body .admin-main .admin-list-col-logo .admin-category-preview-compact {
  min-height: 3.55rem;
  height: 3.55rem;
  padding: 0.36rem 0.5rem;
  border-radius: 0.75rem;
}

.admin-body .admin-main .admin-brand-list-row .admin-brand-preview-compact {
  min-height: 2.95rem;
  height: 2.95rem;
  padding: 0.28rem 0.38rem;
}

.admin-body .admin-main .admin-list-col-logo .admin-brand-preview-compact img,
.admin-body .admin-main .admin-list-col-logo .admin-category-preview-compact img {
  max-height: 2.6rem;
  max-width: 3.8rem;
}

.admin-body .admin-main .admin-brand-list-row .admin-brand-preview-compact img {
  max-height: 2.15rem;
  max-width: 3.45rem;
}

.admin-body .admin-main .admin-brand-list-row .admin-list-col label {
  font-size: 0.58rem;
  margin-bottom: 0.08rem;
}

.admin-body .admin-main .admin-brand-list-row .admin-list-col input {
  min-height: 1.65rem;
  padding: 0.2rem 0.45rem;
}

.admin-body .admin-main .admin-brand-list-row .admin-list-col small {
  margin-top: 0.08rem;
  font-size: 0.66rem;
}

.admin-body .admin-main .admin-brand-list-row .admin-list-col-meta {
  align-content: center;
  display: flex;
  gap: 0.22rem;
  flex-wrap: wrap;
}

.admin-body .admin-main .admin-brand-list-row .admin-list-pill {
  padding: 0.08rem 0.36rem;
  font-size: 0.66rem;
}

.admin-body .admin-main .admin-brand-list-row .admin-visibility-grid {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.admin-body .admin-main .admin-brand-list-row .admin-visibility-check {
  gap: 0.24rem;
  padding: 0.1rem 0.34rem;
  border: 1px solid rgba(35, 66, 160, 0.14);
  border-radius: 999px;
  background: rgba(35, 66, 160, 0.05);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.admin-body .admin-main .admin-brand-list-row .admin-visibility-check input[type="checkbox"] {
  width: 0.82rem;
  min-width: 0.82rem;
  height: 0.82rem;
  min-height: 0.82rem;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}

.admin-body .admin-main .admin-list-col-upload input[type="file"] {
  width: 100%;
  min-width: 0;
  font-size: 0.75rem;
}

.admin-body .admin-main .admin-file-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.32rem;
}

.admin-body .admin-main .admin-file-picker-input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-body .admin-main .admin-file-picker-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  margin: 0 !important;
  padding: 0.2rem 0.58rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(35, 66, 160, 0.22);
  background: linear-gradient(135deg, rgba(13, 130, 139, 0.12), rgba(35, 66, 160, 0.12));
  color: var(--primary-dark) !important;
  font-size: 0.68rem !important;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none !important;
  cursor: pointer;
}

.admin-body .admin-main .admin-file-picker-button:hover,
.admin-body .admin-main .admin-file-picker-button:focus-visible {
  background: linear-gradient(135deg, rgba(13, 130, 139, 0.22), rgba(35, 66, 160, 0.2));
  border-color: rgba(13, 130, 139, 0.36);
}

.admin-body .admin-main .admin-file-picker-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .admin-main .admin-logo-delete-check {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.24rem;
  margin-top: 0.18rem;
  padding: 0.06rem 0.38rem;
  border-radius: 999px;
  background: rgba(192, 65, 74, 0.08);
  color: var(--danger);
  font-size: 0.66rem;
  font-weight: 800;
}

.admin-body .admin-main .admin-logo-delete-check input[type="checkbox"] {
  width: 0.78rem;
  min-width: 0.78rem;
  height: 0.78rem;
  min-height: 0.78rem;
  margin: 0;
  padding: 0;
}

.admin-body .admin-main .admin-list-col-action {
  display: flex;
  justify-content: flex-end;
}

.admin-body .admin-main .admin-list-col-action .accent-button {
  width: 100%;
  min-height: 1.9rem;
  padding: 0.28rem 0.5rem;
  font-size: 0.78rem;
}

.admin-body .admin-main .admin-brand-list-row .admin-list-col-action .accent-button {
  min-height: 1.65rem;
  padding: 0.22rem 0.42rem;
  font-size: 0.72rem;
}

@media (max-width: 1180px) {
  .admin-body .admin-main .admin-list-head {
    display: none;
  }

  .admin-body .admin-main .admin-brand-list-row,
  .admin-body .admin-main .admin-category-list-row {
    grid-template-columns: 4.2rem minmax(0, 1fr);
    gap: 0.36rem 0.5rem;
  }

  .admin-body .admin-main .admin-list-col-meta,
  .admin-body .admin-main .admin-list-col-upload,
  .admin-body .admin-main .admin-list-col-action,
  .admin-body .admin-main .admin-list-col-code,
  .admin-body .admin-main .admin-list-col-name {
    grid-column: 1 / -1;
  }

  .admin-body .admin-main .admin-list-col-action .accent-button {
    max-width: 12rem;
  }
}

/* Admin list quick search */
.admin-body .admin-main .admin-list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.55rem;
  border: 1px solid rgba(217, 224, 238, 0.9);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.45rem 0.55rem;
}

.admin-body .admin-main .admin-list-search-field {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-body .admin-main .admin-list-search-field input[type="search"] {
  min-height: 2rem;
  font-size: 0.84rem;
}

.admin-body .admin-main .admin-list-counter {
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.admin-body .admin-main .admin-list-empty {
  margin-top: 0.2rem;
}

@media (max-width: 920px) {
  .admin-body .admin-main .admin-list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-body .admin-main .admin-list-counter {
    white-space: normal;
  }
}

/* Home hero: left category menu + right slider */
.showcase-layout-with-categories {
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
  gap: 0.95rem;
  align-items: stretch;
}

.home-categories-panel {
  align-self: stretch;
}

.home-categories-card {
  position: sticky;
  top: 1rem;
  border: 1px solid rgba(216, 224, 236, 0.95);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-categories-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(217, 224, 238, 0.9);
  background: linear-gradient(90deg, #1f3f9f 0%, #2f7ed8 100%);
  color: #fff;
}

.home-categories-head strong {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-categories-close {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  min-height: 1.85rem;
  padding: 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: none;
}

.home-categories-list {
  max-height: 30.75rem;
  overflow: auto;
}

.home-categories-item {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid rgba(217, 224, 238, 0.86);
  transition: background-color 140ms ease;
}

.home-categories-item:last-child {
  border-bottom: 0;
}

.home-categories-item:hover,
.home-categories-item:focus-visible {
  background: rgba(35, 66, 160, 0.07);
  outline: 0;
}

.home-categories-item.is-empty {
  opacity: 0.74;
}

.home-categories-item .nav-categories-item-icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.5rem;
}

.home-categories-item-copy {
  display: grid;
  gap: 0.14rem;
}

.home-categories-item-copy strong {
  font-size: 0.85rem;
  color: var(--primary-dark);
  line-height: 1.2;
}

.home-categories-item-copy small {
  font-size: 0.72rem;
  color: var(--muted);
}

.home-showcase-slider {
  position: relative;
  border-radius: 1.35rem;
  border: 1px solid rgba(216, 224, 236, 0.95);
  background:
    radial-gradient(circle at 76% 40%, rgba(68, 132, 219, 0.24), transparent 14rem),
    radial-gradient(circle at 66% 80%, rgba(35, 66, 160, 0.16), transparent 12rem),
    linear-gradient(180deg, #f7f9fc 0%, #edf1f7 100%);
}

.home-showcase-slider .showcase-track {
  height: clamp(22rem, 54vh, 31.5rem);
  min-height: 22rem;
  max-height: 31.5rem;
}

.home-showcase-slider .showcase-slide {
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 1.08fr);
  gap: 1.25rem;
  padding: 1.3rem 1.7rem 1.65rem;
  align-items: center;
}

.home-showcase-slider .showcase-copy {
  color: var(--text);
  padding-right: 0.2rem;
}

.home-showcase-slider .showcase-badge {
  margin-bottom: 0.75rem;
  color: #1f3f9f;
  background: rgba(35, 66, 160, 0.12);
}

.home-showcase-slider .showcase-copy h1 {
  color: #111c36;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 10.5ch;
}

.home-showcase-slider .showcase-copy p {
  color: #51607d;
  margin-top: 0.78rem;
  max-width: 34rem;
  line-height: 1.55;
  -webkit-line-clamp: 3;
}

.home-showcase-slider .showcase-meta {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
}

.home-showcase-slider .showcase-price {
  color: #ffffff;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(7, 20, 36, 0.2);
}

.home-showcase-slider .showcase-price-lock {
  color: #5f6d87;
  font-size: 0.88rem;
  font-weight: 600;
}

.home-showcase-slider .showcase-category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(35, 66, 160, 0.22);
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.79rem;
  font-weight: 700;
  text-decoration: none;
}

.home-showcase-slider .showcase-category-link:hover,
.home-showcase-slider .showcase-category-link:focus-visible {
  background: #fff;
  outline: 0;
}

.home-showcase-slider .showcase-media {
  position: relative;
  justify-content: flex-end;
}

.home-showcase-slider .showcase-media::before {
  content: "";
  position: absolute;
  width: clamp(13rem, 30vw, 21rem);
  aspect-ratio: 1 / 1;
  border-radius: 48% 52% 43% 57% / 56% 39% 61% 44%;
  background: linear-gradient(135deg, rgba(47, 126, 216, 0.24) 0%, rgba(31, 63, 159, 0.56) 100%);
  right: 7%;
  top: 14%;
}

.home-showcase-slider .showcase-media img {
  position: relative;
  z-index: 1;
  width: min(100%, 29rem);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 24px 34px rgba(11, 21, 45, 0.18));
}

.home-showcase-slider .showcase-actions {
  margin-top: 1.2rem;
}

.home-showcase-slider .showcase-dots {
  left: 1.9rem;
  bottom: 1rem;
}

.home-categories-mobile-toggle {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 4;
  border: 0;
  border-radius: 999px;
  background: #1f3f9f;
  color: #fff;
  min-height: 2rem;
  padding: 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  display: none;
}

@media (max-width: 1220px) {
  .showcase-layout-with-categories {
    grid-template-columns: minmax(230px, 260px) minmax(0, 1fr);
  }

  .home-showcase-slider .showcase-slide {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.95fr);
  }
}

@media (max-width: 980px) {
  .showcase-layout-with-categories {
    grid-template-columns: 1fr;
  }

  .home-categories-panel {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.75rem;
    background: rgba(10, 18, 36, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .home-categories-panel .home-categories-card {
    width: min(21rem, 92vw);
    height: calc(100dvh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    position: static;
    transform: translateX(-0.65rem);
    transition: transform 180ms ease;
  }

  .home-categories-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .home-categories-panel.is-open .home-categories-card {
    transform: translateX(0);
  }

  .home-categories-close,
  .home-categories-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  body.home-categories-open {
    overflow: hidden;
  }

  .home-showcase-slider .showcase-track {
    min-height: 27rem;
    height: 27rem;
  }

  .home-showcase-slider .showcase-slide {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 3rem 1rem 1.8rem;
  }

  .home-showcase-slider .showcase-copy {
    padding-bottom: 1.15rem;
  }

  .home-showcase-slider .showcase-copy h1 {
    max-width: 100%;
    font-size: clamp(1.58rem, 8vw, 2.25rem);
  }

  .home-showcase-slider .showcase-copy p {
    font-size: 0.87rem;
    -webkit-line-clamp: 3;
  }

  .home-showcase-slider .showcase-media {
    justify-content: center;
  }

  .home-showcase-slider .showcase-media::before {
    right: auto;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    width: min(74vw, 16rem);
  }

  .home-showcase-slider .showcase-media img {
    width: min(88vw, 12.6rem);
  }

  .home-showcase-slider .showcase-dots {
    left: 50%;
    bottom: 0.7rem;
    transform: translateX(-50%);
  }
}

/* Home refinements: compact category rail + unified hero */
.showcase-layout-with-categories {
  --home-hero-height: clamp(22rem, 54vh, 31.5rem);
}

.home-categories-card {
  height: var(--home-hero-height);
  max-height: var(--home-hero-height);
  display: flex;
  flex-direction: column;
}

.home-categories-list {
  flex: 1 1 auto;
  max-height: none;
  overflow: hidden;
}

.home-categories-item {
  min-height: 3.03rem;
  padding: 0.6rem 0.8rem;
}

.home-categories-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.52rem;
  min-height: 2.15rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(35, 66, 160, 0.2);
  border-radius: 0.75rem;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(35, 66, 160, 0.06);
}

.home-categories-more-link:hover,
.home-categories-more-link:focus-visible {
  background: rgba(35, 66, 160, 0.12);
  outline: 0;
}

.home-showcase-slider .showcase-track {
  height: var(--home-hero-height);
  min-height: var(--home-hero-height);
  max-height: var(--home-hero-height);
}

.home-showcase-slider .showcase-slide {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 0.85rem;
}

.home-showcase-slider .showcase-media {
  isolation: isolate;
  justify-content: center;
}

.home-showcase-slider .showcase-media::before {
  right: 50%;
  transform: translateX(50%);
  top: 12%;
}

.home-showcase-slider .showcase-media img {
  width: min(100%, 28rem);
  mix-blend-mode: normal;
  filter: drop-shadow(0 22px 32px rgba(11, 21, 45, 0.2));
}

.home-showcase-slider .showcase-media img.is-cutout-enhanced {
  mix-blend-mode: normal;
}

@media (max-width: 1220px) {
  .showcase-layout-with-categories {
    --home-hero-height: clamp(21rem, 52vh, 29rem);
  }

  .home-categories-item {
    min-height: 2.86rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 980px) {
  .home-categories-panel .home-categories-card {
    height: calc(100dvh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
  }

  .home-categories-list {
    overflow-y: auto;
  }

  .home-showcase-slider .showcase-slide {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .home-showcase-slider .showcase-media::before {
    right: auto;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
  }
}

/* Alerts: auto-dismiss visual state */
.alert {
  transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease, margin 220ms ease, padding 220ms ease, border-width 220ms ease;
  max-height: 6rem;
  overflow: hidden;
}

.alert.is-dismissed {
  opacity: 0;
  transform: translateY(-0.3rem);
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}

/* Mobile fine tune: keep hero image on the right without covering actions */
@media (max-width: 980px) {
  .home-showcase-slider .showcase-slide {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 41vw);
    align-items: center;
    gap: 0.35rem;
    padding: 3rem 0.9rem 1.6rem;
  }

  .home-showcase-slider .showcase-copy {
    padding-bottom: 0;
    padding-right: 0.15rem;
  }

  .home-showcase-slider .showcase-copy p {
    -webkit-line-clamp: 2;
  }

  .home-showcase-slider .showcase-media {
    justify-content: flex-end;
    align-self: center;
  }

  .home-showcase-slider .showcase-media::before {
    left: auto;
    right: 0.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: min(42vw, 10rem);
  }

  .home-showcase-slider .showcase-media img {
    width: min(41vw, 9.8rem);
    max-height: 10.5rem;
  }
}

@media (max-width: 420px) {
  .home-showcase-slider .showcase-slide {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 39vw);
    gap: 0.2rem;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .home-showcase-slider .showcase-media::before {
    width: min(38vw, 8.8rem);
  }

  .home-showcase-slider .showcase-media img {
    width: min(37vw, 8.2rem);
    max-height: 9rem;
  }
}

/* Mobile density request: title 50% and image +30% */
@media (max-width: 980px) {
  .home-showcase-slider .showcase-copy h1 {
    font-size: clamp(0.82rem, 4.1vw, 1.12rem);
    line-height: 1.04;
    max-width: 14ch;
  }

  .home-showcase-slider .showcase-slide {
    grid-template-columns: minmax(0, 1fr) minmax(188px, 66vw);
  }

  .home-showcase-slider .showcase-media::before {
    right: -0.75rem;
    width: min(70vw, 16.8rem);
  }

  .home-showcase-slider .showcase-media img {
    width: min(69vw, 16.5rem);
    max-height: 17.7rem;
    transform: translateX(11%);
  }
}

@media (max-width: 420px) {
  .home-showcase-slider .showcase-slide {
    grid-template-columns: minmax(0, 1fr) minmax(152px, 58vw);
  }

  .home-showcase-slider .showcase-media::before {
    right: -0.6rem;
    width: min(58vw, 14rem);
  }

  .home-showcase-slider .showcase-media img {
    width: min(57vw, 13.7rem);
    max-height: 15.2rem;
    transform: translateX(12%);
  }
}

/* Desktop request: product name at half size */
@media (min-width: 981px) {
  .home-showcase-slider .showcase-copy h1 {
    font-size: clamp(1.08rem, 1.82vw, 1.78rem);
    line-height: 1.12;
    max-width: 18ch;
  }

  .home-showcase-slider .showcase-media {
    align-self: stretch;
    min-height: 0;
  }

  .home-showcase-slider .showcase-media::before {
    top: calc(4% - 20px);
  }

  .home-showcase-slider .showcase-media img {
    width: auto;
    height: auto;
    max-width: min(100%, 28rem);
    max-height: calc(var(--home-hero-height, 28rem) - 2.4rem);
    aspect-ratio: auto;
    object-fit: contain;
  }
}

/* Mobile balanced alignment: large image, no collision with title/buttons */
@media (max-width: 980px) {
  .home-showcase-slider .showcase-slide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
    gap: 0.3rem;
    align-items: center;
  }

  .home-showcase-slider .showcase-copy {
    z-index: 2;
    padding-right: 0.25rem;
  }

.home-showcase-slider .showcase-media {
    justify-content: center;
    justify-self: end;
    align-self: center;
    transform: translateY(-0.85rem);
    z-index: 1;
  }

  .home-showcase-slider .showcase-media::before {
    left: auto;
    right: 50%;
    top: 50%;
    transform: translate(50%, -50%);
    width: min(41.04vw, 9.86rem);
    opacity: 0.78;
  }

  .home-showcase-slider .showcase-media img {
    width: min(58.52vw, 14.41rem);
    max-height: 15.51rem;
    transform: none;
  }
}

@media (max-width: 420px) {
  .home-showcase-slider .showcase-slide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
  }

  .home-showcase-slider .showcase-media {
    transform: translateY(-0.75rem);
  }

  .home-showcase-slider .showcase-media::before {
    right: 50%;
    width: min(45.36vw, 10.22rem);
    transform: translate(50%, -50%);
  }

  .home-showcase-slider .showcase-media img {
    width: min(64.57vw, 14.63rem);
    max-height: 15.73rem;
    transform: none;
  }
}

/* ERP identity blend: petroleum green, deep navy and current SANNI blue */
:root {
  --erp-navy: #10283d;
  --erp-ink: #183149;
  --erp-teal: #1e8074;
  --erp-teal-soft: #4b948b;
  --erp-cream: #fff0d2;
  --sanni-blue: #2342a0;
  --brand-gradient: linear-gradient(90deg, #12324b 0%, #1e8074 48%, #2f55b6 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(18, 50, 75, 0.9) 0%, rgba(30, 128, 116, 0.86) 48%, rgba(47, 85, 182, 0.88) 100%);
}

.top-ribbon {
  background: var(--brand-gradient);
  border-bottom-color: rgba(255, 240, 210, 0.22);
}

.top-ribbon-inner {
  color: rgba(255, 255, 255, 0.92);
}

.top-ribbon-meta {
  color: rgba(255, 255, 255, 0.88);
}

.top-ribbon-link {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 240, 210, 0.32);
  color: #ffffff;
  box-shadow: none;
}

.site-header {
  border-bottom: 1px solid rgba(18, 107, 94, 0.08);
}

.site-brand-copy strong {
  color: var(--erp-ink);
}

.site-brand-copy small {
  color: rgba(7, 20, 36, 0.62);
}

.nav-band {
  background: var(--brand-gradient);
  box-shadow: inset 0 1px 0 rgba(255, 240, 210, 0.12);
}

.nav-menu a,
.nav-tools a {
  color: rgba(255, 255, 255, 0.88);
}

.nav-menu a.is-active,
.nav-menu a:hover,
.nav-tools a:hover {
  color: var(--erp-cream);
  border-bottom-color: var(--erp-cream);
}

.home-showcase-slider,
.showcase-slider {
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 240, 210, 0.26), transparent 13rem),
    radial-gradient(circle at 14% 86%, rgba(75, 148, 139, 0.24), transparent 15rem),
    var(--brand-gradient-soft);
  border-color: rgba(255, 240, 210, 0.24);
}

.home-showcase-slider .showcase-badge {
  color: var(--erp-cream);
  background: rgba(255, 240, 210, 0.18);
}

.home-showcase-slider .showcase-copy h1 {
  color: #ffffff;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Bahnschrift", "Trebuchet MS", sans-serif;
  font-weight: 750;
  letter-spacing: -0.018em;
  line-height: 1.08;
  text-wrap: balance;
}

.showcase-title-link {
  color: inherit;
  text-decoration: none;
}

.showcase-title-link:hover,
.showcase-title-link:focus-visible {
  color: var(--erp-cream);
  outline: 0;
}

.showcase-image-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.home-showcase-slider .showcase-copy p,
.home-showcase-slider .showcase-price-lock {
  color: rgba(255, 255, 255, 0.9);
}

.home-showcase-slider .showcase-category-link {
  color: #ffffff;
  border-color: rgba(255, 240, 210, 0.34);
  background: rgba(255, 255, 255, 0.15);
}

.home-showcase-slider .showcase-category-link:hover,
.home-showcase-slider .showcase-category-link:focus-visible {
  color: var(--erp-ink);
  background: var(--erp-cream);
}

.home-showcase-slider .showcase-media::before {
  background: linear-gradient(135deg, rgba(255, 240, 210, 0.34) 0%, rgba(75, 148, 139, 0.42) 52%, rgba(47, 85, 182, 0.42) 100%);
}

.home-categories-head {
  background: var(--brand-gradient);
}

.home-products-filter.is-active,
.admin-tabs a.is-active {
  background: var(--brand-gradient);
  color: #ffffff;
}

.search-button,
.accent-button,
.btn-accent {
  background: linear-gradient(90deg, #1e8074 0%, #2f55b6 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(18, 50, 75, 0.16);
}

.home-showcase-slider .accent-button {
  background: linear-gradient(90deg, #fff0d2 0%, #f8dfad 100%);
  color: var(--erp-ink);
  border-color: rgba(255, 240, 210, 0.68);
  box-shadow: 0 14px 28px rgba(7, 20, 36, 0.16);
}

.home-showcase-slider .accent-button:hover,
.home-showcase-slider .accent-button:focus-visible {
  color: var(--erp-ink);
  filter: brightness(1.03);
}

.home-showcase-slider .light-button {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 240, 210, 0.42);
  color: #ffffff;
}

.catalog-card:hover,
.catalog-card:focus-within {
  border-color: rgba(18, 107, 94, 0.52);
  box-shadow: 0 18px 38px rgba(7, 20, 36, 0.12);
}

.brand-ribbon {
  border-color: rgba(18, 107, 94, 0.14);
}

/* Mobile overflow guard: prevents side gaps from slider/link overflow */
@media (max-width: 980px) {
  html,
  body,
  .site-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header,
  .site-main,
  .site-footer {
    width: 100%;
  }

  .site-header,
  .site-main,
  .site-footer,
  .showcase-section,
  .showcase-layout-with-categories,
  .home-showcase-slider,
  .home-showcase-slider .showcase-track,
  .home-showcase-slider .showcase-slide {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .home-showcase-slider .showcase-copy,
  .home-showcase-slider .showcase-media,
  .showcase-image-link {
    min-width: 0;
  }

  .showcase-image-link {
    width: 100%;
  }
}

/* Mobile edge alignment: avoid visual gutters caused by viewport rounding */
@media (max-width: 640px) {
  .top-ribbon > .container,
  .site-header > .container.header-main,
  .nav-band > .container,
  .brand-ribbon-section > .container,
  .showcase-section > .container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .showcase-layout-with-categories,
  .home-showcase-slider {
    width: 100%;
  }
}

/* SANNI identity footer gradient */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 0;
  background:
    radial-gradient(circle at 13% 10%, rgba(255, 240, 210, 0.18), transparent 18rem),
    radial-gradient(circle at 82% 8%, rgba(75, 148, 139, 0.26), transparent 20rem),
    linear-gradient(125deg, #12324b 0%, #197a72 48%, #254aa8 100%);
  color: rgba(255, 255, 255, 0.86);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 36%),
    linear-gradient(90deg, rgba(4, 20, 35, 0.12), transparent 42%, rgba(4, 20, 35, 0.16));
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer .footer-heading {
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(5, 18, 34, 0.16);
}

.site-footer .footer-contact-icon,
.site-footer .footer-social-links a,
.site-footer .footer-contact-list-rich a,
.site-footer .footer-contact-list-rich span,
.site-footer .footer-link-list a,
.site-footer .footer-bottom p,
.site-footer .footer-legal-links a,
.site-footer .payment-logo {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer .footer-contact-list-rich a:hover,
.site-footer .footer-link-list a:hover,
.site-footer .footer-contact-list-rich a:focus-visible,
.site-footer .footer-link-list a:focus-visible,
.site-footer .footer-legal-links a:hover,
.site-footer .footer-legal-links a:focus-visible,
.site-footer .footer-social-links a:hover,
.site-footer .footer-social-links a:focus-visible {
  color: #fff0d2;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 18, 34, 0.18);
}

.site-footer .footer-claims-link {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.site-footer .footer-claims-link-copy span {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer .payment-logo.is-visa,
.site-footer .payment-logo.is-pagoefectivo,
.site-footer .payment-logo.is-generic {
  color: #ffffff;
}

.site-footer .payment-logo.is-plin {
  color: #ffffff;
}

.site-footer .payment-logo-plin-mark {
  background: rgba(255, 255, 255, 0.92);
  color: #129e73;
}

/* Header contact stack: keep the notice readable on mobile */
.top-ribbon-inner {
  align-items: center;
}

.top-ribbon-inner p {
  min-width: 0;
}

.top-ribbon-meta {
  align-items: center;
  flex-wrap: nowrap;
}

.top-ribbon-contact {
  display: grid;
  gap: 0.05rem;
  text-align: right;
  line-height: 1.05;
  white-space: nowrap;
}

.top-ribbon-contact span {
  color: rgba(255, 255, 255, 0.94);
}

.top-ribbon-email {
  font-weight: 800;
}

.top-ribbon-phone {
  font-size: 0.78em;
  font-weight: 700;
  opacity: 0.9;
}

@media (max-width: 640px) {
  .top-ribbon-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "notice contact"
      "docs contact";
    align-items: center;
    gap: 0.16rem 0.45rem;
  }

  .top-ribbon-inner p {
    grid-area: notice;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 0.62rem;
    line-height: 1.08;
  }

  .top-ribbon-meta {
    display: contents;
  }

  .top-ribbon-contact {
    grid-area: contact;
    align-self: center;
    font-size: 0.62rem;
  }

  .top-ribbon-link {
    grid-area: docs;
    justify-self: start;
    max-width: 11.4rem;
  }
}

@media (max-width: 420px) {
  .top-ribbon-inner p,
  .top-ribbon-contact {
    font-size: 0.58rem;
  }

.top-ribbon-link {
    max-width: 10.2rem;
  }
}

.business-unit-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.16rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.business-unit-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.72rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.business-unit-switch a:hover,
.business-unit-switch a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.business-unit-switch a.is-active {
  color: #06354d;
  background: linear-gradient(135deg, #ecfff9 0%, #baf2e4 100%);
  box-shadow: 0 8px 18px rgba(0, 42, 70, 0.18);
}

@media (max-width: 760px) {
  .business-unit-switch {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .business-unit-switch::-webkit-scrollbar {
    display: none;
  }

  .business-unit-switch a {
    flex: 1 0 auto;
    padding: 0.34rem 0.62rem;
    font-size: 0.68rem;
  }
}

/* Mobile footer accordion inspired by Sonepar */
.footer-accordion-summary {
  list-style: none;
}

.footer-accordion-summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 760px) {
  .site-footer {
    overflow: visible;
    background:
      radial-gradient(circle at 12% 8%, rgba(255, 240, 210, 0.16), transparent 14rem),
      radial-gradient(circle at 88% 4%, rgba(75, 148, 139, 0.28), transparent 15rem),
      linear-gradient(135deg, #12324b 0%, #197a72 48%, #254aa8 100%);
    border-top: 0;
    color: rgba(255, 255, 255, 0.86);
  }

  .site-footer::before {
    display: block;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%);
  }

  .site-footer .footer-top {
    display: block;
    padding: 2.05rem 0 1rem;
  }

  .site-footer .footer-accordion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .site-footer .footer-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 0.72rem 0;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    text-shadow: none;
  }

  .site-footer .footer-accordion-summary::after {
    content: "+";
    flex: 0 0 auto;
    color: #fff0d2;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
  }

  .site-footer .footer-accordion[open] > .footer-accordion-summary::after {
    content: "-";
  }

  .site-footer .footer-social-links,
  .site-footer .footer-contact-list,
  .site-footer .footer-link-list,
  .site-footer .footer-payment-logos {
    padding: 0.9rem 0 1rem;
  }

  .site-footer .footer-social-links {
    gap: 1rem;
  }

  .site-footer .footer-social-links a {
    width: 1.45rem;
    height: 1.45rem;
    color: rgba(255, 255, 255, 0.9);
  }

  .site-footer .footer-social-links svg {
    width: 1rem;
    height: 1rem;
  }

  .site-footer .footer-contact-list,
  .site-footer .footer-link-list {
    gap: 0.58rem;
  }

  .site-footer .footer-contact-list-rich a,
  .site-footer .footer-contact-list-rich span,
  .site-footer .footer-link-list a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .site-footer .footer-contact-icon {
    color: #fff0d2;
  }

  .site-footer .footer-contact-list-rich a:hover,
  .site-footer .footer-link-list a:hover,
  .site-footer .footer-contact-list-rich a:focus-visible,
  .site-footer .footer-link-list a:focus-visible {
    color: #fff0d2;
  }

  .site-footer .footer-claims-link {
    margin: 0.15rem 0 1rem;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(5, 18, 34, 0.16);
  }

  .site-footer .footer-payment-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .site-footer .payment-logo,
  .site-footer .payment-logo.is-visa,
  .site-footer .payment-logo.is-pagoefectivo,
  .site-footer .payment-logo.is-generic {
    color: #ffffff;
  }

  .site-footer .payment-logo.is-visa {
    color: #ffffff;
  }

  .site-footer .payment-logo.is-plin {
    color: #ffffff;
  }

  .site-footer .payment-logo-plin-mark {
    background: #129e73;
    color: #ffffff;
  }

  .site-footer .footer-bottom {
    border-top: 0;
    background: rgba(5, 18, 34, 0.2);
  }

  .site-footer .footer-bottom-inner {
    padding: 1.15rem 0 1.4rem;
  }

  .site-footer .footer-bottom-copy {
    display: block;
  }

  .site-footer .footer-bottom p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .site-footer .footer-legal-links {
    display: none;
  }
}

/* Public pricing and stock consultation */
.catalog-card-price {
  flex-wrap: wrap;
}

.catalog-card-price em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.18rem;
  padding: 0.08rem 0.36rem;
  border-radius: 0.35rem;
  background: #ff6b2b;
  color: #ffffff;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.catalog-card-price s {
  color: #7a859d;
  font-size: 0.76rem;
  font-weight: 700;
}

.catalog-stock-real {
  cursor: default;
}

/* Cart guest state */
.cart-guest-notice {
  display: grid;
  gap: 0.85rem;
}

.cart-guest-notice .section-copy {
  max-width: 42rem;
}

/* Home hero: clean surface with only the product oval as color accent */
.home-showcase-slider {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 240, 210, 0.52), transparent 14rem),
    radial-gradient(circle at 82% 68%, rgba(47, 126, 216, 0.16), transparent 19rem),
    linear-gradient(135deg, rgba(18, 50, 75, 0.06) 0%, rgba(30, 128, 116, 0.14) 46%, rgba(47, 85, 182, 0.16) 100%),
    linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  border-color: rgba(18, 50, 75, 0.14);
  box-shadow: 0 22px 46px rgba(18, 50, 75, 0.1);
}

.home-showcase-slider .showcase-copy {
  color: #10283d;
}

.home-showcase-slider .showcase-badge {
  color: #0f5f6a;
  background: rgba(30, 128, 116, 0.12);
}

.admin-log-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.admin-log-filter-actions,
.admin-log-summary,
.admin-log-pagination {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-log-summary {
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.admin-log-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(207, 219, 235, 0.9);
  border-radius: 1rem;
  background: #fff;
}

.admin-log-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  font-size: 0.82rem;
}

.admin-log-table th,
.admin-log-table td {
  padding: 0.62rem 0.7rem;
  border-bottom: 1px solid rgba(223, 231, 243, 0.95);
  vertical-align: top;
  text-align: left;
}

.admin-log-table th {
  background: #eef4fb;
  color: #162a44;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-log-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
}

.admin-log-level.level-info { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.admin-log-level.level-warning { background: rgba(217, 119, 6, 0.14); color: #a16207; }
.admin-log-level.level-error { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.admin-log-level.level-critical { background: rgba(127, 29, 29, 0.14); color: #7f1d1d; }

.admin-log-dialog {
  width: min(880px, 94vw);
  border: 1px solid rgba(205, 217, 235, 0.95);
  border-radius: 1rem;
  padding: 1.3rem;
  box-shadow: 0 28px 70px rgba(15, 35, 65, 0.28);
}

.admin-log-dialog::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(2px);
}

.admin-log-dialog h3 {
  margin: 0 0 1rem;
  color: #0f253f;
}

.admin-log-dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.admin-log-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.8rem;
  margin-bottom: 1rem;
  color: #324861;
  font-size: 0.86rem;
}

.admin-log-pre {
  max-height: 50vh;
  overflow: auto;
  padding: 1rem;
  border-radius: 0.85rem;
  background: #0f172a;
  color: #dbeafe;
  font-size: 0.76rem;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .admin-log-filters,
  .admin-log-detail-grid {
    grid-template-columns: 1fr;
  }
}

.home-showcase-slider .showcase-copy h1 {
  color: #13243a;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Bahnschrift", "Trebuchet MS", sans-serif;
  font-weight: 760;
  letter-spacing: -0.018em;
  text-shadow: none;
}

.home-showcase-slider .showcase-title-link {
  color: #17314c;
  text-decoration: none;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.home-showcase-slider .showcase-title-link:hover,
.home-showcase-slider .showcase-title-link:focus-visible {
  color: #0f5f6a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
  outline: 0;
}

.home-showcase-slider .showcase-copy p,
.home-showcase-slider .showcase-price-lock {
  color: #536179;
}

.home-showcase-slider .showcase-price {
  color: #1769a6;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Bahnschrift", "Trebuchet MS", sans-serif;
  font-weight: 820;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.home-showcase-slider .showcase-category-link {
  color: #164277;
  border-color: rgba(47, 85, 182, 0.24);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 20px rgba(18, 50, 75, 0.08);
}

.home-showcase-slider .showcase-category-link:hover,
.home-showcase-slider .showcase-category-link:focus-visible {
  color: #10283d;
  background: #eaf3ff;
  border-color: rgba(47, 85, 182, 0.34);
}

.home-showcase-slider .showcase-media::before {
  background: linear-gradient(135deg, rgba(41, 151, 138, 0.22) 0%, rgba(47, 126, 216, 0.34) 52%, rgba(31, 63, 159, 0.52) 100%);
  opacity: 0.96;
}

.home-showcase-slider .accent-button {
  color: #ffffff;
  background: linear-gradient(90deg, #1f4fa8 0%, #2f7ed8 100%);
  border-color: rgba(47, 126, 216, 0.5);
  box-shadow: 0 14px 26px rgba(31, 79, 168, 0.2);
}

.home-showcase-slider .accent-button:hover,
.home-showcase-slider .accent-button:focus-visible {
  color: #ffffff;
  filter: brightness(1.04);
}

.home-showcase-slider .light-button {
  color: #ffffff;
  background: linear-gradient(90deg, #11756d 0%, #239b85 100%);
  border-color: rgba(35, 155, 133, 0.52);
  box-shadow: 0 14px 26px rgba(17, 117, 109, 0.18);
}

.home-showcase-slider .light-button:hover,
.home-showcase-slider .light-button:focus-visible {
  color: #ffffff;
  filter: brightness(1.05);
}

/* Catalog empty/search guidance */
.catalog-empty-state {
  display: grid;
  gap: 0.7rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(215, 223, 235, 0.95);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 126, 216, 0.1), transparent 14rem),
    #ffffff;
  box-shadow: 0 16px 34px rgba(15, 32, 61, 0.08);
}

.catalog-empty-state h2 {
  margin: 0;
  color: #10283d;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: -0.02em;
}

.catalog-empty-state p {
  margin: 0;
  max-width: 42rem;
  color: #536179;
  line-height: 1.65;
}

.catalog-empty-state .btn {
  width: fit-content;
}

@media (max-width: 640px) {
.catalog-empty-state .btn {
    width: 100%;
  }
}

/* Home hero navigation controls */
.home-showcase-slider .showcase-dots {
  z-index: 5;
  gap: 0.48rem;
  padding: 0.22rem 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(18, 50, 75, 0.12);
}

.home-showcase-slider .showcase-dot {
  width: 0.74rem;
  height: 0.74rem;
  border: 1px solid rgba(23, 105, 166, 0.24);
  background: rgba(23, 105, 166, 0.26);
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.home-showcase-slider .showcase-dot.is-active {
  width: 2.15rem;
  background: linear-gradient(90deg, #1769a6 0%, #2f55b6 100%);
  border-color: rgba(47, 85, 182, 0.45);
  box-shadow: 0 4px 10px rgba(47, 85, 182, 0.24);
}

.showcase-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 105, 166, 0.72);
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.showcase-arrow:hover,
.showcase-arrow:active,
.showcase-arrow:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #1769a6 0%, #2f55b6 100%);
  border-color: transparent;
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 16px 30px rgba(47, 85, 182, 0.22);
  outline: 0;
}

.showcase-arrow svg {
  width: 1.18rem;
  height: 1.18rem;
}

.showcase-arrow-prev {
  left: 0.32rem;
}

.showcase-arrow-next {
  right: 0.32rem;
}

@media (max-width: 760px) {
  .showcase-arrow {
    width: 2.25rem;
    height: 2.25rem;
  }

  .showcase-arrow-prev {
    left: 0.55rem;
  }

  .showcase-arrow-next {
    right: 0.55rem;
  }

  .home-showcase-slider .showcase-dot {
    width: 0.62rem;
    height: 0.62rem;
  }

  .home-showcase-slider .showcase-dot.is-active {
    width: 1.75rem;
  }
}

.showcase-copy h2.showcase-slide-title {
  margin: 0;
  max-width: 10ch;
  color: #13243a;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Bahnschrift", "Trebuchet MS", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.018em;
}

.home-showcase-slider .showcase-copy h2.showcase-slide-title {
  color: #17314c;
  max-width: 18ch;
}

@media (max-width: 760px) {
  .home-showcase-slider .showcase-copy h2.showcase-slide-title {
    max-width: 14ch;
    font-size: clamp(1.08rem, 1.82vw, 1.78rem);
    line-height: 1.12;
  }
}

/* Prevent long product names in the home slider from overlapping price/actions. */
.home-showcase-slider .showcase-copy {
  --home-slider-controls-space: 6.9rem;
  min-width: 0;
  position: relative;
  padding-bottom: var(--home-slider-controls-space);
  overflow: hidden;
}

.home-showcase-slider .showcase-copy h2.showcase-slide-title {
  max-width: min(100%, 34rem);
  font-size: clamp(1.08rem, 1.92vw, 1.62rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.home-showcase-slider .showcase-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4.28rem;
  margin-top: 0;
  gap: 0.48rem 0.7rem;
}

.home-showcase-slider .showcase-price {
  font-size: clamp(1.16rem, 1.85vw, 1.55rem);
}

.home-showcase-slider .showcase-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.52rem;
  margin-top: 0;
  padding-top: 0;
  gap: 0.48rem 0.62rem;
}

.home-showcase-slider .showcase-actions .accent-button,
.home-showcase-slider .showcase-actions .light-button {
  min-height: 2.2rem;
  padding: 0.54rem 0.95rem;
  font-size: 0.82rem;
}

.home-showcase-slider .showcase-dots {
  bottom: 0.72rem;
}

@media (max-width: 760px) {
  .home-showcase-slider .showcase-copy {
    --home-slider-controls-space: 6.35rem;
  }

  .home-showcase-slider .showcase-copy h2.showcase-slide-title {
    max-width: min(100%, 24rem);
    font-size: clamp(0.98rem, 5vw, 1.28rem);
    line-height: 1.08;
    -webkit-line-clamp: 4;
  }

  .home-showcase-slider .showcase-price {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
  }

  .home-showcase-slider .showcase-meta {
    bottom: 4rem;
  }

  .home-showcase-slider .showcase-actions {
    bottom: 1.45rem;
  }

  .home-showcase-slider .showcase-actions .accent-button,
  .home-showcase-slider .showcase-actions .light-button {
    min-height: 2.02rem;
    padding: 0.46rem 0.68rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 420px) {
  .home-showcase-slider .showcase-copy h2.showcase-slide-title {
    max-width: min(100%, 18rem);
    font-size: clamp(0.9rem, 4.9vw, 1.08rem);
    -webkit-line-clamp: 4;
  }
}

/* Libro de reclamaciones */
.claims-page {
  padding: 1.15rem 0 2rem;
}

.claims-hero,
.claims-form,
.claims-form-section {
  border: 1px solid rgba(148, 171, 205, 0.36);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 58px rgba(22, 40, 75, 0.08);
}

.claims-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.34fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}

.claims-hero h1 {
  margin: 0.2rem 0 0.34rem;
  color: var(--primary-dark);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.04;
}

.claims-hero p {
  max-width: 52rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.claims-hero-card {
  display: grid;
  gap: 0.28rem;
  padding: 0.8rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(13, 135, 129, 0.1), rgba(37, 84, 181, 0.1));
}

.claims-hero-card strong {
  color: var(--primary-dark);
  font-size: 0.88rem;
}

.claims-hero-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.claims-form {
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem;
  margin-top: 0.75rem;
}

.claims-form-section {
  padding: 0.78rem 0.85rem;
  box-shadow: none;
}

.claims-section-title {
  display: flex;
  gap: 0.62rem;
  align-items: flex-start;
  margin-bottom: 0.68rem;
}

.claims-section-title > span {
  display: inline-grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #0b8f78, #087466);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
}

.claims-section-title h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.96rem;
}

.claims-section-title p {
  margin: 0.12rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.32;
}

.claims-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
}

.claims-location-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
}

.claims-page .field label {
  margin-bottom: 0.22rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.claims-page .field input,
.claims-page .field select,
.claims-page .field textarea {
  min-height: 2.42rem;
  padding: 0.56rem 0.7rem;
  border-radius: 0.72rem;
  font-size: 0.84rem;
}

.claims-page .field textarea {
  min-height: 4.5rem;
}

.claims-grid .field-wide {
  grid-column: 1 / -1;
}

.claims-inline-check {
  align-self: end;
  min-height: 2.42rem;
  padding: 0.56rem 0.7rem;
  border: 1px solid rgba(148, 171, 205, 0.36);
  border-radius: 0.72rem;
  font-size: 0.82rem;
}

.claims-submit {
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.1rem 0;
}

.claims-submit p {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.claims-submit .accent-button {
  min-height: 2.45rem;
  padding: 0.58rem 1rem;
}

.claims-hp,
.admin-copy-buffer {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-claims-toolbar {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) 170px 150px 150px 150px auto auto;
  gap: 0.75rem;
  align-items: end;
}

.admin-claims-list {
  display: grid;
  gap: 0.9rem;
}

.admin-claim-card {
  padding: 1rem;
}

.admin-request-badge.status-nuevo {
  background: rgba(242, 175, 43, 0.16);
  color: #9b6500;
}

.admin-request-badge.status-en_revision {
  background: rgba(111, 126, 153, 0.16);
  color: #536177;
}

.admin-request-badge.status-atendido {
  background: rgba(26, 132, 93, 0.14);
  color: #15754a;
}

.admin-request-badge.status-cerrado {
  background: rgba(194, 63, 74, 0.14);
  color: #b0303c;
}

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

.admin-claim-detail {
  margin-top: 0.75rem;
  padding: 0.8rem;
  border: 1px solid rgba(148, 171, 205, 0.24);
  border-radius: 1rem;
  background: rgba(245, 249, 255, 0.68);
}

.admin-claim-detail summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 800;
}

.admin-claim-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.admin-claim-detail-grid > div,
.admin-claim-detail-wide {
  padding: 0.75rem;
  border-radius: 0.8rem;
  background: #fff;
}

.admin-claim-detail-wide {
  grid-column: 1 / -1;
}

.admin-claim-detail span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-claim-detail p {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-claim-detail .ghost-button {
  margin-top: 0.75rem;
}

.admin-claim-manage {
  grid-template-columns: 180px minmax(0, 1fr) auto;
  margin-top: 0.75rem;
}

@media (max-width: 980px) {
  .claims-hero,
  .claims-grid,
  .claims-location-picker,
  .admin-claim-data,
  .admin-claim-detail-grid,
  .admin-claims-toolbar,
  .admin-claim-manage {
    grid-template-columns: 1fr;
  }

  .claims-submit {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Promociones / flyers */
.showcase-slide-flyer {
  display: block;
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
}

.showcase-slide.showcase-slide-flyer.is-active {
  display: block;
}

.showcase-flyer-link {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.showcase-flyer-link img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  background: linear-gradient(135deg, #eaf7f4 0%, #dcecff 100%);
}

.home-promo-sections {
  padding: 1.25rem 0 0.35rem;
}

.home-quick-links {
  padding: 0.85rem 0 0.35rem;
}

.home-quick-shell {
  overflow: hidden;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 171, 205, 0.28);
  border-radius: 1.35rem;
  background: var(--quick-bg, #fff);
  box-shadow: 0 18px 48px rgba(22, 40, 75, 0.06);
}

.home-quick-links:not(.has-panel) .home-quick-shell {
  padding-inline: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.home-quick-heading {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.home-quick-heading h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1;
}

.home-quick-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.home-quick-carousel {
  position: relative;
}

.home-quick-track {
  display: flex;
  gap: var(--quick-gap, 18px);
  justify-content: space-evenly;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.1rem 0.85rem 0.2rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.home-quick-track::-webkit-scrollbar {
  display: none;
}

.home-quick-arrow {
  position: absolute;
  top: 43%;
  z-index: 4;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: #1f56a8;
  cursor: pointer;
  opacity: 0.18;
  transform: translateY(-50%);
  transition: opacity 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.home-quick-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

.home-quick-arrow-prev {
  left: -0.75rem;
}

.home-quick-arrow-next {
  right: -0.75rem;
}

.home-quick-shell:hover .home-quick-arrow,
.home-quick-arrow:focus-visible {
  opacity: 0.72;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(24, 54, 102, 0.12);
}

.home-quick-arrow:hover {
  opacity: 0.92;
  transform: translateY(-50%) scale(1.05);
}

.home-quick-arrow.is-disabled {
  pointer-events: none;
  opacity: 0;
}

.home-quick-item {
  flex: 1 0 min(9.5rem, calc(var(--quick-image-size, 92px) + 44px));
  max-width: 10.25rem;
  min-width: calc(var(--quick-image-size, 92px) + 34px);
  color: var(--primary-dark);
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, color 0.18s ease;
}

.home-quick-item:hover {
  color: #0b8f78;
  transform: translateY(-3px);
}

.home-quick-image {
  display: grid;
  width: var(--quick-image-size, 92px);
  height: var(--quick-image-size, 92px);
  margin: 0 auto 0.48rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 171, 205, 0.34);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(17, 36, 66, 0.09);
}

.home-quick-links-rounded .home-quick-image,
.home-quick-links-image_title .home-quick-image,
.home-quick-links-image_only .home-quick-image {
  border-radius: 1rem;
}

.home-quick-image img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.home-quick-image .nav-categories-item-icon {
  display: grid;
  width: 58%;
  height: 58%;
  place-items: center;
  border: 0;
  background: linear-gradient(145deg, rgba(226, 239, 255, 0.96), rgba(241, 248, 255, 0.98));
  color: #1f56a8;
}

.home-quick-image .nav-categories-item-icon svg {
  width: 64%;
  height: 64%;
}

.home-quick-item strong {
  display: block;
  color: inherit;
  font-size: 0.8rem;
  line-height: 1.12;
}

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

.home-promo-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 16 / 5;
  border: 1px solid rgba(148, 171, 205, 0.32);
  border-radius: 1.45rem;
  background: linear-gradient(135deg, #eaf7f4 0%, #dcecff 100%);
  box-shadow: 0 22px 55px rgba(22, 40, 75, 0.08);
}

.home-promo-card-banner {
  grid-column: 1 / -1;
}

.home-promo-media {
  position: absolute;
  inset: 0;
  display: block;
}

.home-promo-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.home-promo-copy {
  position: relative;
  z-index: 2;
  max-width: 28rem;
  margin: 1.35rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.home-promo-copy span {
  color: #0b8f78;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-promo-copy h2 {
  margin: 0.25rem 0 0.45rem;
  color: var(--primary-dark);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
}

.home-promo-copy p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.promo-admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.promo-admin-nav a,
.promo-template-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(148, 171, 205, 0.36);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.promo-admin-nav a.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(140deg, #173b9a 0%, #0b8f78 100%);
  box-shadow: 0 10px 24px rgba(12, 93, 134, 0.16);
}

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

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

.promo-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.promo-admin-card {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(148, 171, 205, 0.32);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
}

.promo-admin-preview {
  display: grid;
  min-height: 7.4rem;
  place-items: center;
  overflow: hidden;
  border-radius: 0.8rem;
  background: #eef5fb;
}

.promo-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-admin-card strong {
  color: var(--primary-dark);
  font-size: 1rem;
}

.promo-admin-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.promo-admin-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.promo-table-actions,
.promo-template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.promo-template-row {
  justify-content: space-between;
  padding: 0.45rem 0;
}

.promo-inline-visibility .checkbox {
  min-height: 2.15rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(35, 66, 160, 0.14);
  border-radius: 999px;
  background: #fff;
}

.promo-template-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-admin-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.quick-admin-card {
  display: grid;
  grid-template-columns: 5.5rem repeat(4, minmax(0, 1fr)) auto;
  gap: 0.55rem;
  align-items: end;
  padding: 0.75rem;
  border: 1px solid rgba(148, 171, 205, 0.32);
  border-radius: 1rem;
  background: #fff;
}

.quick-admin-card > img {
  width: 4.8rem;
  height: 4.8rem;
  object-fit: contain;
  border: 1px solid rgba(148, 171, 205, 0.3);
  border-radius: 999px;
  background: #f7fbff;
}

@media (max-width: 980px) {
  .home-promo-grid,
  .promo-admin-form,
  .promo-admin-form.compact,
  .promo-admin-grid,
  .promo-admin-card,
  .quick-admin-card {
    grid-template-columns: 1fr;
  }

  .home-promo-card {
    aspect-ratio: 1.55 / 1;
  }
}

/* Final admin taxonomy density override */
.admin-body .admin-main .admin-group-list-head,
.admin-body .admin-main .admin-group-list-row {
  grid-template-columns: 3.8rem minmax(14rem, 1.35fr) minmax(9rem, 0.75fr) minmax(15rem, 1fr) 5.6rem !important;
}

.admin-body .admin-main .admin-category-list-head,
.admin-body .admin-main .admin-category-list-row {
  grid-template-columns: 4.4rem 5.8rem minmax(16rem, 1.55fr) minmax(8rem, 0.72fr) minmax(13.5rem, 1fr) minmax(11rem, 0.88fr) 5.6rem !important;
}

.admin-body .admin-main .admin-line-list-head,
.admin-body .admin-main .admin-line-list-row {
  grid-template-columns: minmax(14rem, 1.05fr) minmax(16rem, 1.35fr) minmax(7rem, 0.52fr) minmax(14rem, 1fr) 5.6rem !important;
}

.admin-body .admin-main .admin-group-list-row,
.admin-body .admin-main .admin-category-list-row,
.admin-body .admin-main .admin-line-list-row {
  padding: 0.42rem 0.52rem !important;
  gap: 0.5rem !important;
  border-radius: 0.82rem !important;
}

.admin-body .admin-main .admin-group-list-row .admin-list-col,
.admin-body .admin-main .admin-category-list-row .admin-list-col,
.admin-body .admin-main .admin-line-list-row .admin-list-col {
  align-self: center;
}

.admin-body .admin-main .admin-group-list-row .admin-list-summary strong,
.admin-body .admin-main .admin-category-list-row .admin-list-summary strong,
.admin-body .admin-main .admin-line-list-row .admin-list-summary strong {
  color: #0a2142;
  font-size: 0.84rem;
  line-height: 1.12;
}

.admin-body .admin-main .admin-group-list-row .admin-list-summary small,
.admin-body .admin-main .admin-category-list-row .admin-list-summary small,
.admin-body .admin-main .admin-line-list-row .admin-list-summary small,
.admin-body .admin-main .admin-category-list-row .admin-list-col-name small {
  color: #65758f;
  font-size: 0.68rem;
  line-height: 1.15;
}

.admin-body .admin-main .admin-group-list-row .admin-list-col label,
.admin-body .admin-main .admin-category-list-row .admin-list-col label,
.admin-body .admin-main .admin-line-list-row .admin-list-col label {
  margin-bottom: 0.1rem;
  color: #5f6f8a;
  font-size: 0.6rem;
}

.admin-body .admin-main .admin-category-list-row .admin-list-col-code input,
.admin-body .admin-main .admin-category-list-row .admin-list-col-name input {
  min-height: 1.85rem !important;
  border-radius: 0.62rem !important;
  border-color: rgba(148, 171, 205, 0.58) !important;
  color: #0a2142;
  font-size: 0.82rem !important;
  font-weight: 650;
}

.admin-body .admin-main .admin-category-list-row .admin-list-col-code input {
  text-align: center;
}

.admin-body .admin-main .admin-list-col-logo .admin-category-preview-compact,
.admin-body .admin-main .admin-list-col-logo .admin-taxonomy-icon-preview {
  width: 4rem;
  height: 3.25rem !important;
  min-height: 3.25rem !important;
  padding: 0.35rem !important;
  border-radius: 0.75rem !important;
}

.admin-body .admin-main .admin-list-col-logo .admin-category-preview-compact img {
  max-width: 3.45rem !important;
  max-height: 2.55rem !important;
}

.admin-body .admin-main .admin-taxonomy-icon-preview {
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 171, 205, 0.34);
  background: linear-gradient(145deg, #f8fbff, #eef6ff);
}

.admin-body .admin-main .admin-taxonomy-icon-preview .nav-categories-item-icon {
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
}

.admin-body .admin-main .admin-list-col-meta {
  display: flex;
  gap: 0.22rem;
  flex-wrap: wrap;
}

.admin-body .admin-main .admin-list-pill {
  padding: 0.08rem 0.42rem;
  font-size: 0.66rem;
  line-height: 1.2;
}

.admin-body .admin-main .admin-visibility-grid {
  display: flex;
  gap: 0.28rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-body .admin-main .admin-visibility-check {
  gap: 0.25rem;
  margin: 0;
  padding: 0.12rem 0.42rem;
  border: 1px solid rgba(35, 66, 160, 0.14);
  border-radius: 999px;
  background: rgba(35, 66, 160, 0.045);
  color: #19306c;
  font-size: 0.66rem;
  font-weight: 750;
}

.admin-body .admin-main .admin-visibility-check input[type="checkbox"] {
  width: 0.9rem !important;
  min-width: 0.9rem !important;
  height: 0.9rem !important;
  min-height: 0.9rem !important;
  margin: 0;
  padding: 0;
  accent-color: #0b8f78;
}

.admin-body .admin-main .admin-list-col-upload input[type="file"] {
  max-width: 100%;
  color: #65758f;
  font-size: 0.68rem;
}

.admin-body .admin-main .admin-list-col-upload input[type="file"]::file-selector-button {
  min-height: 1.65rem;
  margin-right: 0.38rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(35, 66, 160, 0.2);
  border-radius: 0.62rem;
  background: linear-gradient(135deg, rgba(13, 130, 139, 0.1), rgba(35, 66, 160, 0.12));
  color: #19306c;
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-body .admin-main .admin-group-list-row .admin-list-col-action .accent-button,
.admin-body .admin-main .admin-category-list-row .admin-list-col-action .accent-button,
.admin-body .admin-main .admin-line-list-row .admin-list-col-action .accent-button {
  width: 100%;
  min-height: 1.75rem !important;
  padding: 0.24rem 0.42rem !important;
  border-radius: 0.72rem;
  font-size: 0.72rem !important;
}

@media (max-width: 1280px) {
  .admin-body .admin-main .admin-group-list-head,
  .admin-body .admin-main .admin-category-list-head,
  .admin-body .admin-main .admin-line-list-head {
    display: none;
  }

  .admin-body .admin-main .admin-group-list-row,
  .admin-body .admin-main .admin-category-list-row,
  .admin-body .admin-main .admin-line-list-row {
    grid-template-columns: 4.2rem minmax(0, 1fr) minmax(9rem, 0.7fr) !important;
  }
}

@media (max-width: 720px) {
  .admin-body .admin-main .admin-group-list-row,
  .admin-body .admin-main .admin-category-list-row,
  .admin-body .admin-main .admin-line-list-row {
    grid-template-columns: 3.8rem minmax(0, 1fr) !important;
  }

  .admin-body .admin-main .admin-category-list-row .admin-list-col-code,
  .admin-body .admin-main .admin-category-list-row .admin-list-col-name,
  .admin-body .admin-main .admin-category-list-row .admin-list-col-meta,
  .admin-body .admin-main .admin-list-col-upload,
  .admin-body .admin-main .admin-list-col-visibility,
  .admin-body .admin-main .admin-list-col-action,
  .admin-body .admin-main .admin-list-col-context {
    grid-column: 1 / -1;
  }
}
