:root {
  --red: #ad1231;
  --red-dark: #8d0d27;
  --ink: #25201f;
  --muted: #746d69;
  --line: #e4dfdc;
  --panel: #ffffff;
  --soft: #f7f3f1;
  --selected: #f3c22e;
  --shadow: 0 12px 34px rgba(27, 16, 12, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f4f0ee;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  width: 100%;
}

body.drawer-open,
body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(173, 18, 49, 0.14);
  touch-action: manipulation;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 58px;
  padding-bottom: calc(44px + env(safe-area-inset-bottom));
}

.topbar {
  align-items: center;
  background: var(--red);
  color: #fff;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  height: 58px;
  left: 0;
  padding: 0 12px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.topbar-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar-title strong {
  font-size: 15px;
  line-height: 18px;
}

.topbar-title span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  line-height: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.connection-pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  height: 28px;
  letter-spacing: 0;
  padding: 0 9px;
  white-space: nowrap;
}

.connection-pill.offline {
  background: #f3c22e;
  color: #271d11;
}

.icon-button,
.text-button,
.link-button,
.filter-button,
.primary-button,
.secondary-button,
.source-tab,
.strip-button,
.bottom-tab,
.drawer-segment {
  border: 0;
}

.icon-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 8px;
}

.icon-button.quiet {
  background: transparent;
  font-size: 28px;
}

.text-button {
  background: transparent;
  color: #fff;
  height: 34px;
  padding: 0 8px;
}

.text-button span {
  background: #fff;
  color: var(--red);
  display: inline-flex;
  font-size: 12px;
  justify-content: center;
  margin-left: 4px;
  min-width: 20px;
  padding: 2px 5px;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 16px 18px 28px;
}

.source-switch {
  background: #e9e2df;
  display: flex;
  gap: 3px;
  margin: 0 auto 18px;
  max-width: 720px;
  overflow-x: auto;
  padding: 3px;
}

.source-tab {
  background: transparent;
  color: var(--muted);
  flex: 1 0 160px;
  min-height: 34px;
  padding: 0 12px;
}

.source-tab.active {
  background: #fff;
  color: var(--red);
  font-weight: 700;
}

.catalog-import {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: -6px 0 18px;
  flex-wrap: wrap;
}

.catalog-import .secondary-button {
  min-height: 34px;
}

.catalog-import span {
  color: var(--muted);
  font-size: 12px;
}

#offlineStatus {
  flex-basis: 100%;
  text-align: center;
}

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

.brand-card {
  background: #111;
  border: 1px solid #ded7d3;
  color: #fff;
  display: grid;
  min-height: 220px;
  overflow: hidden;
  position: relative;
}

.brand-card::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
  content: "";
  inset: 0;
  position: absolute;
}

.brand-card.moleca::after {
  background: linear-gradient(90deg, rgba(70, 0, 50, 0.72), rgba(20, 0, 20, 0.12));
}

.brand-card.beira-rio::after {
  background: linear-gradient(90deg, rgba(148, 22, 36, 0.82), rgba(102, 10, 20, 0.12));
}

.brand-card.modare::after {
  background: linear-gradient(90deg, rgba(25, 58, 54, 0.82), rgba(40, 80, 72, 0.12));
}

.brand-card.vizzano::after {
  background: linear-gradient(90deg, rgba(20, 20, 26, 0.82), rgba(54, 34, 24, 0.12));
}

.brand-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  inset: 0;
  opacity: 0.92;
  position: absolute;
}

.brand-mosaic img {
  background: #fff;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.brand-copy {
  align-self: end;
  padding: 22px;
  position: relative;
  z-index: 1;
}

.brand-copy h2 {
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-transform: lowercase;
}

.brand-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin: 8px 0 0;
}

.brand-strip {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.strip-button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
}

.strip-button.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.catalog-tools {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 14px;
}

.search-box input,
.drawer-search {
  background: #fff;
  border: 1px solid var(--line);
  height: 38px;
  outline: 0;
  padding: 0 12px;
  width: 100%;
}

.filter-button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--red);
  height: 38px;
  padding: 0 18px;
}

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

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  min-height: 268px;
  padding: 8px;
  position: relative;
}

.product-card.selected {
  border-color: var(--selected);
  box-shadow: inset 0 0 0 2px var(--selected);
}

.card-actions {
  align-items: center;
  display: flex;
  gap: 4px;
  height: 24px;
  justify-content: flex-start;
}

