/* TreviFlash — estilos profissionais unificados (paleta marrom/bege) */

.tf-hide-rating,
.tf-hide-rating svg {
  display: none !important;
}

.tf-legacy-search-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skeleton */
.tf-app-skeleton {
  min-height: 100vh;
  background: #f8f7f6;
  color: #4d3737;
}

.tf-app-skeleton[hidden],
body.tf-app-ready .tf-app-skeleton {
  display: none !important;
}

.tf-skel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #efe7e1;
  position: sticky;
  top: 0;
  z-index: 30;
}

.tf-skel-logo {
  width: 140px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ece3dd 25%, #f5f0ec 50%, #ece3dd 75%);
  background-size: 200% 100%;
  animation: tf-shimmer 1.2s ease-in-out infinite;
}

.tf-skel-actions {
  display: flex;
  gap: 10px;
}

.tf-skel-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ece3dd 25%, #f5f0ec 50%, #ece3dd 75%);
  background-size: 200% 100%;
  animation: tf-shimmer 1.2s ease-in-out infinite;
}

.tf-skel-hero {
  margin: 16px;
  height: 200px;
  border-radius: 16px;
  background: linear-gradient(90deg, #ece3dd 25%, #f5f0ec 50%, #ece3dd 75%);
  background-size: 200% 100%;
  animation: tf-shimmer 1.2s ease-in-out infinite;
}

.tf-skel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 16px 24px;
  max-width: 1220px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .tf-skel-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tf-skel-hero {
    height: 280px;
  }
}

.tf-skel-card {
  height: 260px;
  border-radius: 16px;
  background: linear-gradient(90deg, #ece3dd 25%, #f5f0ec 50%, #ece3dd 75%);
  background-size: 200% 100%;
  animation: tf-shimmer 1.2s ease-in-out infinite;
}

@keyframes tf-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Header / logo */
header .flex.items-center.gap-2 > span.text-brown-900,
header .flex.items-center.gap-2:has(.tf-brand-logo) > span {
  display: none !important;
}

.tf-brand-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
}

header .flex.items-center.gap-2:has(.tf-brand-link) {
  flex-shrink: 0;
  align-items: center;
}

/* Mobile primeiro */
.tf-brand-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(200px, 48vw);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 768px) {
  .tf-brand-link {
    min-height: 52px;
  }

  .tf-brand-logo {
    height: 48px;
    max-width: 260px;
  }
}

@media (min-width: 1024px) {
  .tf-brand-link {
    min-height: 58px;
  }

  .tf-brand-logo {
    height: 56px;
    max-width: 300px;
  }
}

@media (max-width: 767px) {
  header button[aria-label="Menu"],
  header button[aria-label*="Carrinho"],
  header .md\:hidden button {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
  }
}

.tf-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #674b4a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

/* Toast */
.tf-toast-host {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 20000;
  background: #4d3737;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.tf-toast-host.is-visible {
  transform: translateX(-50%) translateY(0);
}

/* Hero */
.tf-hero {
  margin: 16px auto 8px;
  max-width: 1220px;
  padding: 0 14px;
}

.tf-hero-inner {
  background: linear-gradient(135deg, #fff 0%, #f7efea 100%);
  border: 1px solid #eadbd1;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 8px 24px rgba(80, 58, 57, 0.08);
}

.tf-hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 800;
  color: #4d3737;
  line-height: 1.25;
}

.tf-hero-text {
  margin: 0 0 16px;
  color: #6f6363;
  line-height: 1.55;
}

.tf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tf-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.tf-hero-btn-primary {
  background: #674b4a;
  color: #fff;
}

.tf-hero-btn-outline {
  background: #fff;
  color: #674b4a;
  border: 1px solid #eadbd1;
}

/* Catálogo toolbar */
.tf-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
  padding: 0 4px;
}

.tf-catalog-search-wrap {
  flex: 1 1 200px;
  min-width: 160px;
}

.tf-catalog-search {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #eadbd1;
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
  color: #4d3737;
}

.tf-catalog-price,
.tf-catalog-sort {
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #eadbd1;
  border-radius: 10px;
  background: #fff;
  color: #4d3737;
  font-weight: 600;
  font-size: 16px;
}

.tf-catalog-stock-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #eadbd1;
  border-radius: 10px;
  background: #fff;
  color: #4d3737;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.tf-catalog-stock-label input {
  width: 18px;
  height: 18px;
  accent-color: #674b4a;
  cursor: pointer;
}

.tf-catalog-clear-filters {
  min-height: 46px;
  padding: 8px 14px;
  border: 1px dashed #c9b5ad;
  border-radius: 10px;
  background: #faf8f7;
  color: #674b4a;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.tf-catalog-clear-filters:hover {
  background: #f7efea;
  border-style: solid;
}

.tf-catalog-count {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.9rem;
  color: #7a6a6a;
  font-weight: 600;
}

.tf-catalog-load-more {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 16px auto 8px;
  padding: 12px 20px;
  border: 1px solid #eadbd1;
  border-radius: 10px;
  background: #fff;
  color: #674b4a;
  font-weight: 700;
  cursor: pointer;
}

.tf-catalog-load-more:hover {
  background: #f7efea;
}

.tf-catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px auto 12px;
  padding: 0 8px;
}

