/**
 * Loja Paulista - Catálogo Oficial
 * Layout Amplo Sem Barra Lateral
 * Paleta Oficial: Preto Nobre (#0E0E12), Vermelho Paulista (#A52D29), Creme (#E8E1D9)
 */

/* ========================================================
   VARIÁVEIS DE CORES E TEMA
   ======================================================== */
:root {
  /* Cores da Marca */
  --color-red: #A52D29;
  --color-red-hover: #C33530;
  --color-red-dark: #7A1F1B;
  --color-red-light: rgba(165, 45, 41, 0.12);
  --color-red-border: rgba(165, 45, 41, 0.35);

  --color-cream: #E8E1D9;
  --color-cream-light: #F7F5F2;
  --color-cream-dark: #C9BFB2;
  --color-cream-dim: rgba(232, 225, 217, 0.12);

  --whatsapp-green: #25D366;
  --whatsapp-hover: #1EBE5B;

  /* Fontes */
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Efeitos */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Creme na vitrine, preto na marca e vermelho nas ações principais. */
body.theme-dark, body.theme-light {
  --bg-page: #F7F5F2;
  --bg-header: #0C0C0E;
  --bg-card: #FFFCF8;
  --bg-card-hover: #FFFCF8;
  --bg-surface: #FFFCF8;
  --bg-surface-elevated: #F0EBE5;
  --bg-input: #F7F5F2;
  --border-subtle: rgba(36, 28, 23, 0.12);
  --border-card: rgba(36, 28, 23, 0.08);
  --text-primary: #0C0C0E;
  --text-secondary: #554F49;
  --text-muted: #746B62;
  --text-dim: #746B62;
  --text-page: #0C0C0E;
  --text-page-secondary: #554F49;
  --text-page-muted: #746B62;
  --shadow-card: 0 8px 24px -8px rgba(36, 28, 23, 0.16), 0 2px 5px rgba(36, 28, 23, 0.03);
  --shadow-hover: 0 18px 36px -12px rgba(36, 28, 23, 0.25), 0 4px 10px rgba(36, 28, 23, 0.05);
}

/* ========================================================
   RESET & CONFIGURAÇÕES GERAIS
   ======================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

.catalog-page-frame { overflow: clip; }

/* A página continua rolando com um dedo; o catálogo trata a pinça com dois. */
html.catalog-touch-zoom { touch-action: pan-x pan-y; }

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  user-select: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ========================================================
   HEADER SUPERIOR — Sempre Escuro (independente do tema)
   ======================================================== */
.kyte-top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(12, 12, 14, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 225, 217, 0.1);
  height: 64px;
}