.check-button,
.star-button {
  align-items: center;
  background: #fff;
  border: 1px solid #d9d1cd;
  color: var(--muted);
  display: inline-flex;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0;
}

.product-card.selected .check-button {
  background: var(--selected);
  border-color: var(--selected);
  color: #1c1714;
}

.star-button.active {
  color: var(--red);
}

.card-image-button {
  background: transparent;
  border: 0;
  display: block;
  height: 150px;
  padding: 0;
  width: 100%;
}

.card-image-button img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.card-meta {
  min-height: 72px;
  padding: 4px 2px 0;
  text-align: center;
}

.card-meta strong {
  display: block;
  font-size: 12px;
  line-height: 16px;
  overflow-wrap: anywhere;
}

.card-meta span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 15px;
}

.select-product-button {
  background: #fff;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  height: 34px;
  margin-top: 8px;
  width: 100%;
}

.select-product-button.active {
  background: var(--red);
  color: #fff;
}

.stock-dot {
  background: var(--selected);
  height: 8px;
  position: absolute;
  right: 10px;
  top: 36px;
  width: 8px;
}

.bottom-tabs {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  height: calc(44px + env(safe-area-inset-bottom));
  left: 0;
  padding-bottom: env(safe-area-inset-bottom);
  position: fixed;
  right: 0;
  z-index: 18;
}

.bottom-tab {
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-tab.active {
  color: var(--red);
  font-weight: 700;
}

.drawer {
  background: rgba(30, 24, 20, 0.32);
  display: none;
  inset: 0;
  overflow: hidden;
  position: fixed;
  transform: translateZ(0);
  z-index: 30;
}

.drawer.open {
  display: block;
}

.drawer-panel {
  background: #fff;
  bottom: 0;
  box-shadow: var(--shadow);
  height: auto;
  left: 0;
  max-width: 440px;
  overflow: auto;
  padding: 14px;
  position: absolute;
  top: 0;
  width: min(86vw, 440px);
  -webkit-overflow-scrolling: touch;
}

.drawer.right .drawer-panel {
  left: auto;
  margin-left: auto;
  right: 0;
}

.drawer-header {
  align-items: center;
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  gap: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.link-button {
  background: transparent;
  color: var(--red);
  min-height: 32px;
  padding: 0 4px;
}

.drawer-segments {
  background: var(--soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 10px 0;
  padding: 3px;
}

.drawer-segment {
  background: transparent;
  color: var(--muted);
  height: 32px;
}

.drawer-segment.active {
  background: #fff;
  color: var(--red);
}

.favorite-workspace {
  background: var(--soft);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  padding: 10px;
}

.admin-dialog-card {
  max-width: 620px;
}

.admin-user-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 320px;
  overflow: auto;
}

.admin-user-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.admin-user-row strong,
.admin-user-row span {
  display: block;
  overflow-wrap: anywhere;
}

.admin-user-row strong {
  font-size: 13px;
}

.admin-user-row span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.admin-user-row button:disabled {
  cursor: default;
  opacity: 0.45;
}

.favorite-workspace label,
.field-label {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
  text-transform: uppercase;
}

.favorite-picker {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-top: 6px;
}

.favorite-picker select,
.field-label input,
.field-label textarea {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 40px;
  outline: 0;
  padding: 0 10px;
  width: 100%;
}

.field-label textarea {
  min-height: 84px;
  padding: 10px;
  resize: vertical;
}

.favorite-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  margin: 8px 0 0;
}

.line-list,
.order-list {
  display: grid;
  gap: 8px;
}

.line-row,
.order-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  min-height: 74px;
  padding: 7px;
  text-align: left;
  width: 100%;
}

.line-row img,
.order-row img,
.ranking-item img {
  background: #fff;
  height: 54px;
  object-fit: contain;
  width: 64px;
}

.line-row strong,
.order-row strong {
  display: block;
  font-size: 13px;
}

.line-row span,
.order-row span {
  color: var(--muted);
  display: block;
  font-size: 11px;
}

.line-row.active {
  border-color: var(--red);
}

.order-actions {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
}

.primary-button,
.secondary-button {
  min-height: 40px;
  padding: 0 12px;
}

.primary-button {
  background: var(--red);
  color: #fff;
}

.secondary-button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--red);
}

.danger-button {
  color: #8b1228;
}

button:disabled {
  cursor: default;
  opacity: 0.45;
}

.save-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  margin: 0;
  min-height: 16px;
}

