/* ==========================================================================
   AC BRAZIL GOIÂNIA - CATÁLOGO FEMININO EXCLUSIVO
   Tipografia suave, estética de luxo e sofisticação feminina
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&display=swap');

:root {
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-text-main: #23211f;
  --color-text-muted: #6e6963;
  --color-text-light: #9c958c;
  --color-border: #ede8e1;
  --color-border-hover: #dbd4c9;
  
  --color-gold: #cbb085;
  --color-gold-dark: #b19365;
  /* Vermelho da marca AC Brazil (o mesmo do menu Sale). */
  --color-ac-red: #c2341f;
  --color-gold-light: #fdfbf7;
  --color-rose: #df9e8e;
  --color-rose-light: #fdf6f4;

  --color-wa: #25D366;
  --color-wa-dark: #128C7E;
  --color-wa-hover: #1ebd5a;
  --color-wa-light: #f2faf5;
  --color-wa-border: #b8eacf;

  --color-danger: #d9534f;
  --color-danger-light: #fdf2f2;

  --shadow-sm: 0 1px 3px rgba(35, 33, 31, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(35, 33, 31, 0.06), 0 2px 6px -1px rgba(35, 33, 31, 0.03);
  --shadow-lg: 0 12px 30px -4px rgba(35, 33, 31, 0.08);
  --shadow-xl: 0 20px 40px -6px rgba(35, 33, 31, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Cores e medidas que o gerenciador do site (aba "Site" do painel) troca */
  --color-dark: #181614;
  --header-bg: #ffffff;
  --topbar-bg: #181614;
  --topbar-text: #dfd9d2;
  --footer-bg: #181614;
  --footer-text: #b5ada3;
  --footer-title: #ffffff;
  --home-max-width: 1600px;
  --home-section-gap: 44px;
  --highlight-columns: 4;
  --catalog-columns: 4;

  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* TOP ANNOUNCEMENT BAR */
.top-bar {
  background: var(--topbar-bg);
  /* Degradê esfumaçado: clareia a cor escolhida no centro para não pesar */
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--topbar-bg) 82%, #7d7064) 0%,
    color-mix(in srgb, var(--topbar-bg) 62%, #a39584) 50%,
    color-mix(in srgb, var(--topbar-bg) 82%, #7d7064) 100%);
  color: var(--topbar-text);
  padding: 9px 16px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.top-bar span.highlight {
  color: var(--color-gold);
  font-weight: 600;
}

/* HEADER (NO ESTILO DE ACBRAZIL.COM)
   Logo à esquerda, busca e menu no centro e ícones de atendimento, PDF,
   área do criador e sacola à direita. */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 32px 8px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  align-items: center;
  gap: 24px;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  display: block;
  height: 76px;
  width: auto;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-search {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.header-search-input {
  width: 100%;
  height: 34px;
  padding: 0 44px 0 16px;
  border: 1px solid #e3e3e3;
  border-radius: var(--radius-full);
  background: #ececec;
  color: var(--color-text-main);
  font: 400 13px var(--font-sans);
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.header-search-input:focus {
  background: #ffffff;
  border-color: var(--color-gold);
}

.header-search-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header-search-btn svg {
  width: 18px;
  height: 18px;
  fill: #181614;
}

.header-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 36px;
  max-width: 100%;
}

.header-nav-link {
  padding: 6px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #111111;
  font: 600 11.5px var(--font-sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.header-nav-link:hover,
.header-nav-link.active {
  border-bottom-color: #111111;
}

.header-nav-link.is-sale {
  color: #c2341f;
}

.header-nav-link.is-sale:hover,
.header-nav-link.is-sale.active {
  border-bottom-color: #c2341f;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.header-icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: #181614;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-icon-btn:hover {
  background: #f3f0eb;
}

.header-icon-btn svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.header-cart-btn .cart-badge-count {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 18px;
  margin: 0;
  padding: 1px 5px;
  background: #e8336d;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.btn-download-header.is-downloading {
  opacity: 0.65;
  pointer-events: none;
  cursor: wait;
}

/* PAINEL DO CRIADOR */
.creator-backdrop {
  z-index: 5000;
  padding: 22px;
}

.creator-panel {
  position: relative;
  width: min(1180px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: #f7f3ed;
  border: 1px solid rgba(203, 176, 133, 0.4);
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(35, 26, 18, 0.28);
}

.creator-panel h2,
.creator-panel h3 {
  font-family: var(--font-serif);
  font-weight: 500;
}

.creator-panel h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.creator-kicker {
  margin-bottom: 8px;
  color: var(--color-gold-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.creator-login-view {
  width: min(500px, 100%);
  margin: 0 auto;
  padding: 70px 50px;
}

.creator-login-view > p {
  margin: 14px 0 28px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.creator-login-form,
.creator-product-form {
  display: grid;
  gap: 15px;
}

.creator-access-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 12px;
  background: #ebe4da;
}

.creator-access-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #766b5f;
  font: 600 11px var(--font-sans);
  cursor: pointer;
}

.creator-access-tabs button.active {
  background: #fff;
  color: #211d19;
  box-shadow: 0 3px 12px rgba(35, 26, 18, 0.08);
}

.creator-panel label {
  display: grid;
  gap: 7px;
  color: #4d463e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.creator-panel label span {
  color: #91877a;
  font-size: 9px;
  font-weight: 500;
  text-transform: none;
}

.creator-panel input,
.creator-panel select,
.creator-panel textarea {
  width: 100%;
  border: 1px solid #ded5ca;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--color-text-main);
  font: 500 13px var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.creator-panel input,
.creator-panel select {
  height: 44px;
  padding: 0 13px;
}

.creator-panel select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 49%, #8d8175 50%), linear-gradient(-45deg, transparent 49%, #8d8175 50%);
  background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
  cursor: pointer;
}

.creator-panel textarea {
  min-height: 82px;
  padding: 12px 13px;
  resize: vertical;
}

.creator-panel input:focus,
.creator-panel select:focus,
.creator-panel textarea:focus {
  border-color: var(--color-gold-dark);
  box-shadow: 0 0 0 3px rgba(203, 176, 133, 0.18);
}

.creator-primary-btn,
.creator-secondary-btn,
.creator-link-btn,
.creator-row-actions button {
  border: 0;
  font-family: var(--font-sans);
  cursor: pointer;
}

.creator-primary-btn {
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 10px;
  background: #211d19;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.7px;
}

.creator-primary-btn:hover {
  background: #40362d;
}

.creator-primary-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.creator-message {
  min-height: 18px;
  color: #477356;
  font-size: 12px;
}

.creator-message.error {
  color: var(--color-danger);
}

.creator-recovery-btn {
  justify-self: start;
  padding: 0;
  color: #725c3d;
  font-size: 11px;
}

.creator-dashboard-view {
  padding: 48px;
}

.creator-dashboard-head,
.creator-form-heading,
.creator-list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.creator-dashboard-head {
  margin-bottom: 30px;
  padding-right: 34px;
}

.creator-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

#creator-backup-message {
  margin: -18px 0 18px;
  text-align: right;
}

#creator-backup-message:empty {
  display: none;
}

.creator-secondary-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.creator-secondary-btn {
  padding: 10px 17px;
  border: 1px solid #d8cec1;
  border-radius: 999px;
  background: transparent;
  color: #61584d;
  font-size: 11px;
  font-weight: 600;
}

.creator-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(420px, 1.4fr);
  gap: 24px;
  align-items: start;
}

.creator-product-form,
.creator-products-column {
  padding: 24px;
  border: 1px solid #e5ddd2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.creator-form-heading {
  margin-bottom: 2px;
}

.creator-form-heading h3 {
  font-size: 22px;
}

.creator-link-btn {
  background: transparent;
  color: var(--color-gold-dark);
  font-size: 11px;
  font-weight: 600;
}

.creator-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.creator-list-tools {
  margin-bottom: 16px;
}

.creator-list-tools > div {
  display: grid;
  gap: 2px;
}

.creator-list-tools strong {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
}

.creator-list-tools span {
  color: var(--color-text-light);
  font-size: 10px;
}

.creator-list-tools input {
  width: min(220px, 45%);
}

.creator-products-list {
  display: grid;
  gap: 8px;
  max-height: 590px;
  overflow: auto;
  padding-right: 4px;
}

.creator-product-row {
  display: grid;
  grid-template-columns: auto 58px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #eee8e0;
  border-radius: 12px;
  background: #fff;
}

.creator-product-row img {
  width: 58px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f5f0;
}

.creator-product-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.creator-product-info strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-product-info span {
  color: var(--color-text-light);
  font-size: 9px;
}

.creator-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.creator-row-actions button {
  padding: 7px 9px;
  border-radius: 7px;
  background: #f3eee7;
  color: #65594d;
  font-size: 9px;
  font-weight: 600;
}

.creator-row-actions button.featured {
  white-space: nowrap;
}

.creator-row-actions button.featured.active {
  background: #111;
  color: #e9d9b4;
}

.creator-row-actions button.stock {
  background: #e6f4ea;
  color: #2f6b43;
}

.creator-row-actions button.stock.off {
  background: #5b1f1b;
  color: #fff;
}

.creator-hidden-tag.is-sold-out {
  background: #fbe9e7;
  color: #8a2a22;
}

.creator-row-actions button.visibility.off {
  background: #111;
  color: #fff;
}

.creator-product-row.is-hidden img,
.creator-product-row.is-hidden .creator-product-info strong {
  opacity: 0.45;
}

.creator-hidden-tag {
  justify-self: start;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ece7df;
  color: #65594d;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.creator-row-actions button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.creator-row-actions button.danger {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.creator-empty-state {
  padding: 60px 20px;
  border: 1px dashed #d9cfc2;
  border-radius: 12px;
  color: var(--color-text-light);
  text-align: center;
  font-size: 12px;
}

.cart-badge-count {
  background: var(--color-gold);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: 4px;
}

/* BANNER DA PÁGINA INICIAL: a imagem da campanha logo abaixo do cabeçalho,
   como na loja oficial. O próprio h1 é a imagem. */
.hero {
  background: #f1f1f1;
  line-height: 0;
}

.hero-title {
  display: block;
  margin: 0;
  line-height: 0;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  object-position: center;
}

/* PÁGINA INICIAL: NEW IN, DESTAQUES E LOJAS */
.home-wrapper {
  max-width: var(--home-max-width);
  margin: 0 auto;
  padding: 36px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-section-gap);
}

.home-wrapper .new-in-showcase {
  margin-bottom: 0;
}

.home-highlights[hidden] {
  display: none;
}

/* Destaques em páginas de três linhas de quatro óculos no computador (três
   colunas no tablet). No celular ficam duas linhas de três para a seção não
   empurrar o resto da página: o cartão vira uma vitrine enxuta (foto, nome e
   preço) e o toque abre os detalhes da peça. */
.home-highlights .products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-highlights .products-grid.is-changing {
  animation: highlights-fade 0.45s ease;
}

@keyframes highlights-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1023px) {
  .home-highlights .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-highlights-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.home-highlights-foot:empty {
  display: none;
}

.highlights-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.highlights-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.highlights-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.highlights-dot.active {
  width: 24px;
  border-radius: 9999px;
  background: var(--color-gold);
}

.highlights-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.highlights-arrow:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}

.btn-highlights-more {
  padding: 10px 26px;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-full);
  background: transparent;
  color: inherit;
  font: 600 12px var(--font-sans);
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-highlights-more:hover {
  background: var(--color-gold);
  color: #ffffff;
}

@media (max-width: 600px) {
  .home-highlights .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .home-highlights .products-grid .product-card {
    border-radius: var(--radius-md);
  }
  .home-highlights .products-grid .card-img-wrapper {
    height: 104px;
    padding: 0;
  }
  .home-highlights .products-grid .card-body {
    padding: 8px;
  }
  .home-highlights .products-grid .card-cat,
  .home-highlights .products-grid .badge-4x,
  .home-highlights .products-grid .badge-timer,
  .home-highlights .products-grid .badge-gallery-count,
  .home-highlights .products-grid .card-actions > :not(.btn-buy) {
    display: none;
  }
  .home-highlights .products-grid .card-actions {
    margin-top: 6px;
  }
  .home-highlights .products-grid .btn-buy {
    padding: 7px 10px;
    font-size: 11px;
  }
  .home-highlights .products-grid .card-title {
    font-size: 11.5px;
    line-height: 1.3;
    height: 30px;
    margin-bottom: 4px;
  }
  .home-highlights .products-grid .card-pricing {
    margin-bottom: 0;
  }
  .home-highlights .products-grid .price-strike {
    font-size: 10px;
  }
  .home-highlights .products-grid .price-main {
    font-size: 14px;
    letter-spacing: 0;
  }
  .home-highlights .products-grid .badge-discount,
  .home-highlights .products-grid .badge-sold-out,
  .home-highlights .products-grid .badge-new-in {
    top: 5px;
    padding: 2px 6px;
    font-size: 8.5px;
    letter-spacing: 0.3px;
  }
  .home-highlights .products-grid .badge-discount,
  .home-highlights .products-grid .badge-sold-out {
    right: 5px;
  }
  .home-highlights .products-grid .badge-new-in {
    left: 5px;
  }
}

/* No computador o cartão dos Destaques fica compacto: foto menor, sem o
   selo de prazo e sem os botões secundários (a sacola e o texto continuam
   nos detalhes da peça e no catálogo completo). */
@media (min-width: 601px) {
  .home-highlights .products-grid .card-img-wrapper {
    height: 180px;
    padding: 0;
  }
  .home-highlights .products-grid .card-body {
    padding: 14px;
  }
  .home-highlights .products-grid .card-title {
    font-size: 13px;
    height: 36px;
  }
  .home-highlights .products-grid .price-main {
    font-size: 18px;
  }
  .home-highlights .products-grid .badge-timer,
  .home-highlights .products-grid .card-secondary-btns {
    display: none;
  }
  .home-highlights .products-grid .btn-primary-wa {
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 12px;
  }
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.home-section-kicker {
  display: block;
  color: var(--color-gold-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.home-section-title {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--color-text-main);
}

.home-stores {
  scroll-margin-top: 150px;
}

/* Lojas centralizadas, cada uma dentro de uma moldura preta com filete
   dourado por dentro, como um quadro */
.home-stores .home-section-head {
  justify-content: center;
  text-align: center;
  margin-bottom: 28px;
}

.home-stores .footer-stores-grid {
  max-width: 900px;
  margin: 0 auto;
  gap: 36px;
}

.home-stores .store-card {
  position: relative;
  padding: 12px;
  background: linear-gradient(145deg, #5a5048 0%, #8a7d6f 50%, #5a5048 100%);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 18px 40px -16px rgba(35, 33, 31, 0.28), 0 2px 6px rgba(35, 33, 31, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-stores .store-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(203, 176, 133, 0.55);
  border-radius: 2px;
  pointer-events: none;
}

.home-stores .store-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -18px rgba(35, 33, 31, 0.34), 0 4px 10px rgba(35, 33, 31, 0.12);
}

.home-stores .store-photo {
  border-radius: 1px;
}

.home-stores .store-info {
  background: var(--color-surface);
  text-align: center;
  align-items: center;
  padding: 20px 22px 22px;
}

.home-stores .store-map {
  align-self: center;
}

@media (max-width: 600px) {
  .home-stores .footer-stores-grid {
    max-width: 420px;
    gap: 26px;
  }
  .home-stores .store-card {
    padding: 9px;
  }
  .home-stores .store-card::after {
    inset: 4px;
  }
}

/* TÍTULO DO CATÁLOGO: a categoria aberta pelo menu ou o termo buscado */
.catalog-heading {
  flex: 1;
  min-width: 200px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-main);
}

/* MAIN CONTENT CONTAINER */
.main-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 36px 24px 90px 24px;
}

/* VITRINE COM NAVEGAÇÃO LATERAL */
.catalog-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.catalog-content {
  min-width: 0;
  scroll-margin-top: 88px;
}

.catalog-sidebar {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding-right: 6px;
  margin-right: -6px;
  scrollbar-width: thin;
}

.sidebar-toggle {
  display: none;
}

.sidebar-panels {
  display: grid;
  gap: 18px;
}

.sidebar-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
}

.sidebar-block[hidden] {
  display: none;
}

.catalog-sidebar::-webkit-scrollbar {
  width: 6px;
}

.catalog-sidebar::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: #ded5ca;
}

.sidebar-title {
  margin: 0 0 12px 4px;
  color: var(--color-text-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 1px;
}

.sidebar-nav-scroll {
  padding-right: 2px;
}

/* FILTROS: COR, GÊNERO, TAMANHO E PREÇO */
.facet-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.facet-clear {
  border: 0;
  background: none;
  padding: 0 4px;
  color: var(--color-gold-dark);
  font: 600 11px var(--font-sans);
  text-decoration: underline;
  cursor: pointer;
}

.facet-group {
  border-top: 1px solid var(--color-border);
}

.facet-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 4px;
  border: 0;
  background: none;
  color: var(--color-text-main);
  font: 600 13px var(--font-sans);
  text-align: left;
  cursor: pointer;
}

.facet-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.facet-group.collapsed .facet-toggle svg {
  transform: none;
}

.facet-group.collapsed .facet-body {
  display: none;
}

.facet-active-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: #181614;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
}

.facet-body {
  padding: 0 4px 14px;
}

.facet-options {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.facet-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 2px;
  color: var(--color-text-muted);
  font-size: 13px;
  cursor: pointer;
}

.facet-option:hover {
  color: var(--color-text-main);
}

.facet-option.is-empty {
  opacity: 0.45;
}

.facet-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.facet-check {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--color-border-hover);
  border-radius: 4px;
  background: #ffffff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.facet-option input:checked + .facet-check {
  border-color: #181614;
  background: #181614 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.facet-option input:focus-visible + .facet-check {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.facet-option input:checked ~ .facet-label {
  color: var(--color-text-main);
  font-weight: 500;
}

