:root {
  --monte-logo-offset: 8px;
  --monte-logo-max-w: min(140px, 36vw);
  --monte-logo-max-h: 56px;
  --monte-cart-size: 36px;
  --monte-cart-offset: 10px;
  --monte-header-gutter: calc(var(--monte-cart-offset) + var(--monte-cart-size) + 8px);
  --monte-pill-py: 4px;
  --monte-pill-px: 12px;
  --monte-pill-min-h: 26px;
  --monte-pill-shadow: 0 1px 6px rgba(0, 0, 0, .12);
  --top: #b08878;
  --maio: #5c6b8a;
  --saida: #c9a88a;
}

/* Menu Biquíni / Maiô / Pós Praia — entre logo e carrinho; só altura alinhada à logo */
.monte-mode-nav {
  position: fixed;
  top: var(--monte-logo-offset);
  left: var(--monte-header-gutter);
  right: var(--monte-header-gutter);
  height: var(--monte-logo-max-h);
  transform: none;
  z-index: 35;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  max-width: none;
}
body.has-store-brand .monte-mode-nav {
  left: calc(var(--monte-logo-offset) + var(--monte-logo-max-w) + 12px);
}

/* Reserva espaço da logo antes da imagem pintar — evita salto ao trocar de menu */
body.has-store-brand .page-brand {
  display: flex !important;
  align-items: center;
  min-height: var(--monte-logo-max-h);
}
body.has-store-brand .page-brand:not(.is-visible) {
  visibility: hidden;
}
body.has-store-brand .page-brand.is-visible {
  visibility: visible;
}
.monte-public .page-brand .store-logo {
  opacity: 0;
}
.monte-public .page-brand.is-visible .store-logo {
  opacity: 1;
}
.monte-mode-nav a {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  min-height: var(--monte-pill-min-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #334155;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--monte-pill-shadow);
  white-space: nowrap;
  pointer-events: auto;
}
.monte-mode-nav a.is-active {
  color: #fff;
}
.monte-mode-nav a[data-mode="biquini"].is-active {
  background: var(--top, #b08878);
}
.monte-mode-nav a[data-mode="maio"].is-active {
  background: var(--maio, #5c6b8a);
}
.monte-mode-nav a[data-mode="saida"].is-active {
  background: var(--saida, #c9a88a);
}

/* Pílulas do viewer — Filtro como base de tamanho */
.monte-public .viewer-chrome-right {
  align-items: stretch;
  width: max-content;
}
.monte-public .viewer-chrome-right .btn-filter-pill {
  width: 100%;
  min-width: 4.75rem;
  box-sizing: border-box;
  min-height: var(--monte-pill-min-h);
  padding: var(--monte-pill-py) var(--monte-pill-px);
  line-height: 1.2;
  box-shadow: var(--monte-pill-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Pílulas do chrome esquerdo — rótulo da peça e contagem (mesma altura e sombra) */
.monte-public .viewer-chrome-left .photo-piece-label,
.monte-public .viewer-chrome-left .photo-counter.model-counter {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 10px;
  min-height: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(4px);
  box-shadow: var(--monte-pill-shadow);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}
.monte-public .viewer-chrome-left .photo-piece-label {
  text-transform: uppercase;
  letter-spacing: .05em;
}
.monte-public .model-counter .counter-value {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.monte-public .photo-indicator.photo-counter.counter-stack {
  flex-direction: column;
  gap: 1px;
  min-height: var(--monte-pill-min-h);
  padding: var(--monte-pill-py) var(--monte-pill-px);
  box-shadow: var(--monte-pill-shadow);
}
.monte-public .counter-stack .counter-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
  font-weight: 600;
  line-height: 1.1;
}
.monte-public .counter-stack .counter-value {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  line-height: 1.15;
}

.monte-help-btn {
  position: fixed;
  bottom: 35px;
  left: 12px;
  top: auto;
  right: auto;
  z-index: 35;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.monte-public #nuvemAppShell {
  display: none !important;
}

/* Badge do carrinho no modal */
.monte-public .cart-panel-header .cart-header-btn {
  position: relative;
  flex-shrink: 0;
}
.monte-public .cart-panel-header .cart-badge {
  background: var(--accent, var(--maio, #5c6b8a));
}
body.monte-public[data-monte-mode="biquini"] .cart-panel-header .cart-badge {
  background: var(--top, #b08878);
}
body.monte-public[data-monte-mode="saida"] .cart-panel-header .cart-badge {
  background: var(--saida, #c9a88a);
}
body.cart-drawer-open .header-actions .cart-badge {
  visibility: hidden;
  pointer-events: none;
}

.monte-ptr-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 10px 16px 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: #64748b;
  background: rgba(247, 240, 235, .95);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
  transform: translateY(-100%);
  transition: transform .2s ease;
  pointer-events: none;
}
.monte-ptr-indicator.is-visible {
  transform: translateY(0);
}
.monte-ptr-indicator.is-ready {
  color: #334155;
}