.tf-catalog-page-btn {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #eadbd1;
  border-radius: 10px;
  background: #fff;
  color: #674b4a;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.tf-catalog-page-btn:hover:not(:disabled) {
  background: #f7efea;
}

.tf-catalog-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tf-catalog-page-info {
  font-size: 0.95rem;
  font-weight: 700;
  color: #6f6363;
  min-width: 120px;
  text-align: center;
}

#products .tf-catalog-page-hidden,
#products [data-tf-filter-hidden="1"] {
  display: none !important;
}

@media (max-width: 480px) {
  .tf-catalog-pagination {
    gap: 8px;
  }

  .tf-catalog-page-btn {
    flex: 1 1 120px;
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .tf-catalog-page-info {
    flex: 1 1 100%;
    order: -1;
    margin-bottom: 4px;
  }
}

.tf-filter-toolbar {
  display: flex;
  justify-content: center;
  margin: 12px 0 20px;
}

.tf-filter-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid #eadbd1;
  border-radius: 12px;
  background: #fff;
  color: #4d3737;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(80, 58, 57, 0.1);
}

.tf-filter-active {
  background: #f7efea;
  color: #674b4a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
}

.tf-filter-empty {
  text-align: center;
  color: #7a6a6a;
  margin: 0 0 16px;
}

.tf-filter-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
}

.tf-filter-modal[hidden] {
  display: none !important;
}

[data-tf-filter-hidden='1'] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.tf-filter-dialog {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.tf-filter-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tf-filter-dialog-head h3 {
  margin: 0;
  color: #4d3737;
  font-size: 1.25rem;
}

.tf-filter-close {
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #7a6a6a;
}

.tf-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tf-filter-chip {
  border: 1px solid #eadbd1;
  background: #faf8f7;
  color: #4d3737;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.tf-filter-chip.is-active,
.tf-filter-chip:hover {
  background: #674b4a;
  border-color: #674b4a;
  color: #fff;
}

body.tf-filter-open {
  overflow: hidden;
}

.tf-type-badge,
.tf-featured-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tf-type-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #674b4a;
  border: 1px solid #eadbd1;
  pointer-events: none;
}

.tf-stock-media-host .tf-type-badge,
.tf-product-card .relative .tf-type-badge,
#products [class*='rounded-xl'] .relative .tf-type-badge {
  z-index: 25;
}

.tf-featured-badge {
  top: auto;
  bottom: 8px;
  left: 8px;
  background: #674b4a;
  color: #fff;
}

/* Estoque */
.tf-stock-media-host {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
}

.tf-stock-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 30;
  pointer-events: none;
  display: none;
  width: 118%;
  padding: 8px 6px;
  text-align: center;
  font-size: clamp(0.62rem, 2.2vw, 0.88rem);
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, rgba(153, 27, 27, 0.94), rgba(220, 38, 38, 0.94));
  transform: translate(-50%, -50%) rotate(-32deg);
  white-space: nowrap;
}

.tf-is-out-of-stock .tf-stock-badge {
  display: block;
}

.tf-out-of-stock-btn,
.tf-is-out-of-stock button.bg-brown-900 {
  background: #f3eeeb !important;
  color: #b8a8a5 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

.tf-stock-detail-banner {
  display: none;
  margin: 0 0 1rem;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 800;
  color: #7f1d1d;
  background: #fde8e8;
  border: 2px solid #f5b4b4;
}

.tf-is-out-of-stock .tf-stock-detail-banner {
  display: block;
}

.tf-detail-close-bar {
  position: fixed;
  top: 76px;
  right: 12px;
  z-index: 10050;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.tf-detail-close-bar .tf-detail-close {
  pointer-events: auto;
}

.tf-detail-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #4d3737;
  font-size: 1.85rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(80, 58, 57, 0.22);
  border: 2px solid #eadbd1;
}

@media (max-width: 767px) {
  body.tf-detail-page header .md\:hidden {
    display: none !important;
  }

  body.tf-detail-page .tf-detail-close-bar {
    top: 12px;
    right: 8px;
    flex-direction: row;
    align-items: center;
  }
}

@media (hover: hover) and (pointer: fine) {
  body.tf-pro .tf-product-card:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 768px) {
  body.tf-pro .tf-product-title {
    min-height: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

#tf-busca,
#products {
  scroll-margin-top: 96px;
}

/* Catálogo — grade e cards compactos (4 colunas no desktop) */
body.tf-pro #products .grid {
  gap: 1.5rem !important;
}

body.tf-pro #products [class*='h-48'] {
  height: 10rem !important;
  min-height: 10rem !important;
  max-height: 10rem !important;
}

body.tf-pro #products [class*='rounded-xl'] [class*='flex-grow'] {
  padding: 1rem !important;
}

body.tf-pro #products [class*='rounded-xl'] [class*='cursor-pointer'][class*='mb-4'] {
  margin-bottom: 0.5rem !important;
}

body.tf-pro #products [class*='rounded-xl'] h3 {
  font-size: 1rem !important;
  line-height: 1.3 !important;
  min-height: 0 !important;
  margin-bottom: 0.35rem !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

