:root {
  --bg: #f4f6f8;
  --sheet: #ffffff;
  --sheet-alt: #f8fafc;
  --sheet-head: #f1f3f4;
  --grid: #dde3ea;
  --grid-strong: #cbd5df;
  --text: #202124;
  --muted: #5f6368;
  --primary: #3b82f6;
  --primary-rgb: 59, 130, 246;
  --blue: var(--primary);
  --blue-soft: #dbe8ff;
  --green: #1e8e3e;
  --green-deep: #137333;
  --red: #d93025;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  --lista-columns: minmax(0, 62fr) minmax(112px, 18fr) minmax(128px, 20fr);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(var(--primary-rgb), 0.07), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(14, 165, 233, 0.08), transparent 26%),
    linear-gradient(180deg, #eef3f9 0%, #f8fafc 100%);
  color: var(--text);
  font-family: 'Lexend', Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
}

[hidden] {
  display: none !important;
}

.sheet-shell {
  width: 100%;
  overflow: visible;
}

.sheet-app {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 12px 20px;
  overflow: visible;
}

.sheet-header {
  padding: 8px 0 6px;
}

.sheet-stickybar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 8px 0 10px;
  background: linear-gradient(180deg, rgba(244, 246, 248, 0.998), rgba(244, 246, 248, 0.985));
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(203, 213, 223, 0.9), 0 10px 24px rgba(15, 23, 42, 0.06);
}

.sheet-topbar__main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  min-width: 0;
}

.sheet-topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.sheet-topbar__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid #cfd7e3;
  border-radius: 12px;
  background: linear-gradient(180deg, #0f172a, #111827);
  color: var(--blue);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.sheet-topbar__logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.sheet-topbar__brand h1 {
  margin: 0;
  font-size: 1.08rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  white-space: nowrap;
}

.sheet-topbar__brand-accent {
  color: #3b82f6;
}

.sheet-topbar__brand-base {
  color: #202124;
}

.sheet-topbar__brand-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  min-width: 0;
}

.sheet-topbar__brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.view-switch {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.view-switch--topbar {
  margin-left: 0;
}

.view-switch__tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid #d7dee8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74), 0 6px 14px rgba(15, 23, 42, 0.05);
}

.view-switch__tab {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #5f6c80;
  text-decoration: none;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.view-switch__tab:hover {
  color: #1f2940;
  background: rgba(255,255,255,.7);
}

.view-switch__tab.is-active {
  background: rgba(var(--primary-rgb), .16);
  color: #174ea6;
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), .2);
}

.sheet-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.sheet-search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--grid-strong);
  border-radius: 10px;
  background: var(--sheet);
  color: var(--text);
  padding: 0 13px;
  font-size: 0.9rem;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 14px rgba(15, 23, 42, 0.04);
}

.sheet-search input:focus {
  border-color: #8ab4f8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.sheet-meta {
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

.sheet-meta--inline {
  font-size: 0.68rem;
}

.sheet-meta-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-meta-wrap--secondary {
  justify-content: flex-end;
}

.sheet-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.sheet-filterbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.sheet-topbar__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.18);
}

.sheet-quick-filters {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

.sheet-quick-filters::-webkit-scrollbar {
  display: none;
}

.sheet-filter,
.sheet-cart-icon,
.sheet-add-btn,
.sheet-cart-send,
.sheet-cart-remove,
.sheet-cart-close {
  min-height: 28px;
  border: 1px solid var(--grid-strong);
  border-radius: 8px;
  background: #fff;
  color: #3f4b5f;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.sheet-filter,
.sheet-cart-icon {
  padding: 0 10px;
}

.sheet-filter,
.sheet-cart-icon,
.sheet-add-btn,
.sheet-cart-send,
.sheet-cart-remove,
.sheet-cart-close,
.sheet-topbar__wa {
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sheet-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sheet-filter.is-active {
  background: #e8f0fe;
  color: #174ea6;
  border-color: #bfd2f8;
  box-shadow: 0 6px 14px rgba(var(--primary-rgb), 0.12);
}

.sheet-filter span {
  opacity: 0.72;
}

.sheet-cart-icon {
  position: relative;
  width: 40px;
  min-width: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f5f8fd);
  color: #174ea6;
  border-color: #bfd2f8;
  box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.12);
}

.sheet-cart-icon__glyph {
  font-size: 1rem;
  line-height: 1;
}

.sheet-cart-icon__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(26, 115, 232, 0.24);
}