.favorite-dialog {
  border: 0;
  max-width: min(460px, 92vw);
  padding: 0;
  width: 460px;
}

.favorite-dialog::backdrop {
  background: rgba(30, 24, 20, 0.34);
}

.favorite-dialog-card {
  background: #fff;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.install-dialog {
  border: 0;
  max-width: min(420px, 92vw);
  padding: 0;
  width: 420px;
}

.install-dialog::backdrop {
  background: rgba(30, 24, 20, 0.28);
}

.install-card {
  background: #fff;
  display: grid;
  gap: 12px;
  padding: 14px;
}

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

.install-header img {
  height: 42px;
  width: 42px;
}

.install-header strong {
  font-size: 15px;
}

.install-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  margin: 0;
}

.dialog-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

@media (display-mode: standalone) {
  .app-shell {
    padding-top: calc(58px + env(safe-area-inset-top));
  }

  .topbar {
    height: calc(58px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }
}

.product-dialog,
.image-dialog {
  border: 0;
  padding: 0;
}

dialog:not([open]):not(.dialog-fallback-open) {
  display: none;
}

dialog.dialog-fallback-open {
  display: block;
  left: 50%;
  margin: 0;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 60;
}

.product-dialog.dialog-fallback-open,
.image-dialog.dialog-fallback-open {
  inset: 0;
  left: 0;
  top: 0;
  transform: none;
}

.product-dialog::backdrop,
.image-dialog::backdrop {
  background: rgba(20, 16, 14, 0.42);
}

.dialog-card {
  background: #fff;
  box-shadow: var(--shadow);
  max-height: min(86vh, 760px);
  max-height: min(86dvh, 760px);
  max-width: 940px;
  overflow: hidden;
  position: relative;
  width: min(92vw, 940px);
}

.dialog-top {
  align-items: center;
  background: var(--red);
  color: #fff;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 92px;
  height: 46px;
  padding: 0 10px;
  text-align: center;
}

.dialog-top .link-button {
  color: #fff;
}

.dialog-top strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  max-height: calc(min(86vh, 760px) - 46px);
  max-height: calc(min(86dvh, 760px) - 46px);
  overflow: auto;
  padding: 16px 16px 64px;
  -webkit-overflow-scrolling: touch;
}

.dialog-main {
  min-width: 0;
}

.image-open {
  background: #fff;
  border: 0;
  display: block;
  height: 260px;
  padding: 0;
  width: 100%;
}

.image-open img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.variant-rail {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 10px 0;
  overflow-x: auto;
}

.variant-button {
  background: #fff;
  border: 1px solid var(--line);
  height: 54px;
  padding: 3px;
  width: 68px;
}

.variant-button.active {
  border-color: var(--red);
}

.variant-button img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.product-info {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 140px 1fr;
  margin: 12px 0 0;
  padding-top: 12px;
}

.product-info dt,
.product-info dd {
  border-bottom: 1px solid #f0ecea;
  font-size: 13px;
  line-height: 20px;
  margin: 0;
  padding: 5px 0;
}

.product-info dt {
  color: var(--muted);
}

.ranking-panel {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.ranking-panel strong {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}

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

.ranking-item {
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
  text-align: center;
}

.ranking-item.active {
  border-color: var(--red);
}

.ranking-item span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  line-height: 13px;
  overflow-wrap: anywhere;
}

.detail-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  bottom: 12px;
  color: var(--red);
  display: flex;
  font-size: 28px;
  height: 40px;
  justify-content: center;
  position: absolute;
  width: 40px;
}

.detail-nav.previous {
  left: 12px;
}

.detail-nav.next {
  right: 12px;
}

.image-dialog {
  background: #fff;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  max-width: none;
  width: 100vw;
}

.image-viewer-top {
  align-items: center;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 110px;
  height: 54px;
  padding: 0 14px;
  text-align: center;
}

#viewerImage {
  display: block;
  height: calc(100vh - 110px);
  height: calc(100dvh - 110px - env(safe-area-inset-bottom));
  margin: 0 auto;
  max-width: 96vw;
  object-fit: contain;
  width: 100%;
}

.viewer-caption {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  margin: 0;
  padding: 0 18px;
}

.viewer-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  color: var(--red);
  display: flex;
  font-size: 32px;
  height: 44px;
  justify-content: center;
  position: fixed;
  top: 50%;
  width: 44px;
  z-index: 2;
}

.viewer-prev {
  left: 16px;
}