/* Descrição e variações só na página do produto */
body.tf-pro #products .tf-card-catalog-simple p.text-gray-700,
body.tf-pro #products .tf-card-catalog-simple .tf-catalog-hide {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.tf-pro #products .tf-card-options-hint {
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  color: #6f5a58;
  background: #f7efea;
  border: 1px solid #eadbd1;
  border-radius: 8px;
  text-align: center;
}

body.tf-pro #products .tf-card-catalog-simple .mt-auto > .flex.justify-between {
  margin-bottom: 0.65rem !important;
}

body.tf-pro #products button.tf-card-cta-options {
  background: #fff !important;
  color: #674b4a !important;
  border: 2px solid #674b4a !important;
  box-shadow: none !important;
}

body.tf-pro #products button.tf-card-cta-options:hover {
  background: #f7efea !important;
  color: #4d3737 !important;
  border-color: #5a403f !important;
}

body.tf-pro #products [class*='rounded-xl'] .text-2xl,
body.tf-pro #products [class*='rounded-xl'] [class*='text-brown-900'][class*='font-bold'] {
  font-size: 1.125rem !important;
}

body.tf-pro #products [class*='rounded-xl'] .mt-auto button,
body.tf-pro #products [class*='rounded-xl'] button.w-full {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  font-size: 0.875rem !important;
}

body.tf-pro #products [class*='rounded-xl'].shadow-md {
  box-shadow: 0 6px 18px rgba(80, 58, 57, 0.07) !important;
}

@media (hover: hover) and (pointer: fine) {
  body.tf-pro #products [class*='rounded-xl']:hover {
    transform: translateY(-2px) !important;
  }
}

@media (min-width: 1024px) {
  body.tf-pro #products .grid {
    gap: 1.25rem !important;
  }
}

@media (max-width: 767px) {
  body.tf-pro #products [class*='h-48'] {
    height: 9rem !important;
    min-height: 9rem !important;
    max-height: 9rem !important;
  }

  body.tf-pro #products [class*='rounded-xl'] [class*='flex-grow'] {
    padding: 0.875rem !important;
  }
}

input[type="email"],
input[name="email"],
#quantity,
input[type="number"] {
  font-size: 16px !important;
}

/* Rodapé legal */
.tf-footer-legal {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8ddd6;
  font-size: 0.9rem;
  color: #6f6363;
}

.tf-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 10px;
}

.tf-footer-nav a {
  color: #674b4a;
  font-weight: 700;
  text-decoration: none;
}

.tf-footer-nav a:hover {
  text-decoration: underline;
}

.tf-footer-line {
  margin: 6px 0;
}

.tf-footer-line a {
  color: #674b4a;
}

.tf-payment-note {
  max-width: 520px;
  margin: 8px auto 0;
  font-size: 0.9rem;
  color: #7a6a6a;
  line-height: 1.5;
}

#payment-methods .tf-payment-grid {
  align-items: flex-start !important;
}

#payment-methods .tf-payment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

#payment-methods .tf-payment-icon-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

#payment-methods .tf-payment-icon-slot svg {
  display: block;
  width: 3rem;
  height: 3rem;
}

#payment-methods .tf-payment-item > span {
  text-align: center;
  line-height: 1.35;
}

/* Páginas legais */
.tf-legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  color: #4d3737;
  line-height: 1.65;
}

.tf-legal-page h1 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.tf-legal-page h2 {
  font-size: 1.15rem;
  margin: 24px 0 8px;
}

.tf-legal-back {
  display: inline-block;
  margin-bottom: 20px;
  color: #674b4a;
  font-weight: 700;
}

/* Landing page (home) */
.tf-lp-hidden {
  display: none !important;
}

body.tf-lp-home main {
  padding-bottom: 8px;
}

.tf-about-teaser {
  margin: 1.5rem 0 2rem;
  padding: 0 14px;
}

.tf-about-teaser-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border: 1px solid #f0e8e2;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(84, 57, 56, 0.08);
}

.tf-about-teaser h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #4d3737;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.tf-about-teaser p {
  margin: 0 0 0.75rem;
  color: #5c4f4f;
  line-height: 1.65;
}

.tf-about-teaser-tagline {
  font-weight: 600;
  color: #674b4a !important;
}

.tf-about-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tf-about-teaser-media img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(80, 58, 57, 0.12);
  object-fit: cover;
}

@media (min-width: 768px) {
  .tf-about-teaser-inner {
    grid-template-columns: 1fr minmax(220px, 38%);
    padding: 1.75rem 2rem;
  }

  .tf-about-teaser-media {
    justify-self: end;
  }
}

/* Páginas estáticas (sobre / contato) */
.tf-static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  color: #4d3737;
  line-height: 1.65;
}

.tf-static-page h1 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.tf-static-page h2 {
  font-size: 1.15rem;
  margin: 24px 0 8px;
}

.tf-static-figure {
  margin: 1.25rem 0;
}

.tf-static-figure img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(80, 58, 57, 0.1);
}

.tf-contact-cards {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

.tf-contact-card {
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid #f0e8e2;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(84, 57, 56, 0.06);
}

.tf-contact-card strong {
  display: block;
  color: #4d3737;
  margin-bottom: 0.35rem;
}

.tf-contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* —— Multipágina LP —— */

.tf-hero-kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a6f6e;
}

body.tf-lp-home main {
  padding-bottom: 24px;
}

body.tf-lp-catalog main {
  padding-top: 8px;
}