.sheet-highlights {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #d8e1ec;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff, #eef4fb);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.sheet-highlights__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #174ea6;
}

.sheet-highlights__summary {
  color: #435066;
  font-size: 0.74rem;
}

.sheet-version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #c6dafc;
  border-radius: 999px;
  background: #e8f0fe;
  color: #174ea6;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sheet-version--inline {
  min-height: 18px;
  padding: 0 6px;
  font-size: 0.6rem;
}

.sheet-tabs-wrap {
  margin-top: 8px;
  padding: 6px 0 2px;
  background: transparent;
  overflow: visible;
}

.sheet-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  width: 100%;
  padding: 0;
  scrollbar-width: thin;
}

.sheet-tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--grid-strong);
  border-bottom-width: 2px;
  border-radius: 10px 10px 0 0;
  background: #eef2f6;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-right: 4px;
  font-family: 'Lexend', Arial, Helvetica, sans-serif;
}

.sheet-tab.is-active {
  background: var(--sheet);
  color: var(--blue);
  border-color: #c6dafc;
  border-bottom-color: var(--sheet);
}

.sheet-content {
  min-height: 360px;
}

.sheet-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.sheet-state button {
  min-height: 36px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid #bfd2f8;
  border-radius: 10px;
  background: #edf3ff;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.sheet-spinner {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border: 3px solid #d7dde6;
  border-top-color: var(--blue);
  border-radius: 999px;
  animation: spin 1s linear infinite;
}

.sheet-list-wrap {
  background: transparent;
  overflow-x: clip;
  overflow-y: visible;
  box-shadow: none;
  border: 0;
}

.sheet-list-groups {
  display: grid;
  gap: 18px;
  background: transparent;
}

.rubro-group {
  display: grid;
  gap: 12px;
}

.rubro-group__title {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: #e1e6ed;
  color: #2f3b52;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rubro-group__content {
  display: grid;
  gap: 14px;
}

.brand-group {
  background: var(--sheet);
  border: 1px solid var(--brand-color, var(--grid-strong));
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.06),
    0 4px 10px color-mix(in srgb, var(--brand-color, #cbd5df) 16%, transparent);
}

.brand-group__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  background: #2f3b52;
  color: #ffffff;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  font-family: 'Oswald', Impact, Arial Narrow, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.brand-group__toggle-icon {
  flex: 0 0 auto;
  font-size: 0.78rem;
  line-height: 1;
}

.brand-group__toggle-label {
  min-width: 0;
}

.brand-group__table {
  display: block;
}

.brand-group__header {
  display: grid;
  grid-template-columns: var(--lista-columns);
  background: var(--sheet-head);
  border-bottom: 1px solid var(--grid-strong);
}

.brand-group__head {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #4a5565;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-group__head + .brand-group__head {
  border-left: 1px solid var(--grid);
}

.brand-group__rows {
  display: block;
}

.sheet-row {
  display: grid;
  grid-template-columns: var(--lista-columns);
  min-height: 34px;
  width: 100%;
}

.brand-group__rows .sheet-row:nth-child(odd) {
  background: #E8F0FE;
}

.brand-group__rows .sheet-row:nth-child(even) {
  background: #FFFFFF;
}

.sheet-row:hover {
  background: #dce9fd;
}

.sheet-cell {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--grid);
  font-size: 0.8rem;
}

.sheet-cell + .sheet-cell {
  border-left: 1px solid var(--grid);
}

.sheet-cell--model {
  font-weight: 700;
  line-height: 1.2;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
}

.sheet-model-main {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
  min-width: 0;
}

.sheet-row__extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sheet-badge {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.sheet-badge--new {
  background: #1a73e8;
}

.sheet-badge--reentry {
  background: #e67e22;
}

.sheet-badge--recommended {
  background: #5f6368;
}

.sheet-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}

