/* ==========================================================================
   ESTILOS DO CARD DE PRODUTO TENDTUDO (WIDGET NATIVO ELEMENTOR)
   ========================================================================== */

.tt-card-container {
  box-sizing: border-box;
  width: 100%;
}

.tt-prod-card {
  background: #ffffff;
  border: 1.5px solid #e2edf3;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  height: 100%;
}

.tt-prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 79, 135, 0.12);
  border-color: #b9d5e8;
}

/* Imagem e Topo */
.tt-prod-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f4f8fb;
}

.tt-prod-img-wrap a {
  display: block;
  text-decoration: none;
}

.tt-prod-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.tt-prod-card:hover .tt-prod-img {
  transform: scale(1.05);
}

/* Badge (NOVO / OFERTA) */
.tt-prod-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #00b4d8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  z-index: 5;
  text-transform: uppercase;
}

/* Botão Favorito (Coração) */
.tt-prod-wish-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, color 0.2s, background 0.2s;
  padding: 0;
}

.tt-prod-wish-btn:hover {
  background: #ffffff;
  color: #e53e3e;
  transform: scale(1.1);
}

.tt-prod-wish-btn.active {
  color: #e53e3e;
}

.tt-prod-wish-btn svg {
  width: 18px;
  height: 18px;
}

/* Corpo do Card */
.tt-prod-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tt-prod-title {
  font-size: 15px;
  font-weight: 700;
  color: #17364b;
  margin: 0 0 10px 0;
  line-height: 1.35;
  min-height: 42px;
}

.tt-prod-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.tt-prod-title a:hover {
  color: #0d4f87;
}

.tt-prod-price {
  font-size: 20px;
  font-weight: 800;
  color: #0d4f87;
  margin: 0 0 2px 0;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.tt-prod-price del,
.tt-price-regular {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
  order: 0;
}

.tt-prod-price ins,
.tt-price-sale {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #e67e22;
  text-decoration: none;
  order: 1;
}

.tt-prod-subtext {
  font-size: 12px;
  color: #10b981;
  font-weight: 700;
  margin: 0 0 16px 0;
}

/* Botões do Rodapé */
.tt-prod-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.tt-btn-detalhes {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border: 1.5px solid #c5d8ea;
  background: #ffffff;
  color: #0d4f87;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tt-btn-detalhes:hover {
  background: #f0f7fc;
  border-color: #0d4f87;
  color: #0d4f87;
}

.tt-btn-orcamento {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border: 0;
  background: #22c55e;
  color: #ffffff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tt-btn-orcamento:hover {
  background: #16a34a;
  transform: translateY(-1px);
  color: #ffffff;
}

/* Grade de Produtos */

/* Garante que o wrapper do Elementor não quebre o layout */
.elementor-widget-tendtudo_products_grid,
.elementor-widget-tendtudo_products_grid .elementor-widget-container {
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.tt-products-grid-wrapper {
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.tt-products-grid {
  display: grid;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0; /* evita overflow dentro de flex/grid pai */
}

.tt-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tt-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tt-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Os cards também precisam de min-width: 0 para não vazar */
.tt-products-grid .tt-prod-card {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .tt-grid-cols-4, .tt-grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .tt-grid-cols-4, .tt-grid-cols-3, .tt-grid-cols-2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ESTILOS DA SIDEBAR DE FILTROS DO CATÁLOGO (IDÊNTICO À IMAGEM ENVIADA)
   ========================================================================== */
.tt-sidebar-widget {
  background: #ffffff;
  border: 1.5px solid #e2edf3;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(13, 79, 135, 0.04);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  box-sizing: border-box;
}

.tt-sidebar-heading {
  font-size: 13px;
  font-weight: 800;
  color: #17364b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px 0;
}

.tt-sidebar-heading svg {
  color: #1a6eb5;
}

.tt-sidebar-cats-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tt-sidebar-cat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #4a6275;
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
}

.tt-sidebar-cat-item:hover {
  background: #f0f7fc;
  color: #0d4f87;
}

.tt-sidebar-cat-item.active {
  background: #f0f7fc;
  color: #0d4f87;
  font-weight: 700;
}

.tt-cat-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #718096;
  transition: color 0.2s ease;
  object-fit: contain;
}

.tt-cat-icon-img {
  display: block;
}

.tt-sidebar-cat-item:hover .tt-cat-icon,
.tt-sidebar-cat-item.active .tt-cat-icon {
  color: #0d4f87;
}

.tt-cat-name {
  flex-grow: 1;
}

.tt-cat-count {
  background: #e2edf3;
  color: #4a6275;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 50px;
  min-width: 20px;
  text-align: center;
}

.tt-sidebar-cat-item.active .tt-cat-count {
  background: #0d4f87;
  color: #ffffff;
}

.tt-sidebar-divider {
  height: 1px;
  background: #e2edf3;
  margin: 22px 0;
}

.tt-sidebar-attrs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tt-attr-group-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}

.tt-attr-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tt-attr-term {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #374151;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #e2edf3;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tt-attr-term:hover,
.tt-attr-term.active {
  background: #e8f4fd;
  color: #0d4f87;
  border-color: #b9d5e8;
}

.tt-price-filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tt-price-current {
  font-size: 13px;
  font-weight: 800;
  color: #0d4f87;
  letter-spacing: 0.5px;
}

.tt-price-range-input {
  width: 100%;
  accent-color: #0d4f87;
  height: 6px;
  cursor: pointer;
}

.tt-price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #718096;
}

.tt-sidebar-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #22c55e;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
  margin-top: 6px;
}

.tt-sidebar-wa-btn:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.tt-products-empty {
  margin: 16px 0;
  padding: 20px;
  background: #f4f8fb;
  border: 1px dashed #b9d5e8;
  border-radius: 12px;
  color: #4a6170;
  font-size: 15px;
}