body.tf-lp-catalog #tf-catalog-toolbar,
body.tf-lp-catalog #products {
  margin-top: 0;
}

.tf-home-highlights {
  margin: 1.25rem auto 1.5rem;
  max-width: 1220px;
  padding: 0 14px;
}

.tf-home-highlights-inner {
  background: #fff;
  border: 1px solid #f0e8e2;
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 8px 24px rgba(84, 57, 56, 0.08);
}

.tf-home-highlights h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #4d3737;
}

.tf-home-highlights-grid {
  display: grid;
  gap: 1rem;
}

.tf-home-highlight-card {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #fdfbf9 0%, #f7efea 100%);
  border: 1px solid #eadbd1;
}

.tf-home-highlight-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #4d3737;
}

.tf-home-highlight-card p {
  margin: 0 0 0.85rem;
  color: #6f6363;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Entrega Rápida — mesmo cartão do bloco Grupo VIP */
#free-shipping {
  position: relative !important;
  overflow: hidden !important;
  padding: 2rem !important;
  margin-top: 0 !important;
  margin-bottom: 3rem !important;
  border: 2px solid #bbf7d0 !important;
  transition: none !important;
}

#free-shipping::before,
#free-shipping::after {
  content: '';
  position: absolute;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

#free-shipping::before {
  top: -2rem;
  right: -2rem;
  background: #dcfce7;
}

#free-shipping::after {
  bottom: -2rem;
  left: -2rem;
  background: #f5ebe8;
}

#free-shipping > div {
  position: relative;
  z-index: 1;
  align-items: stretch !important;
  gap: 2rem !important;
}

#free-shipping [style*='minHeight'] {
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

#free-shipping .max-w-xl {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#free-shipping h2 {
  margin-bottom: 1rem !important;
  font-size: 1.875rem !important;
  text-align: left !important;
}

#free-shipping ul.space-y-6 > * + * {
  margin-top: 1.25rem !important;
}

#free-shipping ul li {
  font-size: 1.125rem !important;
  line-height: 1.55 !important;
}

#free-shipping a[href*='wa.me'] {
  margin-top: 2rem !important;
}

#free-shipping > div > div:first-child {
  flex: 1 1 52% !important;
}

#free-shipping > div > div:last-child {
  flex: 0 0 44% !important;
  max-width: 44% !important;
  min-height: 240px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#free-shipping > div > div:last-child > div,
#free-shipping [class*='min-h-'] {
  width: 100% !important;
  min-height: 240px !important;
  height: 100% !important;
  margin-left: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#free-shipping img[src*='frete'],
#free-shipping img[alt*='Moto de entrega'] {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 240px !important;
  max-height: 320px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  display: block;
  margin: 0;
}

@media (min-width: 768px) {
  #free-shipping {
    padding: 3rem !important;
  }

  #free-shipping > div {
    min-height: 300px;
  }

  #free-shipping > div > div:last-child,
  #free-shipping > div > div:last-child > div,
  #free-shipping [class*='min-h-'] {
    min-height: 300px !important;
  }

  #free-shipping img[src*='frete'],
  #free-shipping img[alt*='Moto de entrega'] {
    min-height: 300px !important;
    max-height: 380px !important;
  }
}

/* Banner carrossel — mais altura e enquadramento Trevi Flash + modelo */
body.tf-pro main section:has(> img[src*='banner1']),
body.tf-pro main section:has(> img[src*='banner2']),
body.tf-pro main section:has(> img[src*='banner3']) {
  height: 460px !important;
  min-height: 460px !important;
  max-height: 460px !important;
}

body.tf-pro main section img[src*='banner2'],
body.tf-pro main img[src*='banner2'] {
  object-position: center center !important;
}

.tf-catalog-banner {
  margin: 12px auto 8px;
  max-width: 1220px;
  padding: 0 14px;
}

.tf-catalog-banner-inner {
  background: linear-gradient(135deg, #fff 0%, #f3ebe5 100%);
  border: 1px solid #eadbd1;
  border-radius: 14px;
  padding: 18px 20px;
}

.tf-catalog-banner h1 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 800;
  color: #4d3737;
}

.tf-catalog-banner p {
  margin: 0;
  color: #6f6363;
  line-height: 1.5;
}

/* Páginas Sobre / Contato (mesmo chrome da home) */
body.tf-static-content {
  background: #f8f7f6;
}

body.tf-static-content .tf-about-teaser {
  margin: 0;
  padding: 0;
}

body.tf-static-content.tf-cart-open {
  overflow: hidden;
}

body.tf-static-content .fixed.inset-y-0.right-0.translate-x-0 {
  transform: translateX(0) !important;
}

/* Shell — páginas legais (privacidade, termos) */
body.tf-static-site {
  background: #f8f7f6;
  padding-top: 0;
}

.tf-shell-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #f0e8e2;
  box-shadow: 0 4px 16px rgba(84, 57, 56, 0.06);
}

.tf-shell-header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tf-shell-brand img {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
}

.tf-shell-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  flex: 1 1 auto;
}

/* Ocultar elementos exclusivos do drawer no layout desktop */
.tf-shell-nav-brand,
.tf-shell-nav-wa-link {
  display: none;
}

