/* Refinos responsivos finais — carregado depois dos estilos do tema. */
.product-visual img,
.detail-visual img,
.mini-icon img {
  object-fit: contain;
  background: #f4f6fa;
}

/* Painel de filtros do catálogo */
.catalog-sidebar {
  align-self: start;
  position: static;
  padding: 22px;
  border: 1px solid #e3e8f1;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8f9fc 100%);
  box-shadow: 0 14px 40px rgba(6, 26, 58, .07);
}

@media (min-width: 751px) {
  .catalog-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 32px;
  }
}

.filter-title {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #e1e6ef;
}

.filter-title strong {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-size: 14px;
  letter-spacing: -.2px;
}

.filter-title strong::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 3px solid #ff7900;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 121, 0, .12);
}

.filter-title button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  color: #d85a00;
  font-weight: 800;
  transition: background .2s ease, color .2s ease;
}

.filter-title button:hover {
  background: #fff0e4;
  color: var(--navy);
}

.filter-group {
  padding: 22px 0;
  border-bottom: 1px solid #e3e8f1;
}

.filter-group h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: var(--navy);
  font-size: 12px;
  letter-spacing: .45px;
  text-transform: uppercase;
}

.filter-group h3::before {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #fff0e4;
  color: #e66100;
  font-size: 14px;
}

.filter-group:has(input[name="category"]) h3::before { content: "▦"; }
.filter-group:has(input[name="solution"]) h3::before { content: "⌁"; }
.filter-group:has(input[name="price"]) h3::before { content: "R$"; font-size: 9px; font-weight: 900; }

.filter-group label {
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 44px;
  margin: 5px 0;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #536077;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.filter-group label:hover {
  border-color: #d9e0eb;
  background: #fff;
  color: var(--navy);
  transform: translateX(2px);
}

.filter-group label:has(input:checked) {
  border-color: rgba(255, 121, 0, .34);
  background: #fff5eb;
  color: var(--navy);
  font-weight: 800;
}

.filter-group input[type="radio"] {
  appearance: none;
  width: 17px;
  height: 17px;
  margin: 0;
  border: 2px solid #aeb7c6;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.filter-group input[type="radio"]:checked {
  border: 5px solid #ff7900;
  box-shadow: 0 0 0 3px rgba(255, 121, 0, .12);
}

.filter-group input[type="radio"]:focus-visible {
  outline: 3px solid rgba(20, 105, 190, .25);
  outline-offset: 2px;
}

.filter-group label b {
  min-width: 27px;
  padding: 4px 7px;
  border-radius: 20px;
  background: #e9edf4;
  color: #68758b;
  text-align: center;
}

.filter-group label:has(input:checked) b {
  background: #ff7900;
  color: #fff;
}

.catalog-sidebar .help-card {
  margin: 22px -7px -7px;
  padding: 22px;
  border: 1px solid rgba(255, 121, 0, .24);
  box-shadow: 0 14px 30px rgba(6, 26, 58, .16);
}

@media (max-width: 850px) {
  .menu-btn,
  .cart-link {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .menu-btn { display: inline-flex; }
  .cart-link { display: flex; }

  .menu {
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .hero { min-height: 0; }

  .catalog-sidebar.open {
    display: block;
    position: static;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(6, 26, 58, .08);
  }

  .mobile-filter,
  .catalog-toolbar select,
  .catalog-search,
  .btn,
  .add-cart,
  .quantity button,
  .quantity input {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 0;
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 43px);
    letter-spacing: -2px;
  }

  .hero p { font-size: 15px; }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 28px;
  }

  .hero-actions .btn { width: 100%; }

  .section-head { margin-bottom: 28px; }

  .products-grid,
  .catalog-results .products-grid {
    grid-template-columns: 1fr;
  }

  .product-visual,
  .catalog-product .product-visual {
    height: 290px;
  }

  .product-info h3,
  .catalog-product .product-info h3 {
    min-height: 0;
  }

  .catalog-hero {
    padding-top: 125px;
    padding-bottom: 52px;
  }

  .catalog-hero h1 {
    font-size: clamp(36px, 10vw, 42px);
    letter-spacing: -2px;
  }

  .results-head { gap: 12px; }

  .detail-visual { min-height: 350px; }

  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .cart-item > strong,
  .cart-qty {
    grid-column: 2;
    justify-self: start;
  }

  .summary { padding: 22px; }

  .coupon-box > div {
    flex-direction: column;
  }

  .coupon-box button {
    min-height: 44px;
    padding: 0 18px;
  }

  .modal-card {
    width: calc(100% - 28px);
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    padding: 28px 20px;
  }

  .banner .btn { width: 100%; }
}

@media (max-width: 380px) {
  .brand-logo {
    width: 105px;
    height: 44px;
  }

  .nav { gap: 7px; }

  .cart-link {
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero { min-height: 0; }

  .hero-carousel-controls { gap: 7px; }
  .hero-dots { gap: 5px; }
  .hero-arrow { width: 32px; height: 32px; }

  .product-visual,
  .catalog-product .product-visual {
    height: 250px;
  }

  .detail-visual { min-height: 300px; }
}

@media (pointer: coarse) {
  button,
  .btn,
  .menu a,
  .section-link,
  .help-card a {
    min-height: 44px;
  }
}