.facet-swatch {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.facet-label {
  flex: 1;
  min-width: 0;
}

.facet-count {
  color: var(--color-text-light);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.price-slider {
  position: relative;
  height: 28px;
  margin: 4px 8px 0;
}

.price-slider-track,
.price-slider-range {
  position: absolute;
  top: 50%;
  height: 4px;
  border-radius: 2px;
  transform: translateY(-50%);
}

.price-slider-track {
  left: 0;
  right: 0;
  background: var(--color-border);
}

.price-slider-range {
  left: 0;
  right: 0;
  background: #181614;
}

.price-slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-slider-input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #181614;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
  cursor: grab;
  -webkit-appearance: none;
}

.price-slider-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #181614;
  border-radius: 50%;
  background: #ffffff;
  pointer-events: auto;
  cursor: grab;
}

.price-slider-input::-moz-range-track {
  background: none;
}

.price-facet-values {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--color-text-main);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.side-link {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--color-text-muted);
  font: 500 13px var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.side-link:hover {
  background: #f7f4ef;
  color: var(--color-text-main);
}

.side-link.active {
  background: #181614;
  color: #ffffff;
}

.side-link-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-link-count {
  color: var(--color-text-light);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.side-link.active .side-link-count {
  color: rgba(255, 255, 255, 0.65);
}

.side-link-off {
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: #c85a54;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 600;
}

.side-link-sale .side-link-label {
  color: #b04b45;
  font-weight: 600;
}

.side-link-sale.active .side-link-label {
  color: #ffffff;
}

.sidebar-note {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.sidebar-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text-main);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
}

.sidebar-note p {
  margin: 0 0 12px;
}

.sidebar-note .btn-sub-action {
  width: 100%;
}

.btn-sub-action .wa-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* FILTROS ATIVOS ACIMA DA VITRINE */
.active-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: -8px 0 22px;
}

.active-filters[hidden] {
  display: none;
}

.active-filters-label {
  color: var(--color-text-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.active-filter-tag {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-main);
  font: 500 12px var(--font-sans);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.active-filter-tag span {
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1;
}

.active-filter-tag:hover {
  border-color: #c85a54;
  color: #b04b45;
}

.active-filter-tag:hover span {
  color: #b04b45;
}

.active-filters-reset {
  border: 0;
  background: none;
  color: var(--color-text-light);
  font: 500 11.5px var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.active-filters-reset:hover {
  color: var(--color-text-main);
}

/* FILTER & SEARCH BAR */
.controls-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-sort-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
  padding-bottom: 18px;
}

.search-box svg {
  position: absolute;
  left: 16px;
  top: 21px;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  fill: var(--color-text-light);
}

.search-input {
  width: 100%;
  padding: 12px 104px 12px 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 400;
  outline: none;
  transition: all 0.25s ease;
  background: #fdfcfb;
  color: var(--color-text-main);
}

.search-button {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 88px;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-dark);
  color: #ffffff;
  font: 600 12px var(--font-sans);
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-button:hover {
  background: #352f2a;
}

.search-button:active {
  transform: scale(0.97);
}

.search-button:focus-visible {
  outline: 2px solid var(--color-gold-dark);
  outline-offset: 2px;
}

.search-input:focus {
  border-color: var(--color-gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(203, 176, 133, 0.15);
}

.search-helper {
  position: absolute;
  left: 18px;
  bottom: 0;
  color: var(--color-text-muted);
  font-size: 10.5px;
  letter-spacing: 0.01em;
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.sort-select {
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: #ffffff;
  color: var(--color-text-main);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.sort-select:focus {
  border-color: var(--color-gold);
}

.results-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--color-text-muted);
  padding-top: 12px;
  border-top: 1px solid #f6f3ee;
}

/* PRODUCT GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 22px;
}

/* No computador a vitrine segue o número de colunas configurado no painel
   (padrão 4), mas cada cartão nunca fica menor que 270px: em telas mais
   estreitas o grid cai para menos colunas em vez de encolher foto e botões. */
@media (min-width: 1200px) {
  .catalog-layout {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 28px;
  }
  .products-grid {
    grid-template-columns: repeat(
      auto-fill,
      minmax(max(270px, calc((100% - (var(--catalog-columns) - 1) * 22px) / var(--catalog-columns))), 1fr)
    );
    gap: 22px;
  }
}

/* PRODUCT CARD - SOFT & DELICATE */
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

/* A foto ocupa a área inteira: o fundo branco das fotos dos óculos vai de
   ponta a ponta, sem moldura bege. Uma linha fina no vermelho da AC separa a
   foto do texto. */
.card-img-wrapper {
  background: #ffffff;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-bottom: 1px solid var(--color-ac-red);
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

/* Selos sempre por cima da foto, inclusive no zoom ao passar o mouse. */
.card-img-wrapper > div {
  z-index: 2;
}

.product-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.badge-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #c85a54;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.badge-gallery-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(24, 22, 20, 0.55);
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-cat {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text-main);
  line-height: 1.35;
  margin-bottom: 12px;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  cursor: pointer;
  transition: color 0.2s;
}

.card-title:hover {
  color: var(--color-gold-dark);
}

.card-pricing {
  margin-top: auto;
  margin-bottom: 14px;
}

.price-strike {
  font-size: 11.5px;
  color: var(--color-text-light);
  text-decoration: line-through;
  display: block;
}

.price-main {
  font-size: 21px;
  font-weight: 600;
  color: #1a1816;
  letter-spacing: -0.3px;
}

.badge-4x {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-wa-light);
  border: 1px solid var(--color-wa-border);
  color: #0d6333;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

/* CARD ACTIONS */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-primary-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-wa);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary-wa:hover {
  background: var(--color-wa-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.35);
}

.btn-primary-wa svg {
  width: 17px;
  height: 17px;
  fill: #ffffff;
  flex-shrink: 0;
}

.card-secondary-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.btn-sub-action {
  background: #fbf9f6;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-sub-action:hover {
  background: #f3efe8;
  color: var(--color-text-main);
  border-color: var(--color-border-hover);
}

/* PAGINATION / LOAD MORE */
.pagination-wrap {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-load-more {
  background: linear-gradient(135deg, #3b3530 0%, #6b6057 100%);
  color: #ffffff;
  border: none;
  padding: 13px 36px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  box-shadow: var(--shadow-sm);
}

.btn-load-more:hover {
  background: linear-gradient(135deg, #2f2a26 0%, #5a5048 100%);
  transform: translateY(-2px);
}

/* FLOATING BAR (WHEN CART HAS ITEMS) */
.floating-cart-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #181614;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 900;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255,255,255,0.1);
  max-width: 90%;
}

.floating-cart-bar.active {
  transform: translateX(-50%) translateY(0);
}

.floating-cart-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
}

.floating-cart-btn {
  background: var(--color-wa);
  color: #ffffff;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}

.floating-cart-btn:hover {
  background: var(--color-wa-hover);
}

/* FLOATING WHATSAPP BUTTON
   Fica empilhado logo acima do botão do chat Fale conosco, alinhado pelo centro. */
.floating-wa-btn {
  position: fixed;
  bottom: 84px;
  right: 22px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 850;
  text-decoration: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
  transition: transform 0.25s;
}

.floating-wa-btn:hover {
  transform: scale(1.06);
}

.floating-wa-btn img {
  width: 100%;
  height: 100%;
  display: block;
}

/* CHAT FALE CONOSCO */
.chatbot-launcher {
  position: fixed;
  bottom: 22px;
  right: 20px;
  z-index: 860;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.chatbot-launcher-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid #ffffff;
  transition: transform 0.25s;
}

.chatbot-launcher:hover .chatbot-launcher-avatar {
  transform: scale(1.06);
}

.chatbot-launcher-label {
  background: #181614;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.chatbot.open .chatbot-launcher {
  display: none;
}

body:has(.chatbot.open) .floating-wa-btn {
  display: none;
}

.chatbot-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1900;
  width: min(370px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 40px));
  height: min(560px, calc(100dvh - 40px));
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--color-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-panel[hidden] {
  display: none;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  background: #181614;
  color: #ffffff;
}

.chatbot-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
  flex-shrink: 0;
}

.chatbot-header-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

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

.chatbot-header-info span {
  font-size: 12px;
  opacity: 0.75;
}

.chatbot-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-bg);
}

.chatbot-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.chatbot-msg a {
  color: inherit;
  text-decoration: underline;
}

.chatbot-msg.bot {
  align-self: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
}

.chatbot-msg.user {
  align-self: flex-end;
  background: #181614;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chatbot-msg.typing {
  color: var(--color-text-muted);
  font-style: italic;
}

.chatbot-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-self: stretch;
}