/* Lista inline no desktop */
.tf-shell-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tf-shell-nav a,
.tf-shell-nav-list li a {
  color: #5c4f4f;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.tf-shell-nav a:hover,
.tf-shell-nav a.is-active,
.tf-shell-nav-list li a:hover,
.tf-shell-nav-list li a.is-active {
  color: #4d3737;
  border-bottom-color: #674b4a;
}

.tf-shell-wa {
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 10px;
  background: #674b4a;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}

.tf-shell-menu-btn {
  display: none;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid #eadbd1;
  border-radius: 8px;
  background: #fff;
  color: #4d3737;
  font-weight: 700;
  cursor: pointer;
}

.tf-shell-trust {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 14px 24px;
}

.tf-shell-trust-section {
  margin-bottom: 1rem;
}

.tf-shell-trust-inner {
  background: #fff;
  border: 1px solid #f0e8e2;
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 8px 24px rgba(84, 57, 56, 0.07);
}

.tf-shell-trust-inner h2 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #4d3737;
}

.tf-shell-trust-inner p {
  margin: 0 0 0.75rem;
  color: #6f6363;
  line-height: 1.6;
}

.tf-shell-payment-icons {
  font-weight: 700;
  color: #4d3737 !important;
}

.tf-shell-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.5rem;
}

.tf-shell-newsletter-form input[type='email'] {
  flex: 1 1 200px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #eadbd1;
  border-radius: 10px;
  font-size: 16px;
}

.tf-shell-newsletter-msg {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #5a7a5a;
}

.tf-shell-newsletter-msg.is-error {
  color: #9b4545;
}

.tf-shell-footer {
  background: #fff;
  border-top: 1px solid #f0e8e2;
  margin-top: 8px;
}

.tf-shell-footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px 14px 28px;
  text-align: center;
}

.tf-shell-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.tf-page-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.tf-legal-page {
  color: #4d3737;
  line-height: 1.65;
}

.tf-legal-page h1 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.tf-legal-page h2 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}

.tf-page-hero {
  margin-bottom: 1.25rem;
}

.tf-page-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a6f6e;
}

.tf-page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: #4d3737;
  letter-spacing: -0.02em;
}

.tf-page-lead {
  margin: 0;
  color: #6f6363;
  line-height: 1.6;
  font-size: 1.05rem;
}

.tf-page-prose h2 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: #4d3737;
}

.tf-page-prose p,
.tf-page-prose li {
  color: #5c4f4f;
}

.tf-page-list {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.tf-page-list li {
  margin-bottom: 0.45rem;
}

.tf-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.tf-contact-card {
  display: grid;
  gap: 0.25rem;
}

.tf-contact-card span:not(.tf-contact-icon) {
  color: #5c4f4f;
}

.tf-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  background: #f8f0eb;
  color: #674b4a;
}

.tf-contact-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.tf-contact-icon--wa {
  background: #e8f8ee;
  color: #25d366;
}

.tf-contact-card a {
  color: #674b4a;
  font-weight: 600;
  text-decoration: none;
}

.tf-contact-card a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .tf-home-highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tf-contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  /* ── Botão hambúrguer: ícone SVG, mesmo tamanho do botão React ── */
  .tf-shell-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #4d3737;
  }

  .tf-shell-menu-btn:hover {
    background: #f4ede9;
  }

  .tf-shell-menu-btn svg {
    flex-shrink: 0;
  }

  /* ── Nav drawer: mesma estrutura visual do React ──
     React: w-64 (256px), p-6 (24px), bg-white, shadow-xl, h-full, right-0 */
  .tf-shell-nav {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 256px !important;
    background: #ffffff !important;
    padding: 24px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    z-index: 9997 !important;
    /* shadow-xl do Tailwind */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
      0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    overflow-y: auto !important;
    border: none !important;
  }

  .tf-shell-nav.is-open {
    display: flex !important;
  }

  /* Branding no topo do drawer (igual ao React: logo icon + "TreviFlash") */
  .tf-shell-nav-brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 32px !important; /* mb-8 do React */
    width: 100% !important;
  }

  .tf-shell-nav-logo {
    height: 28px !important;
    width: auto !important;
    max-width: 160px !important;
  }

  /* Lista de links: space-y-6 (24px) entre itens, sem borders */
  .tf-shell-nav-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important; /* space-y-6 */
  }

  /* Links: text-gray-700 font-medium text-lg — exatamente como o React */
  .tf-shell-nav-list li a {
    color: #374151 !important; /* text-gray-700 */
    font-size: 1.125rem !important; /* text-lg */
    font-weight: 500 !important; /* font-medium */
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
  }

  .tf-shell-nav-list li a:hover {
    color: #4d3737 !important; /* hover:text-brown-900 */
  }

  .tf-shell-nav-list li a.is-active {
    color: #4d3737 !important;
    font-weight: 700 !important;
  }

  /* WhatsApp dentro do drawer (bônus para páginas estáticas) */
  .tf-shell-nav-wa-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: auto !important;
    padding: 12px 0 0 !important;
    color: #25d366 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    width: 100% !important;
    border: none !important;
    border-bottom: none !important;
  }

  /* WhatsApp no header (desktop/tablet): continua visível acima de 720px */
  .tf-shell-wa {
    display: none !important; /* ocultar no mobile; o link está dentro do drawer */
  }

  /* Backdrop escuro criado via JS */
  .tf-shell-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9996;
    cursor: pointer;
  }

  /* Bloqueia scroll do body enquanto menu aberto */
  body.tf-shell-menu-open {
    overflow: hidden;
  }
}

