:root {
  --bg: #f7f0eb;
  --top: #b08878;
  --calcinha: #7a9e9f;
  --maio: #5c6b8a;
  --saida: #c9a88a;
  --text: #222;
  --accent: var(--maio);
}
* { box-sizing: border-box; }
body.monte-single {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  overflow: hidden;
}
.monte-single .wrap.page-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 12px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.monte-single .page-brand {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: none;
  z-index: 30;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  margin: 0;
  pointer-events: none;
}
.monte-single .store-logo {
  max-height: 56px;
  max-width: min(140px, 36vw);
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .12));
}
.monte-single .single-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
body.monte-single.has-store-brand .single-main {
  margin-top: 56px;
}
.monte-single .panel.single {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
}
.monte-single .viewer {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.monte-single .viewer-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
}
.monte-single .viewer-stage.has-results,
.monte-single .viewer-stage.is-loading,
.monte-single .viewer-stage.is-empty { background: #fff; }
.monte-single .viewer-footer {
  height: 28px;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.monte-single .btn-filter-pill:disabled,
.monte-single .btn-filter-pill.is-waiting-catalog {
  opacity: 0.45;
  cursor: not-allowed;
}
.monte-single .btn-filter-pill {
  padding: var(--monte-pill-py, 4px) var(--monte-pill-px, 12px);
  min-height: var(--monte-pill-min-h, 26px);
  line-height: 1.2;
  border: none;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  box-shadow: var(--monte-pill-shadow, 0 1px 6px rgba(0,0,0,.12));
  cursor: pointer;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.monte-single .photo-piece-label {
  color: var(--accent);
}
.monte-single .model-counter .counter-value {
  color: var(--accent);
}
.monte-single .cta { text-align: center; margin-top: 6px; flex-shrink: 0; padding-bottom: 18px; }
.monte-single .cta button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 15px;
  min-width: 200px;
  cursor: pointer;
}
.monte-single .cta button:disabled { opacity: .5; cursor: not-allowed; }
.monte-single #status {
  display: none !important;
}
.monte-single .header-actions {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 8px;
}
.monte-single .cart-header-btn {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}
.monte-single .cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 10px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.monte-single .viewer-chrome {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  z-index: 7;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
}
.monte-single .viewer-chrome-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  gap: 4px;
  pointer-events: auto;
}
.monte-single .photo-counter:not(.model-counter) {
  font-size: inherit;
  color: #475569;
  padding: var(--monte-pill-py, 4px) var(--monte-pill-px, 12px);
  min-height: var(--monte-pill-min-h, 26px);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--monte-pill-shadow, 0 1px 6px rgba(0,0,0,.12));
  box-sizing: border-box;
}
.monte-single .counter-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.15;
}
.monte-single .counter-stack .counter-label {
  font-size: 9px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
}
.monte-single .counter-stack .counter-value {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}
.monte-single .photo-counter.is-empty { visibility: hidden; }
.monte-single .viewer-stage .viewer-results {
  position: absolute;
  inset: 0;
}
.monte-single .viewer-results { z-index: 2; visibility: hidden; }
.monte-single .viewer-results.visible { visibility: visible; }
.monte-single .carousel-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  contain: layout paint;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
}
.monte-single .carousel-track {
  display: flex;
  height: 100%;
  transition: transform .22s ease;
  position: relative;
  z-index: 1;
  will-change: transform;
}
.monte-single .slide {
  height: 100%;
  flex: 0 0 auto;
  position: relative;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}