.chatbot-product {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  font-family: inherit;
  color: var(--color-text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chatbot-product:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.chatbot-product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius-sm);
}

.chatbot-product-name {
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chatbot-product-price {
  font-size: 13px;
  font-weight: 700;
  margin-top: 3px;
}

.chatbot-product-installment {
  font-size: 11px;
  color: var(--color-text-muted);
}

.chatbot-whatsapp {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-start;
  width: 85%;
}

.chatbot-whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-full);
  background: var(--color-wa);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.chatbot-whatsapp-btn:hover {
  background: var(--color-wa-hover);
}

.chatbot-whatsapp-btn img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.chatbot-quick {
  display: flex;
  gap: 6px;
  padding: 8px 12px 0;
  overflow-x: auto;
  background: var(--color-bg);
  scrollbar-width: none;
}

.chatbot-quick[hidden] {
  display: none;
}

.chatbot-quick button {
  flex-shrink: 0;
  border: 1px solid var(--color-border-hover);
  background: var(--color-surface);
  color: var(--color-text-main);
  border-radius: var(--radius-full);
  padding: 6px 11px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

.chatbot-quick button:hover {
  border-color: #181614;
}

.chatbot-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  background: var(--color-bg);
}

.chatbot-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-full);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--color-surface);
  outline: none;
}

.chatbot-form input:focus {
  border-color: #181614;
}

.chatbot-form button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #181614;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.chatbot-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

@media (max-width: 600px) {
  .chatbot-launcher-label {
    font-size: 11.5px;
    padding: 6px 10px;
  }

  .chatbot-panel {
    right: 12px;
    bottom: 12px;
    width: min(330px, calc(100vw - 24px));
    height: min(460px, 68vh);
    height: min(460px, 68dvh);
  }

  .chatbot-header {
    padding: 9px 10px 9px 12px;
  }

  .chatbot-header-avatar {
    width: 34px;
    height: 34px;
  }

  .chatbot-header-info strong {
    font-size: 14px;
  }

  .chatbot-close {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .chatbot-messages {
    padding: 10px;
    gap: 8px;
  }

  .chatbot-msg {
    font-size: 13px;
  }

  .chatbot-products {
    gap: 6px;
  }

  .chatbot-product img {
    aspect-ratio: 4 / 3;
  }

  .chatbot-form {
    padding: 8px 10px 10px;
  }

  /* 16px evita o zoom automático do iOS ao tocar no campo */
  .chatbot-form input {
    font-size: 16px;
    padding: 8px 12px;
  }

  .chatbot-form button {
    width: 36px;
    height: 36px;
  }
}

/* MODAL / DRAWER SYSTEM */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(24, 22, 20, 0.55);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #fbf9f6;
  border: 1px solid var(--color-border);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--color-text-muted);
}

.modal-close:hover {
  background: #ede8e1;
  color: var(--color-text-main);
}

/* WHATSAPP STORE CHOICE */
.whatsapp-choice-modal {
  max-width: 470px;
  gap: 24px;
  overflow: hidden;
}

.whatsapp-choice-modal::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--color-wa-dark), var(--color-wa));
}

.whatsapp-choice-heading {
  padding-right: 42px;
}

.whatsapp-choice-kicker {
  display: block;
  color: var(--color-wa-dark);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.whatsapp-choice-heading h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

.whatsapp-choice-heading p {
  color: var(--color-text-muted);
  font-size: 13.5px;
  margin-top: 7px;
}

.whatsapp-store-list {
  display: grid;
  gap: 12px;
}

.whatsapp-store-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  color: var(--color-text-main);
  text-decoration: none;
  background: var(--color-wa-light);
  border: 1px solid var(--color-wa-border);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-store-card:hover,
.whatsapp-store-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-wa);
  box-shadow: var(--shadow-md);
  outline: none;
}

.whatsapp-store-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--color-wa-dark);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
}

.whatsapp-store-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.whatsapp-store-info strong {
  font-size: 14px;
  font-weight: 600;
}

.whatsapp-store-info small {
  color: var(--color-text-muted);
  font-size: 12.5px;
}

.whatsapp-store-arrow {
  color: var(--color-wa-dark);
  font-size: 22px;
  transition: transform 0.2s ease;
}

.whatsapp-store-card:hover .whatsapp-store-arrow,
.whatsapp-store-card:focus-visible .whatsapp-store-arrow {
  transform: translateX(3px);
}

/* GALLERY IN MODAL */
.modal-gallery-main {
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbf9f6;
  border-radius: var(--radius-md);
  padding: 16px;
}

.modal-gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 0;
}

.modal-thumb {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background: #fbf9f6;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.modal-thumb.active {
  border-color: var(--color-gold);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* CART DRAWER / MODAL */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 6px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fdfcfb;
}

.cart-item-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius-sm);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-top: 2px;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-qty {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: #ffffff;
  font-weight: 500;
  cursor: pointer;
}

.cart-summary-box {
  background: #fbf9f6;
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--color-border);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}

.summary-total {
  font-size: 19px;
  font-weight: 600;
  border-top: 1px dashed var(--color-border);
  padding-top: 10px;
}

.summary-installment {
  color: #0d6333;
  font-weight: 500;
  font-size: 13px;
  text-align: right;
}

/* TOAST NOTIFICATION */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #181614;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER COM OS DADOS DE CONTATO */
.site-footer {
  background: var(--footer-bg);
  /* Degradê esfumaçado: a cor do rodapé sai mais clara no alto e ganha
     manchas suaves de luz dourada, em vez de um preto chapado */
  background:
    radial-gradient(ellipse 55% 70% at 12% 0%, rgba(203, 176, 133, 0.2), transparent 70%),
    radial-gradient(ellipse 50% 60% at 92% 100%, rgba(255, 255, 255, 0.07), transparent 70%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--footer-bg) 62%, #9a8c7c) 0%,
      color-mix(in srgb, var(--footer-bg) 78%, #7a6e62) 55%,
      color-mix(in srgb, var(--footer-bg) 88%, #5e554c) 100%);
  color: var(--footer-text);
  padding: 52px 24px 28px;
  font-size: 13px;
  border-top: 1px solid rgba(203, 176, 133, 0.35);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 2fr 1fr;
  gap: 36px;
}

/* Os endereços das duas lojas ficam sempre lado a lado */
.footer-stores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--footer-title);
}

.footer-logo {
  display: block;
  height: 84px;
  width: auto;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 12px;
}

.footer-desc {
  max-width: 320px;
  line-height: 1.6;
  font-weight: 300;
}

.footer-contact {
  color: var(--color-gold);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(203, 176, 133, 0.4);
}

.footer-contact:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #2e2925;
  font-size: 11.5px;
  color: #8e877e;
  text-align: center;
}

/* Acesso ao painel da administração: só um pontinho vermelho ao lado do texto
   do rodapé, para a cliente não confundir com a conta dela. */
.creator-access-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--color-ac-red);
  vertical-align: middle;
  opacity: 0.85;
}

.creator-access-dot:hover {
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(194, 52, 31, 0.25);
}

/* NOSSAS LOJAS (PÁGINA INICIAL) */
.footer-stores-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.store-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.store-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.store-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.store-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-main);
  margin: 0 0 8px 0;
}

.store-address {
  margin: 0 0 6px 0;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.store-ref {
  margin: 0 0 14px 0;
  line-height: 1.5;
  font-size: 12px;
  color: var(--color-text-light);
}

.store-map {
  margin-top: auto;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.store-map:hover {
  color: var(--color-text-main);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-stores {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 600px) {
  .footer-stores-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

/* RESPONSIVE: A LATERAL VIRA UM PAINEL RECOLHÍVEL */
@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .catalog-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    margin-right: 0;
  }
  .sidebar-toggle {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    color: var(--color-text-main);
    font: 600 12px var(--font-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .sidebar-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--color-text-light);
    transition: transform 0.25s ease;
  }
  .sidebar-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }
  .sidebar-panels {
    display: none;
    margin-top: 12px;
  }
  .sidebar-panels.open {
    display: grid;
  }
  .sidebar-nav {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 4px;
  }
  .sidebar-nav-scroll {
    max-height: 260px;
    overflow: auto;
  }
  .sidebar-note {
    grid-column: 1 / -1;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-wrapper {
    padding-right: 12px;
    padding-left: 12px;
  }
  .controls-card {
    padding: 14px;
  }
  /* No celular a faixa do topo fica só com o parcelamento, em uma linha */
  .top-bar > span:nth-child(-n+4) {
    display: none;
  }
  /* No celular: logo e ícones na primeira linha, busca embaixo e o menu
     corre de lado, como na loja oficial. */
  .header-container {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
    padding: 8px 12px 0;
  }
  .logo-img {
    height: 48px;
  }
  .header-center {
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: stretch;
    gap: 4px;
  }
  .header-search {
    max-width: none;
  }
  .header-search-input {
    height: 40px;
    font-size: 16px;
  }
  .header-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding: 0 2px;
    scrollbar-width: none;
  }
  .header-nav::-webkit-scrollbar {
    display: none;
  }
  .header-nav-link {
    padding: 8px 0;
  }
  .header-actions {
    gap: 0;
  }
  .header-icon-btn {
    width: 36px;
    height: 36px;
  }
  .header-icon-btn svg {
    width: 22px;
    height: 22px;
  }
  .home-wrapper {
    padding: 24px 12px 56px;
    gap: 32px;
  }
  .home-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-section-title {
    font-size: 22px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .footer-stores {
    grid-row: auto;
    gap: 16px;
  }
  .search-sort-row {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    display: grid;
    gap: 8px;
    flex: none;
    width: 100%;
    min-width: 0;
    padding-bottom: 0;
  }
  .search-box svg {
    display: none;
  }
  .search-input {
    min-width: 0;
    height: 50px;
    padding: 12px 18px;
    font-size: 16px;
  }
  .search-button {
    display: none;
  }
  .search-helper {
    position: static;
    padding-left: 18px;
  }
  .sort-box {
    width: 100%;
  }
  .sort-select {
    flex: 1;
    min-width: 0;
  }
  .hero-banner {
    max-height: 210px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .sidebar-nav {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .sidebar-block {
    padding: 14px 12px;
  }
  .active-filters {
    margin: -4px 0 16px;
  }
  .card-img-wrapper {
    height: 165px;
    padding: 0;
  }
  .card-body {
    padding: 12px;
  }
  .card-title {
    font-size: 13px;
    height: 36px;
    margin-bottom: 8px;
  }
  .price-main {
    font-size: 18px;
  }
  .badge-4x {
    font-size: 10px;
    padding: 2px 8px;
  }
  .btn-primary-wa {
    font-size: 11.5px;
    padding: 8px 12px;
  }
  .card-secondary-btns {
    grid-template-columns: 1fr;
  }
  .creator-backdrop {
    padding: 0;
  }
  .creator-panel {
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .creator-login-view,
  .creator-dashboard-view {
    padding: 54px 18px 24px;
  }
  .creator-dashboard-head {
    padding-right: 36px;
  }
  .creator-layout {
    grid-template-columns: 1fr;
  }
  .creator-field-row {
    grid-template-columns: 1fr;
  }
  .creator-list-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .creator-list-tools input {
    width: 100%;
  }
  .creator-product-row {
    grid-template-columns: auto 52px 1fr;
  }
  .creator-stock {
    grid-column: 1 / -1;
    grid-template-columns: auto auto 1fr auto;
    justify-items: start;
  }
  .creator-row-actions {
    grid-column: 1 / -1;
  }
  .creator-row-actions button {
    flex: 1;
  }
}


/* PAINEL: ABAS */
.creator-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #f3eee7;
}

.creator-tabs button {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #77695c;
  font: 600 10px var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.creator-tabs button:hover {
  color: var(--color-text-main);
}

.creator-tabs button.active {
  background: #fff;
  color: var(--color-text-main);
  box-shadow: var(--shadow-sm);
}

.creator-tab-panel[hidden] {
  display: none;
}

/* PAINEL: VISITANTES */
.creator-visits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.creator-visits-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.creator-visits-label {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creator-visits-value {
  color: var(--color-text-main);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.creator-visits-sub {
  color: var(--color-text-light);
  font-size: 11px;
}

.creator-visits-chart-card {
  margin: 12px 0 16px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.creator-visits-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 13px;
}

.creator-visits-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.creator-visits-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border-radius: 2px;
}

.creator-visits-legend .is-visitors,
.creator-visits-bar .is-visitors {
  background: var(--color-gold-dark);
}

.creator-visits-legend .is-views,
.creator-visits-bar .is-views {
  background: #eadfcd;
}

.creator-visits-chart {
  display: flex;
  align-items: stretch;
  gap: 3px;
  height: 160px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.creator-visits-bar {
  position: relative;
  flex: 1;
  min-width: 0;
}

.creator-visits-bar span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 2px 2px 0 0;
}

.creator-visits-bar em {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-light);
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

/* PAINEL: FILTROS, SELEÇÃO E AÇÕES EM LOTE */
.creator-filter-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.creator-filter-row > label:first-child {
  flex: 1;
  min-width: 180px;
}

.creator-inline-check {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  color: var(--color-text-light);
  font-size: 10px;
  cursor: pointer;
}

.creator-inline-check input {
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--color-gold-dark);
  cursor: pointer;
}

.creator-inline-check small {
  display: block;
  color: var(--color-text-light);
  font-size: 9px;
  font-weight: 400;
}

.creator-bulk-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #eee8e0;
  border-radius: 12px;
  background: #fbf8f4;
}

.creator-bulk-info {
  display: flex;
  gap: 10px;
  align-items: center;
}

.creator-bulk-info strong {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.creator-bulk-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.creator-bulk-actions input,
.creator-bulk-actions select {
  width: auto;
  min-width: 96px;
  height: 38px;
}

.creator-bulk-actions select {
  background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px;
}

.creator-compact-btn {
  padding: 10px 16px;
}

.creator-bulk-bar .creator-message {
  flex-basis: 100%;
}

.creator-row-check {
  width: 17px;
  height: 17px;
  accent-color: var(--color-gold-dark);
  cursor: pointer;
}

.creator-discount-tag {
  justify-self: start;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--color-danger-light);
  color: var(--color-danger);
  font-size: 9px;
  font-weight: 600;
}

.creator-help-text {
  margin: 0;
  color: var(--color-text-light);
  font-size: 10px;
  line-height: 1.6;
}

/* PAINEL: CATEGORIAS E DESCONTOS ATIVOS */
.creator-categories-list {
  display: grid;
  gap: 8px;
  max-height: 590px;
  overflow: auto;
  padding-right: 4px;
}

.creator-category-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eee8e0;
  border-radius: 12px;
  background: #fff;
}

.creator-delete-box {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px dashed #e5dcd0;
  color: var(--color-danger);
  font-size: 10px;
  font-weight: 600;
}

.creator-delete-box select {
  width: auto;
  min-width: 150px;
  height: 36px;
  background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px;
}

.creator-delete-box button {
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: #f3eee7;
  color: #65594d;
  font: 600 9px var(--font-sans);
  cursor: pointer;
}

.creator-delete-box button.danger {
  background: var(--color-danger);
  color: #fff;
}

.creator-checkbox-list {
  display: grid;
  gap: 4px;
  max-height: 190px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #ded5ca;
  border-radius: 10px;
  background: #fff;
}

.creator-checkbox-list[hidden] {
  display: none;
}

/* VITRINE: CABEÇALHO DOS GRUPOS DE MODELO */
.model-group-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  padding-bottom: 10px;
  margin-top: 8px;
  border-bottom: 1px solid var(--color-border);
}

.model-group-head:first-child {
  margin-top: 0;
}

.model-group-kicker {
  display: block;
  color: var(--color-text-light);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.model-group-title {
  margin: 3px 0 0;
  font: 400 21px var(--font-serif);
  color: var(--color-text-main);
}

.model-group-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--color-text-light);
  font-size: 11px;
}

.model-group-meta .btn-sub-action {
  padding: 7px 13px;
}

/* VITRINE: CONTAGEM REGRESSIVA DA OFERTA */
.badge-timer {
  margin-top: 7px;
  padding: 4px 9px;
  border-radius: 7px;
  background: #fdf1f0;
  color: #a8443f;
  font-size: 10.5px;
  font-weight: 600;
}

.modal-discount-line {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}

.badge-discount-inline {
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: #c85a54;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .creator-tabs button {
    min-width: 0;
    padding: 10px 8px;
    font-size: 9px;
  }
  .creator-bulk-actions,
  .creator-bulk-actions input,
  .creator-bulk-actions select {
    width: 100%;
  }
  .creator-category-row {
    grid-template-columns: 1fr;
  }
  .model-group-title {
    font-size: 18px;
  }
}

