/* Criou.pro mug PWA — shell v49: Exhaustive Twemoji emoji gallery; insert ~20% ART_W */
.app-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow-x: clip;
  max-width: 100vw;
  box-sizing: border-box;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.15rem;
  padding-top: max(0.75rem, env(safe-area-inset-top));
  background: rgba(246, 244, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: static;
  z-index: 20;
}

.app-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.app-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font: inherit;
  font-weight: 560;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  cursor: pointer;
}
.app-back:hover,
.app-back:focus-visible {
  color: var(--ink);
  background: rgba(28, 25, 23, 0.05);
  outline: none;
}
.app-back[hidden] {
  display: none !important;
}

.app-shell {
  flex: 1;
  width: 100%;
  max-width: min(96rem, 100%);
  margin: 0 auto;
  padding: 0;
  min-width: 0;
  overflow-x: clip;
  box-sizing: border-box;
}

.view {
  display: grid;
  min-height: calc(100dvh - 3.5rem);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.view.hidden,
.hidden {
  display: none !important;
}

/* Keep editor DOM mounted when leaving #editar (sizing / Fabric) */
.view-studio.hidden {
  display: block !important;
  visibility: hidden;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

/* Edição: canvas fullscreen protagonist — no inline 3D */
.view-studio {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  width: 100%;
  max-width: 100%;
  align-content: start;
}

.stage-wrap {
  position: relative;
  background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #f6f4f1 55%, #ebe7e2 100%);
  min-height: min(52dvh, 420px);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  max-height: none;
  flex: 1;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: min(48dvh, 400px);
  min-width: 0;
  touch-action: none;
  cursor: grab;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.stage:active {
  cursor: grabbing;
}

.stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100%;
  margin: 0;
  touch-action: none;
  box-sizing: border-box;
}

.hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  pointer-events: none;
  opacity: 0.9;
}

.hint.fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Editor column */
.editor-column {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem 1rem 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.view-studio .editor-column {
  border-top: 0;
  max-height: none;
  overflow: auto;
}

@media (min-width: 900px) {
  .editor-column {
    padding: 0.75rem 1.25rem 1.25rem;
  }
}

.panel-intro h1,
.panel-comprar h1 {
  font-size: clamp(1.25rem, 3.2vw, 1.65rem);
  margin: 0 0 0.25rem;
  color: var(--ink);
}

.panel-intro p,
.lede-app {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== Miro-like slim toolbar ===== */
.toolbar-miro {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 18px rgba(28, 25, 23, 0.06);
  position: static;
  z-index: 12;
}

.tool-group {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
}

.tool-sep {
  width: 1px;
  align-self: stretch;
  min-height: 28px;
  background: var(--line);
  margin: 0 0.2rem;
  flex: 0 0 auto;
}

.tool-btn {
  appearance: none;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  user-select: none;
  flex: 0 0 auto;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tool-btn:hover,
.tool-btn:focus-visible {
  background: #f5f5f4;
  border-color: var(--line);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.tool-btn.is-active {
  background: var(--accent-soft, rgba(29, 78, 137, 0.12));
  border-color: rgba(29, 78, 137, 0.35);
  color: var(--accent);
}

.tool-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.tool-btn-wide {
  padding-inline: 0.65rem;
}

.tool-label-inline {
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .tool-label-inline {
    display: none;
  }
}

.tool-ico {
  font-size: 0.95rem;
  line-height: 1;
  width: 1.1em;
  text-align: center;
}

.tool-menu-wrap {
  position: relative;
}

.tool-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 10.5rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tool-menu[hidden] {
  display: none !important;
}

.tool-menu-item {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 44px;
  padding: 0.4rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.tool-menu-item:hover,
.tool-menu-item:focus-visible {
  background: var(--accent-soft, rgba(29, 78, 137, 0.1));
  outline: none;
}

.tool-menu-item i {
  width: 1.1rem;
  text-align: center;
  color: var(--accent);
}

/* Floating contextual panel — compact (v28 single-swatch); left/top = box top-left */
.ctx-panel {
  position: absolute;
  z-index: 25;
  transform: none;
  width: max-content;
  min-width: 0;
  max-width: min(15rem, calc(100% - 0.5rem));
  padding: 0.22rem 0.26rem 0.26rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  pointer-events: auto;
}

.ctx-panel[hidden] {
  display: none !important;
}

/* While the floating panel is open, keep editor above sticky CTA so controls stay tappable */
.editor-wrap:has(.ctx-panel:not([hidden])) {
  z-index: 20;
}

.ctx-panel.is-below,
.ctx-panel.is-side {
  transform: none;
}

/* v33: docked = compact one-row toolbar (used on narrow + CTA rescue) */
.ctx-panel.is-docked {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.1rem;
  width: max-content;
  max-width: min(100vw - 16px, 100%);
}

.ctx-panel.is-docked .ctx-color {
  border-top: 0;
  border-left: 1px solid var(--line);
  padding-left: 0.2rem;
}

.ctx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.12rem;
  align-items: center;
  justify-content: center;
}

.ctx-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.ctx-btn:hover,
.ctx-btn:focus-visible {
  background: #f5f5f4;
  border-color: var(--line);
  outline: none;
}

.ctx-btn.ctx-danger:hover,
.ctx-btn.ctx-danger:focus-visible {
  color: #991b1b;
  border-color: #fecaca;
  background: #fef2f2;
}

.ctx-sep {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 0.08rem;
}

/* v28: single current-color circle → opens Pickr */
/* v33: text modal also uses single circle → Pickr (no swatch grid) */
/* v30: [hidden] must beat display:flex (UA [hidden] alone loses) */
.ctx-color {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.04rem 0.06rem 0.02rem;
  border-top: 1px solid var(--line);
}

.ctx-color[hidden] {
  display: none !important;
}

.ctx-color-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.ctx-color-btn:hover,
.ctx-color-btn:focus-visible {
  background: #f5f5f4;
  border-color: var(--line);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ctx-color-btn .color-preview {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 999px;
  border: 1px solid rgba(28, 25, 23, 0.22);
  background: #1d4e89;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 0 2px #fff;
}

/* Generic color preview fallback (ctx / modal override circle size) */
.color-preview {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  border: 1px solid rgba(28, 25, 23, 0.2);
  background: #1d4e89;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}


/* v28: compact ctx panel on narrow screens — slim, off-object */
@media (max-width: 640px) {
  .ctx-panel {
    width: auto;
    max-width: min(280px, calc(100vw - 24px), calc(100% - 8px));
    padding: 0.14rem 0.16rem 0.16rem;
    gap: 0.08rem;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.14);
  }

  .ctx-actions {
    gap: 0.06rem;
    justify-content: center;
  }

  .ctx-sep {
    height: 18px;
    margin: 0 0.02rem;
  }

  .ctx-color {
    padding: 0.02rem 0;
  }

  /* v31/v33: JS docks flush above CTA; one-row to keep object free */
  .ctx-panel.is-docked {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.08rem;
    width: max-content;
    max-width: min(100vw - 16px, calc(100% + 48px));
    padding: 0.1rem 0.14rem;
  }

  .ctx-panel.is-docked .ctx-actions {
    flex-wrap: nowrap;
    gap: 0.04rem;
  }

  .ctx-panel.is-docked .ctx-color {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 0 0.02rem 0 0.18rem;
  }

  .ctx-panel.is-docked .ctx-color-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .ctx-panel.is-docked .ctx-color-btn .color-preview {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }

  .ctx-panel.is-docked .ctx-btn {
    width: 40px;
    height: 40px;
  }
}

.pickr-anchor {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Pickr dialog above toolbar / sticky header */
.pcr-app {
  z-index: 120 !important;
}

/* Edit view: generous canvas */
.view-studio .editor-column {
  min-height: calc(100dvh - 7rem);
}

.view-studio .editor-wrap {
  --editor-max-h: min(62dvh, 680px);
  max-height: var(--editor-max-h);
  max-width: min(100%, calc(var(--editor-max-h) * 2150 / 950));
}

@media (min-width: 900px) {
  .view-studio .editor-wrap {
    --editor-max-h: min(68dvh, 760px);
  }
}

/* Text modal */
.text-modal {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(28rem, calc(100vw - 1.5rem));
  max-height: min(92dvh, 720px);
  box-shadow: 0 24px 64px rgba(28, 25, 23, 0.28);
  background: #fff;
  color: var(--ink);
}

.text-modal::backdrop {
  background: rgba(28, 25, 23, 0.45);
  backdrop-filter: blur(3px);
}

.text-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.1rem;
}

.text-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.text-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.text-modal-close {
  appearance: none;
  border: 0;
  background: #f5f5f4;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  font-size: 1rem;
}

.text-modal-close:hover {
  background: #e7e5e4;
}

.text-modal-preview {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(29, 78, 137, 0.35);
  background:
    linear-gradient(45deg, #f0eeeb 25%, transparent 25%),
    linear-gradient(-45deg, #f0eeeb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0eeeb 75%),
    linear-gradient(-45deg, transparent 75%, #f0eeeb 75%),
    #fafaf9;
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #1d4e89;
}

.text-modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
}

.text-modal-field textarea,
.text-modal-field select,
.text-modal-field input[type="range"] {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
}

.text-modal-field textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.4;
}

.text-modal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
}

.text-modal-row-wrap {
  align-items: stretch;
}

.text-modal-field-inline {
  flex: 1 1 10rem;
  min-width: 0;
}

.text-fmt {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 10px;
  background: #f5f5f4;
  border: 1px solid var(--line);
}

.fmt-btn {
  appearance: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
}

.fmt-btn.is-active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(28, 25, 23, 0.1);
}

.fmt-btn:disabled,
.fmt-btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

#font-select,
#font-select option,
#font-select optgroup {
  font-size: 0.95rem;
}

#font-select option {
  padding: 0.35rem 0.5rem;
}


.fmt-btn:hover,
.fmt-btn:focus-visible {
  outline: none;
  background: #fff;
}

/* v33: B/I + single color circle on the left of fmt row */
.text-modal-fmt-left {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.text-modal-color-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5f5f4;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.text-modal-color-btn:hover,
.text-modal-color-btn:focus-visible {
  background: #fff;
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.text-modal-color-btn .color-preview {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 999px;
  border: 1px solid rgba(28, 25, 23, 0.22);
  background: #1d4e89;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 0 2px #fff;
}

.text-modal .pcr-app {
  z-index: 30 !important;
}

.text-modal-foot {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  padding-top: 0.25rem;
}

.btn-modal-ghost,
.btn-modal-primary {
  appearance: none;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-modal-ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.btn-modal-primary {
  border: 0;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 78, 137, 0.25);
}

.btn-modal-primary:hover {
  background: #163a68;
}

.btn-modal-danger {
  appearance: none;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #b91c1c;
  color: #fff;
  box-shadow: 0 8px 20px rgba(185, 28, 28, 0.25);
}

.btn-modal-danger:hover {
  background: #991b1b;
}

.confirm-modal-body {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.editor-wrap.is-panning,
.editor-wrap.is-panning .canvas-container,
.editor-wrap.is-panning canvas {
  cursor: grab !important;
}

.editor-wrap.is-panning.is-dragging,
.editor-wrap.is-panning.is-dragging .canvas-container,
.editor-wrap.is-panning.is-dragging canvas {
  cursor: grabbing !important;
}

/* Editor canvas wrap — checker / #e7e5e4 so white art is visible (export stays white) */
.editor-wrap {
  position: relative;
  /* Cap width by BOTH viewport and max-height×aspect so aspect-ratio cannot
     expand the box to ~834px when max-height wins (mobile/tablet overflow). */
  --editor-max-h: min(42dvh, 420px);
  width: 100%;
  max-width: min(100%, calc(var(--editor-max-h) * 2150 / 950));
  aspect-ratio: 2150 / 950;
  max-height: var(--editor-max-h);
  height: auto;
  margin: 0 auto;
  border: 2px dashed rgba(29, 78, 137, 0.55);
  border-radius: 12px;
  overflow: visible;
  background-color: #e7e5e4;
  background-image:
    linear-gradient(45deg, #d6d3d1 25%, transparent 25%),
    linear-gradient(-45deg, #d6d3d1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d6d3d1 75%),
    linear-gradient(-45deg, transparent 75%, #d6d3d1 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  min-width: 0;
  box-sizing: border-box;
}

.safe-zone-label {
  position: absolute;
  top: 0.35rem;
  left: 0.5rem;
  z-index: 3;
  pointer-events: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(29, 78, 137, 0.92);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(29, 78, 137, 0.25);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  line-height: 1.2;
}

@media (min-width: 900px) {
  .editor-wrap {
    --editor-max-h: min(48dvh, 520px);
    max-height: var(--editor-max-h);
    max-width: min(100%, calc(var(--editor-max-h) * 2150 / 950));
    flex: 0 0 auto;
  }
}

.editor-wrap .canvas-container {
  margin: 0 auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  background: transparent !important;
  border-radius: 10px;
  overflow: hidden;
}

.editor-wrap canvas,
.editor-wrap .upper-canvas,
.editor-wrap .lower-canvas {
  display: block;
  max-width: 100% !important;
  max-height: 100% !important;
  background: transparent !important;
}

.art-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.btn-ghost-app {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  min-height: 44px;
  font-size: 0.92rem !important;
  padding: 0.55rem 0.75rem !important;
  width: 100%;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.btn-ghost-app:hover {
  background: rgba(28, 25, 23, 0.04) !important;
}

.btn-ghost-app:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cta-bar {
  margin-top: 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

@media (max-width: 899px) {
  .editor-column {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }

  .cta-bar {
    position: static;
    z-index: 15;
    margin-top: 0.35rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 1rem;
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 -6px 20px rgba(28, 25, 23, 0.06);
    box-sizing: border-box;
  }

  .cta-bar .btn-cta {
    width: auto;
    min-width: 9.5rem;
    min-height: 52px;
    max-width: 100%;
    align-self: flex-end;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  .cta-note {
    display: none;
  }

  .panel-intro h1 {
    font-size: 1.2rem;
  }

  .art-actions {
    max-width: 100%;
    min-width: 0;
  }
}

.btn-cta {
  width: auto;
  min-width: 10rem;
  min-height: 52px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: 0;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(29, 78, 137, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}

.btn-cta:not(:disabled):hover {
  background: #163a68;
  transform: translateY(-1px);
}

.btn-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-cta.is-ready {
  animation: cta-pop 0.45s ease;
}

@keyframes cta-pop {
  0% { transform: scale(0.98); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.cta-note {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}

/* Suppliers / Buy UX v27 */
.view-comprar {
  align-content: start;
}

.panel-comprar {
  max-width: 26rem;
  margin: 0 auto;
  width: 100%;
  padding: 1.15rem 1rem 1.75rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.panel-comprar h1 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(1.45rem, 5vw, 1.75rem);
}

.buy-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.panel-comprar .lede-app {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.link-back {
  appearance: none;
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0;
  margin-bottom: 0.75rem;
  min-height: 44px;
}

.buy-controls {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin: 0 0 1rem;
  padding: 0.9rem 0.85rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.buy-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fafaf9;
}

.qty-btn {
  appearance: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
}

.qty-btn:active {
  background: var(--accent-soft);
}

.qty-input {
  width: 3.2rem;
  height: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  background: #fff;
  color: var(--ink);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.buy-stage {
  margin: 0 0 1.15rem;
  padding: 1rem 0.9rem 1.05rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.buy-stage-markets {
  margin-bottom: 0.35rem;
}

.buy-stage-head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.buy-stage-num {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.buy-stage-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.buy-stage-lede {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.buy-stage .buy-controls {
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.buy-stage .buy-guidance {
  margin: 0;
}

.variation-chips {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.variation-chip {
  appearance: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem 0.55rem 0.55rem;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fafaf9;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  min-height: 64px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.variation-chip:hover {
  border-color: rgba(29, 78, 137, 0.35);
  background: #fff;
}

.variation-chip.is-active {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.variation-chip.is-best:not(.is-active) {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #fafaf9 70%);
}

.variation-chip-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #efece8;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.variation-chip-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.variation-chip-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}

.variation-chip-badge {
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #b45309;
  background: #fef3c7;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.05rem;
}

.variation-chip-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
}

.variation-chip-price {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.variation-empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.buy-guidance {
  margin: 0 0 1.1rem;
  padding: 0.9rem 0.85rem;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(29, 78, 137, 0.12);
}

.buy-guidance-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  color: var(--accent);
}

.buy-guidance-head h2 {
  margin: 0;
  font-size: 0.95rem;
}

.buy-steps {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.buy-steps li {
  margin-bottom: 0.25rem;
}

.buy-download-btn {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  gap: 0.45rem;
  background: #fff !important;
  border: 1px solid rgba(29, 78, 137, 0.22);
}

.buy-download-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.buy-markets-title {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.offers,
.market-offers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0;
}

.offers a.btn,
.offers button.btn {
  width: 100%;
  min-height: 48px;
}

.offers a.btn.is-disabled,
.offers .btn-disabled {
  background: #d6d3d1;
  color: #57534e;
  pointer-events: none;
  cursor: default;
}

.offer-meta {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 0.15rem;
}

/* Marketplace cards — familiar brand accents */
.mkt-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 0.9rem 0.9rem 0.95rem;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

a.mkt-card:active {
  transform: scale(0.985);
}

.mkt-card.is-soon {
  opacity: 0.78;
  background: #fafaf9;
}

.mkt-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.mkt-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.mkt-ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.mkt-mercadolivre .mkt-ico {
  background: #ffe600;
  color: #3483fa;
}

.mkt-shopee .mkt-ico {
  background: #ee4d2d;
  color: #fff;
}

.mkt-awin .mkt-ico {
  background: #111;
  color: #ff4747;
}

.mkt-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mkt-name {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.mkt-short {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.mkt-pill {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  max-width: 7.5rem;
  text-align: center;
  line-height: 1.2;
}

.mkt-pill-soon {
  background: #e7e5e4;
  color: #57534e;
}

.mkt-mercadolivre {
  border-color: rgba(52, 131, 250, 0.28);
  box-shadow: 0 8px 22px rgba(52, 131, 250, 0.08);
}

.mkt-mercadolivre .mkt-cta {
  background: #3483fa;
  color: #fff;
}

.mkt-shopee {
  border-color: rgba(238, 77, 45, 0.25);
}

.mkt-shopee .mkt-cta {
  background: #ee4d2d;
  color: #fff;
}

.mkt-awin {
  border-color: rgba(17, 17, 17, 0.18);
}

.mkt-awin .mkt-cta {
  background: #111;
  color: #fff;
}

.mkt-offer-title {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.3;
}

.mkt-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin-bottom: 0.35rem;
}

.mkt-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  color: #f59e0b;
  font-size: 0.78rem;
}

.mkt-stars-num {
  margin-left: 0.25rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
}

.mkt-sales {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 560;
}

.mkt-authority {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: #166534;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mkt-price-row {
  margin: 0 0 0.65rem;
}

.mkt-price {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.mkt-price-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--muted);
}

.mkt-price-value {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.mkt-mercadolivre .mkt-price-value {
  color: #3483fa;
}

.mkt-price-unit {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 560;
}

.mkt-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.mkt-soon-copy {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (min-width: 480px) {
  .panel-comprar {
    max-width: 28rem;
  }
}

.stage-status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted, #57534e);
  font-size: 0.88rem;
  font-weight: 560;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 1px 8px rgba(28, 25, 23, 0.06);
}
.stage-status.is-loading {
  animation: stage-pulse 1.2s ease-in-out infinite;
}
.stage-status.is-error {
  background: rgba(254, 226, 226, 0.92);
  color: #991b1b;
  border-radius: 0.65rem;
  max-width: min(22rem, 86%);
  text-align: center;
}
@keyframes stage-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}


/* ===== Shell v24: Home / Template / Stepper / 3D modal ===== */
.shell-panel {
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
  padding: 1.25rem 1.15rem 2rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.shell-hero {
  margin-bottom: 1.25rem;
}

.shell-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.shell-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 4.5vw, 1.85rem);
  color: var(--ink);
  line-height: 1.2;
}

.shell-lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.product-sections {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-section {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.85rem;
  align-items: stretch;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.05);
}

@media (min-width: 560px) {
  .product-section {
    grid-template-columns: 140px 1fr;
    padding: 0.9rem;
  }
}

.product-section.is-soon {
  opacity: 0.72;
}

.product-section-media {
  border-radius: 14px;
  overflow: hidden;
  background: #ebe7e2;
  aspect-ratio: 4 / 3;
  align-self: center;
}

.product-section-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-section-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.product-section-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-section-head h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink);
}

.product-section-body > p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  line-height: 1.2;
}

.pill-live {
  background: rgba(29, 78, 137, 0.12);
  color: var(--accent);
}

.pill-soon {
  background: #f5f5f4;
  color: #78716c;
}

.btn-shell-primary,
.btn-shell-secondary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-shell-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(29, 78, 137, 0.22);
}

.btn-shell-primary:hover,
.btn-shell-primary:focus-visible {
  background: #163a68;
  outline: none;
}

.btn-shell-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-shell-secondary:hover,
.btn-shell-secondary:focus-visible {
  border-color: rgba(29, 78, 137, 0.35);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.btn-shell-primary:disabled,
.btn-shell-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.saved-panel {
  margin-top: 1.25rem;
}

.saved-panel-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.saved-panel-lede {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.saved-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.saved-item {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.saved-item-open {
  appearance: none;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.55rem 0.7rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.saved-item-open:hover,
.saved-item-open:focus-visible {
  background: rgba(29, 78, 137, 0.06);
  outline: none;
}

.saved-item-thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 42px;
  border-radius: 8px;
  background: #f5f5f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--accent);
}

.saved-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.saved-item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.saved-item-meta strong {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-item-meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

.saved-item-del {
  appearance: none;
  flex: 0 0 auto;
  width: 52px;
  min-height: 64px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #fffaf9;
  color: #b91c1c;
  cursor: pointer;
  font-size: 1.05rem;
}

.saved-item-del:hover,
.saved-item-del:focus-visible {
  color: #991b1b;
  background: #fef2f2;
  outline: none;
}

.saved-empty {
  margin-top: 0.25rem;
}

.saved-empty-card {
  text-align: center;
  padding: 1.35rem 1.1rem;
  border-radius: 18px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.saved-empty-card i {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.saved-empty-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.saved-empty-card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.save-status {
  margin: 0.35rem 0 0;
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--muted);
}

.save-status.is-ok {
  color: #3d5a45;
}

.save-status.is-error {
  color: #b91c1c;
}

/* Template picker */
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

.template-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 8.5rem;
  padding: 1rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.05);
  position: relative;
}

button.template-card:hover,
button.template-card:focus-visible {
  border-color: rgba(29, 78, 137, 0.4);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 10px 24px rgba(28, 25, 23, 0.08);
  outline: none;
}

.template-card-blank {
  background: linear-gradient(160deg, #fff 0%, #eef4fb 100%);
  border-style: dashed;
  border-color: rgba(29, 78, 137, 0.35);
}

.template-card-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
}

.template-card-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.template-card-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.template-card.is-soon {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

.template-card-thumb-ph {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #f5f5f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8a29e;
  font-size: 1.35rem;
}

.template-note {
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  line-height: 1.45;
}

.template-note i {
  flex: 0 0 auto;
  color: var(--accent);
  margin-top: 0.15rem;
}

.template-note-text {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
}

/* Stepper (bolinhas) */
.flow-stepper {
  position: static;
  z-index: 14;
  padding: 0.55rem 1rem 0.45rem;
  background: rgba(246, 244, 241, 0.92);
  border-bottom: 1px solid var(--line);
}

.stepper-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 28rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  position: relative;
}

.stepper-list::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 18px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.stepper-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.stepper-dot {
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.stepper-num {
  font-size: 0.82rem;
  font-weight: 700;
}

.stepper-label {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}

.stepper-item.is-active .stepper-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.stepper-item.is-active .stepper-label {
  color: var(--accent);
}

.stepper-item.is-done .stepper-dot {
  background: rgba(29, 78, 137, 0.12);
  border-color: rgba(29, 78, 137, 0.45);
  color: var(--accent);
}

.stepper-dot:hover,
.stepper-dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* 3D tool button */
.tool-btn-3d {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: transparent !important;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(29, 78, 137, 0.28);
}

.tool-btn-3d:hover,
.tool-btn-3d:focus-visible {
  background: #163a68 !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 18px rgba(29, 78, 137, 0.3);
}

.tool-btn-3d .tool-ico {
  color: #fff;
}

/* 3D preview modal — closed via visibility; WebGL disposed/recreated in JS */
.preview-3d-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

@media (min-width: 720px) {
  .preview-3d-modal {
    align-items: center;
    padding: 1.25rem;
  }
}

.preview-3d-modal.is-closed {
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
}

.preview-3d-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.48);
  backdrop-filter: blur(4px);
}

.preview-3d-modal.is-closed .preview-3d-backdrop {
  opacity: 0;
}

.preview-3d-sheet {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  max-height: min(92dvh, 760px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(28, 25, 23, 0.22);
  overflow: hidden;
}

@media (min-width: 720px) {
  .preview-3d-sheet {
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(28, 25, 23, 0.28);
  }
}

.preview-3d-modal.is-closed .preview-3d-sheet {
  /* Keep non-zero size for WebGL after first open */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: min(40rem, 100%);
  height: min(70dvh, 560px);
  opacity: 0;
}

.preview-3d-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.preview-3d-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.preview-3d-close {
  appearance: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f5f5f4;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
}

.preview-3d-close:hover,
.preview-3d-close:focus-visible {
  background: #e7e5e4;
  outline: none;
}

.preview-3d-modal .stage-wrap {
  flex: 1 1 auto;
  min-height: min(52dvh, 420px);
  max-height: none;
  width: 100%;
  border-right: 0;
}

.preview-3d-modal .stage {
  min-height: min(48dvh, 400px);
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
}

.preview-3d-foot {
  margin: 0;
  padding: 0.55rem 1rem 0.85rem;
  padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
}

body.preview-3d-open {
  overflow: hidden;
}

/* Stub screens */
.stub-panel {
  max-width: 28rem;
}

.stub-card {
  text-align: center;
  padding: 1.5rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.06);
}

.stub-ico {
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stub-card h1 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.stub-card > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.stub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.stub-next {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: #a8a29e;
  font-weight: 600;
}

.view-home,
.view-template,
.view-validar {
  align-content: start;
}

.validar-main {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 0.25rem 1.25rem;
  box-sizing: border-box;
  min-width: 0;
}

.validar-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.validar-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 750;
}

.validar-lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.validar-stage-wrap {
  min-height: min(58dvh, 520px);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.08);
  flex: 1 1 auto;
}

.validar-stage-wrap .stage {
  min-height: min(54dvh, 480px);
}

.validar-foot {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.validar-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.15rem;
}

.validar-actions .btn-cta {
  min-width: 11rem;
}

.view-comprar .flow-stepper {
  margin-bottom: 0;
}

/* v34: 4-step flow — slightly tighter labels */
.flow-stepper .stepper-label {
  font-size: 0.68rem;
}
.view-comprar .flow-stepper .stepper-list {
  gap: 0.15rem;
}

/* ===== v35: template thumbs + Twemoji sticker modal ===== */
.template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) {
  .template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .template-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.template-card-live {
  padding-top: 0.75rem;
}
.template-card-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2150 / 950;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.25rem;
  border: 1px solid rgba(28, 25, 23, 0.06);
}
.template-card-thumb-emojis {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.template-card-thumb-emojis img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}
.template-card-live .pill-live {
  margin-top: 0.15rem;
  font-size: 0.7rem;
}

.sticker-modal {
  border: none;
  padding: 0;
  max-width: min(560px, calc(100vw - 1.5rem));
  width: 100%;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
}
.sticker-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}
.sticker-modal-sheet {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  padding: 0.9rem 0.9rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: min(78vh, 640px);
}
.sticker-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.sticker-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.sticker-modal-lede {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.sticker-modal-head,
.sticker-cats,
.sticker-credit {
  flex-shrink: 0;
}
.sticker-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  min-height: 2.25rem;
  align-items: center;
}
.sticker-cat {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.sticker-cat.is-active,
.sticker-cat[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
  overflow-y: auto;
  padding: 0.15rem;
  flex: 1 1 auto;
  min-height: 0; /* critical: flex child must shrink so cats stay visible */
}
@media (max-width: 420px) {
  .sticker-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.sticker-item {
  appearance: none;
  border: 1px solid transparent;
  background: #f8fafc;
  border-radius: 12px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0.25rem;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.sticker-item:hover,
.sticker-item:focus-visible {
  border-color: rgba(29, 78, 137, 0.45);
  background: #eef4fb;
  outline: none;
  transform: scale(1.04);
}
.sticker-item img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  pointer-events: none;
}
.sticker-credit {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}
.sticker-credit a {
  color: var(--accent);
}
.sticker-subcats:not([hidden]) {
  margin-top: -0.25rem;
}
.sticker-subcat {
  font-size: 0.72rem;
  padding: 0.28rem 0.65rem;
  background: #fff;
}
.sticker-subcat-uf {
  min-width: 2.4rem;
  padding: 0.28rem 0.5rem;
  text-align: center;
  font-variant: all-small-caps;
  font-feature-settings: "smcp";
  letter-spacing: 0.02em;
}
.sticker-subcat-emoji {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
}
.sticker-subcat-emoji span {
  white-space: nowrap;
}
.sticker-subcat-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.sticker-item-pack {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.25rem 0.3rem;
}
.sticker-item-pack img {
  width: 78%;
  height: auto;
  max-height: 70%;
}
.sticker-item-label {
  display: block;
  max-width: 100%;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sticker-grid:has(.sticker-item-pack) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 420px) {
  .sticker-grid:has(.sticker-item-pack) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* v37 — template thumb from IA art + photo-slot ctx button */
.template-card-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  border-radius: inherit;
}
.ctx-photo-btn {
  gap: 0.28rem;
  padding-inline: 0.55rem;
  font-weight: 600;
}
.ctx-photo-btn .ctx-photo-label {
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}


/* ===== v39: Molduras picker + category chips ===== */
.tool-btn-molduras {
  gap: 0.28rem;
  padding-inline: 0.55rem;
}
.tool-btn-molduras .tool-label-inline {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.molduras-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(640px, 96vw);
  width: 100%;
}
.molduras-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
}
.molduras-modal-sheet {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: min(78vh, 640px);
}
.molduras-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.molduras-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.molduras-modal-lede {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.molduras-cats {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: visible;
  /* espaço em cima (não cortar pills) + embaixo (scrollbar) */
  padding: 0.45rem 0.2rem 1rem;
  margin: 0 -0.1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}
.molduras-cats::-webkit-scrollbar {
  height: 8px;
}
.molduras-cats::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.28);
  border-radius: 999px;
}
.molduras-cats::-webkit-scrollbar-track {
  background: transparent;
}
.moldura-cat {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  min-height: 2.1rem;
  line-height: 1.25;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}
.moldura-cat.is-active,
.moldura-cat[aria-selected="true"] {
  background: var(--accent, #1d4e89);
  border-color: var(--accent, #1d4e89);
  color: #fff;
}
.molduras-empty {
  grid-column: 1 / -1;
  margin: 0.75rem 0;
  text-align: center;
  color: var(--muted, #64748b);
  font-size: 0.85rem;
}

.molduras-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  overflow-y: auto;
  padding: 0.1rem;
  min-height: 200px;
}
@media (max-width: 420px) {
  .molduras-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.moldura-card {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  border-radius: 14px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.moldura-card:hover,
.moldura-card:focus-visible {
  border-color: rgba(29, 78, 137, 0.45);
  box-shadow: 0 6px 18px rgba(29, 78, 137, 0.12);
  outline: none;
  transform: translateY(-1px);
}
.moldura-card-thumb {
  display: block;
  aspect-ratio: 215 / 95;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
}
.moldura-card-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.moldura-card-title {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink, #0f172a);
  padding: 0 0.15rem 0.1rem;
}

/* v50: sticker-modal flex — cats/head/credit flex-shrink:0; grid min-height:0 scroll */

/* ===== v67 home vitrine ===== */
.vitrine-hero .vitrine-hero-media {
  margin-top: 1rem;
}
.vitrine-hero .vitrine-hero-media img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(28,25,23,.08);
}
.occasion-hubs {
  margin: 1.25rem 0 1.5rem;
}
.hubs-title {
  font-size: 1.15rem;
  margin: 0 0 .75rem;
  letter-spacing: -0.02em;
}
.hub-grid {
  display: grid;
  gap: 1rem;
}
.hub-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  overflow: hidden;
  padding: .5rem;
  align-items: center;
}
.hub-card img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  background: #fce7f3;
}
.hub-card-body h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.hub-card-body p { margin: 0 0 .4rem; font-size: .9rem; color: #57534e; }
.hub-cta { font-weight: 700; color: var(--occasion-accent, #FF6B4A); font-size: .9rem; }
.product-section.is-editor-secondary .btn-shell-primary,
.product-section.is-editor-secondary .btn-shell-secondary {
  font-size: .92rem;
}
/* v69: catalog buy = offer grid (buy-cards.css); hide 4-step chrome for skipEditor */
body.is-catalog-buy .flow-stepper { display: none !important; }
body.is-catalog-buy #buy-section-fornecedores { display: none !important; }
body.is-catalog-buy .buy-qty-field { display: none !important; }
body.is-catalog-buy .buy-guidance { display: none !important; }
body.is-catalog-buy #buy-variations.buy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
  width: 100%;
}
body.is-catalog-buy .buy-variation-field { width: 100%; }
body.is-catalog-buy .buy-controls { display: block; }
body.is-catalog-buy #view-comprar .buy-stage-num { display: none; }

/* ===== app hamburger menu (site parity) ===== */
.app-body .app-site-header,
.app-body .site-header {
  position: static !important;
  top: auto;
  z-index: 200;
}
.app-body .app-site-header .site-header__inner {
  position: relative;
  gap: 0.65rem;
}
.app-body .app-site-header .app-back {
  margin-right: auto;
}
/* App: hamburger sempre (mobile e desktop) */
.app-body .site-nav__toggle {
  display: inline-flex !important;
  margin-left: auto;
}

/* Modo edição: foco no canvas — sem menu hamburger */
.app-body[data-screen="editar"] .site-nav__toggle {
  display: none !important;
}
.app-body[data-screen="editar"] .app-site-header nav,
.app-body[data-screen="editar"] .app-site-header nav.is-open,
.app-body[data-screen="editar"] .app-site-header[data-nav-open] nav {
  display: none !important;
}
.app-body .app-site-header nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1.25rem 1.25rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  background: #fff;
  border-bottom: 1px solid rgba(26, 26, 46, 0.08);
  box-shadow: 0 12px 28px rgba(26, 26, 46, 0.10);
  box-sizing: border-box;
  z-index: 220;
}
.app-body .app-site-header nav.is-open,
.app-body .app-site-header[data-nav-open] nav {
  display: flex !important;
}
.app-nav__group-label {
  margin: 0.65rem 0 0.25rem;
  padding: 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8494;
}
.app-nav__group-label:first-child { margin-top: 0.15rem; }
.app-nav__item,
.app-nav__subitem,
.app-nav__accordion-summary {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: var(--brand-text, #1A1A2E);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.app-nav__item:hover,
.app-nav__subitem:hover,
.app-nav__accordion-summary:hover {
  background: rgba(26, 26, 46, 0.05);
}
.app-nav__item--offline {
  color: var(--brand-coral, #FF6B4A);
}
.app-nav__item--catalog {
  background: var(--brand-coral, #FF6B4A);
  color: #fff !important;
  justify-content: center;
  margin-top: 0.35rem;
}
.app-nav__item--catalog:hover {
  filter: brightness(1.05);
  background: var(--brand-coral, #FF6B4A);
}
.app-nav__accordion {
  border-radius: 0.75rem;
}
.app-nav__accordion-summary {
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.app-nav__accordion-summary::-webkit-details-marker { display: none; }
.app-nav__accordion-summary::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #8a8494;
  border-bottom: 2px solid #8a8494;
  transform: translateY(-65%) rotate(45deg);
  transition: transform .15s ease;
}
.app-nav__accordion[open] .app-nav__accordion-summary::after {
  transform: translateY(-20%) rotate(225deg);
}
.app-nav__accordion-panel {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0 0.35rem 0.55rem;
}
.app-nav__subitem {
  font-weight: 500;
  color: #3a3644;
  min-height: 40px;
}

/* ===== end app hamburger menu ===== */
