/* ============================================================
   IHealth - Prateleira moderna de produtos (WooCommerce shop)
   Paleta: #0891B2 (ciano) / #164E63 (ciano escuro)
   Compatível com o grid float do woocommerce-layout.css
   (ul.products li.product usa float:left + width percentual)
   v4 - sem prefixo body.archive (body usa woocommerce-page)
   ============================================================ */

/* ---------- Área da loja ---------- */
.woocommerce-page .content-area { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.woocommerce-page ul.products { max-width: 1160px; margin: 0 auto !important; padding: 4px 0 28px !important; }

/* ---------- Card do produto ---------- */
.woocommerce-page ul.products li.product {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(22, 78, 99, 0.08);
  border: 1px solid rgba(22, 78, 99, 0.06);
  overflow: hidden;
  margin-right: 3.8% !important;
  margin-left: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.22s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  float: left;
}
.woocommerce-page ul.products li.product.last { margin-right: 0 !important; }
.woocommerce-page ul.products li.product:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(22, 78, 99, 0.16); }

/* Área da imagem */
.woocommerce-page ul.products li.product a.woocommerce-loop-product__link {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-decoration: none;
}
.woocommerce-page ul.products li.product a.woocommerce-loop-product__link img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f1f5f9;
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}
.woocommerce-page ul.products li.product:hover a.woocommerce-loop-product__link img { transform: scale(1.04); }

/* ---------- Etiqueta pílula de categoria ---------- */
.woocommerce-page ul.products li.product.product_cat-bioativos-apicolas::after { content: "Bioativos Apícolas"; }
.woocommerce-page ul.products li.product.product_cat-cosmeticos::after { content: "Cosméticos"; }
.woocommerce-page ul.products li.product.product_cat-medicamentos::after { content: "Medicamentos"; }
.woocommerce-page ul.products li.product.product_cat-suplementos-funcionais::after { content: "Suplementos e Funcionais"; }
.woocommerce-page ul.products li.product.product_cat-veterinarios::after { content: "Veterinários"; }
.woocommerce-page ul.products li.product.product_cat-mel-propolis::after { content: "Mel+Própolis"; }
.woocommerce-page ul.products li.product.product_cat-sem-categoria::after { display: none; }
.woocommerce-page ul.products li.product[class*="product_cat-"]::after {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #164E63;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(22, 78, 99, 0.14);
  z-index: 2;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(22, 78, 99, 0.10);
  pointer-events: none;
}

/* ---------- Título ---------- */
.woocommerce-page ul.products li.product h2.woocommerce-loop-product__title {
  padding: 10px 14px 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: #0f2c38;
  text-align: center;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  order: 1;
}
.woocommerce-page ul.products li.product h2.woocommerce-loop-product__title a { color: #0f2c38; text-decoration: none; }

/* ---------- Preço ---------- */
.woocommerce-page ul.products li.product .price {
  display: block;
  float: none !important;
  width: 100% !important;
  text-align: center;
  padding: 8px 14px 12px;
  color: #0891B2 !important;
  font-size: 19px;
  font-weight: 800;
  order: 2;
  margin: 0 !important;
  line-height: 1.4;
}
.woocommerce-page ul.products li.product .price .woocommerce-Price-currencySymbol { font-size: 13px; font-weight: 600; }
.woocommerce-page ul.products li.product .price ins { text-decoration: none; color: #0891B2 !important; background: transparent; }
.woocommerce-page ul.products li.product .price del { color: #94a3b8; font-size: 13px; margin-right: 6px; }

/* ---------- Avaliação ---------- */
.woocommerce-page ul.products li.product .star-rating { margin: 4px auto 0; }

/* ---------- Botão adicionar ao carrinho ---------- */
.woocommerce-page ul.products li.product a.add_to_cart_button,
.woocommerce-page ul.products li.product a.button {
  display: block;
  float: none !important;
  clear: none;
  width: calc(100% - 28px);
  margin: 0 14px 16px !important;
  border-radius: 999px;
  background: #0891B2;
  color: #ffffff !important;
  border: 1px solid #0891B2;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 8px;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  order: 3;
  transition: background 0.18s cubic-bezier(0.23, 1, 0.32, 1), transform 0.14s cubic-bezier(0.23, 1, 0.32, 1);
}
.woocommerce-page ul.products li.product a.add_to_cart_button:hover,
.woocommerce-page ul.products li.product a.button:hover { background: #164E63; border-color: #164E63; }
.woocommerce-page ul.products li.product a.add_to_cart_button:active { transform: scale(0.97); }
.woocommerce-page ul.products li.product a.added_to_cart {
  display: block;
  text-align: center;
  color: #0891B2;
  font-size: 12px;
  margin: 0 14px 14px;
  text-decoration: none;
}

/* ---------- Ordenação ---------- */
.woocommerce-page .woocommerce-ordering select {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  color: #164E63;
  background: #fff;
  outline: none;
}

/* ---------- Responsivo: tablet 3 col, mobile 2 col ---------- */
@media (max-width: 1024px) {
  .woocommerce-page ul.products li.product { width: 30.75% !important; margin-right: 3.8% !important; }
  .woocommerce-page ul.products li.product.last { margin-right: 0 !important; }
}
@media (max-width: 768px) {
  .woocommerce-page ul.products li.product { width: 48% !important; margin-right: 4% !important; margin-bottom: 16px !important; }
  .woocommerce-page ul.products li.product.last { margin-right: 0 !important; }
  .woocommerce-page ul.products li.product a.woocommerce-loop-product__link img { height: 150px; }
}


/* ============================================================
   IHealth - Barra de filtros de categoria + busca (pílulas)
   Paleta: #0891B2 / #164E63
   ============================================================ */

.ihb-filter-bar {
  max-width: 1160px;
  margin: 0 auto 24px;
  padding: 4px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ihb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #164E63;
  border: 1px solid rgba(22, 78, 99, 0.18);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(22, 78, 99, 0.06);
  transition: background 0.18s cubic-bezier(0.23, 1, 0.32, 1),
    color 0.18s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.14s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.18s cubic-bezier(0.23, 1, 0.32, 1);
}
.ihb-pill:hover {
  background: #164E63;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22, 78, 99, 0.14);
}
.ihb-pill-active {
  background: #0891B2;
  color: #ffffff;
  border-color: #0891B2;
}
.ihb-pill-active:hover { background: #164E63; border-color: #164E63; }
.ihb-pill:active { transform: scale(0.97); }
.ihb-pill-count {
  background: rgba(22, 78, 99, 0.08);
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}
.ihb-pill-active .ihb-pill-count { background: rgba(255, 255, 255, 0.22); }

/* ---------- Busca ---------- */
.ihb-search-box { margin-left: auto; }
.ihb-search-form {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(22, 78, 99, 0.18);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(22, 78, 99, 0.06);
  overflow: hidden;
}
.ihb-search-form input[type="text"] {
  border: 0;
  outline: none;
  background: transparent;
  padding: 9px 14px;
  font-size: 13px;
  color: #164E63;
  width: 220px;
}
.ihb-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0891B2;
  color: #ffffff;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s cubic-bezier(0.23, 1, 0.32, 1), transform 0.14s cubic-bezier(0.23, 1, 0.32, 1);
}
.ihb-search-form button:hover { background: #164E63; }
.ihb-search-form button:active { transform: scale(0.95); }

/* ---------- Responsivo ---------- */
@media (max-width: 768px) {
  .ihb-search-box { margin-left: 0; width: 100%; }
  .ihb-search-form input[type="text"] { width: 100%; flex: 1; }
  .ihb-pill { padding: 7px 12px; font-size: 12px; }
}