/* ==========================================================================
   COLEÇÃO NEW IN
   Destaque fixo das novidades sincronizadas com a loja oficial: faixa no topo
   da vitrine, selo no cartão e link marcado na lateral.
   ========================================================================== */

.new-in-showcase {
  margin-bottom: 28px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid #e7dcc6;
  background: linear-gradient(135deg, var(--color-gold-light) 0%, #ffffff 55%, var(--color-rose-light) 100%);
  box-shadow: var(--shadow-sm);
}

.new-in-showcase[hidden] {
  display: none;
}

.new-in-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.new-in-kicker {
  display: block;
  color: var(--color-gold-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.new-in-title {
  margin: 2px 0 4px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--color-text-main);
}

.new-in-subtitle {
  color: var(--color-text-muted);
  font-size: 13px;
}

.btn-new-in-all {
  flex-shrink: 0;
  padding: 10px 18px;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #3b3530 0%, #6b6057 100%);
  color: #ffffff;
  font: 600 12px var(--font-sans);
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-new-in-all:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
}

/* Trilho horizontal: a coleção inteira fica a uma rolagem de distância, sem
   empurrar a vitrine para baixo. */
.new-in-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.new-in-rail::-webkit-scrollbar {
  height: 6px;
}

.new-in-rail::-webkit-scrollbar-thumb {
  border-radius: var(--radius-full);
  background: #e0d6c5;
}

.new-in-card {
  flex: 0 0 158px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.new-in-card:hover,
.new-in-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  outline: none;
}

.new-in-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-bottom: 1px solid var(--color-ac-red);
}

.new-in-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.new-in-card-off {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: #c85a54;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 600;
}

.new-in-card-body {
  display: grid;
  gap: 2px;
  padding: 10px 12px 12px;
}

.new-in-card-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.new-in-card-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
}

.new-in-card-inst {
  font-size: 10.5px;
  color: var(--color-text-light);
}

.new-in-more {
  flex: 0 0 110px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  border: 1px dashed var(--color-gold);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-gold-dark);
  cursor: pointer;
  font-family: var(--font-sans);
}

.new-in-more span {
  font-size: 20px;
  font-weight: 600;
}

.new-in-more small {
  font-size: 10.5px;
  color: var(--color-text-muted);
}

.new-in-more:hover {
  background: #ffffff;
}

/* Selo do cartão na vitrine principal: fica à esquerda para não disputar
   espaço com o selo de desconto. */
.badge-new-in {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: #181614;
  color: var(--color-gold);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Link fixo da lateral */
.side-link-newin .side-link-label {
  color: var(--color-gold-dark);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.side-link-newin.active .side-link-label {
  color: var(--color-gold);
}

@media (max-width: 768px) {
  .new-in-showcase {
    padding: 18px 14px;
    margin-bottom: 20px;
  }
  .new-in-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .new-in-title {
    font-size: 22px;
  }
  .btn-new-in-all {
    width: 100%;
  }
  .new-in-card {
    flex-basis: 140px;
  }
}

/* O e-mail do SAC é longo e pode quebrar em telas estreitas */
.footer-email {
  overflow-wrap: anywhere;
}

/* ==========================================================================
   GERENCIADOR DO SITE: SEÇÕES, BLOCOS E PRODUTOS ESGOTADOS
   ========================================================================== */

.site-section-off,
.top-bar[hidden],
.site-footer[hidden],
.home-section-subtitle[hidden],
.home-section-kicker[hidden],
.home-section-title[hidden],
.btn-new-in-all[hidden] {
  display: none !important;
}

.hero-link {
  display: block;
}

.hero-link.is-inert {
  pointer-events: none;
}

.hero-title picture {
  display: block;
}

.home-section-subtitle {
  margin-top: 6px;
  max-width: 620px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ESGOTADO */
.badge-sold-out {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: #23211f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.badge-sold-out.is-inline {
  position: static;
  display: inline-block;
  margin-bottom: 8px;
}

.product-card.is-sold-out .card-img-wrapper img,
.new-in-card.is-sold-out .new-in-card-img img {
  filter: grayscale(0.85);
  opacity: 0.55;
}

.product-card.is-sold-out .price-main,
.product-card.is-sold-out .badge-4x {
  opacity: 0.55;
}

.btn-primary-wa.is-sold-out {
  background: var(--color-dark);
  box-shadow: none;
}

.product-card .btn-sub-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* DICAS DA LYSIAN E BLOCOS DE INSTAGRAM */
/* Carrossel em uma linha só: os posts rolam para os lados pelas setas ou
   arrastando no celular */
.site-instagram-carousel {
  position: relative;
}

.site-instagram-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}

.site-instagram-grid::-webkit-scrollbar {
  display: none;
}

.site-instagram-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text-main);
  font: 400 30px/1 var(--font-sans);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-instagram-arrow:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #ffffff;
}

.site-instagram-arrow.is-prev { left: -14px; }
.site-instagram-arrow.is-next { right: -14px; }

.site-instagram-post {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 260px;
  scroll-snap-align: start;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.site-instagram-post iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
  background: #fff;
}