/* ── Tema Copa do Mundo — Brasil ── */
body.tf-theme-copa header {
  position: relative;
}

.tf-copa-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #009739 0%,
    #009739 33.33%,
    #ffdf00 33.33%,
    #ffdf00 66.66%,
    #002776 66.66%,
    #002776 100%
  );
  z-index: 60;
  pointer-events: none;
}

/* Bandeira 3D ao lado do logo */
.tf-copa-flag {
  --tf-flag-w: 46px;
  --tf-flag-h: 30px;
  --tf-pole-h: 34px;
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  margin-left: 10px;
  flex-shrink: 0;
  perspective: 220px;
  height: 44px;
  vertical-align: middle;
  filter: drop-shadow(1px 3px 4px rgba(0, 40, 20, 0.18));
}

.tf-copa-flag-stand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}

.tf-copa-flag-finial {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd86b, #c9a227 55%, #8a6d12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  margin-bottom: -1px;
}

.tf-copa-flag-pole {
  width: 3px;
  height: var(--tf-pole-h);
  border-radius: 2px;
  background: linear-gradient(90deg, #8a6d12 0%, #e8c547 38%, #f5df7a 52%, #b8941f 100%);
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.15);
}

.tf-copa-flag-base {
  width: 10px;
  height: 3px;
  margin-top: -1px;
  border-radius: 1px;
  background: linear-gradient(180deg, #b8941f, #7a6210);
}

.tf-copa-flag-wind {
  position: relative;
  transform-style: preserve-3d;
  animation: tf-copa-flag-sway 5s ease-in-out infinite;
  margin-bottom: 5px;
  margin-left: -1px;
}

.tf-copa-flag-segments {
  display: flex;
  width: var(--tf-flag-w);
  height: var(--tf-flag-h);
  transform-origin: left center;
  transform: rotateY(-4deg);
  border-radius: 0 4px 4px 0;
  overflow: hidden;
  box-shadow:
    inset -2px 0 6px rgba(0, 0, 0, 0.12),
    2px 2px 6px rgba(0, 0, 0, 0.1);
}

.tf-copa-flag-seg {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  margin-right: -0.4px;
  background-image: var(--flag-src);
  background-repeat: no-repeat;
  background-size: var(--tf-flag-w) var(--tf-flag-h);
  background-position: var(--slice-pos) 0;
  transform-origin: left bottom;
  animation: tf-copa-flag-fabric 2.4s ease-in-out infinite;
  animation-delay: calc(var(--n) * 0.07s);
  will-change: transform;
}

.tf-copa-flag-seg:first-child {
  border-radius: 1px 0 0 1px;
}

.tf-copa-flag-seg:last-child {
  border-radius: 0 4px 4px 0;
}

@keyframes tf-copa-flag-fabric {
  0%,
  100% {
    transform: rotateX(0deg) rotateZ(0deg) translateY(0) scaleY(1);
  }
  35% {
    transform: rotateX(9deg) rotateZ(0.4deg) translateY(-1px) scaleY(1.03);
  }
  70% {
    transform: rotateX(-5deg) rotateZ(-0.2deg) translateY(0.5px) scaleY(0.98);
  }
}

@keyframes tf-copa-flag-sway {
  0%,
  100% {
    transform: rotateZ(0deg) rotateY(0deg);
  }
  50% {
    transform: rotateZ(1.2deg) rotateY(3deg);
  }
}

@media (min-width: 768px) {
  .tf-copa-flag {
    --tf-flag-w: 54px;
    --tf-flag-h: 36px;
    --tf-pole-h: 40px;
    margin-left: 12px;
    height: 52px;
  }

  .tf-copa-flag-finial {
    width: 8px;
    height: 8px;
  }

  .tf-copa-flag-pole {
    width: 3px;
  }
}

@media (min-width: 1024px) {
  .tf-copa-flag {
    --tf-flag-w: 60px;
    --tf-flag-h: 40px;
    --tf-pole-h: 44px;
    height: 58px;
  }

  .tf-copa-flag-finial {
    width: 9px;
    height: 9px;
  }
}

/* Banner Copa — home e catálogo */
.tf-copa-banner {
  margin: 0 auto 14px;
  max-width: 1220px;
  padding: 0 14px;
}

.tf-copa-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(105deg, #e8f8ee 0%, #fffbe8 48%, #e8eef8 100%);
  border: 1px solid #d4e8da;
  box-shadow: 0 4px 14px rgba(0, 55, 20, 0.06);
}

.tf-copa-banner-ball {
  font-size: 1.35rem;
  line-height: 1;
  animation: tf-copa-ball-bounce 2s ease-in-out infinite;
}

.tf-copa-banner-text {
  flex: 1 1 200px;
  margin: 0;
  font-size: 0.92rem;
  color: #3d4a3f;
  line-height: 1.45;
}

.tf-copa-banner-text strong {
  color: #007a2f;
}

.tf-copa-banner-link {
  padding: 8px 14px;
  border-radius: 8px;
  background: #009739;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.tf-copa-banner-link:hover {
  background: #007a2f;
}

@keyframes tf-copa-ball-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Acentos de cor — sem alterar layout */
body.tf-theme-copa .tf-hero-btn-primary,
body.tf-theme-copa .tf-shell-wa {
  background: #009739;
}

body.tf-theme-copa .tf-hero-btn-primary:hover,
body.tf-theme-copa .tf-shell-wa:hover {
  background: #007a2f;
}

body.tf-theme-copa .tf-home-highlight-card {
  border-top: 3px solid #ffdf00;
}

body.tf-theme-copa .tf-shell-nav a.is-active,
body.tf-theme-copa .tf-shell-nav a:hover {
  border-bottom-color: #009739;
}

body.tf-theme-copa header .flex.items-center.gap-2 + nav a:hover,
body.tf-theme-copa .tf-catalog-toolbar .tf-hero-btn-outline:hover {
  color: #007a2f;
}

/* Catálogo — fundo e bordas Brasil nos cards */
body.tf-theme-copa #products {
  position: relative;
  padding-top: 1.1rem !important;
  padding-bottom: 1.35rem !important;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 55% at 12% 18%, rgba(0, 155, 57, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 82%, rgba(0, 39, 118, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(255, 223, 0, 0.05) 0%, transparent 60%),
    linear-gradient(165deg, #f5faf6 0%, #faf9f2 48%, #f4f6fa 100%);
  border: 1px solid rgba(0, 155, 57, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 223, 0, 0.15);
}

body.tf-theme-copa #products::before {
  content: '';
  display: block;
  height: 3px;
  margin: 0 0 1rem;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    #009739 0%,
    #009739 33%,
    #ffdf00 33%,
    #ffdf00 66%,
    #002776 66%,
    #002776 100%
  );
}

