/* =====================================================================
   Visual da marca nas páginas internas (padronização de 19/10/2026)
   Mesmo estilo da página inicial (styles/home.css). Tudo preso a body.tv,
   que só existe com o visual novo ligado (functions/visual.php).
   ===================================================================== */

body.tv {
  --tm-verde: #12261a;
  --tm-verde-2: #1d3a28;
  --tm-laranja: #dd702d;
  --tm-laranja-escuro: #b85a20;
  --tm-creme: #fbf3e6;
  --tm-texto: #1f1b16;
  --tm-suave: #6a5f52;
  --tm-borda: #eadfcd;
  --tm-wa: #1f9d55;
  --tm-titulo: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --tm-corpo: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  font-family: var(--tm-corpo);
  color: var(--tm-texto);
  background: #fff;
}
/* Abaixo do rodapé, em telas altas, aparecia uma faixa cinza */
html:has(body.tv) { background: var(--tm-verde, #12261a); }

body.tv main h1,
body.tv main h2,
body.tv main h3 { font-family: var(--tm-titulo); font-weight: 600; letter-spacing: -.01em; }
body.tv main a { color: var(--tm-laranja-escuro); }

/* ---------- Peças comuns ---------- */

/* Faixa creme de título das páginas */
body.tv .category-section,
body.tv .budget-section,
body.tv .likes-section,
body.tv .about-section,
body.tv .privacy-section { background: #fff; padding: 0 0 80px; }

body.tv .category-container > h1,
body.tv .budget-container > h1,
body.tv .likes-container > h1,
body.tv .about-container > h1,
body.tv .privacy-container > h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  color: var(--tm-texto);
  margin: 0 0 14px;
}
body.tv .tm-kicker,
body.tv .category-container > h1::before,
body.tv .budget-container > h1::before,
body.tv .likes-container > h1::before,
body.tv .about-container > h1::before,
body.tv .privacy-container > h1::before {
  display: block;
  font-family: var(--tm-corpo);
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--tm-laranja-escuro);
  margin-bottom: 14px;
}
body.tv .category-container > h1::before { content: "Catálogo"; }
body.tv .budget-container > h1::before   { content: "Orçamento"; }
body.tv .likes-container > h1::before    { content: "Favoritos"; }
body.tv .about-container > h1::before    { content: "Sobre nós"; }
body.tv .privacy-container > h1::before  { content: "Transparência"; }

/* O topo de cada página ganha a faixa creme de ponta a ponta. A faixa é o
   próprio fundo do título e do subtítulo, esticado nas laterais — assim ela
   cresce junto com o texto (com altura fixa, textos longos passavam da borda) */
body.tv .category-container,
body.tv .budget-container,
body.tv .likes-container,
body.tv .about-container,
body.tv .privacy-container { padding-top: 0; }
body.tv .category-container > h1,
body.tv .budget-container > h1,
body.tv .likes-container > h1,
body.tv .about-container > h1,
body.tv .privacy-container > h1,
body.tv main:has(#form-contato) > h1 { margin: 0 !important; padding: 64px 0 14px; }
body.tv .category-container > h1 + p,
body.tv .budget-container > h1 + p,
body.tv .likes-container > h1 + p,
body.tv .about-container > h1 + .intro,
body.tv .privacy-container > h1 + .intro,
body.tv main:has(#form-contato) > h1 + p { margin: 0 auto 48px !important; padding: 0 0 52px; }
body.tv .category-container > h1,
body.tv .category-container > h1 + p,
body.tv .budget-container > h1,
body.tv .budget-container > h1 + p,
body.tv .likes-container > h1,
body.tv .likes-container > h1 + p,
body.tv .about-container > h1,
body.tv .about-container > h1 + .intro,
body.tv .privacy-container > h1,
body.tv .privacy-container > h1 + .intro,
body.tv main:has(#form-contato) > h1,
body.tv main:has(#form-contato) > h1 + p {
  background: var(--tm-creme);
  box-shadow: 0 0 0 100vmax var(--tm-creme);
  clip-path: inset(0 -100vmax);
}
body.tv .category-section,
body.tv .budget-section,
body.tv .likes-section,
body.tv .about-section,
body.tv .privacy-section { overflow-x: clip; }
body.tv main:has(#form-contato) { padding-top: 0 !important; }

/* Botões */
body.tv main .btn,
body.tv main .add-to-budget,
body.tv main .send-budget {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px;
  background: var(--tm-verde); color: #fff !important;
  border: 0; border-radius: 999px;
  font-family: var(--tm-corpo); font-size: 14.5px; font-weight: 600;
  text-decoration: none !important;
  box-shadow: none;
  transition: background .2s, transform .2s;
}
body.tv main .btn:hover,
body.tv main .add-to-budget:hover,
body.tv main .send-budget:hover { background: var(--tm-verde-2); transform: translateY(-2px); box-shadow: none; }

/* Quantidade (categoria e orçamento) */
body.tv .quantity-control {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--tm-borda); border-radius: 999px; overflow: hidden; background: #fff;
}
body.tv .quantity-btn {
  width: 36px; height: 36px; padding: 0;
  background: transparent; color: var(--tm-texto);
  border: 0; border-radius: 0; font-size: 18px; line-height: 1;
}
body.tv .quantity-btn:hover { background: var(--tm-creme); }
body.tv .quantity-input {
  width: 46px; height: 36px; padding: 0;
  border: 0; border-left: 1px solid var(--tm-borda); border-right: 1px solid var(--tm-borda);
  border-radius: 0; text-align: center; font-family: var(--tm-corpo); font-weight: 600; color: var(--tm-texto);
  -moz-appearance: textfield;
}
body.tv .quantity-input::-webkit-outer-spin-button,
body.tv .quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Coração */
body.tv .like-btn svg { stroke: var(--tm-laranja); }
body.tv .like-btn:hover svg,
body.tv .like-btn.liked svg { fill: var(--tm-laranja); }

/* Janelas (SweetAlert) */
body.tv .swal2-popup { font-family: var(--tm-corpo); border-radius: 18px; }
body.tv .swal2-title { font-family: var(--tm-titulo); font-weight: 600; color: var(--tm-texto); }
body.tv .swal2-styled.swal2-confirm { background-color: var(--tm-verde) !important; border-radius: 999px !important; }
body.tv .swal2-styled.swal2-cancel  { background-color: #fff !important; color: var(--tm-texto) !important; border: 1px solid var(--tm-borda) !important; border-radius: 999px !important; }
body.tv .swal2-icon.swal2-success { border-color: var(--tm-wa) !important; color: var(--tm-wa) !important; }
body.tv .swal2-icon.swal2-success [class^=swal2-success-line] { background-color: var(--tm-wa) !important; }
body.tv .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(31,157,85,.3) !important; }

/* ---------- Categorias (Mesas, Cadeiras…) ---------- */

body.tv .category-container { max-width: 1180px; padding-left: 24px; padding-right: 24px; }
body.tv .category-container > p {
  max-width: 620px; font-size: 1.05rem; line-height: 1.7; color: var(--tm-suave);
}
body.tv .category-description {
  max-width: 820px; margin: 0 auto 48px; padding: 0;
  background: none; box-shadow: none; text-align: center;
  color: var(--tm-suave); font-size: 1rem; line-height: 1.75;
}
body.tv .category-section .product-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; justify-items: stretch;
}
body.tv .category-section .product-item {
  max-width: none; padding: 0; text-align: left;
  background: #fff; border: 1px solid var(--tm-borda); border-radius: 16px; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
body.tv .category-section .product-item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31,27,22,.10); border-color: #dccbb0; }
body.tv .category-section .image-wrapper { height: auto; aspect-ratio: 1 / 1; margin: 0; background: #fff; border-bottom: 1px solid var(--tm-borda); }
body.tv .category-section .zoomable-image { width: 100%; height: 100%; object-fit: contain; padding: 6%; border-radius: 0; }
body.tv .category-section .product-item h3 { margin: 18px 20px 6px; font-size: 1.2rem; line-height: 1.3; flex-grow: 0; }
body.tv .category-section .product-title a { color: var(--tm-texto); display: inline; }
body.tv .category-section .product-title a:hover { color: var(--tm-laranja-escuro); }
body.tv .category-section .detail-icon { font-size: 13px; color: var(--tm-laranja-escuro); margin-left: 4px; }
body.tv .category-section .product-description { margin: 0 20px; font-size: .88rem; line-height: 1.55; color: var(--tm-suave); }
body.tv .category-section .product-actions {
  margin: auto 0 0; padding: 16px 20px 20px;
  flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
body.tv .category-section .quantity-add { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 10px; width: auto; flex: 1; }
body.tv .category-section .add-to-budget { width: 100%; max-width: none; min-height: 42px; font-size: 13.5px; }

/* ---------- Produto ---------- */

body.tv .tropicus-produto-main { background: #fff; }
body.tv .tropicus-produto-container { max-width: 960px; }
body.tv .tropicus-back-link { color: var(--tm-laranja-escuro); font-weight: 600; font-size: 14px; text-decoration: none; }
body.tv .tropicus-produto-title { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; color: var(--tm-texto); }
body.tv .tropicus-featured { border: 1px solid var(--tm-borda); border-radius: 18px; overflow: hidden; background: #fff; }
body.tv .tropicus-short-desc { font-size: 1.12rem; line-height: 1.7; color: var(--tm-texto); font-style: normal; }
body.tv .tropicus-produto-content { font-size: 1rem; line-height: 1.8; color: #3d352c; }
body.tv .tropicus-produto-content strong { color: var(--tm-texto); }
body.tv .tropicus-gallery-wrap h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--tm-texto); }
body.tv .tropicus-gallery-sub { color: var(--tm-suave); }
body.tv .tropicus-gallery-wrap .swiper-button-prev,
body.tv .tropicus-gallery-wrap .swiper-button-next { color: var(--tm-laranja); }
body.tv .tropicus-slide-meta h3, body.tv .tropicus-light-meta h3 { font-family: var(--tm-titulo); }

/* Caixa de pedido na página do produto (só com o visual novo; ver single-produto.php) */
body.tv .tm-pedido {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin: 28px 0 8px; padding: 22px 24px;
  background: var(--tm-creme); border: 1px solid var(--tm-borda); border-radius: 18px;
}
body.tv .tm-pedido p { margin: 0; color: var(--tm-texto); font-size: .98rem; line-height: 1.6; }
body.tv .tm-pedido p strong { font-family: var(--tm-titulo); font-size: 1.2rem; font-weight: 600; display: block; }
body.tv .tm-pedido__botoes { display: flex; flex-wrap: wrap; gap: 10px; }
body.tv .tm-btn-wa {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px;
  background: var(--tm-wa); color: #fff !important; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; text-decoration: none !important;
}
body.tv .tm-btn-wa:hover { background: #188547; }
body.tv .tm-btn-contorno {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
  border: 1.5px solid var(--tm-verde); color: var(--tm-verde) !important; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; text-decoration: none !important;
}
body.tv .tm-btn-contorno:hover { background: var(--tm-verde); color: #fff !important; }
body.tv .tm-btn-wa svg { width: 18px; height: 18px; }

/* ---------- Orçamento ---------- */

body.tv .budget-container { max-width: 900px; padding-left: 24px; padding-right: 24px; }
body.tv .budget-container > p { color: var(--tm-suave); font-size: 1.05rem; }
body.tv .budget-list,
body.tv .empty-budget {
  background: #fff; border: 1px solid var(--tm-borda); border-radius: 18px;
  padding: 32px clamp(18px, 4vw, 40px); box-shadow: 0 18px 40px rgba(31,27,22,.06);
}
body.tv .budget-list h2,
body.tv .empty-budget h2 { font-family: var(--tm-titulo); color: var(--tm-texto); font-size: 1.6rem; }
body.tv .budget-list ul { max-width: none; }
body.tv .budget-list ul li { border-bottom: 1px solid var(--tm-borda); color: var(--tm-texto); }
body.tv .budget-thumbnail { width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--tm-borda); object-fit: contain; background: #fff; }
body.tv .budget-list ul li .remove-item { color: var(--tm-suave); font-size: .85rem; }
body.tv .budget-list ul li .remove-item:hover { color: #b42318; }
body.tv .send-budget { background: var(--tm-wa) !important; min-height: 52px !important; padding: 0 30px !important; font-size: 15px !important; }
body.tv .send-budget:hover { background: #188547 !important; }
body.tv .empty-budget > p { color: var(--tm-suave); margin-bottom: 26px; }
body.tv .category-links { gap: 10px; max-width: 720px; }
body.tv main .category-btn {
  width: 100%; min-height: 42px; background: #fff; color: var(--tm-texto) !important;
  border: 1px solid var(--tm-borda); font-size: 14px;
}
body.tv main .category-btn:hover { background: var(--tm-creme); border-color: #dccbb0; }

/* ---------- Contato ---------- */

body.tv main:has(#form-contato) { max-width: 640px !important; padding: 0 24px 80px !important; }
body.tv main:has(#form-contato) > h1 {
  text-align: center; color: var(--tm-texto); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 14px;
}
body.tv main:has(#form-contato) > h1::before { content: "Contato"; display: block; font-family: var(--tm-corpo); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--tm-laranja-escuro); margin-bottom: 14px; }
body.tv main:has(#form-contato) > p { color: var(--tm-suave); text-align: center; line-height: 1.7; margin-bottom: 32px; }
body.tv main:has(#form-contato) > p strong { color: var(--tm-texto); }
body.tv #form-contato {
  background: #fff; border: 1px solid var(--tm-borda); border-radius: 18px;
  padding: clamp(22px, 4vw, 36px); box-shadow: 0 18px 40px rgba(31,27,22,.06);
}
body.tv #form-contato label { font-family: var(--tm-corpo); font-weight: 600; font-size: 13.5px; color: var(--tm-texto); }
body.tv #form-contato input,
body.tv #form-contato select,
body.tv #form-contato textarea {
  font-family: var(--tm-corpo); font-size: 15px;
  border: 1px solid #ddd2c0; border-radius: 10px; padding: 12px 14px; background: #fff;
}
body.tv #form-contato input:focus,
body.tv #form-contato select:focus,
body.tv #form-contato textarea:focus { border-color: var(--tm-laranja); box-shadow: 0 0 0 3px rgba(221,112,45,.15); }
body.tv #form-contato button[type="submit"],
body.tv #form-contato input[type="submit"] {
  width: 100%; min-height: 50px; background: var(--tm-verde); color: #fff; border: 0; border-radius: 999px;
  font-family: var(--tm-corpo); font-size: 15px; font-weight: 600;
}
body.tv #form-contato button[type="submit"]:hover { background: var(--tm-verde-2); }

/* O estilo do contato pegava qualquer <form>, inclusive o do rodapé */
body.tv .site-footer form { background: none !important; padding: 0 !important; box-shadow: none !important; border: 0 !important; }

/* ---------- Quem somos e Política ---------- */

body.tv .about-container,
body.tv .privacy-container { max-width: 820px; padding-left: 24px; padding-right: 24px; }
body.tv .about-container > h1,
body.tv .privacy-container > h1 { text-align: center; }
body.tv .about-container .intro,
body.tv .privacy-container .intro { text-align: center; font-style: normal; color: var(--tm-suave); font-size: 1.05rem; line-height: 1.7; }
body.tv .about-content h2,
body.tv .privacy-content h2 { font-size: 1.55rem; color: var(--tm-texto); margin: 40px 0 12px; }
body.tv .about-content h2::before { content: ""; display: block; width: 36px; height: 3px; background: var(--tm-laranja); border-radius: 2px; margin-bottom: 14px; }
body.tv .about-content p,
body.tv .privacy-content p,
body.tv .privacy-content li { color: #3d352c; font-size: 1rem; line-height: 1.8; }
body.tv .about-content .btn { margin-top: 24px; }

/* ---------- Curtidas ---------- */

body.tv .likes-container { max-width: 1000px; padding-left: 24px; padding-right: 24px; }
body.tv .likes-container > p { color: var(--tm-suave); }
body.tv .likes-title { font-family: var(--tm-titulo); color: var(--tm-texto); }
body.tv .likes-thumbnail { border-radius: 12px; border: 1px solid var(--tm-borda); }

/* ---------- Obrigado ---------- */

body.tv .thanks-wrapper { background: var(--tm-creme); }
body.tv .thanks-card { border: 1px solid var(--tm-borda); border-radius: 20px; box-shadow: 0 18px 40px rgba(31,27,22,.08); font-family: var(--tm-corpo); }
body.tv .thanks-card h1 { font-family: var(--tm-titulo); font-weight: 600; color: var(--tm-texto); }
body.tv .thanks-card .lead,
body.tv .thanks-card .small-print { color: var(--tm-suave); }
body.tv .thanks-card .circle { border-color: var(--tm-wa) !important; }
body.tv .thanks-card .check-svg path,
body.tv .thanks-card .check-svg polyline { stroke: var(--tm-wa) !important; }
body.tv .thanks-card .btn { border-radius: 999px; font-family: var(--tm-corpo); font-weight: 600; }
body.tv .thanks-card .btn-whats { background: var(--tm-wa); }
body.tv .thanks-card .btn-outline { color: var(--tm-verde); border-color: var(--tm-verde); }

/* ---------- Telas menores ---------- */

@media (max-width: 1024px) {
  body.tv .category-section .product-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body.tv .category-section .product-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  body.tv .category-section .product-item h3 { margin: 12px 12px 4px; font-size: 1.02rem; }
  body.tv .category-section .product-description { margin: 0 12px; font-size: .8rem; }
  body.tv .category-section .product-actions { padding: 12px; flex-direction: column; align-items: stretch; gap: 10px; }
  body.tv .category-section .product-actions .like-btn { align-self: flex-start; }
  body.tv .category-section .quantity-add { flex-direction: column; align-items: stretch; width: 100%; flex: none; }
  body.tv .category-section .quantity-control { align-self: center; }
  body.tv .category-section .add-to-budget { white-space: normal; line-height: 1.25; padding: 8px 10px; min-height: 42px; }
  body.tv .tm-pedido { flex-direction: column; align-items: stretch; }
  body.tv .tm-pedido__botoes a { justify-content: center; width: 100%; }
}
@media (max-width: 420px) {
  body.tv .category-section .product-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.tv .category-section .add-to-budget { font-size: 12.5px; padding: 0 10px; }
}

/* ---------- Formulário do orçamento (js/orcamento.js) ---------- */

body.tv .tm-orc-popup { width: min(520px, 94vw) !important; padding: 28px 24px 24px !important; }
body.tv .tm-orc-sub { margin: 0 0 18px; color: var(--tm-suave); font-size: .95rem; line-height: 1.6; }
body.tv .tm-orc-form { display: grid; gap: 14px; text-align: left; }
body.tv .tm-orc-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--tm-texto); }
body.tv .tm-orc-form label small { font-weight: 500; color: var(--tm-suave); }
body.tv .tm-orc-form input {
  width: 100%; box-sizing: border-box; margin: 0;
  font-family: var(--tm-corpo); font-size: 16px; /* 16px evita o zoom automático do iPhone */
  padding: 12px 14px; border: 1px solid #ddd2c0; border-radius: 10px; background: #fff; color: var(--tm-texto);
}
body.tv .tm-orc-form input:focus { outline: none; border-color: var(--tm-laranja); box-shadow: 0 0 0 3px rgba(221,112,45,.15); }
body.tv .swal2-validation-message { font-family: var(--tm-corpo); font-size: 14px; }
/* Sugestões do Google por cima da janela */
.pac-container { z-index: 100000 !important; }

/* Cartão da categoria: foto e título levam ao produto; "Ver detalhes" reforça (19/10/2026) */
body.tv .category-section .image-wrapper { display: block; cursor: pointer; }
body.tv .category-section .image-wrapper img { transition: transform .4s; }
body.tv .category-section .product-item:hover .image-wrapper img { transform: scale(1.04); }
body.tv .category-section .product-more {
  display: inline-block; margin: 8px 20px 0;
  font-size: .85rem; font-weight: 600; color: var(--tm-laranja-escuro); text-decoration: none;
}
body.tv .category-section .product-more:hover { text-decoration: underline; }
@media (max-width: 760px) { body.tv .category-section .product-more { margin: 6px 12px 0; } }

/* Pontinhos da tela cheia da galeria: ficavam sobre a foto, em cima do selo
   da Tropicus no canto; agora ficam numa faixa própria, abaixo da imagem */
body.tv .tropicus-lightbox-swiper { padding-bottom: 44px; }
body.tv .tropicus-lightbox-swiper .tropicus-light-pagination { bottom: 8px !important; }
body.tv .tropicus-light-pagination .swiper-pagination-bullet { width: 9px; height: 9px; background: #fff; opacity: .4; }
body.tv .tropicus-light-pagination .swiper-pagination-bullet-active { background: var(--tm-laranja); opacity: 1; }

/* Tela cheia da galeria: a foto tinha altura fixa de 700px (single-produto.css),
   o que jogava o texto para fora da tela no celular e os pontos para a borda */
body.tv .tropicus-lightbox-inner { margin-top: 56px; }
body.tv .tropicus-lightbox-swiper img,
body.tv .tropicus-light-media img {
  width: 100%; height: auto !important;
  max-height: calc(100vh - 180px); object-fit: contain;
}
body.tv .tropicus-light-meta { font-family: var(--tm-corpo); }
body.tv .tropicus-meta-title { font-family: var(--tm-titulo); font-weight: 600; }
body.tv .tropicus-meta-caption { color: #f3b383; }
@media (max-width: 768px) {
  body.tv .tropicus-lightbox { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  body.tv .tropicus-lightbox-inner { margin-top: 52px; padding: 0 16px 28px; }
  body.tv .tropicus-lightbox-swiper { padding-bottom: 36px; }
  body.tv .tropicus-light-slide-inner { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  body.tv .tropicus-lightbox-swiper img,
  body.tv .tropicus-light-media img { max-height: 52vh; }
  body.tv .tropicus-light-meta { padding: 0 2px; }
  body.tv .tropicus-meta-title { font-size: 1.25rem; margin-bottom: 8px; }
  body.tv .tropicus-meta-desc { font-size: .9rem; }
}