.site-instagram-post figcaption {
  padding: 10px 14px 14px;
  color: var(--color-text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.site-instagram-follow {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* BLOCOS CRIADOS NO PAINEL */
.site-block {
  --block-bg: transparent;
  --block-text: var(--color-text-main);
  color: var(--block-text);
  width: 100%;
  margin: 0 auto;
}

.site-block.is-narrow { max-width: 760px; }
.site-block.is-wide { max-width: 100%; }
.site-block.is-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.site-block.is-align-left { text-align: left; }
.site-block.is-align-center { text-align: center; }
.site-block.is-align-right { text-align: right; }

.site-block.has-bg:not(.site-block-banner) {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--block-bg);
}

.site-block.is-full.has-bg:not(.site-block-banner) {
  border-radius: 0;
}

.site-block .home-section-title,
.site-block .home-section-kicker {
  color: inherit;
}

.site-block .home-section-kicker {
  opacity: 0.8;
}

.site-block-body {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.site-block-body p + p {
  margin-top: 10px;
}

.site-block-image figure {
  margin: 0;
}

.site-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.site-block.is-full.site-block-image img {
  border-radius: 0;
}

.site-block-image figcaption {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 12.5px;
}

.site-banner {
  display: flex;
  align-items: center;
  min-height: 300px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background-color: var(--block-bg);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.site-block.is-full .site-banner {
  border-radius: 0;
}

.site-block.is-align-center .site-banner { justify-content: center; }
.site-block.is-align-right .site-banner { justify-content: flex-end; }

.site-banner-content {
  max-width: 520px;
}

.site-banner-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.15;
}

.site-block-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: var(--color-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.site-block-btn:hover {
  background: var(--color-gold-dark);
}

.site-block-banner .site-block-btn {
  background: var(--color-gold);
  color: #181614;
}

@media (max-width: 768px) {
  .site-banner {
    min-height: 220px;
    padding: 26px;
  }
  .site-instagram-post iframe {
    height: 520px;
  }
  .site-instagram-post {
    flex-basis: 82%;
    min-width: 0;
  }
  .site-instagram-arrow {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }
  .site-instagram-arrow.is-prev { left: 4px; }
  .site-instagram-arrow.is-next { right: 4px; }
}

/* PAINEL: ABA SITE */
.site-editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 16px 20px;
  border: 1px solid #e5ddd2;
  border-radius: 16px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.site-editor-bar > div:first-child {
  display: grid;
  gap: 2px;
  max-width: 480px;
}

.site-editor-bar span {
  color: var(--color-text-muted);
  font-size: 11px;
}

.site-editor {
  display: grid;
  gap: 12px;
}

.site-editor-group {
  border: 1px solid #e5ddd2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.site-editor-group summary {
  padding: 16px 20px;
  font-family: var(--font-serif);
  font-size: 17px;
  cursor: pointer;
  list-style-position: inside;
}

.site-editor-group-body {
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
}

.site-editor-group-body hr {
  border: 0;
  border-top: 1px dashed #e5dcd0;
}

.site-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.creator-panel .site-color-field input[type="color"] {
  height: 40px;
  padding: 3px;
  cursor: pointer;
}

.site-optcolor {
  display: flex;
  align-items: center;
  gap: 8px;
}

.creator-panel .site-optcolor input[type="color"] {
  width: 70px;
}

.creator-panel input[type="range"] {
  height: 30px;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--color-gold-dark);
}

.site-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.creator-panel .site-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.creator-panel .site-check input {
  width: 18px;
  height: 18px;
}

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

.site-section-item {
  border: 1px solid #eee8e0;
  border-radius: 12px;
  background: #fff;
}

.site-section-item.is-off {
  background: #f6f2ec;
}

.site-section-item.is-off .site-section-name strong {
  opacity: 0.55;
}

.site-section-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.site-section-name {
  display: grid;
  gap: 1px;
}

.site-section-name strong {
  font-size: 13px;
}

.site-section-name small {
  color: var(--color-text-light);
  font-size: 10px;
}

.site-section-fields {
  display: grid;
  gap: 12px;
  padding: 4px 14px 16px;
  border-top: 1px dashed #e5dcd0;
  padding-top: 14px;
}

.site-section-fields[hidden] {
  display: none;
}

.site-posts-check {
  margin-top: -6px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.site-add-block {
  display: flex;
  gap: 10px;
  align-items: center;
}

.site-add-block select {
  max-width: 260px;
}

/* GERENCIADOR: EDIÇÃO HTML */
.site-html-list {
  display: grid;
  gap: 12px;
}

.site-html-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #eee8e0;
  border-radius: 12px;
  background: #fff;
}

.site-html-block header,
.site-html-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-html-block header strong {
  font-size: 13px;
}

.site-html-shortcut {
  padding: 10px 12px;
  border: 1px dashed #d8cec1;
  border-radius: 10px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.site-html-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-html-actions .site-html-state {
  flex: 1 1 220px;
}

.site-html-state {
  color: var(--color-text-muted);
  font-size: 11px;
}

.site-html-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.site-html-uploads,
.site-html-viewer {
  display: grid;
  gap: 8px;
}

.site-html-uploads code,
.site-html-viewer code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f4efe8;
  font-size: 11px;
}

.site-html-viewer-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-html-viewer-bar select {
  max-width: 260px;
}

.site-html-viewer-bar input[type="search"] {
  flex: 1 1 200px;
}

.site-html-map {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--color-text-muted);
}

.site-html-map button {
  padding: 4px 10px;
  border: 1px solid #e5ddd2;
  border-radius: 999px;
  background: #faf7f3;
  color: #61584d;
  font: 600 10px var(--font-sans);
  cursor: pointer;
}

.site-html-map button:hover {
  border-color: var(--color-gold-dark);
}

.creator-panel textarea.site-html-source {
  min-height: 360px;
  font: 12px/18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
  overflow: auto;
  background: #1d1b19;
  color: #efe9df;
  tab-size: 2;
}

/* PAINEL: UPLOADS E EDITOR DE HTML */
.creator-panel label .creator-upload-field {
  display: flex;
  gap: 8px;
  align-items: center;
  color: inherit;
  font-size: inherit;
}

.creator-upload-field input {
  flex: 1;
  min-width: 0;
}

.creator-upload-btn {
  flex: none;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px dashed #cbb085;
  border-radius: 10px;
  background: #fbf7f1;
  color: #725c3d;
  font: 600 11px var(--font-sans);
  letter-spacing: 0.3px;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}

.creator-upload-btn:hover {
  background: #f4ecdf;
}

.creator-upload-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.creator-upload-btn-block {
  justify-self: start;
  margin-top: -6px;
}

.creator-panel .creator-html-field {
  display: grid;
  gap: 7px;
  color: #4d463e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.creator-panel .creator-html-field > span {
  color: #91877a;
  font-size: 9px;
  font-weight: 500;
  text-transform: none;
}

.creator-html-editor {
  overflow: hidden;
  border: 1px solid #ded5ca;
  border-radius: 10px;
  background: #fff;
  letter-spacing: 0;
  text-transform: none;
}

.creator-html-editor:focus-within {
  border-color: var(--color-gold-dark);
  box-shadow: 0 0 0 3px rgba(203, 176, 133, 0.18);
}

.creator-html-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid #ede6dc;
  background: #faf7f2;
}

.creator-html-toolbar button {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #4d463e;
  font: 500 12px var(--font-sans);
  cursor: pointer;
}

.creator-html-toolbar button:hover:not(:disabled) {
  border-color: #e0d5c6;
  background: #fff;
}

.creator-html-toolbar button:disabled {
  opacity: 0.35;
  cursor: default;
}

.creator-html-spacer {
  flex: 1;
}

.creator-html-toolbar .creator-html-mode {
  border-color: #e0d5c6;
  background: #fff;
  font-weight: 600;
}

.creator-html-visual {
  min-height: 160px;
  max-height: 460px;
  overflow-y: auto;
  padding: 12px 14px;
  outline: none;
  color: var(--color-text-main);
  font: 400 14px/1.6 var(--font-sans);
}

.creator-html-visual:empty::before {
  content: 'Escreva aqui...';
  color: #b3a898;
}

.creator-html-visual img,
.creator-html-visual video {
  max-width: 100%;
  height: auto;
}

.creator-html-visual h2 { font-size: 20px; margin: 10px 0 6px; }
.creator-html-visual h3 { font-size: 16px; margin: 8px 0 4px; }
.creator-html-visual p { margin: 0 0 8px; }
.creator-html-visual ul,
.creator-html-visual ol { margin: 0 0 8px; padding-left: 22px; }

.creator-panel .creator-html-editor textarea.creator-html-code {
  display: none;
  min-height: 220px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: 400 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.creator-html-editor.is-code .creator-html-visual {
  display: none;
}

.creator-panel .creator-html-editor.is-code textarea.creator-html-code {
  display: block;
}

.creator-html-status {
  padding: 0 12px;
  color: #725c3d;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
}

.creator-html-status:not(:empty) {
  padding: 6px 12px;
  border-top: 1px solid #ede6dc;
}

/* Bloco "HTML personalizado" do gerenciador do site */
.site-block-html .site-html-content {
  text-align: inherit;
}

.site-block-html .site-html-content img,
.site-block-html .site-html-content video {
  max-width: 100%;
  height: auto;
}

.site-block-html .site-html-content p {
  margin: 0 0 12px;
}

/* BANNER EM CARROSSEL */
.hero-carousel {
  position: relative;
}

.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  display: block;
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-slide picture {
  display: block;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #181614;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-carousel:hover .hero-arrow,
.hero-arrow:focus-visible {
  opacity: 1;
}

.hero-arrow:hover {
  background: #fff;
}

.hero-arrow.is-prev { left: 16px; }
.hero-arrow.is-next { right: 16px; }

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  line-height: 0;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 24px;
  background: #fff;
}

@media (hover: none) {
  .hero-arrow {
    display: none;
  }
}

/* Painel: lista de slides do banner */
.site-slide-list {
  display: grid;
  gap: 12px;
}

.site-slide-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  background: #fff;
}

.site-slide-thumb {
  width: 120px;
  aspect-ratio: 16 / 7;
  border-radius: 8px;
  background: #f1ede7 center / cover no-repeat;
}

.site-slide-fields {
  display: grid;
  gap: 10px;
}

.site-slide-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
}

.site-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  .site-slide-item {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-slide-thumb {
    width: 100%;
  }
}

/* ==========================================================================
   CHECKOUT PELO SITE
   ========================================================================== */
.checkout-open-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checkout-open-btn span {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.9;
}

.checkout-open-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.checkout-modal {
  max-width: 560px;
}

.checkout-heading h2 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 600;
}

.checkout-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checkout-form fieldset {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.checkout-form legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  min-width: 0;
}

.checkout-form label span {
  font-weight: 400;
  color: var(--color-text-light);
}

.checkout-form [hidden] {
  display: none !important;
}

.checkout-form input:not([type="radio"]),
.checkout-form select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text-main);
  box-sizing: border-box;
}

.checkout-form input:focus,
.checkout-form select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(203, 176, 133, 0.2);
}

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

.checkout-options {
  display: grid;
  gap: 8px;
}

.checkout-form .checkout-option {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.checkout-form .checkout-option:has(input:checked) {
  border-color: var(--color-gold);
  background: var(--color-gold-light);
}

.checkout-option input {
  accent-color: var(--color-gold-dark);
}

.checkout-options[hidden] {
  display: none;
}

.checkout-shipping-logo {
  width: 44px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.checkout-option strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
}

.checkout-option small {
  font-size: 12px;
  color: var(--color-text-muted);
}

.checkout-hint {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.checkout-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #fbf9f6;
  font-size: 13px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-text-muted);
}

.summary-line span:last-child {
  white-space: nowrap;
}

.summary-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-main);
}

.checkout-submit {
  padding: 15px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-text-main);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.checkout-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.checkout-message {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  text-align: center;
  color: var(--color-text-muted);
}

.checkout-message.error {
  color: var(--color-danger);
}

@media (max-width: 640px) {
  .checkout-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* PAINEL: HIPER & VENDAS */
.commerce-stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.commerce-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.commerce-import {
  margin-top: 16px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.commerce-import-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.commerce-import-heading strong {
  font-size: 14px;
  color: var(--color-text-main);
}

.commerce-import label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.commerce-import-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.commerce-card strong {
  font-size: 14px;
  color: var(--color-text-main);
}

.commerce-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: #f1eee9;
  color: var(--color-text-muted);
}

.commerce-badge.ok { background: var(--color-wa-light); color: var(--color-wa-dark); }
.commerce-badge.warn { background: var(--color-gold-light); color: var(--color-gold-dark); border: 1px solid var(--color-gold); }
.commerce-badge.error { background: var(--color-danger-light); color: var(--color-danger); }

.commerce-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.commerce-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.commerce-item small {
  display: block;
  color: var(--color-text-muted);
}

.commerce-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.creator-list-tools > .commerce-item-actions {
  display: flex;
  gap: 6px;
}

.commerce-item-actions input {
  width: 150px;
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12px;
}

/* Peças achadas na loja oficial para um item do Hiper sem vínculo. */
.commerce-store-auto {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.commerce-store-auto p {
  flex: 1 1 260px;
  margin: 0;
}

.commerce-store-results {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--color-border);
}

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

.commerce-store-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.commerce-store-card a {
  color: inherit;
  font-size: 12px;
}

@media (max-width: 640px) {
  .commerce-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .commerce-store-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .commerce-store-card button {
    grid-column: 1 / -1;
  }
}

/* PAINEL DO CRIADOR EM PÁGINA PRÓPRIA (/painel) */
body.creator-page {
  min-height: 100vh;
  background: #f7f3ed;
}

.creator-page-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 28px;
  border-bottom: 1px solid rgba(203, 176, 133, 0.4);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.creator-page-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-main);
  text-decoration: none;
}

.creator-page-brand img {
  width: auto;
  height: 42px;
}

.creator-page-brand span {
  font-family: var(--font-serif);
  font-size: 20px;
}

.creator-page-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.creator-page-links .creator-secondary-btn {
  text-decoration: none;
}

.creator-panel.creator-panel-page {
  width: 100%;
  max-width: 1480px;
  max-height: none;
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.creator-panel-page .creator-dashboard-head {
  padding-right: 0;
}

/* Botões de login no Hiper */
.hiper-login-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hiper-login-group[hidden] {
  display: none;
}

.hiper-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid #1f4f8a;
  border-radius: 999px;
  background: #1f4f8a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hiper-login-btn:hover {
  background: #173d6b;
  transform: translateY(-1px);
}

.hiper-login-btn small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.8;
  text-transform: uppercase;
}

.hiper-login-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: #1f4f8a;
  font-weight: 800;
}

.hiper-login-btn.is-compact {
  padding: 5px 12px 5px 5px;
  font-size: 11px;
}

.hiper-login-btn.is-compact .hiper-login-mark {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.hiper-login-btn.is-compact small {
  font-size: 9px;
}

/* Aba Vendas & Hiper: como a venda funciona, acesso ao Hiper e formas de pagamento */
.commerce-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.commerce-flow,
.commerce-hiper-access {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 18px;
  border: 1px solid #e5ddd2;
  border-radius: 16px;
  background: #fff;
  font-size: 13px;
  color: var(--color-text-muted);
}

.commerce-flow strong,
.commerce-hiper-access strong {
  color: var(--color-text-main);
  font-size: 14px;
}

.commerce-flow ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
}

.commerce-flow b {
  color: var(--color-text-main);
}

.commerce-providers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.commerce-provider {
  background: #fff;
}

.commerce-provider.is-active {
  border-color: var(--color-wa-border);
}

.commerce-provider code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f1eee9;
  font-size: 11px;
  word-break: break-all;
}

.commerce-provider .creator-inline-check {
  margin-top: 6px;
}

/* Aba Site: editor e prévia lado a lado */
.site-editor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.site-preview-pane {
  position: sticky;
  top: 76px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5ddd2;
  border-radius: 16px;
  background: #fff;
}

.site-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 6px;
  font-size: 13px;
}

.site-preview-head div {
  display: flex;
  gap: 12px;
}

.site-preview-frame {
  width: 100%;
  height: calc(100vh - 150px);
  min-height: 480px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
}

.site-editor-workspace.is-preview-mobile .site-preview-frame {
  width: min(390px, 100%);
}

.site-editor-workspace.is-preview-expanded {
  grid-template-columns: 1fr;
}

.site-editor-workspace.is-preview-expanded .site-editor {
  display: none;
}

.site-editor-workspace.is-preview-expanded .site-preview-pane {
  position: static;
}

@media (max-width: 1100px) {
  .site-editor-workspace,
  .commerce-intro {
    grid-template-columns: 1fr;
  }
  .site-preview-pane {
    position: static;
  }
  .site-preview-frame {
    height: 70vh;
  }
}

@media (max-width: 640px) {
  .creator-page-bar {
    padding: 10px 14px;
  }
  .creator-page-brand img {
    height: 34px;
  }
  .creator-page-brand span {
    font-size: 16px;
  }
}

/* ASSISTENTE IA DO PAINEL */
.ai-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.ai-bar-title {
  display: grid;
  gap: 2px;
}