body.tf-theme-copa #products [class*='rounded-xl'],
body.tf-theme-copa .tf-product-card {
  position: relative;
  isolation: isolate;
  border-color: transparent !important;
  background-clip: padding-box;
}

body.tf-theme-copa #products [class*='rounded-xl']::after,
body.tf-theme-copa .tf-product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    140deg,
    #009739 0%,
    #00b347 18%,
    #ffdf00 42%,
    #ffe94d 58%,
    #002776 82%,
    #0039a6 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  transition: padding 0.25s ease, opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  body.tf-theme-copa #products [class*='rounded-xl']:hover::after,
  body.tf-theme-copa .tf-product-card:hover::after {
    padding: 3px;
    opacity: 1;
  }

  body.tf-theme-copa #products [class*='rounded-xl']:hover,
  body.tf-theme-copa .tf-product-card:hover {
    box-shadow:
      0 12px 26px rgba(0, 39, 118, 0.1),
      0 4px 12px rgba(0, 155, 57, 0.08) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tf-copa-flag-wind,
  .tf-copa-flag-seg,
  .tf-copa-banner-ball {
    animation: none !important;
  }
}

/* ============================================================
   CORREÇÕES DE RESPONSIVIDADE MOBILE — Jun 2026
   ============================================================ */

/* ── 1. Header mobile: logo + bandeira Copa podem empurrar
        o hambúrguer para fora da tela em dispositivos ≤375px.
        Reduzimos o logo e a bandeira para garantir espaço. ── */

@media (max-width: 767px) {
  /* Permite que o grupo esquerdo (logo + bandeira) encolha */
  header .flex.items-center.gap-2:has(.tf-brand-link) {
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  .tf-brand-link {
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  .tf-brand-logo {
    height: 32px !important;
    max-width: min(136px, 34vw) !important;
  }

  /* Bandeira Copa: menor no mobile para liberar espaço */
  .tf-copa-flag {
    --tf-flag-w: 38px;
    --tf-flag-h: 25px;
    --tf-pole-h: 28px;
    margin-left: 5px !important;
    height: 36px !important;
  }
}

/* Oculta bandeira Copa em telas muito pequenas */
@media (max-width: 330px) {
  .tf-copa-flag {
    display: none !important;
  }
}

/* Garante que os botões do header (carrinho + hambúrguer) fiquem
   sempre acessíveis com área de toque adequada */
@media (max-width: 767px) {
  header .flex.items-center.gap-2:last-child,
  header .flex.items-center.gap-4:last-child {
    flex-shrink: 0 !important;
  }
}

/* ── 2. Banner do carrossel: 460px é alto demais no mobile,
        cortando a imagem. Ajustamos para proporção adequada. ── */

@media (max-width: 767px) {
  body.tf-pro main section:has(> img[src*='banner1']),
  body.tf-pro main section:has(> img[src*='banner2']),
  body.tf-pro main section:has(> img[src*='banner3']) {
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
  }
}

/* ── 3. Botões de navegação do carrossel: no mobile (touch) não
        existe hover, então os botões nunca ficavam visíveis. ── */

@media (hover: none), (pointer: coarse) {
  body.tf-pro main section button[aria-label*='anterior'],
  body.tf-pro main section button[aria-label*='anterior' i],
  body.tf-pro main section button[aria-label='Imagem anterior'],
  body.tf-pro main section button[aria-label='Próxima imagem'],
  body.tf-pro main section button[aria-label*='próxima' i],
  body.tf-pro main section button[aria-label*='Imagem'] {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    pointer-events: auto !important;
  }
}

/* ── 4. Seção #free-shipping: layout 2 colunas (52% texto + 44%
        imagem) fica muito apertado no mobile; empilhar. ── */

@media (max-width: 767px) {
  #free-shipping {
    padding: 1.5rem !important;
    margin-bottom: 1.75rem !important;
  }

  #free-shipping > div {
    flex-direction: column !important;
    gap: 1.25rem !important;
    min-height: auto !important;
    align-items: stretch !important;
  }

  #free-shipping > div > div:first-child {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  #free-shipping > div > div:last-child {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    min-height: 160px !important;
  }

  #free-shipping > div > div:last-child > div,
  #free-shipping [class*='min-h-'] {
    min-height: 160px !important;
    width: 100% !important;
  }

  #free-shipping img[src*='frete'],
  #free-shipping img[alt*='Moto de entrega'] {
    min-height: 160px !important;
    max-height: 200px !important;
    width: 100% !important;
  }

  #free-shipping h2 {
    font-size: 1.4rem !important;
    text-align: left !important;
    margin-bottom: 0.75rem !important;
  }

  #free-shipping ul li {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  #free-shipping a[href*='wa.me'] {
    margin-top: 1.25rem !important;
  }
}