.viewer-next {
  right: 16px;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .topbar-actions {
    gap: 4px;
  }

  .topbar-actions .icon-button {
    display: none;
  }

  .text-button {
    min-width: 44px;
    padding: 0 7px;
  }

  .connection-pill {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

  .drawer-panel {
    max-width: 640px;
    width: min(92vw, 640px);
  }

  .drawer.right .drawer-panel {
    left: 8vw;
    right: 0;
    width: auto;
  }

  .bottom-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: calc(58px + env(safe-area-inset-bottom));
  }

  .bottom-tab {
    font-size: 12px;
    min-height: 58px;
  }

  .bottom-tab:nth-child(n + 5) {
    display: none;
  }

  .product-dialog {
    max-width: 96vw;
  }

  .dialog-card {
    max-height: min(92vh, 820px);
    max-height: min(92dvh, 820px);
    width: min(96vw, 900px);
  }

  .dialog-content {
    max-height: calc(min(92vh, 820px) - 46px);
    max-height: calc(min(92dvh, 820px) - 46px);
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding-top: 54px;
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }

  .topbar {
    height: 54px;
  }

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

  .brand-card {
    min-height: 170px;
  }

  .topbar-actions .icon-button:nth-last-child(n + 3) {
    display: none;
  }

  main {
    padding: 12px 10px 24px;
  }

  .product-card {
    min-height: 238px;
    padding: 7px;
  }

  .card-image-button {
    height: 126px;
  }

  .dialog-card {
    height: 100vh;
    height: 100dvh;
    max-height: none;
    max-width: none;
    width: 100vw;
  }

  .dialog-content {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 46px);
    max-height: calc(100dvh - 46px);
  }

  .ranking-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 12px;
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .drawer-panel,
  .drawer.right .drawer-panel {
    left: 0;
    right: 0;
    width: 100vw;
  }
}

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 0 8px;
  }

  .topbar-actions .icon-button {
    display: none;
  }

  .text-button {
    padding: 0 4px;
  }

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

  .favorite-picker,
  .dialog-actions {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 238px;
  }

  .card-image-button {
    height: 128px;
  }

  .bottom-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: calc(58px + env(safe-area-inset-bottom));
  }

  .bottom-tab:nth-child(n + 5) {
    display: none;
  }
}

/* PV27 experience refresh */
:root {
  --red: #a80f2e;
  --red-dark: #7f0b22;
  --ink: #211d1c;
  --muted: #706966;
  --line: #e7e1de;
  --soft: #f7f4f2;
  --selected: #a80f2e;
  --shadow: 0 18px 50px rgba(35, 20, 17, 0.14);
}

body {
  background: #f8f6f5;
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
}

.app-shell {
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}

.topbar {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  box-shadow: 0 2px 16px rgba(65, 7, 22, 0.18);
}

.connection-pill,
.topbar-actions .auxiliary-action {
  display: none;
}

.topbar-actions .order-action {
  align-items: center;
  display: inline-flex;
  font-weight: 600;
}

.topbar-actions .search-action {
  display: inline-flex;
}

.home-intro {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 4px 0 20px;
}

.home-intro h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 5px 0 6px;
}