.sheet-row__cart {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.sheet-add-btn {
  min-height: 24px;
  padding: 0 8px;
  background: #edf3ff;
  color: #174ea6;
  border-color: #bfd2f8;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.1);
}

.sheet-add-btn--icon {
  min-width: 52px;
  padding: 0 6px;
  font-size: 0.62rem;
}

.sheet-add-btn--icon.is-disabled,
.sheet-add-btn--icon:disabled {
  background: #eef1f5;
  color: #9aa5b5;
  border-color: #d5dde7;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.sheet-cell--price {
  justify-content: flex-end;
  white-space: nowrap;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sheet-cell--stock {
  justify-content: stretch;
  white-space: nowrap;
  min-width: 0;
}

.sheet-stock-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  min-width: 0;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

.stock-pill--ok,
.stock-pill--low {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
}

.stock-pill--out {
  background: linear-gradient(180deg, #ea4335 0%, var(--red) 100%);
}

.sheet-cart-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: min(340px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--grid-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
}

.sheet-cart-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sheet-cart-panel__header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.sheet-cart-items {
  display: grid;
  gap: 8px;
  max-height: min(42vh, 360px);
  overflow: auto;
}

.sheet-cart-item,
.sheet-cart-empty {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--grid);
  border-radius: 12px;
  background: #f8fafc;
}

.sheet-cart-item__info {
  display: grid;
  gap: 3px;
}

.sheet-cart-item__info span,
.sheet-cart-item__meta span {
  color: var(--muted);
  font-size: 0.7rem;
}

.sheet-cart-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sheet-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sheet-cart-remove,
.sheet-cart-close {
  padding: 0 8px;
}

.sheet-cart-close {
  width: 28px;
  min-width: 28px;
  padding: 0;
}

.sheet-cart-footer {
  display: grid;
  gap: 8px;
}

.sheet-cart-total {
  font-weight: 800;
  color: #1f2940;
}

.sheet-cart-send {
  min-height: 34px;
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}

.sheet-branch-modal[hidden] {
  display: none !important;
}

.sheet-branch-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.sheet-branch-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 27, 38, 0.4);
}

.sheet-branch-modal__sheet {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(380px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--grid-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 18px 40px rgba(32, 33, 36, 0.22);
}

.sheet-branch-modal__handle {
  width: 48px;
  height: 5px;
  margin: 0 auto;
  border-radius: 999px;
  background: #d8dee8;
}

.sheet-branch-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sheet-branch-modal__eyebrow {
  color: #174ea6;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet-branch-modal__title {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 800;
}

.sheet-branch-modal__text {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.sheet-branch-modal__close {
  width: 30px;
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--grid);
  border-radius: 10px;
  background: #fff;
  color: #546174;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.sheet-branch-list {
  display: grid;
  gap: 8px;
}

.sheet-branch-option {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #d8e1ec;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sheet-branch-option__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sheet-branch-option__name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1f2940;
}

.sheet-branch-option__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e8f5eb;
  color: #137333;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sheet-branch-option__meta {
  color: var(--muted);
  font-size: 0.72rem;
}

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

@media (max-width: 900px) {
  :root {
    --lista-columns: minmax(0, 58fr) minmax(98px, 18fr) minmax(110px, 24fr);
  }

  .brand-group__header,
  .sheet-row {
    grid-template-columns: var(--lista-columns);
  }
}