.monte-single .slide.selected { border-color: var(--accent); }
.monte-single .photo-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
}
.monte-single .photo-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.monte-single .photo-overlay-sizes {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 6;
  pointer-events: auto;
}
.monte-single .photo-overlay-sizes .chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  touch-action: manipulation;
}
.monte-single .photo-overlay-sizes .chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.monte-single .photo-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 5;
  background: rgba(255,255,255,.9);
  padding: var(--monte-pill-py, 4px) var(--monte-pill-px, 12px);
  min-height: var(--monte-pill-min-h, 26px);
  border-radius: 999px;
  box-shadow: var(--monte-pill-shadow, 0 1px 6px rgba(0,0,0,.12));
  box-sizing: border-box;
  pointer-events: none;
}
.monte-single .viewer-loading-placeholder {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 12px;
  box-sizing: border-box;
}
.monte-single .viewer-loading-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 100%;
  text-align: center;
}
.monte-single .viewer-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: monte-spin .7s linear infinite;
  flex-shrink: 0;
}
.monte-single .viewer-loading-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}
.monte-single .viewer-loading-hints {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}
.monte-single .viewer-loading-hints li + li {
  margin-top: 4px;
}
.monte-single .viewer-loading-placeholder:not(:has(img[src])) .viewer-loading-brand,
.monte-single .viewer-loading-placeholder .viewer-loading-brand:not([src]),
.monte-single .viewer-loading-placeholder .viewer-loading-brand[src=''],
.monte-single .viewer-loading-placeholder .viewer-loading-brand.is-broken {
  display: none;
}
.monte-single .viewer-loading-brand {
  max-width: min(72%, 200px);
  max-height: 72px;
  object-fit: contain;
}
.monte-single .viewer-loading-placeholder[hidden] { display: none !important; pointer-events: none !important; }
.monte-single .viewer-empty.hidden { pointer-events: none !important; }
.monte-single .footer-model-name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: none;
}
.monte-single .viewer-footer.has-model .footer-model-name { display: block; }
.monte-single .viewer-footer.is-loading .footer-model-name { display: none; }
.monte-single .footer-loading { display: none; }
.monte-single .viewer-footer.is-loading .footer-loading { display: flex; gap: 8px; }
.monte-single .muted { color: #6b7280; }
body.monte-single[data-monte-mode="saida"] { --accent: var(--saida); }
.monte-single .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.monte-single .viewer-chrome-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: auto;
  max-width: 55%;
}
.monte-single .applied-filter-pills {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.monte-single .applied-filter-pills[hidden] { display: none !important; }
.monte-single .applied-filter-pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
}
.monte-single .viewer-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 12px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  z-index: 5;
  background: #fff;
}
.monte-single .viewer-empty.hidden { display: none !important; }
.monte-single .footer-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: monte-spin .7s linear infinite;
}
@keyframes monte-spin { to { transform: rotate(360deg); } }
.monte-single .footer-msg { font-size: 11px; color: #64748b; }
.monte-single .carousel-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  pointer-events: auto;
  border: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  color: #334155;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  -webkit-tap-highlight-color: transparent;
}
.monte-single .carousel-nav:hover { background: rgba(255,255,255,.95); }
.monte-single .carousel-nav .carousel-nav-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}
.monte-single .carousel-nav.prev { left: 6px; }
.monte-single .carousel-nav.next { right: 6px; }
@media (min-width: 721px) {
  .monte-single .carousel-nav { display: flex; }
}
.monte-single .cart-header-btn svg {
  width: 20px;
  height: 20px;
  stroke: #334155;
  fill: none;
  stroke-width: 1.75;
}
.monte-single .cart-item-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.monte-single .cart-item-row img,
.monte-single .cart-item-thumb-empty {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  background: #f8fafc;
  flex-shrink: 0;
}
.monte-single .cart-item-row .info { flex: 1; font-size: 14px; }
.monte-single .cart-item-row button {
  border: none;
  background: none;
  color: #b45309;
  font-size: 12px;
  cursor: pointer;
}
.monte-single .cart-drawer-backdrop,
.monte-single .cart-choice-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  z-index: 1100;
  align-items: flex-end;
  justify-content: center;
}
.monte-single .cart-drawer-backdrop.open,
.monte-single .cart-choice-backdrop.open { display: flex; }
.monte-single .cart-panel {
  background: #fff;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
}
.monte-single .cart-panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.monte-single .cart-panel-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.monte-single .cart-panel-header .cart-header-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
  pointer-events: none;
}
.monte-single .cart-panel-header .cart-header-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.monte-single .cart-panel-header h3 { margin: 0; font-size: 17px; }
.monte-single #btnCloseCart {
  flex-shrink: 0;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}
.monte-single .btn-cart-continue { background: #f1f5f9; color: #334155; }
.monte-single .cart-panel-body { padding: 12px 16px; overflow-y: auto; flex: 1; }
.monte-single .cart-panel-footer {
  padding: 12px 16px 20px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.monte-single .cart-panel-footer button {
  min-height: 44px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  cursor: pointer;
}
.monte-single .btn-cart-confirm { background: var(--accent); color: #fff; }
.monte-single .btn-cart-clear,
.monte-single .btn-cart-continue { background: #f1f5f9; color: #334155; }
.monte-single .cart-choice-panel {
  background: #fff;
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  padding: 20px 16px;
  margin: auto 16px;
  text-align: center;
}
.monte-single .cart-choice-actions { display: flex; flex-direction: column; gap: 8px; }
.monte-single .cart-choice-actions button {
  min-height: 44px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  cursor: pointer;
}
.cart-fly-ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}
.monte-single .cart-header-btn.is-bump {
  animation: cart-bump 0.35s ease;
}
@keyframes cart-bump {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.monte-single .btn-continue-shop { background: var(--calcinha); color: #fff; }
.monte-single .btn-view-cart { background: var(--accent); color: #fff; }
.monte-single .modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}
.monte-single .modal-backdrop.open { display: flex; }
.monte-single .modal {
  background: #fff;
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
}
.monte-single .modal-header { padding: 16px 18px 10px; border-bottom: 1px solid #eee; }
.monte-single .modal-header h3 { margin: 0; font-size: 18px; }
.monte-single .modal-subtitle { margin: 6px 0 0; font-size: 12px; color: #64748b; }
.monte-single .modal-tabs-wrap {
  padding: 0 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.monte-single .modal-tab-bar { display: flex; flex-wrap: wrap; padding-top: 8px; }
.monte-single .modal-tab {
  border: 1px solid #e2e8f0;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: #f1f5f9;
  color: #475569;
  font-size: 14px;
  padding: 10px 14px;
  margin-right: 2px;
  margin-bottom: -1px;
  cursor: pointer;
}
.monte-single .modal-tab.has-selection::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 6px;
  display: inline-block;
}
.monte-single .modal-tab[aria-selected="true"] {
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: inset 0 2px 0 var(--accent);
}
.monte-single .modal-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.monte-single .modal-tab-panels { position: relative; width: 100%; }
.monte-single .modal-tab-panel { display: none; }
.monte-single .modal-tab-panel.active { display: block; }
.monte-single .filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.monte-single .filter-chip {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
  background: #fff;
  font-size: 15px;
  cursor: pointer;
}
.monte-single .filter-chip.selected {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}
.monte-single .modal-footer {
  padding: 12px 18px 20px;
  display: flex;
  gap: 10px;
  border-top: 1px solid #eee;
}
.monte-single .modal-footer button {
  flex: 1;
  min-height: 48px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  border: none;
}
.monte-single .btn-clear { background: #f1f5f9; color: #334155; }
.monte-single .btn-apply { background: #0f172a; color: #fff; }