.kyte-header-container {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo da Loja Paulista */
.kyte-header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.kyte-header-logo {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* Assinatura discreta da marca. */
.header-slogan-tag { display: none; color: var(--color-cream); font-size: 0.78rem; font-weight: 400; }
@media (min-width: 900px) { .header-slogan-tag { display: block; } }

/* Ações do cabeçalho */
.kyte-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

.install-app-button {
  flex: none;
  min-height: 44px;
  padding: 0 4px;
  border-radius: 10px;
  font-size: .82rem;
  white-space: nowrap;
}

/* Entrar permanece visível e legível também no celular. */
.kyte-header-right .btn-account {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 8px;
  height: 44px;
  min-width: 96px;
  max-width: 180px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--color-cream, #E8E1D9);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.kyte-header-right .btn-account:hover {
  background: rgba(232, 225, 217, 0.08);
  color: #FFFCF8;
}

.kyte-header-right .btn-account span {
  display: inline;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kyte-header-right .btn-account svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Botão Sacola */
.kyte-cart-btn {
  background: transparent;
  color: #E8E1D9;
  border: 1px solid transparent;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.kyte-cart-btn:hover {
  border-color: var(--color-red);
  background: var(--color-red-light);
}

.cart-counter-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--color-red);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #0C0C0E;
  box-shadow: none;
}

/* ========================================================
   CONTAINER PRINCIPAL (LARGURA TOTAL SEM BARRA LATERAL)
   ======================================================== */
.kyte-layout-container {
  max-width: 1240px;
  margin: 0 auto 64px;
  padding: 0 16px;
  width: 100%;
}

.kyte-main-content {
  width: 100%;
}

/* Abertura enxuta: uma palavra, uma frase e navegação visual por anime. */
.kyte-banner-hero { margin-bottom: 12px; }
.banner-inner { padding: 76px 0 52px; }
.banner-content { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.banner-title { font-family: var(--font-heading); font-size: clamp(3.5rem, 7vw, 6rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; color: var(--text-primary); }
.banner-aside { max-width: 370px; text-align: right; }
.install-steps { padding: 12px 0 0 22px; color: var(--text-secondary); }
.install-steps li + li { margin-top: 8px; }
.banner-desc { color: var(--text-primary); font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.035em; }
.universe-shortcuts { display: flex; justify-content: space-between; gap: 28px; padding: 16px 12px 60px; margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.universe-shortcuts::-webkit-scrollbar { display: none; }
.universe-shortcuts button { flex: 0 0 168px; display: flex; align-items: center; flex-direction: column; gap: 16px; background: transparent; color: var(--text-primary); font-size: 0.88rem; font-weight: 500; padding: 8px 4px; scroll-snap-align: start; }
.universe-shortcuts img { width: 160px; height: 160px; object-fit: contain; transition: transform 0.25s; }
.universe-shortcuts button:hover img { transform: translateY(-4px); }
.universe-shortcuts button:hover, .universe-shortcuts button[aria-pressed="true"] { color: var(--color-red); }
.universe-shortcuts button[aria-pressed="true"] span { text-decoration: underline; text-underline-offset: 6px; }

/* Os textos são os controles: sem painel, moldura ou fundo agrupando os botões. */
.catalog-navigation {
  scroll-margin-top: 84px;
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 16px 0;
  margin-bottom: 40px;
}
.controls-row { display: flex; align-items: center; gap: 24px; }
.pills-scroll-wrapper { flex: 1; min-width: 0; overflow: hidden; }
.category-pills-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 2px;
}
.category-pills-bar::-webkit-scrollbar { display: none; }
.kyte-pill {
  position: relative;
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 17px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.kyte-pill:hover { background: transparent; color: var(--color-red); }
.kyte-pill.active { background: transparent; color: var(--color-red); }
.category-pills-bar .kyte-pill.active::after { content: ''; position: absolute; bottom: 2px; left: 17px; right: 17px; height: 2px; border-radius: 1px; background: var(--color-red); }
.view-switch-group { display: flex; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; gap: 2px; flex-shrink: 0; }
.btn-view-mode { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 0; background: transparent; color: var(--text-muted); }
.btn-view-mode.active { background: transparent; color: var(--color-red); box-shadow: none; }
.btn-view-mode:hover { color: var(--text-primary); }
.catalog-search { margin-bottom: 12px; }
.search-input-box { display: flex; align-items: center; gap: 10px; background: #FFFCF8; border: 1px solid var(--border-subtle); border-radius: 12px; padding: 10px 14px; }
.search-input-box:focus-within { border-color: var(--color-red); }
.search-icon { flex-shrink: 0; color: var(--text-muted); }
.search-input-box input { width: 100%; min-width: 0; background: transparent; color: var(--text-primary); font-size: 1rem; }
.search-input-box input::-webkit-search-cancel-button { display: none; }
.btn-clear-search { background: transparent; color: var(--text-muted); min-width: 32px; min-height: 32px; }
.search-status-bar { align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--text-secondary); font-size: 0.8rem; }
.btn-reset-filter { background: transparent; color: var(--color-red); font-size: inherit; text-decoration: underline; flex-shrink: 0; }

@media (max-width: 759px) {
  .banner-inner { padding: 40px 0 20px; }
  .banner-content { align-items: flex-start; flex-wrap: wrap; gap: 24px; }
  .banner-title { font-size: clamp(3rem, 9vw, 4rem); }
  .banner-aside { max-width: 220px; margin-left: auto; }
  .banner-desc { font-size: 1.2rem; }
  .universe-shortcuts { justify-content: flex-start; gap: 18px; padding: 12px 4px 32px; margin-bottom: 20px; }
  .universe-shortcuts button { flex-basis: 120px; font-size: 0.78rem; gap: 12px; }
  .universe-shortcuts img { width: 120px; height: 134px; }
  .catalog-navigation { padding: 12px 0; margin-bottom: 28px; }
  .kyte-pill { padding: 10px 15px; }
  .search-status-bar { flex-wrap: wrap; }
}

/* ========================================================
   SEÇÕES DE CATEGORIAS E PRODUTOS (LAYOUT AMPLO)
   ======================================================== */
.catalog-sections-container {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.category-section-block {
  margin-bottom: 8px;
  min-width: 0;
  scroll-margin-top: 92px;
}

.category-section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.category-section-title { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 600; color: var(--text-primary); letter-spacing: -0.035em; }
.category-section-title span { color: var(--text-muted); }
.category-see-all-link { font-size: 0.85rem; color: var(--color-red); font-weight: 400; white-space: nowrap; }
a.category-see-all-link:hover { text-decoration: underline; }

/* Três cards no desktop equilibram o tamanho das imagens e da vitrine. */
.category-products-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 760px) {
  .category-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .category-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.kyte-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

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

.product-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  background: #111116;
  flex-shrink: 0;
}

.product-card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.12);
  transform-origin: center 70%;
  filter: brightness(1.12);
  transition: transform 0.35s ease;
}

.kyte-product-card:hover .product-card-thumb { transform: scale(1.16); }
.product-card-thumb.image-fallback { padding: 40px; transform: none; }

.card-photo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--color-red);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
}

.card-photo-badge.new { background: #15803d; }
.card-photo-badge.accent { background: var(--color-cream); color: #121214; }

.product-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 20px;
  gap: 14px;
}

.product-card-heading { min-width: 0; }

.product-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.2px;
  overflow-wrap: anywhere;
}

.product-card-details {
  margin-top: 5px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.product-card-sizes-preview { display: flex; flex-wrap: wrap; gap: 5px; }

.size-mini-tag {
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: #F0EBE5;
  padding: 3px 8px;
  border-radius: 5px;
  line-height: 1.4;
}

.product-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.product-card-price-block { min-width: 0; }

.product-card-old-price {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  text-decoration: line-through;
  line-height: 1.4;
  margin-bottom: 3px;
}

.product-card-current-price {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.btn-card-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-red);
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 500;
  transition: background 0.22s ease, transform 0.22s ease;
}

.btn-card-plus:hover { background: var(--color-red-hover); transform: scale(1.05); }

/* A lista mantém a foto ao lado e o mesmo texto sem cortes. */
.catalog-sections-container.view-list .category-products-grid { grid-template-columns: minmax(0, 1fr); }
.view-list .kyte-product-card { flex-direction: row; }
.view-list .product-card-thumb-wrap { width: 32%; max-width: 300px; height: auto; min-height: 220px; }
.view-list .product-card-content { padding: 24px; }

@media (max-width: 599px) {
  .product-card-thumb-wrap { aspect-ratio: 16 / 11; }
  .product-card-content { padding: 20px; }
  .view-list .kyte-product-card { flex-direction: column; }
  .view-list .product-card-thumb-wrap { width: 100%; max-width: none; min-height: 0; }
}

/* Vitrines horizontais: recorte do próximo card e espaço para as sombras. */
.product-carousel {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 320px;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  user-select: none;
  -webkit-user-select: none;
  scroll-padding-inline: 16px;
  margin: -10px -16px -20px;
  padding: 10px 16px 28px;
  scrollbar-width: none;
}
.product-carousel::-webkit-scrollbar { display: none; }
.product-carousel.is-dragging { scroll-snap-type: none; scroll-behavior: auto; }
@media (hover: hover) and (pointer: fine) {
  .product-carousel:has(.kyte-product-card) .kyte-product-card { cursor: grab; }
  .product-carousel.is-dragging, .product-carousel.is-dragging * { cursor: grabbing; }
}
.product-carousel > * { scroll-snap-align: start; }
.product-carousel .kyte-product-card { border: 0; border-radius: 24px; }
.carousel-section-header { align-items: center; flex-wrap: wrap; }
.carousel-section-header .category-section-title { flex: 1 1 240px; }
.carousel-header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-left: auto; }
.carousel-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.carousel-controls[hidden] { display: none; }
.carousel-controls button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-primary); background: #E8E1D9; transition: background 0.2s; }
.carousel-controls button svg { width: 20px; height: 20px; }
.carousel-controls button:hover:not(:disabled) { background: #D8CEC2; }
.carousel-controls button:disabled { opacity: 0.35; cursor: default; }
.highlights-track { grid-auto-columns: 360px; }
.spotlight-card {
  --text-primary: #FFFCF8;
  --text-secondary: #DDD5CD;
  --text-muted: #B8AFA7;
  display: grid;
  grid-template-rows: 126px 270px 96px;
  background: #111116;
}
.spotlight-card .product-card-content { display: contents; }
.spotlight-card .product-card-heading { grid-row: 1; padding: 26px 26px 0; z-index: 1; }
.spotlight-eyebrow { display: block; color: #D6A09A; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.spotlight-card .product-card-title { font-size: 1.5rem; letter-spacing: -0.04em; line-height: 1.15; }
.spotlight-card .product-card-details { font-size: 0.8rem; line-height: 1.4; margin-top: 8px; }
.spotlight-card .product-card-thumb-wrap { grid-row: 2; height: 270px; aspect-ratio: auto; }
.spotlight-card .product-card-thumb { transform: scale(1.14); transform-origin: center; }
.spotlight-card:hover .product-card-thumb { transform: scale(1.19); }
.spotlight-card .product-card-sizes-preview, .spotlight-card .card-photo-badge { display: none; }
.spotlight-card .product-card-footer { grid-row: 3; margin: 0; padding: 18px 26px 24px; align-items: center; background: #111116; z-index: 1; }
.spotlight-card .product-card-current-price { font-size: 1.25rem; font-weight: 500; }
.spotlight-card .btn-card-plus { width: 42px; height: 42px; }
.collection-invitation { position: relative; overflow: hidden; display: flex; flex-direction: column; height: 492px; border-radius: 24px; background: linear-gradient(145deg, #B63A34, #7A1F1B); padding: 28px; color: #FFFCF8; box-shadow: var(--shadow-card); transition: transform 0.22s, box-shadow 0.22s; }
.collection-invitation:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.collection-invitation .spotlight-eyebrow { color: #F3CECA; }
.collection-invitation h3 { font-size: 2.5rem; line-height: 1.06; letter-spacing: -0.045em; font-weight: 600; margin: 10px 0 16px; }
.collection-invitation p { font-size: 0.9rem; color: #F4DAD6; }
.invitation-art { position: absolute; bottom: 50px; right: 12px; font-size: 220px; line-height: 1; color: #E8E1D9; text-shadow: 0 20px 35px rgba(51, 5, 5, 0.35); transform: rotate(-12deg); }
.invitation-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: 0.9rem; z-index: 1; }
button:focus-visible, a:focus-visible, .product-carousel:focus-visible { outline: 2px solid var(--color-red); outline-offset: 4px; }
@media (max-width: 759px) {
  .catalog-sections-container { gap: 44px; }
  .category-section-header { align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .category-section-title { font-size: 1.5rem; line-height: 1.2; }
  .category-section-title span { display: block; font-size: 1.1rem; margin-top: 5px; line-height: 1.3; }
  .category-see-all-link { font-size: 0.75rem; padding-top: 5px; }
  .product-carousel { grid-auto-columns: min(300px, 82vw); gap: 16px; }
  .highlights-track { grid-auto-columns: min(330px, 85vw); }
  .spotlight-card { grid-template-rows: 122px 240px 88px; }
  .spotlight-card .product-card-heading { padding: 24px 22px 0; }
  .spotlight-card .product-card-title { font-size: 1.3rem; }
  .spotlight-card .product-card-thumb-wrap { height: 240px; }
  .spotlight-card .product-card-footer { padding: 16px 22px 22px; }
  .collection-invitation { height: 450px; padding: 24px; }
  .collection-invitation h3 { font-size: 2.2rem; }
  .carousel-controls button { width: 44px; height: 44px; }
}

/* ========================================================
   BOTÃO VOLTAR AO TOPO
   ======================================================== */
.back-to-top-wrapper {
  text-align: center;
  padding: 30px 0 20px 0;
}

.btn-back-to-top {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.btn-back-to-top:hover {
  border-color: var(--color-red);
  color: var(--color-red);
  transform: translateY(-2px);
}

/* ========================================================
   RODAPÉ ELEGANTE (SUBSTITUI A SIDEBAR COM INFORMAÇÕES)
   ======================================================== */
.catalog-footer {
  --text-primary: #E8E1D9;
  --text-secondary: #E8E1D9;
  --text-muted: #B3AAA0;
  --bg-surface: #1B1917;
  --border-subtle: rgba(232, 225, 217, 0.15);
  background: #09090B;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 24px 0;
  margin-top: 40px;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-logo {
  height: 48px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  margin-bottom: 10px;
}

.footer-slogan {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-cream);
  margin-bottom: 8px;
}

.footer-about {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 420px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--color-red);
  text-transform: none;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-red);
  transform: translateX(3px);
}

.f-static {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.f-icon {
  font-size: 1rem;
}

.admin-link-li {
  padding-top: 6px;
}

.btn-footer-settings {
  background: var(--bg-surface);
  color: var(--color-cream);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-footer-settings:hover {
  border-color: var(--color-red);
  background: var(--bg-surface-elevated);
  color: #FFF;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.footer-love-tag {
  color: var(--color-cream);
}

/* ========================================================
   BOTÃO FLUTUANTE DE ATENDIMENTO
   ======================================================== */
.floating-agent-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Barra com os Botões Flutuantes (WhatsApp + Atendente) */
.floating-buttons-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botão Circular Flutuante Oficial do WhatsApp com Efeito Pulse */
.btn-floating-wa-circle {
  background: var(--whatsapp-green);
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  animation: waPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.btn-floating-wa-circle:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.7);
}

.btn-floating-agent {
  background: linear-gradient(135deg, #A52D29 0%, #7A1F1B 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(165, 45, 41, 0.45);
  transition: var(--transition);
}

.btn-floating-agent:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(165, 45, 41, 0.6);
}

/* Versão Oficial do Botão Flutuante em Verde WhatsApp */
.btn-floating-agent.wa-green-btn {
  background: var(--whatsapp-green);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  animation: waPulse 2.5s infinite;
}

.btn-floating-agent.wa-green-btn:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.65);
}

.agent-sparkle {
  font-size: 1rem;
}

.agent-icon-wa {
  font-size: 1rem;
}

/* ========================================================
   DRAWER / SACOLA LATERAL
   ======================================================== */
.kyte-drawer-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.kyte-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.kyte-cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kyte-drawer-backdrop.open .kyte-cart-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 16px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.drawer-count-badge {
  background: var(--color-red);
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.btn-close-drawer {
  background: transparent;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-close-drawer:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

/* Itens da Sacola */
.cart-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-row {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px;
  position: relative;
}

.cart-item-pic {
  width: 64px;
  height: 72px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
}

.cart-item-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.cart-item-specs {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cart-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.cart-qty-btn {
  background: transparent;
  color: var(--text-primary);
  width: 26px;
  height: 26px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-btn:hover {
  background: var(--color-red);
  color: #FFF;
}

.cart-qty-val {
  width: 26px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-remove-cart-item {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  font-size: 0.8rem;
}

.btn-remove-cart-item:hover {
  color: var(--color-red);
}

/* Estado Vazio da Sacola */
.empty-cart-state {
  text-align: center;
  padding: 40px 10px;
}

.empty-cart-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.empty-cart-state h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.empty-cart-state p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Rodapé da Sacola */
.drawer-footer {
  padding: 16px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}

.cart-checkout-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
}

.form-title-row {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 8px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

@media (min-width: 400px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.form-field input, .form-field select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
}

.form-field input:focus, .form-field select:focus {
  border-color: var(--color-red);
}

.location-picker, .district-search { position: relative; }
.district-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.district-search input { padding-left: 38px; }
.location-options {
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 0;
  right: 0;
  margin: 3px 0 0;
  padding: 0;
  list-style: none;
  max-height: 176px;
  max-height: min(176px, 25dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}
.location-options li { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: .95rem; cursor: pointer; }
.location-options li.active, .location-options li:hover { background: var(--bg-input); }
.location-options li[aria-selected="true"] { font-weight: 600; }
.location-options li[aria-disabled="true"] { color: var(--text-muted); cursor: default; }

.checkout-customer { color: var(--text-muted); font-size: .85rem; margin-bottom: 12px; }
.checkout-customer strong { display: block; color: var(--text-primary); font-size: 1rem; overflow-wrap: anywhere; }
.cart-price-note { color: var(--text-muted); font-size: .8rem; margin: -6px 0 12px; }
.total-row { display: flex; align-items: center; justify-content: space-between; }

.total-row {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.btn-finish-whatsapp {
  width: 100%;
  background: var(--whatsapp-green);
  color: #FFFFFF;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-finish-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
}

.cart-disclaimer {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ========================================================
   MODAIS (PRODUTO, ENTREGA, CONFIGURAÇÕES)
   ======================================================== */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.small-dialog {
  max-width: 480px;
}

.btn-close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  transition: var(--transition);
}

.btn-close-modal:hover {
  color: #FFF;
  background: var(--color-red);
}

.modal-dialog-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-dialog-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-dialog-body {
  padding: 20px;
}

/* Modal Detalhes do Produto */
.product-modal-dialog {
  padding: 20px;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .product-modal-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.modal-photo-col {
  width: 100%;
}

.modal-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #111;
  border: 1px solid var(--border-subtle);
}

.modal-photo-stage, .modal-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-red);
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.modal-info-col {
  display: flex;
  flex-direction: column;
}

.modal-cat-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.modal-prod-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}

.modal-price-box {
  margin-bottom: 12px;
}

.modal-old-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  display: block;
}

.modal-current-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.modal-installments {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.modal-prod-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Seletores de Variações */
.selector-block {
  margin-bottom: 14px;
}

.selector-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.selector-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-variation {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-variation:hover {
  border-color: var(--color-red);
}

.btn-variation.active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #FFFFFF;
}

.qty-counter {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
}

.btn-qty-minus, .btn-qty-plus {
  background: transparent;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  font-weight: 700;
}

.btn-qty-minus:hover, .btn-qty-plus:hover {
  background: var(--color-red);
  color: #FFF;
}

.qty-number {
  width: 36px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.modal-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.btn-modal-add-cart {
  background: var(--color-red);
  color: #FFF;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(165, 45, 41, 0.35);
}

.btn-modal-add-cart:hover {
  background: var(--color-red-hover);
  transform: translateY(-1px);
}

.btn-modal-direct-wa {
  background: var(--whatsapp-green);
  color: #FFF;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-modal-direct-wa:hover {
  background: var(--whatsapp-hover);
}

/* Modal de Entrega */
.info-delivery-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.info-delivery-row .delivery-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.info-delivery-row strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.info-delivery-row p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-dialog-close-full {
  width: 100%;
  background: var(--color-red);
  color: #FFF;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
}

/* Modal de Configurações da Loja */
.settings-helper-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.settings-form .form-field {
  margin-bottom: 14px;
}

.settings-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.settings-form input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.settings-form small {
  font-size: 0.68rem;
  color: var(--text-dim);
  display: block;
  margin-top: 3px;
}

.settings-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-save-settings {
  flex: 1;
  background: var(--color-red);
  color: #FFF;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-reset-default {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

/* ========================================================
   TOAST NOTIFICATIONS
   ======================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 340px;
}

.toast {
  background: var(--bg-surface-elevated);
  border-left: 4px solid var(--color-red);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
  pointer-events: auto;
}

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

/* Conta do cliente e integração com a sacola */
[hidden] { display: none !important; }
button:disabled { cursor: wait; opacity: 0.55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-red-hover);
  outline-offset: 3px;
}
.cart-account-status {
  padding: 10px 20px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: var(--bg-input);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.account-dialog { max-width: 440px; padding: 30px 26px 24px; }
.profile-back { min-height: 44px; margin-bottom: 8px; background: transparent; color: var(--color-red-dark); font-weight: 600; }
.account-modal-heading { padding-right: 16px; margin-bottom: 22px; }
.account-eyebrow { color: var(--color-red-hover); font-size: 0.68rem; font-weight: 800; letter-spacing: 1.5px; }
.account-modal-heading h2 { font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.3; margin: 6px 0 10px; }
.account-modal-heading p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.auth-tabs { display: flex; gap: 6px; padding: 4px; background: var(--bg-input); border-radius: var(--radius-sm); margin-bottom: 20px; }
.auth-tabs button { flex: 1; background: transparent; color: var(--text-muted); padding: 10px; border-radius: 5px; font-weight: 700; font-size: 0.82rem; }
.auth-tabs button.active { color: #fff; background: var(--color-red); }
.account-form { display: flex; flex-direction: column; gap: 15px; }
.password-field { position: relative; min-width: 0; }
.account-form .form-field .password-field input { padding-right: 54px; }
.btn-toggle-password { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 8px; background: transparent; color: var(--text-muted); }
.btn-toggle-password:hover, .btn-toggle-password[aria-pressed="true"] { color: var(--color-red); }
.account-form .form-field label { font-size: 0.78rem; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.account-form .form-field input { font-size: 0.9rem; padding: 11px 12px; }
.account-form small { display: block; margin-top: 5px; font-size: 0.72rem; color: var(--text-muted); }
.account-primary { width: 100%; padding: 12px; margin-top: 3px; }
.customer-menu { position: relative; min-width: 0; }
.customer-menu-options {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 150px; padding: 4px;
  border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-card); box-shadow: var(--shadow-hover);
}
.customer-menu-options button { width: 100%; min-height: 44px; padding: 0 12px; text-align: left; background: transparent; color: var(--text-primary); border-radius: 8px; }
.customer-menu-options button:hover, .customer-menu-options button:focus-visible { background: var(--bg-input); }
.account-form input:read-only { color: var(--text-muted); }
.catalog-loading { padding: 32px 0; color: var(--text-muted); }
.variation-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; border: 1px solid var(--border-subtle); }
.account-retry { padding: 10px 0; background: transparent; color: var(--text-secondary); text-decoration: underline; font-size: 0.8rem; margin-top: 10px; }
.auth-status { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; margin-top: 14px; }
.auth-status:empty { display: none; }
.auth-status.is-error { color: var(--color-red-dark); }
body.has-dialog { overflow: hidden; }
@media (max-width: 499px) {
  .kyte-header-container { gap: 8px; padding: 0 12px; }
  .kyte-header-right { gap: 4px; }
  .kyte-header-logo { max-width: 100px; }
  .account-dialog { padding: 28px 20px 22px; }
  .drawer-footer { padding: 12px 16px; }
}
@media (max-width: 900px) and (min-width: 768px) {
  .header-slogan-tag { display: none; }
}
@media (max-height: 700px) {
  .modal-img-wrapper { max-height: 260px; }
}
.checkout-ready-link {
  display: block;
  text-align: center;
  color: var(--whatsapp-green);
  text-decoration: underline;
  font-size: 0.85rem;
  font-weight: 700;
  padding-top: 12px;
}

/* Acabamento discreto, com os acentos da identidade Paulista. */
.kyte-drawer-backdrop, .modal-backdrop { background: rgba(12, 12, 14, 0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.kyte-cart-drawer { box-shadow: -12px 0 40px rgba(12, 12, 14, 0.12); }
.modal-dialog { box-shadow: 0 24px 80px rgba(12, 12, 14, 0.18); border-radius: 24px; }
.account-form .form-field input, .settings-form input { min-height: 44px; font-size: 1rem; border-radius: 10px; }
.auth-tabs { background: #E8E1D9; }
.auth-tabs button.active { background: var(--color-red); }
.btn-modal-add-cart, .btn-finish-whatsapp, .btn-save-settings { box-shadow: none; min-height: 44px; font-weight: 500; }
.btn-finish-whatsapp { background: var(--color-red); }
.btn-finish-whatsapp:hover { background: var(--color-red-hover); }
.btn-modal-direct-wa { background: #0C0C0E; color: #E8E1D9; border-color: #0C0C0E; }
.btn-modal-direct-wa:hover { background: #262321; color: #E8E1D9; box-shadow: none; }
.checkout-ready-link { color: var(--color-red); }
.btn-floating-agent.wa-green-btn { background: #FFFCF8; color: #0C0C0E; border: 1px solid #DED6CC; box-shadow: 0 4px 16px rgba(12, 12, 14, 0.08); animation: none; font-weight: 500; }
.btn-floating-agent.wa-green-btn svg { color: #17813F; }
.btn-floating-agent.wa-green-btn:hover { background: #F0EBE5; box-shadow: 0 6px 20px rgba(12, 12, 14, 0.1); transform: translateY(-1px); }
.toast { color: var(--text-primary); box-shadow: 0 8px 24px rgba(12, 12, 14, 0.1); border-radius: 12px; }
.btn-back-to-top { box-shadow: none; font-weight: 500; }

/* Dimensões fluidas e áreas seguras, inclusive com o teclado aberto. */
.kyte-header-container, .kyte-layout-container, .footer-container {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.kyte-top-header { height: calc(64px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
.kyte-main-content, .footer-col, .form-field, .modal-photo-col, .modal-info-col { min-width: 0; }
.category-section-header { flex-wrap: wrap; }
.category-section-title, .modal-prod-title, .modal-prod-desc, .cart-item-name, .cart-item-specs, .auth-status, .toast { overflow-wrap: anywhere; }
.category-see-all-link { min-height: 44px; display: inline-flex; align-items: center; }
.carousel-controls button, .spotlight-card .btn-card-plus { width: 44px; height: 44px; }
.btn-clear-search, .btn-close-modal, .btn-close-drawer, .btn-qty-minus, .btn-qty-plus { min-width: 44px; min-height: 44px; }
.btn-variation { min-height: 44px; max-width: 100%; white-space: normal; }
.form-field input, .form-field select { min-height: 44px; font-size: 1rem; }
.form-field label { font-size: 0.8rem; margin-bottom: 5px; }
.form-grid-2 { grid-template-columns: minmax(0, 1fr); }
.footer-links a, .f-static { flex-wrap: wrap; overflow-wrap: anywhere; }
.footer-links a, .btn-footer-settings, .btn-back-to-top { min-height: 44px; }
.footer-bottom-bar { gap: 12px; flex-wrap: wrap; }
.catalog-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

.modal-backdrop, .kyte-drawer-backdrop {
  top: var(--dialog-viewport-top, 0px);
  bottom: auto;
  height: 100vh;
  height: var(--dialog-viewport-height, 100dvh);
}
.modal-backdrop {
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}
.modal-dialog { max-height: 100%; overscroll-behavior-y: contain; scroll-padding-block: 56px 20px; }
.modal-dialog > .btn-close-modal { position: sticky; top: 0; float: right; margin: 0 0 -44px -44px; }
.profile-back { min-height: 44px; margin-bottom: 8px; background: transparent; color: var(--color-red-dark); font-weight: 600; }
.account-modal-heading { padding-right: 48px; }
.modal-dialog-header { position: sticky; top: 0; z-index: 2; padding-right: 68px; background: var(--bg-surface); }
.product-modal-grid { grid-template-columns: minmax(0, 1fr); }
.modal-img { object-fit: contain; }
.product-modal-dialog { padding: 16px; }
.kyte-cart-drawer { position: absolute; overflow-y: auto; overscroll-behavior-y: contain; scroll-padding-block: 90px 24px; }
.drawer-header { position: sticky; top: 0; z-index: 2; flex-shrink: 0; padding-top: max(12px, env(safe-area-inset-top)); }
.drawer-body { flex: 1 0 auto; overflow: visible; }
.drawer-footer { flex: 0 0 auto; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.cart-account-status { overflow-wrap: anywhere; }
.cart-item-info { min-width: 0; }
.cart-item-name { padding-right: 30px; }
.cart-item-foot { flex-wrap: wrap; gap: 10px; }
.cart-qty-btn { width: 44px; height: 44px; flex-shrink: 0; }
.btn-remove-cart-item { width: 44px; height: 44px; top: 2px; right: 2px; }
.btn-finish-whatsapp { padding: 12px; }
.btn-finish-whatsapp span { min-width: 0; }
.floating-agent-wrapper { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
.btn-floating-agent { min-height: 48px; }
.toast-container { top: calc(76px + env(safe-area-inset-top)); bottom: auto; right: max(16px, env(safe-area-inset-right)); max-width: min(340px, calc(100% - 32px)); }

@media (min-width: 600px) {
  .product-modal-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .universe-shortcuts { gap: 16px; }
  .universe-shortcuts button { flex-basis: 132px; }
  .universe-shortcuts img { width: 124px; height: 148px; }
}
@media (max-width: 759px) {
  .carousel-section-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .carousel-section-header .category-section-title { grid-column: 1 / -1; min-width: 0; }
  .carousel-header-actions { grid-column: 1 / -1; width: 100%; justify-content: space-between; margin: 0; }
  .highlights-section .category-section-title { grid-column: 1; }
  .highlights-section .carousel-header-actions { grid-column: 2; width: auto; }
  .carousel-header-actions .category-see-all-link { padding: 0; }
  .spotlight-card { grid-template-rows: minmax(122px, auto) 240px minmax(88px, auto); }
  .collection-invitation { height: auto; min-height: 450px; }
}
@media (max-width: 599px) {
  .kyte-header-right .btn-account { min-width: 0; max-width: min(160px, 100%); padding-inline: 6px; gap: 4px; }
  .banner-inner { padding: 30px 0 16px; }
  .banner-content { display: block; }
  .banner-title { font-size: clamp(2.5rem, 10vw, 3rem); }
  .banner-aside { margin: 14px 0 0; max-width: 100%; text-align: left; }
  .banner-desc { font-size: 1rem; font-weight: 500; line-height: 1.4; }
  .banner-desc br { display: none; }
  .universe-shortcuts { gap: 12px; padding: 8px 4px 24px; margin-bottom: 16px; scroll-padding-inline: 4px; }
  .universe-shortcuts button { flex-basis: 104px; gap: 8px; }
  .universe-shortcuts img { width: 100px; height: 116px; }
  .catalog-sections-container { gap: 36px; }
  .category-section-title { font-size: 1.35rem; }
  .category-section-title span { font-size: 1rem; }
  .category-products-grid:not(.product-carousel) { gap: 20px; }
  .product-carousel { grid-auto-columns: min(300px, calc(100vw - 56px)); }
  .highlights-track { grid-auto-columns: min(330px, calc(100vw - 48px)); }
  .spotlight-card .product-card-heading { padding: 22px 20px 0; }
  .spotlight-card .product-card-footer { padding-inline: 20px; }
  .product-modal-dialog { padding: 16px; }
  .modal-img-wrapper { aspect-ratio: auto; height: min(38vh, 280px); height: min(38dvh, 280px); }
  .modal-prod-title { font-size: 1.2rem; }
  .modal-prod-desc { font-size: 0.9rem; }
  .account-dialog { padding: 22px 18px; }
  .drawer-header, .drawer-body, .drawer-footer, .cart-account-status { padding-inline: 16px; }
  .cart-item-row { gap: 10px; }
  .cart-item-pic { width: 56px; height: 64px; }
  .cart-item-name { font-size: 0.88rem; }
  .cart-item-specs { font-size: 0.78rem; }
  .cart-checkout-form { padding: 12px; }
  .floating-agent-wrapper .btn-floating-agent { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .floating-agent-wrapper .agent-label { display: none; }
  .floating-agent-wrapper svg { width: 24px; height: 24px; }
  .search-status-bar { align-items: flex-start; }
  .search-status-bar > span { min-width: 0; overflow-wrap: anywhere; }
  .btn-reset-filter { min-height: 44px; white-space: normal; text-align: left; }
  .settings-actions { flex-wrap: wrap; }
  .settings-actions > button { min-height: 44px; }
}
@media (max-width: 959px) and (max-height: 500px) {
  .floating-agent-wrapper .btn-floating-agent { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .floating-agent-wrapper .agent-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Fotos reais com fundo branco, sem cortar os personagens. */
.real-product .product-card-thumb-wrap, .modal-img-wrapper.real-photo { background:#fff; }
.real-product .product-card-thumb { filter:none; transform:none; padding:6px; }
.real-product:hover .product-card-thumb, .real-product.spotlight-card:hover .product-card-thumb { transform:scale(1.035); }
.product-gallery { display:flex; gap:8px; overflow-x:auto; margin-top:12px; padding:2px; }
.product-gallery button { flex:0 0 64px; height:76px; border:2px solid transparent; border-radius:10px; background:#fff; padding:3px; }
.product-gallery button[aria-pressed=true] { border-color:var(--color-red); }
.product-gallery img { width:100%; height:100%; object-fit:contain; }
.catalog-universe-filter { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:12px 0 2px; font-size:.85rem; color:var(--text-muted); }
.catalog-universe-filter select { min-height:44px; min-width:180px; max-width:100%; background:transparent; border:1px solid var(--border-subtle); color:var(--text-primary); border-radius:10px; padding:8px 12px; font-size:16px; }
.product-gallery[hidden], .qty-block[hidden], #modalProductInstallments[hidden], #btnModalAddToCart[hidden], #universeShortcuts button[hidden] { display:none; }
@media(max-width:599px){.catalog-universe-filter{padding-block:6px;}.catalog-universe-filter select{flex:1;min-width:0;}.product-gallery button{flex-basis:54px;height:64px;}}
.spotlight-card.real-product { --text-primary:#0C0C0E; --text-secondary:#554F49; --text-muted:#746B62; background:#fff; color:var(--text-primary); }
.spotlight-card.real-product .product-card-footer { background:#fff; }
.spotlight-card.real-product .product-card-title, .spotlight-card.real-product .product-card-current-price { color:var(--text-primary); }
.spotlight-card.real-product .spotlight-eyebrow, .spotlight-card.real-product .product-card-details { color:var(--text-secondary); }

.catalog-count { margin: 0 0 20px; color: var(--text-muted); font-size: .85rem; }

.install-app-button, .tour-help {
  background: transparent;
  color: #c7c1ba;
  font-weight: 500;
}
.install-app-button:hover, .tour-help:hover { color: white; background: rgba(255,255,255,.06); }
.tour-help { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; }
.tour-help span { display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; width: 19px; height: 19px; font-size: 13px; }
.install-browsers { margin: 18px 0 0; }
#installNative { margin-top: 18px; }
html:has(#catalogTour[open]) { overflow: hidden; }
#catalogTour {
  position: fixed; inset: 0; margin: 0; width: 100%; height: 100dvh;
  max-width: none; max-height: none; border: 0; background: transparent; overflow: hidden;
}
#catalogTour::backdrop { background: transparent; }
.tour-highlight {
  position: absolute; border-radius: 10px; border: 2px solid #fff;
  box-shadow: 0 0 0 200vmax rgba(10,10,12,.78);
}
#tourOpenItem { width: 100%; height: 100%; background: transparent; }
.tour-card {
  position: absolute; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: min(380px, calc(100% - 24px)); padding: 12px 18px 16px; border-radius: 18px;
  background: var(--bg-card); color: var(--text-primary); box-shadow: 0 8px 30px rgba(0,0,0,.18);
  max-height: 65%; overflow-y: auto;
}
.tour-heading, .tour-actions { display: flex; align-items: center; justify-content: space-between; }
.tour-heading small, .tour-card p { color: var(--text-secondary); }
.tour-card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.tour-card p { font-size: .92rem; line-height: 1.5; }
.tour-card button { min-height: 44px; padding: 0 12px; border-radius: 10px; color: inherit; background: transparent; }
#tourClose { font-size: 1.35rem; min-width: 44px; }
.tour-actions { margin-top: 12px; }
#tourNext { margin-left: auto; background: var(--color-red-dark); color: white; }