.ai-bar-title span,
.ai-model span {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.ai-bar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ai-mode {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
}

.ai-mode button {
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ai-mode button.active {
  background: var(--color-text-main);
  color: #fff;
}

.ai-model {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ai-model select {
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  font: inherit;
  font-size: 0.85rem;
}

.ai-workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ai-workspace.has-draft {
  grid-template-columns: 240px minmax(0, 1fr) minmax(320px, 0.9fr);
}

.ai-workspace.is-preview-expanded {
  grid-template-columns: 1fr;
}

.ai-workspace.is-preview-expanded .ai-sidebar,
.ai-workspace.is-preview-expanded .ai-chat {
  display: none;
}

.ai-sidebar,
.ai-draft {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}

.ai-conversations {
  display: grid;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
}

.ai-conversation {
  display: flex;
  align-items: stretch;
  border-radius: 8px;
}

.ai-conversation.active,
.ai-conversation:hover {
  background: var(--color-gold-light);
}

.ai-conversation button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.ai-conversation button:first-child {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
  padding: 8px;
}

.ai-conversation button:first-child span {
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-conversation small {
  color: var(--color-text-light);
  font-size: 0.72rem;
}

.ai-conversation-delete {
  padding: 0 8px;
  color: var(--color-text-light);
  font-size: 1.1rem;
}

.ai-conversation-delete:hover {
  color: var(--color-danger);
}

.ai-memory,
.ai-history {
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
  font-size: 0.84rem;
}

.ai-memory summary,
.ai-history summary {
  font-weight: 600;
  cursor: pointer;
}

.ai-memory p {
  margin: 6px 0;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.ai-memory-form {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.ai-memory-form input {
  flex: 1;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
}

.ai-memory ul,
.ai-history ul {
  display: grid;
  gap: 6px;
  max-height: 260px;
  margin: 8px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.ai-memory li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--color-bg);
}

.ai-memory li span {
  flex: 1;
}

.ai-memory li button {
  border: 0;
  background: transparent;
  color: var(--color-text-light);
  cursor: pointer;
}

.ai-history li {
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--color-bg);
}

.ai-history li small {
  color: var(--color-text-light);
}

.ai-history li.is-undone span {
  color: var(--color-text-light);
  text-decoration: line-through;
}

.ai-history li .creator-link-btn {
  justify-self: start;
}

.ai-empty,
.ai-muted {
  color: var(--color-text-light);
  font-size: 0.82rem;
}

.ai-chat {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: calc(100vh - 210px);
  min-height: 520px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  overflow: hidden;
}

.ai-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  overflow-y: auto;
}

.ai-welcome {
  max-width: 560px;
  margin: auto;
  text-align: center;
}

.ai-welcome h3 {
  margin: 10px 0 6px;
}

.ai-welcome p {
  color: var(--color-text-muted);
  line-height: 1.55;
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.ai-suggestions button {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.ai-suggestions button:hover {
  border-color: var(--color-gold);
}

.ai-avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-rose));
  color: #fff;
  font-size: 0.9rem;
}

.ai-msg {
  max-width: 88%;
  line-height: 1.55;
  font-size: 0.92rem;
}

.ai-msg p {
  margin: 0 0 8px;
}

.ai-msg p:last-child {
  margin-bottom: 0;
}

.ai-msg ul,
.ai-msg ol {
  margin: 4px 0 8px;
  padding-left: 20px;
}

.ai-msg h4 {
  margin: 10px 0 6px;
  font-size: 0.95rem;
}

.ai-msg code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--color-bg);
  font-size: 0.85em;
}

.ai-msg pre {
  max-height: 280px;
  padding: 10px;
  border-radius: 8px;
  background: var(--color-bg);
  overflow: auto;
  font-size: 0.8rem;
}

.ai-msg a {
  color: var(--color-gold-dark);
}

.ai-msg-user {
  align-self: flex-end;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--color-text-main);
  color: #fff;
}

.ai-msg-user code {
  background: rgba(255, 255, 255, 0.15);
}

.ai-msg-assistant {
  display: flex;
  align-self: flex-start;
  gap: 10px;
}

.ai-msg-assistant > div {
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px 14px 14px 14px;
  background: var(--color-bg);
}

.ai-activity {
  margin-bottom: 8px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.ai-activity summary {
  cursor: pointer;
}

.ai-activity ul {
  margin: 4px 0 0;
}

.ai-typing {
  color: var(--color-text-muted);
}

.ai-typing i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 3px;
  border-radius: 50%;
  background: currentColor;
  animation: ai-typing 1.2s infinite ease-in-out;
}

.ai-typing i:nth-child(2) { animation-delay: 0.2s; }
.ai-typing i:nth-child(3) { animation-delay: 0.4s; }

@keyframes ai-typing {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.ai-composer {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.ai-composer textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.92rem;
  resize: vertical;
}

.ai-composer textarea:focus {
  border-color: var(--color-gold);
  outline: none;
}

.ai-composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ai-composer-actions span {
  flex: 1;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

/* Anexos da assistente: botão, arquivos prontos para enviar e arrastar e soltar */
.ai-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-main);
  font: inherit;
  cursor: pointer;
}

.ai-attach-btn:hover,
.ai-attach-btn:focus-visible {
  border-color: var(--color-gold);
  color: var(--color-gold);
  outline: none;
}

.ai-attach-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.ai-composer-actions .ai-attach-btn span {
  flex: none;
  color: inherit;
  font-size: 0.82rem;
}

.ai-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 6px 5px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg);
  font-size: 0.8rem;
  color: var(--color-text-main);
  text-decoration: none;
}

a.ai-file-chip:hover {
  border-color: var(--color-gold);
}

.ai-file-chip b {
  overflow: hidden;
  max-width: 220px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-file-chip small {
  color: var(--color-text-muted);
  white-space: nowrap;
}

.ai-file-chip.is-error {
  border-color: #c2341f;
  color: #c2341f;
}

.ai-file-chip.is-error small {
  color: inherit;
}

.ai-file-chip button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.ai-file-chip button:hover {
  background: rgba(0, 0, 0, 0.08);
}

.ai-file-progress {
  width: 46px;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-border);
}

.ai-file-progress i {
  display: block;
  height: 100%;
  background: var(--color-gold);
  transition: width 0.2s ease;
}

.ai-msg-files {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 6px;
}

.ai-msg-files + p:empty {
  display: none;
}

.ai-chat.is-dragging {
  outline: 2px dashed var(--color-gold);
  outline-offset: -6px;
}

.ai-draft {
  position: sticky;
  top: 12px;
}

.ai-draft-head {
  display: grid;
  gap: 2px;
}

.ai-draft-head span {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.ai-draft-body {
  max-height: 340px;
  overflow-y: auto;
  font-size: 0.82rem;
}

.ai-draft-body h5 {
  margin: 10px 0 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.ai-draft-notes {
  margin: 0 0 8px;
  padding-left: 18px;
}

.ai-draft-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-draft-item {
  padding: 8px;
  border-radius: 8px;
  background: var(--color-bg);
}

.ai-draft-item em {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--color-wa-light);
  color: var(--color-wa-dark);
  font-style: normal;
  font-size: 0.72rem;
}

.ai-draft-item ul {
  margin: 4px 0 0;
  padding-left: 16px;
}

.ai-draft-item li span {
  color: var(--color-text-muted);
}

.ai-draft-item li span::after {
  content: ": ";
}

.ai-draft-item s {
  color: var(--color-text-light);
}

.ai-draft-errors {
  padding: 8px;
  border-radius: 8px;
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.ai-draft-errors p {
  margin: 0;
}

.ai-draft-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ai-preview .site-preview-frame {
  height: calc(100vh - 260px);
}

.ai-preview.is-mobile .site-preview-frame {
  width: min(390px, 100%);
}

.ai-workspace.is-preview-expanded .ai-draft {
  position: static;
}

@media (max-width: 1100px) {
  .ai-workspace,
  .ai-workspace.has-draft {
    grid-template-columns: 1fr;
  }

  .ai-sidebar .ai-conversations {
    max-height: 180px;
  }

  .ai-chat {
    height: 70vh;
  }

  .ai-draft {
    position: static;
  }
}

/* PAINEL: LOJA DE APLICATIVOS */
.apps-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-gold-light), #fff);
}

.apps-hero > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 680px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.apps-hero strong {
  font-size: 18px;
  color: var(--color-text-main);
}

.apps-hero small {
  color: var(--color-gold-dark);
  font-weight: 600;
}

.apps-hero input {
  min-width: 240px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font: inherit;
  font-size: 13px;
}

.apps-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.apps-filter button {
  padding: 7px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--color-text-muted);
  font: 600 12px var(--font-sans);
  cursor: pointer;
}

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

.apps-group {
  margin-bottom: 22px;
}

.apps-group h4 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.app-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.app-card.is-installed {
  border-color: var(--color-wa-border);
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-card-head strong {
  display: block;
  font-size: 14px;
  color: var(--color-text-main);
}

.app-card-head small,
.app-card-foot small {
  display: block;
  font-size: 11px;
  color: var(--color-text-light);
}

.app-card-summary {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.app-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.app-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  font: 700 15px var(--font-sans);
  letter-spacing: -0.02em;
  overflow: hidden;
  white-space: nowrap;
}

.apps-dialog {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  padding: 22px;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 13px;
  color: var(--color-text-muted);
}

.apps-dialog::backdrop {
  background: rgba(35, 33, 31, 0.45);
}

.apps-dialog p {
  margin: 12px 0;
  line-height: 1.5;
}

.app-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-detail-head > div {
  flex: 1;
}

.app-detail-head h3 {
  margin: 0;
  font-size: 18px;
  color: var(--color-text-main);
}

.app-compat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--color-wa-light);
  color: var(--color-wa-dark);
}

.app-detail-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.app-detail-block > strong,
.app-compat strong {
  font-size: 13px;
  color: var(--color-text-main);
}

.app-detail-block ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
}

.app-detail-block label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}

.app-detail-block input:not([type="checkbox"]),
.app-detail-block textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--color-text-main);
  box-sizing: border-box;
}

.app-detail-block .creator-inline-check {
  flex-direction: row;
  align-items: center;
}

.app-copy > span {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.app-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.app-danger {
  color: var(--color-danger) !important;
}

/* ==========================================================================
   BOTÃO "COMPRAR" E TELA DE COMPRA (/checkout)
   ========================================================================== */
.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-dark);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-buy:hover {
  background: var(--color-gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.new-in-card-buy {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 11px;
}

.checkout-page-body {
  min-height: 100vh;
}

.checkout-page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.checkout-page-back {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}

.checkout-page-back:hover {
  color: var(--color-text-main);
}

.checkout-page-logo img {
  display: block;
  width: auto;
  height: 52px;
}

.checkout-page-secure {
  justify-self: end;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.checkout-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.checkout-page-heading {
  margin-bottom: 20px;
}

.checkout-page-heading h1 {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 600;
}

.checkout-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
}

.checkout-page-grid[hidden],
.checkout-page-empty[hidden] {
  display: none;
}

.checkout-page-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.checkout-page-main fieldset {
  background: var(--color-surface);
}

.checkout-page-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.checkout-page-side h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.checkout-page-trust {
  text-align: center;
  line-height: 1.5;
}

.checkout-page-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-qty-value {
  min-width: 20px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.checkout-page-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin: 40px auto;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.checkout-page-empty span {
  font-size: 40px;
}

.checkout-page-empty h2,
.checkout-page-empty p {
  margin: 0;
}

.checkout-page-empty p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.checkout-page-empty .checkout-submit {
  text-decoration: none;
}

@media (max-width: 860px) {
  .checkout-page-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .checkout-page-side {
    position: static;
  }
}

@media (max-width: 600px) {
  .checkout-page-header {
    padding: 8px 14px;
  }
  .checkout-page-logo img {
    height: 40px;
  }
  .checkout-page-secure span {
    display: none;
  }
  .checkout-page {
    padding: 18px 12px 40px;
  }
}

/* PAINEL: QUANTIDADE EM ESTOQUE NA LISTA DE PRODUTOS */
.creator-stock {
  display: grid;
  grid-template-columns: auto;
  justify-items: center;
  align-items: center;
  gap: 4px 10px;
  padding: 8px 10px;
  border: 1.5px solid #e4dccf;
  border-radius: 12px;
  background: #fbf9f6;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.creator-stock-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.creator-stock-field {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border-hover);
  border-radius: 10px;
  background: #fff;
}

.creator-stock-field button {
  width: 34px;
  height: 38px;
  border: none;
  background: #f3eee7;
  font: 600 18px var(--font-sans);
  color: var(--color-text-main);
  cursor: pointer;
}

.creator-stock-field button:hover {
  background: var(--color-gold);
  color: #fff;
}

.creator-stock-field input {
  width: 64px;
  height: 38px;
  border: none;
  text-align: center;
  font: 700 18px var(--font-sans);
  color: var(--color-text-main);
  -moz-appearance: textfield;
}

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

.creator-stock-field input:focus {
  outline: none;
  background: var(--color-gold-light);
}

.creator-stock-status {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-text-light);
}

.creator-stock.is-manual {
  border-color: var(--color-gold);
}

.creator-stock.is-manual .creator-stock-status {
  color: var(--color-gold-dark);
}

.creator-stock.is-saving {
  opacity: 0.7;
}

.creator-stock.is-saved {
  border-color: var(--color-wa);
  background: var(--color-wa-light);
}

.creator-stock.is-saved .creator-stock-status {
  color: var(--color-wa-dark);
}

.creator-stock.is-error .creator-stock-status {
  color: var(--color-danger);
}

.creator-stock-reset {
  border: none;
  background: none;
  padding: 0;
  font: 500 10.5px var(--font-sans);
  color: var(--color-text-muted);
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================================
   CÓDIGO DA PEÇA, RODAPÉ DE AJUDA E BARRA DA CONTA NO CHECKOUT
   ========================================================================== */
.card-ref {
  margin: -4px 0 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--color-text-light);
}

.modal-ref {
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--color-text-muted);
}

.modal-ref strong {
  letter-spacing: 0.4px;
  color: var(--color-text-main);
}

.footer-help {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 700px) {
  .footer-help {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.checkout-account-bar {
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  background: var(--color-gold-light);
  font-size: 13px;
  color: var(--color-text-main);
}

.checkout-account-bar[hidden] {
  display: none;
}

.checkout-account-bar a {
  font-weight: 600;
  color: var(--color-gold-dark);
}

.account-header-link {
  text-decoration: none;
}

.account-header-link:hover {
  color: var(--color-text-main);
}

/* ==========================================================================
   PÁGINAS DE AJUDA (/duvidas, /como-comprar, /politica-de-entrega...)
   ========================================================================== */
.help-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.help-nav {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.help-nav-title {
  margin: 10px 8px 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}

.help-nav-title:first-child {
  margin-top: 0;
}

.help-nav a {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--color-text-muted);
  text-decoration: none;
}

.help-nav a:hover {
  background: #f6f2ec;
  color: var(--color-text-main);
}

.help-nav a.active {
  background: var(--color-dark);
  color: #fff;
  font-weight: 600;
}

.help-section {
  padding: 30px 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  font-size: 14.5px;
  line-height: 1.75;
  color: #4a4642;
}

.help-section[hidden] {
  display: none;
}

.help-section h1 {
  margin: 4px 0 16px;
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-main);
}

.help-section h2 {
  margin: 26px 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-main);
}

.help-section p {
  margin: 0 0 12px;
}

.help-section a {
  color: var(--color-gold-dark);
  font-weight: 500;
}

.help-section ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.help-lead {
  font-size: 15.5px;
  color: var(--color-text-muted);
}

.help-callout {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #fbf9f6;
  border: 1px solid var(--color-border);
}

.help-callout.is-highlight {
  background: var(--color-gold-light);
  border-color: var(--color-gold);
  color: var(--color-text-main);
}

.help-steps {
  counter-reset: step;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.help-steps li {
  counter-increment: step;
  position: relative;
  padding: 10px 14px 10px 54px;
  border-radius: var(--radius-md);
  background: #fbf9f6;
}

.help-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 10px;
  font-weight: 700;
  color: var(--color-gold-dark);
}

.help-faq {
  display: grid;
  gap: 10px;
}

.help-faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 16px;
  background: #fff;
}