@media (max-width: 768px) {
  .sheet-app {
    padding: 8px 8px 18px;
  }

  .sheet-header {
    padding-top: 4px;
    padding-bottom: 2px;
  }

  .sheet-topbar__main {
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
  }

  .sheet-topbar__back {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .sheet-topbar__logo-img {
    width: 50px;
    height: 50px;
  }

  .sheet-topbar__brand {
    min-width: 0;
    flex: 1 1 0;
  }

  .sheet-topbar__brand h1 {
    font-size: 1rem;
    line-height: 1.05;
  }

  .sheet-topbar__brand-meta {
    margin-top: 3px;
    gap: 5px;
  }

  .sheet-topbar__actions {
    width: auto;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .view-switch--topbar {
    width: auto;
    margin-left: 0;
  }

  .sheet-toolbar {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .sheet-tabs-wrap {
    margin-top: 6px;
  }

  .sheet-filterbar {
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
  }

  .brand-group__header,
  .sheet-row {
    grid-template-columns: minmax(0, 1fr) minmax(78px, 88px) minmax(98px, 108px);
  }

  .brand-group__head,
  .sheet-cell {
    padding: 0 8px;
  }

  .sheet-cell {
    font-size: 0.74rem;
  }

  .sheet-cell--model {
    font-size: 0.76rem;
  }

  .sheet-row__extras {
    align-items: center;
    flex-direction: row;
  }

  .sheet-row__cart {
    margin-left: 0;
  }

  .sheet-cart-panel {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
  }

  .sheet-branch-modal__sheet {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    padding: 10px;
  }

  .sheet-cell {
    padding: 0 8px;
  }

  .sheet-model-main {
    gap: 4px;
    flex-wrap: wrap;
  }

  .sheet-badges {
    gap: 3px;
  }

  .sheet-add-btn--icon {
    min-width: 40px;
    min-height: 22px;
    padding: 0 4px;
    font-size: 0.58rem;
    flex: 0 0 40px;
  }

  .stock-pill {
    min-width: 0;
    width: 100%;
    max-width: 74px;
    min-height: 18px;
    padding: 0 6px;
    font-size: 0.53rem;
  }

  .sheet-stock-actions {
    gap: 4px;
    justify-content: flex-end;
  }

  .sheet-badge {
    min-height: 15px;
    padding: 0 4px;
    font-size: 0.5rem;
  }

  .sheet-cart-icon {
    width: 38px;
    min-width: 38px;
  }

  .sheet-cart-icon__badge {
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    font-size: 0.6rem;
  }

  .sheet-cell--price {
    padding-right: 6px;
  }

  .sheet-cell--stock {
    padding-left: 4px;
    padding-right: 6px;
  }
}

@media (max-width: 560px) {
  :root {
    --lista-columns: minmax(0, 1fr) minmax(68px, 74px) minmax(88px, 96px);
  }

  .sheet-header {
    padding-top: 2px;
  }

  .sheet-topbar__main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
  }

  .sheet-topbar__back {
    width: 56px;
    height: 56px;
  }

  .sheet-topbar__logo-img {
    width: 52px;
    height: 52px;
  }

  .sheet-topbar__brand {
    min-width: 0;
    flex: initial;
  }

  .sheet-topbar__brand h1 {
    font-size: 0.94rem;
    letter-spacing: 0;
  }

  .sheet-topbar__brand-meta {
    gap: 4px;
    margin-top: 2px;
  }

  .sheet-topbar__actions {
    width: auto;
    gap: 4px;
    align-self: start;
  }

  .view-switch__tab {
    min-height: 22px;
    padding: 0 7px;
    font-size: 0.61rem;
  }

  .sheet-cart-icon {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .sheet-topbar__wa {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .sheet-toolbar {
    gap: 5px;
  }

  .sheet-search input {
    height: 36px;
    padding: 0 11px;
    font-size: 0.84rem;
  }

  .sheet-version--inline {
    min-height: 16px;
    padding: 0 5px;
    font-size: 0.56rem;
  }

  .sheet-meta--inline {
    font-size: 0.6rem;
  }

  .sheet-filterbar {
    gap: 4px;
    margin-top: 6px;
  }

  .sheet-quick-filters {
    width: 100%;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1px;
  }

  .sheet-filter {
    min-height: 24px;
    padding: 0 7px;
    font-size: 0.61rem;
  }

  .brand-group__head,
  .sheet-cell {
    padding: 0 6px;
  }

  .sheet-cell {
    font-size: 0.71rem;
  }

  .sheet-model-main {
    gap: 3px;
  }

  .sheet-stock-actions {
    gap: 3px;
  }

  .stock-pill {
    max-width: 66px;
    font-size: 0.5rem;
    padding: 0 5px;
  }

  .sheet-add-btn--icon {
    min-width: 36px;
    flex-basis: 36px;
    font-size: 0.54rem;
  }
}