.home-intro p {
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.continue-order {
  border-radius: 8px;
  flex: 0 0 auto;
}

.source-switch {
  border-radius: 10px;
  margin-left: 0;
  max-width: 520px;
}

.source-tab,
.strip-button,
.filter-button,
.search-box input,
.drawer-search,
.primary-button,
.secondary-button {
  border-radius: 8px;
}

.brand-grid {
  gap: 16px;
}

.brand-card {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(34, 24, 20, 0.09);
  min-height: 250px;
  transform: translateY(0);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.brand-card:hover {
  box-shadow: 0 16px 36px rgba(34, 24, 20, 0.15);
  transform: translateY(-2px);
}

.brand-card::after {
  background: linear-gradient(0deg, rgba(18, 13, 12, 0.82), rgba(18, 13, 12, 0.04) 72%);
}

.brand-card.moleca::after,
.brand-card.beira-rio::after,
.brand-card.modare::after,
.brand-card.vizzano::after {
  background: linear-gradient(0deg, rgba(18, 13, 12, 0.82), rgba(18, 13, 12, 0.04) 72%);
}

.brand-mosaic {
  opacity: 1;
}

.brand-copy {
  align-items: end;
  display: grid;
  gap: 4px 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 24px;
}

.brand-copy h2 {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 500;
  text-transform: none;
}

.brand-copy p {
  grid-column: 1;
  margin: 2px 0 0;
}

.brand-copy::after {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  color: var(--red);
  content: "Ver colección";
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 38px;
  padding: 0 13px;
}

.brand-strip {
  gap: 7px;
}

.strip-button {
  border-radius: 999px;
}

.catalog-tools {
  position: sticky;
  top: 68px;
  z-index: 10;
}

.search-box input {
  box-shadow: 0 4px 16px rgba(40, 26, 22, 0.05);
  height: 44px;
}

.filter-button {
  height: 44px;
  min-width: 112px;
}

.filter-button.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.product-grid {
  gap: 14px;
}

.product-card {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(37, 27, 24, 0.07);
  min-height: 288px;
  overflow: hidden;
  padding: 10px;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.product-card:hover {
  box-shadow: 0 10px 28px rgba(37, 27, 24, 0.13);
  transform: translateY(-2px);
}

.product-card.selected {
  border: 0;
  box-shadow: 0 0 0 2px rgba(168, 15, 46, 0.24), 0 10px 28px rgba(37, 27, 24, 0.12);
}

.card-actions {
  height: 32px;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.check-button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--red);
  font-size: 0;
  height: 32px;
  min-width: 32px;
}

.check-button::before {
  content: "♡";
  font-size: 22px;
  line-height: 1;
}

.product-card.selected .check-button {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.product-card.selected .check-button::before {
  content: "♥";
}

.star-button,
.select-product-button,
.stock-dot {
  display: none;
}

.card-image-button {
  height: 170px;
  margin-top: -20px;
}

.card-meta {
  min-height: auto;
  padding: 8px 4px 4px;
  text-align: left;
}

.card-meta strong {
  font-size: 13px;
  line-height: 18px;
}

.card-meta span {
  font-size: 12px;
  line-height: 17px;
}

.bottom-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: calc(68px + env(safe-area-inset-bottom));
}

.bottom-tab {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 4px;
  justify-content: center;
}

.bottom-tab span {
  font-size: 18px;
  line-height: 18px;
}

.bottom-tab b {
  background: var(--red);
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  margin-left: 3px;
  min-width: 18px;
  padding: 2px 5px;
}

.drawer-panel {
  padding: 18px;
}

.drawer-header {
  grid-template-columns: 80px minmax(0, 1fr) 80px;
}

.line-row,
.order-row {
  border-width: 0 0 1px;
  min-height: 82px;
}

.favorite-workspace {
  border: 0;
  border-radius: 12px;
  padding: 14px;
}

.favorite-workspace label,
.field-label {
  text-transform: none;
}

.order-actions {
  position: sticky;
  bottom: -18px;
  background: #fff;
  padding-bottom: 18px;
}

.advanced-exports {
  color: var(--muted);
  font-size: 12px;
}

.advanced-exports summary {
  cursor: pointer;
  padding: 8px 2px;
}

.advanced-exports[open] {
  display: grid;
  gap: 8px;
}

.dialog-card {
  border-radius: 16px;
}

.dialog-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.dialog-top .link-button {
  color: var(--red);
}

.dialog-heart-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--red);
  display: inline-flex;
  font-size: 23px;
  height: 34px;
  justify-content: center;
  justify-self: end;
  min-width: 34px;
}

.dialog-heart-button.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.image-open {
  background: var(--soft);
  border-radius: 12px;
  height: 330px;
}

.ranking-panel strong::after {
  color: var(--muted);
  content: " disponibles";
  font-weight: 400;
}

.ranking-item {
  border-radius: 9px;
}

.product-info {
  grid-template-columns: 120px 1fr;
}

.app-toast {
  background: #241d1b;
  border-radius: 10px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  color: #fff;
  left: 50%;
  max-width: min(420px, calc(100vw - 28px));
  opacity: 0;
  padding: 11px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 80;
}

.app-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 720px) {
  .home-intro {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .continue-order {
    width: 100%;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }

  .brand-card {
    min-height: 210px;
  }

  .brand-copy {
    padding: 18px;
  }

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

  .product-card {
    min-height: 250px;
  }

  .card-image-button {
    height: 135px;
  }

  .dialog-card {
    border-radius: 0;
  }
}

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

  .product-card {
    min-height: 300px;
  }

  .card-image-button {
    height: 190px;
  }

  .topbar-actions .order-action {
    font-size: 12px;
  }
}