.help-faq details[open] {
  border-color: var(--color-gold);
  background: var(--color-gold-light);
}

.help-faq summary {
  padding: 14px 0;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
}

.help-faq details p {
  padding-bottom: 6px;
}

.help-track-form {
  display: grid;
  gap: 6px;
  margin: 18px 0 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: #fbf9f6;
  border: 1px solid var(--color-border);
}

.help-track-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.help-track-form div {
  display: flex;
  gap: 8px;
}

.help-track-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-full);
  font: 500 15px var(--font-sans);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.help-track-form .btn-buy {
  width: auto;
  padding: 12px 22px;
}

.help-track-form small {
  font-size: 12px;
  color: var(--color-text-light);
}

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

.help-section .help-carrier {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-main);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.help-section .help-carrier:hover {
  border-color: var(--color-gold);
  transform: translateY(-1px);
}

.help-carrier span {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.help-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  padding: 26px 20px;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 13px;
}

.help-footer a {
  color: var(--footer-title);
  text-decoration: none;
}

.help-footer span {
  width: 100%;
  text-align: center;
  font-size: 12px;
  opacity: 0.8;
}

@media (max-width: 800px) {
  .help-page {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 12px 40px;
  }
  .help-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .help-nav-title {
    width: 100%;
  }
  .help-nav a {
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    font-size: 12.5px;
  }
  .help-section {
    padding: 22px 18px;
  }
  .help-section h1 {
    font-size: 23px;
  }
  .help-carriers {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   MINHA CONTA (/conta)
   ========================================================================== */
.account-page {
  max-width: 1080px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.account-loading {
  padding: 60px 0;
  text-align: center;
  color: var(--color-text-muted);
}

.account-loading[hidden],
.account-auth[hidden],
.account-dashboard[hidden],
.account-form[hidden],
[data-account-panel][hidden],
.account-tabs[hidden] {
  display: none;
}

.account-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.account-auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 460px;
  padding: 40px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(24, 22, 20, 0.15) 0%, rgba(24, 22, 20, 0.85) 75%),
    url('/assets/loja-flamboyant.jpeg') center / cover no-repeat;
}

.account-auth-hero .checkout-kicker {
  color: var(--color-gold);
}

.account-auth-hero h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.account-auth-hero p {
  margin: 0;
  max-width: 400px;
  font-size: 14.5px;
  line-height: 1.6;
  opacity: 0.9;
}

.account-auth-hero ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}

.account-auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 40px;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: var(--radius-full);
  background: #f3eee7;
}

.account-tabs button {
  padding: 10px;
  border: none;
  border-radius: var(--radius-full);
  background: none;
  font: 600 14px var(--font-sans);
  color: var(--color-text-muted);
  cursor: pointer;
}

.account-tabs button.active {
  background: #fff;
  color: var(--color-text-main);
  box-shadow: var(--shadow-sm);
}

.account-form {
  gap: 14px;
}

.account-link-btn {
  align-self: center;
  border: none;
  background: none;
  padding: 0;
  font: 500 13px var(--font-sans);
  color: var(--color-gold-dark);
  text-decoration: none;
  cursor: pointer;
}

.account-link-btn:hover {
  text-decoration: underline;
}

.account-link-btn:disabled {
  color: var(--color-text-muted, #9c958c);
  cursor: default;
  text-decoration: none;
}

.account-verify-title {
  margin: 0;
  font: 700 20px var(--font-sans);
  color: var(--color-text-main);
}

.account-code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 1px;
  text-align: center;
}

.account-welcome {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 26px 28px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(120deg, var(--color-dark) 0%, #3a332b 60%, var(--color-gold-dark) 130%);
  box-shadow: var(--shadow-md);
}

.account-welcome .checkout-kicker {
  color: var(--color-gold);
}

.account-welcome h1 {
  margin: 2px 0;
  font-size: 26px;
  font-weight: 600;
}

.account-welcome p {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
}

.account-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-gold);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-dark);
}

.account-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.account-menu {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.account-menu button,
.account-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  font: 500 14px var(--font-sans);
  color: var(--color-text-muted);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu button:hover,
.account-menu a:hover {
  background: #f6f2ec;
  color: var(--color-text-main);
}

.account-menu button.active {
  background: var(--color-dark);
  color: #fff;
  font-weight: 600;
}

.account-menu .account-logout {
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  color: var(--color-danger);
}

.account-badge {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: var(--color-gold);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: var(--color-dark);
}

.account-badge:empty {
  display: none;
}

.account-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.account-panel-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.account-card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.account-orders {
  display: grid;
  gap: 16px;
}

.account-order {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.account-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-order-code {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--color-text-main);
}

.account-order-head small {
  font-size: 12px;
  color: var(--color-text-light);
}

.order-status-pill {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.order-status-pill.is-wait { background: #fff6e0; color: #8a6412; }
.order-status-pill.is-ok { background: var(--color-wa-light); color: var(--color-wa-dark); }
.order-status-pill.is-go { background: var(--color-gold-light); color: var(--color-gold-dark); border: 1px solid var(--color-gold); }
.order-status-pill.is-bad { background: var(--color-danger-light); color: var(--color-danger); }

.order-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-stepper li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 11.5px;
  color: var(--color-text-light);
}

.order-stepper li::before {
  content: '';
  position: absolute;
  top: 7px;
  left: calc(-50% + 9px);
  right: calc(50% + 9px);
  height: 2px;
  background: var(--color-border);
}

.order-stepper li:first-child::before {
  display: none;
}

.order-stepper li.done::before {
  background: var(--color-gold);
}

.order-step-dot {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--color-border-hover);
  background: #fff;
}

.order-stepper li.done .order-step-dot {
  border-color: var(--color-gold);
  background: var(--color-gold);
}

.order-stepper li.current .order-step-dot {
  box-shadow: 0 0 0 4px rgba(203, 176, 133, 0.3);
}

.order-stepper li.done .order-step-label {
  font-weight: 600;
  color: var(--color-text-main);
}

.order-stepper small {
  font-size: 10.5px;
  color: var(--color-text-light);
}

.order-tracking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-gold-light);
  border: 1px solid var(--color-gold);
}

.order-tracking small {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
}

.order-tracking strong {
  font-size: 16px;
  letter-spacing: 0.8px;
}

.order-tracking .btn-buy {
  width: auto;
  text-decoration: none;
}

.order-tracking-wait {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #fbf9f6;
}

.account-order-items {
  display: grid;
  gap: 8px;
}

.account-order-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.account-order-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #f8f5f0;
}

.account-order-details {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  font-size: 13px;
}

.account-order-details summary {
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
}

.account-order-details dl {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.account-order-details dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}

.account-order-details dt {
  color: var(--color-text-light);
}

.account-order-details dd {
  margin: 0;
  color: var(--color-text-main);
}

.account-order-total {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 15px;
}

.account-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 24px;
  border: 1px dashed var(--color-gold);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: center;
}

.account-empty span {
  font-size: 40px;
}

.account-empty h3,
.account-empty p {
  margin: 0;
}

.account-empty p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.account-empty .checkout-submit {
  text-decoration: none;
}

@media (max-width: 860px) {
  .account-auth {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-auth-hero {
    min-height: 240px;
    padding: 26px;
  }
  .account-auth-hero h1 {
    font-size: 25px;
  }
  .account-auth-card {
    padding: 26px 20px;
  }
  .account-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-menu {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .account-menu button,
  .account-menu a {
    padding: 8px 10px;
    font-size: 13px;
  }
  .account-menu .account-logout {
    margin-top: 0;
    border-top: none;
  }
}

@media (max-width: 600px) {
  .account-page {
    padding: 16px 12px 40px;
  }
  .account-welcome {
    padding: 18px;
  }
  .account-welcome h1 {
    font-size: 21px;
  }
  .account-order {
    padding: 16px;
  }
  .account-order-head {
    flex-direction: column;
  }
  .order-stepper li {
    font-size: 10px;
  }
  .order-tracking {
    flex-direction: column;
    align-items: stretch;
  }
  .account-order-details dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* PAINEL: DESPACHO DO PEDIDO (rastreio do Melhor Envio) */
.commerce-shipping {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 6px;
}

.commerce-shipping input {
  flex: 1;
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--color-border-hover);
  border-radius: 8px;
  font: 500 13px var(--font-sans);
  text-transform: uppercase;
}

.commerce-shipping small {
  width: 100%;
}

/* VITRINE NO COMPUTADOR: ÓCULOS INTEIROS E TEXTO MAIS LEVE
   No computador os cartões são largos e baixos: com a foto "cortada" para
   preencher (cover) os óculos ficavam ampliados e cortados nas hastes. Aqui a
   foto aparece inteira (contain), com respiro no fundo branco, e os textos e
   botões do cartão perdem o negrito pesado. O celular continua como está. */
@media (min-width: 601px) {
  .card-img-wrapper img,
  .new-in-card-img img {
    object-fit: contain;
    padding: 14px 18px;
    box-sizing: border-box;
  }
  .home-highlights .products-grid .card-img-wrapper img {
    padding: 12px 16px;
  }
  .product-card:hover .card-img-wrapper img {
    transform: scale(1.03);
  }
  .card-title {
    font-weight: 400;
  }
  .price-main {
    font-weight: 500;
  }
  .card-ref,
  .badge-4x,
  .btn-sub-action {
    font-weight: 400;
  }
  .product-card .btn-buy,
  .product-card .btn-primary-wa,
  .new-in-card-buy {
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.4px;
  }
  .new-in-card-name {
    font-weight: 400;
  }
  .new-in-card-price {
    font-weight: 500;
  }
}

/* ==========================================================================
   PAINEL: MENU VERTICAL E TELAS DE ESTOQUE (CADASTRO, PRODUTOS, AJUSTE)
   ========================================================================== */
.creator-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.creator-shell-content {
  min-width: 0;
}

.creator-shell .creator-tabs {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
  padding: 12px;
  margin: 0;
  border-radius: 14px;
}

.creator-nav-group {
  display: grid;
  gap: 3px;
}

.creator-nav-title {
  padding: 0 10px 4px;
  color: var(--color-text-light);
  font: 700 9px var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.creator-shell .creator-tabs button {
  flex: none;
  min-width: 0;
  padding: 9px 12px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.creator-single {
  max-width: 820px;
}

.creator-step {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #eee8e0;
  border-radius: 12px;
  background: #fbf8f4;
}

.creator-step.creator-bulk-bar {
  display: grid;
  align-items: stretch;
}

.creator-step-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.creator-step-head b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-text-main);
  color: #fff;
  font-size: 12px;
}

.creator-step-head strong {
  font-size: 14px;
}

.creator-step-head small {
  color: var(--color-text-light);
  font-weight: 400;
}

.creator-step > .creator-link-btn {
  justify-self: start;
  padding: 0;
}

.creator-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.creator-step .creator-filter-grid {
  margin-bottom: 0;
}

.creator-bulk-question {
  margin: 4px 0 -4px;
  font-size: 12px;
  font-weight: 700;
}

.creator-choice-row,
.creator-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.creator-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.creator-choice {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1.5px solid #e4dccf;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.creator-choice:hover {
  border-color: var(--color-gold);
}

.creator-choice input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex: none;
  accent-color: var(--color-gold-dark);
}

.creator-choice span {
  display: grid;
  gap: 2px;
}

.creator-choice strong {
  font-size: 12px;
}

.creator-choice small {
  color: var(--color-text-light);
  font-size: 10.5px;
  line-height: 1.35;
}

.creator-choice:has(input:checked) {
  border-color: var(--color-gold-dark);
  background: var(--color-gold-light);
  box-shadow: 0 0 0 2px rgba(203, 176, 133, 0.25);
}

.creator-bulk-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
}