/* ── 5. Padding lateral do main: 8px é muito apertado no mobile ── */

@media (max-width: 767px) {
  body.tf-pro main {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ── 6. Margem entre sections: reduzir de 20px para 12px no mobile ── */

@media (max-width: 767px) {
  body.tf-pro main > section,
  body.tf-pro main > div + section {
    margin-bottom: 12px !important;
  }
}

/* ── 7. Hero: padding lateral mais confortável no mobile ── */

@media (max-width: 767px) {
  .tf-hero {
    padding: 0 10px !important;
    margin: 10px auto 6px !important;
  }

  .tf-hero-inner {
    padding: 18px 14px !important;
  }

  .tf-hero-title {
    font-size: clamp(1.15rem, 5vw, 1.5rem) !important;
  }

  .tf-hero-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ── 8. Destaques home: padding no mobile ── */

@media (max-width: 767px) {
  .tf-home-highlights {
    padding: 0 10px !important;
    margin: 1rem auto 1.25rem !important;
  }

  .tf-home-highlights-inner {
    padding: 1.25rem 1rem !important;
  }

  .tf-home-highlight-card a.tf-hero-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ── 9. Banner Copa: padding e texto no mobile ── */

@media (max-width: 767px) {
  .tf-copa-banner {
    padding: 0 10px !important;
    margin-bottom: 10px !important;
  }

  .tf-copa-banner-inner {
    padding: 10px 12px !important;
    gap: 8px 10px !important;
  }

  .tf-copa-banner-text {
    font-size: 0.85rem !important;
  }

  .tf-copa-banner-link {
    padding: 7px 10px !important;
    font-size: 0.82rem !important;
  }
}

/* ── 10. Catalog banner: padding no mobile ── */

@media (max-width: 767px) {
  .tf-catalog-banner {
    padding: 0 10px !important;
  }

  .tf-catalog-banner-inner {
    padding: 14px 16px !important;
  }
}

/* ── 11. About teaser: garantir coluna única no mobile ── */

@media (max-width: 767px) {
  .tf-about-teaser-inner {
    grid-template-columns: 1fr !important;
    padding: 1.25rem 1rem !important;
  }
}

/* ── 12. Products section: padding no mobile ── */

@media (max-width: 480px) {
  body.tf-pro #products {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* ── 13. Mobile nav drawer: garantir área de toque nos links ── */

@media (max-width: 767px) {
  .fixed.inset-0 nav a,
  .fixed.inset-0 ul a {
    min-height: 44px;
    display: flex !important;
    align-items: center;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
}

/* ── 14. Carrinho drawer: cabeçalho fixo no mobile ── */

@media (max-width: 480px) {
  .fixed.inset-y-0.right-0 {
    width: 100% !important;
  }
}

/* ── 15. Copa theme: bordas coloridas nos cards não precisam
        de padding duplo em telas pequenas ── */

@media (max-width: 480px) {
  body.tf-theme-copa #products [class*='rounded-xl']::after,
  body.tf-theme-copa .tf-product-card::after {
    padding: 1.5px !important;
  }
}

/* ── 16. Toolbar do catálogo: melhor layout em telas estreitas ── */

@media (max-width: 480px) {
  .tf-catalog-toolbar {
    gap: 8px !important;
  }

  .tf-catalog-search-wrap {
    flex: 1 1 100% !important;
  }

  .tf-catalog-price,
  .tf-catalog-sort {
    flex: 1 1 calc(50% - 4px) !important;
    font-size: 15px !important;
  }

  .tf-catalog-stock-label {
    flex: 1 1 100% !important;
    justify-content: center;
  }
}

/* ── 17. Skeleton: grid correto no mobile ── */

@media (max-width: 767px) {
  .tf-skel-hero {
    margin: 10px 12px !important;
  }

  .tf-skel-grid {
    padding: 0 12px 20px !important;
    gap: 10px !important;
  }
}

/* Página de produto: evita flash do template antes do patch do catálogo */
html.tf-detail-pending main {
  visibility: hidden;
}

html.tf-detail-ready main {
  visibility: visible;
}