.creator-bulk-options[hidden] {
  display: none;
}

.creator-bulk-confirm {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 10px;
  background: #f3eee7;
}

.creator-bulk-confirm p {
  flex: 1;
  min-width: 220px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.creator-bulk-confirm p.is-ready {
  color: var(--color-text-main);
  font-weight: 600;
}

.creator-bulk-confirm .creator-primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.creator-list-head {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--color-text-muted);
}

.creator-list-head .creator-inline-check {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-main);
}

.creator-list-head .creator-link-btn {
  padding: 0;
}

.creator-product-row.is-listing {
  grid-template-columns: auto 58px 1fr auto;
}

.creator-product-row.is-selected {
  border-color: var(--color-gold-dark);
  background: var(--color-gold-light);
}

.creator-product-info .creator-stock-line {
  color: var(--color-text-muted);
  font-weight: 600;
}

.creator-product-row.is-stock-row {
  grid-template-columns: 58px 1fr auto;
}

/* Um campo de quantidade por loja, lado a lado */
.creator-store-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.creator-store-controls .creator-stock {
  min-width: 150px;
}

.creator-product-info .creator-stock-total {
  color: var(--color-text-main);
  font-weight: 700;
}

.creator-stock-help {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-left: 3px solid var(--color-gold);
  border-radius: 8px;
  background: var(--color-gold-light);
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.creator-stock-help p {
  margin: 0;
}

@media (max-width: 900px) {
  .creator-shell {
    grid-template-columns: 1fr;
  }
  .creator-shell .creator-tabs {
    position: static;
    display: flex;
    gap: 4px;
    overflow-x: auto;
  }
  .creator-nav-group {
    display: flex;
    gap: 4px;
    align-items: center;
  }
  .creator-nav-title {
    padding: 0 4px;
    white-space: nowrap;
  }
  .creator-shell .creator-tabs button {
    white-space: nowrap;
  }
  .creator-product-row.is-listing {
    grid-template-columns: auto 52px 1fr;
  }
  .creator-product-row.is-stock-row {
    grid-template-columns: 52px 1fr;
  }
  .creator-store-controls {
    grid-column: 1 / -1;
  }
  .creator-store-controls .creator-stock {
    flex: 1;
  }
}

/* Compartilhar link e copiar foto, na janela do óculos */
.modal-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.modal-share-actions .btn-sub-action {
  padding: 12px;
  font-size: 13px;
}

/* Botão "Enviar" na foto do cartão: compartilha a peça sem abrir a janela */
.card-share-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px 6px 9px;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95);
  color: #181614;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(24, 22, 20, 0.18);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.card-share-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.card-share-btn:hover {
  background: #ffffff;
  transform: scale(1.05);
}
@media (max-width: 600px) {
  .home-highlights .products-grid .card-share-btn {
    bottom: 5px;
    left: 5px;
    padding: 5px;
    font-size: 0;
    gap: 0;
  }
  .home-highlights .products-grid .card-share-btn svg {
    width: 13px;
    height: 13px;
  }
}

/* Medidas da armação, na janela do óculos (copiadas da loja oficial) */
.modal-measures {
  margin-bottom: 16px;
}
.modal-measures-title {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-main);
}
.modal-measures-title span {
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: none;
  color: var(--color-text-muted);
}
.modal-measures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}
.modal-measure {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-gold-light);
}
.modal-measure strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text-main);
}
.modal-measure span {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-main);
}
.modal-measure small {
  font-size: 11px;
  color: var(--color-text-light);
}

/* Provador virtual: botão na janela do óculos e na foto do cartão */
.btn-try-on {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 1.5px solid var(--color-dark);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-try-on svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.btn-try-on:hover {
  background: var(--color-dark);
  color: #ffffff;
}
.card-try-on-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px 6px 9px;
  border-radius: var(--radius-full);
  background: rgba(24, 22, 20, 0.88);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(24, 22, 20, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}
.card-try-on-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.card-try-on-btn:hover {
  background: #181614;
  transform: scale(1.05);
}
.product-card.has-try-on .badge-gallery-count {
  bottom: 44px;
}
@media (max-width: 600px) {
  .home-highlights .products-grid .card-try-on-btn {
    bottom: 5px;
    right: 5px;
    padding: 5px;
    font-size: 0;
    gap: 0;
  }
  .home-highlights .products-grid .card-try-on-btn svg {
    width: 13px;
    height: 13px;
  }
  .home-highlights .products-grid .product-card.has-try-on .badge-gallery-count {
    bottom: 32px;
  }
}
.card-try-on-btn .try-on-label-short {
  display: none;
}
@media (max-width: 480px) {
  .card-try-on-btn .try-on-label-long {
    display: none;
  }
  .card-try-on-btn .try-on-label-short {
    display: inline;
  }
}

/* PROVADOR VIRTUAL (/provador) */
.try-on-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.try-on-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 24px;
}
.try-on-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: #181614;
  box-shadow: var(--shadow-lg);
}
/* Câmera: a cliente se vê espelhada, como num espelho. */
.try-on-stage video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.try-on-stage.is-camera video {
  display: block;
}
.try-on-guide {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(42%, 260px);
  aspect-ratio: 3 / 4;
  border: 2px dashed rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  transform: translate(-50%, -56%);
  pointer-events: none;
}
.try-on-stage.is-camera .try-on-guide {
  display: block;
}
.try-on-shoot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 56px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}
.try-on-shoot[hidden] {
  display: none;
}
.try-on-shoot .btn-sub-action {
  justify-self: start;
  padding: 10px 14px;
  font-size: 13px;
}
.try-on-shutter {
  width: 68px;
  height: 68px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: var(--color-gold, #c9a45c);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.try-on-shutter:active {
  transform: scale(0.94);
}
.try-on-start-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.try-on-upload-btn {
  background: #ffffff;
}
/* Foto no rosto: cobre o palco enquanto monta e mostra o resultado. */
.try-on-ai {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 22, 20, 0.94);
  color: #ffffff;
}
.try-on-ai[hidden],
.try-on-ai [hidden] {
  display: none !important;
}
.try-on-ai-loading,
.try-on-ai-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 380px;
  padding: 24px;
  text-align: center;
}
.try-on-ai-loading strong {
  font-size: 17px;
}
.try-on-ai-loading p,
.try-on-ai-error p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.try-on-ai-loading small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.try-on-ai-spinner {
  width: 46px;
  height: 46px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--color-gold, #c9a45c);
  border-radius: 50%;
  animation: try-on-spin 0.9s linear infinite;
}
@keyframes try-on-spin {
  to { transform: rotate(360deg); }
}
.try-on-ai-result {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
}
.try-on-ai-result img {
  min-height: 0;
  max-width: 100%;
  flex: 1 1 auto;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.try-on-views {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
}
.try-on-views button {
  padding: 6px 18px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.try-on-views button.is-active {
  background: #ffffff;
  color: #181614;
}
.try-on-side-wait {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 320px;
  text-align: center;
}
.try-on-side-wait p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.try-on-ai-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.try-on-ai-actions .btn-buy,
.try-on-ai-actions .btn-sub-action {
  padding: 10px 14px;
  font-size: 13px;
}
.try-on-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: var(--color-gold-light);
}
.try-on-start[hidden] {
  display: none;
}
.try-on-start img {
  width: min(320px, 70%);
  max-height: 45%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.try-on-start p {
  max-width: 380px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-main);
}
.try-on-start small {
  max-width: 360px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.try-on-start-btn {
  padding: 14px 28px;
  font-size: 15px;
}
.try-on-start-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.try-on-status {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  max-width: calc(100% - 32px);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: rgba(24, 22, 20, 0.82);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transform: translateX(-50%);
}
.try-on-status[hidden] {
  display: none;
}
.try-on-side,
.try-on-stage-wrap {
  min-width: 0;
}
.try-on-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.try-on-product {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.try-on-product-photo {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
}
.try-on-product h2 {
  margin: 4px 0 4px;
  font-size: 19px;
  font-weight: 800;
}
.try-on-price {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 900;
  color: var(--color-text-main);
}
.try-on-product .badge-4x {
  margin-bottom: 14px;
}
.try-on-buy {
  display: block;
  padding: 14px;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
}
.try-on-loading,
.try-on-empty {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}
.try-on-more h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.try-on-more input {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14px;
}
.try-on-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
}
.try-on-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font: inherit;
  cursor: pointer;
}
.try-on-item.is-active,
.try-on-item:hover {
  border-color: var(--color-gold-dark);
}
.try-on-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.try-on-item span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.3;
  color: var(--color-text-main);
  text-align: center;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (max-width: 900px) {
  .try-on-grid {
    grid-template-columns: 1fr;
  }
  .try-on-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
  }
  .try-on-item {
    flex: 0 0 96px;
  }
}
@media (max-width: 600px) {
  .try-on-page {
    padding: 14px 12px 40px;
  }
  .try-on-stage {
    aspect-ratio: 3 / 4;
  }
  .try-on-body .checkout-page-secure span {
    display: none;
  }
}
.new-in-card-img .card-try-on-btn {
  bottom: 8px;
  right: 8px;
  padding: 5px 9px 5px 7px;
  font-size: 11px;
}
.new-in-card-img .card-try-on-btn svg {
  width: 13px;
  height: 13px;
}
@media (max-width: 480px) {
  .product-card.has-try-on .card-share-btn,
  .product-card .card-try-on-btn {
    gap: 3px;
    padding: 5px 8px 5px 6px;
    font-size: 11px;
  }
  .product-card.has-try-on .card-share-btn svg,
  .product-card .card-try-on-btn svg {
    width: 13px;
    height: 13px;
  }
  .product-card.has-try-on .card-share-btn {
    left: 6px;
    bottom: 6px;
  }
  .product-card .card-try-on-btn {
    right: 6px;
    bottom: 6px;
  }
  .product-card.has-try-on .badge-gallery-count {
    bottom: 36px;
    right: 6px;
  }
}

/* Foto que não carregou e não tem outra da mesma peça: sem ícone de imagem quebrada. */
img.img-unavailable {
  visibility: hidden;
}

/* PÁGINA DO PRODUTO
   Clicar na foto abre a peça em tela cheia, como a página de produto da
   acbrazil.com: voltar, trilha, galeria grande, preço, experimentar e outras
   cores do mesmo modelo. O endereço vira /?produto=ID e o "voltar" do
   navegador também fecha a página. */
body.pdp-open { overflow: hidden; }

.product-page-modal {
  padding: 0;
  background: var(--color-bg);
  backdrop-filter: none;
  align-items: stretch;
}

.product-page-modal > .modal-content {
  max-width: none;
  max-height: none;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 48px;
  background: var(--color-bg);
  gap: 0;
}

.product-page-modal > .modal-content > .modal-close { display: none; }

.product-page-modal #modal-product-body {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.pdp-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.pdp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px 9px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-hover);
  background: #fff;
  color: var(--color-text-main);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.pdp-back svg { width: 18px; height: 18px; }
.pdp-back:hover { background: #f3efe9; }

.pdp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  min-width: 0;
}

.pdp-breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.pdp-breadcrumb a:hover { text-decoration: underline; }

.pdp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  padding-top: 24px;
  align-items: start;
}

.pdp-gallery {
  display: flex;
  gap: 14px;
  position: sticky;
  top: 80px;
}

.pdp-gallery .pdp-thumbs {
  flex-direction: column;
  overflow-x: visible;
  overflow-y: auto;
  max-height: 560px;
  padding: 0;
}

.pdp-gallery .modal-thumb { width: 74px; height: 74px; background: #fff; }

.pdp-main-image.modal-gallery-main {
  flex: 1;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 560px;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 24px;
}

.pdp-kicker {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pdp-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  margin: 8px 0 4px;
}

.pdp-related { padding-top: 40px; }

.pdp-related-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 14px;
}

.pdp-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.pdp-related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s;
}

.pdp-related-card:hover { border-color: var(--color-gold); }
.pdp-related-card.is-sold-out { opacity: 0.6; }

.pdp-related-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #fbf9f6;
  border-radius: var(--radius-sm);
}

.pdp-related-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-related-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.pdp-related-price { font-size: 14px; font-weight: 800; }

@media (max-width: 860px) {
  .product-page-modal #modal-product-body { padding: 0 14px; }
  .pdp-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 14px; }
  .pdp-gallery { position: static; flex-direction: column-reverse; }
  .pdp-gallery .pdp-thumbs { flex-direction: row; overflow-x: auto; overflow-y: visible; max-height: none; }
  .pdp-gallery .modal-thumb { width: 62px; height: 62px; }
  .pdp-main-image.modal-gallery-main { max-height: 420px; padding: 12px; }
  .pdp-title { font-size: 22px; }
  .pdp-breadcrumb { display: none; }
  .pdp-related-grid { grid-template-columns: repeat(2, 1fr); }
}
