﻿/* ==========================================================================
   HUERTO URBANO GROW - CATEGORY PRODUCT CUSTOM (2026 PREMIUM)
   Archivo: /wp-content/uploads/css/templates/hug-template-category.css
   ========================================================================== */

/* 1. CONTENEDORES PRINCIPALES */
body.tax-product_cat,
body.tax-product_cat #wrapper,
body.tax-product_cat .site,
body.tax-product_cat .site-container,
body.tax-product_cat .content-area,
body.tax-product_cat #primary,
body.tax-product_cat #main {
  background-color: #0b0d0a !important;
  color: #cbd5e1 !important;
}

body.tax-product_cat .site-inner {
  padding: 0 !important;
  background: #0b0d0a !important;
}

/* 2. CABECERA DE CATEGORIA */
body.tax-product_cat .woocommerce-products-header,
body.tax-product_cat .entry-hero-container-inner,
body.tax-product_cat .entry-hero-container {
  background-color: #0b0d0a !important;
}

body.tax-product_cat .woocommerce-products-header__title {
  color: #ffffff !important;
  font-family: 'Syne', 'Inter', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px;
}

body.tax-product_cat .kadence-breadcrumbs {
  font-size: 0.95rem;
  color: #64748b !important;
}

body.tax-product_cat .kadence-breadcrumbs a {
  color: #a3d133 !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

body.tax-product_cat .kadence-breadcrumbs a:hover {
  color: #7ba823 !important;
  text-decoration: underline;
}

/* 3. GRID DE PRODUCTOS */
body.tax-product_cat ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 4. TARJETA DE PRODUCTO - Matar el content-bg blanco de Kadence */
body.tax-product_cat ul.products li.product,
body.tax-product_cat ul.products li.product-category,
body.tax-product_cat ul.products .entry.content-bg.loop-entry {
  display: flex !important;
  flex-direction: column !important;
  background: rgba(255,255,255,0.03) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  padding: 0 !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, border-color 0.3s ease;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

body.tax-product_cat ul.products .entry.content-bg.loop-entry .content-bg,
body.tax-product_cat ul.products .entry.content-bg .entry-content-wrap,
body.tax-product_cat ul.products .entry.content-bg .product-details.content-bg {
  background: transparent !important;
}

body.tax-product_cat ul.products li.product:hover,
body.tax-product_cat ul.products li.product-category:hover,
body.tax-product_cat ul.products .entry.content-bg.loop-entry:hover {
  transform: translateY(-4px);
  border-color: rgba(163,209,51,0.4) !important;
  background: rgba(255,255,255,0.05) !important;
}

/* 5. IMAGEN DEL PRODUCTO Y SUBCATEGORIAS */
body.tax-product_cat ul.products li.product a img,
body.tax-product_cat ul.products li.product-category a img,
body.tax-product_cat ul.products .loop-entry img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  object-fit: contain !important;
  background: #ffffff !important;
  border-radius: 16px 16px 0 0 !important;
  margin: 0 !important;
  display: block !important;
  transition: transform 0.5s ease;
}

body.tax-product_cat ul.products li.product:hover a img,
body.tax-product_cat ul.products li.product-category:hover a img {
  transform: scale(1.03);
}

/* 6. TITULO DEL PRODUCTO */
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product h2,
body.tax-product_cat ul.products .loop-entry .woocommerce-loop-product__title,
body.tax-product_cat ul.products .woocommerce-loop-category__title {
  color: #f1f5f9 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
  padding: 16px 16px 0 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  background: transparent !important;
}

body.tax-product_cat ul.products .woocommerce-loop-category__title mark {
  background: transparent !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

/* 7. PRECIO */
body.tax-product_cat ul.products li.product .price,
body.tax-product_cat ul.products li.product .price .woocommerce-Price-amount,
body.tax-product_cat ul.products .loop-entry .price,
body.tax-product_cat ul.products .loop-entry .price .woocommerce-Price-amount {
  color: #a3d133 !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  background: none !important;
}

body.tax-product_cat ul.products li.product .price {
  padding: 8px 16px 0 !important;
  margin: 0 !important;
  display: block !important;
}

body.tax-product_cat ul.products li.product .price del,
body.tax-product_cat ul.products li.product .price del * {
  color: #64748b !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
}

body.tax-product_cat ul.products li.product .price ins {
  text-decoration: none !important;
}

body.tax-product_cat ul.products li.product .price .woocommerce-price-suffix {
  font-size: 0.75rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  display: block !important;
  margin-top: 2px !important;
}

/* 8. BOTON ANADIR / VER OPCIONES */
body.tax-product_cat ul.products li.product a.button,
body.tax-product_cat ul.products li.product .add_to_cart_button,
body.tax-product_cat ul.products li.product .product_type_variable,
body.tax-product_cat ul.products .loop-entry a.button {
  display: block !important;
  width: calc(100% - 32px) !important;
  text-align: center !important;
  background: rgba(163, 209, 51, 0.1) !important;
  color: #a3d133 !important;
  border: 1px solid rgba(163, 209, 51, 0.3) !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px;
  margin: 12px 16px 16px !important;
  transition: all 0.3s ease !important;
  float: none !important;
}

body.tax-product_cat ul.products li.product a.button:hover,
body.tax-product_cat ul.products li.product .add_to_cart_button:hover,
body.tax-product_cat ul.products li.product .product_type_variable:hover {
  background: #a3d133 !important;
  color: #0b0d0a !important;
}

/* 9. BADGE OFERTA */
body.tax-product_cat ul.products li.product .onsale {
  background: #ef4444 !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 5 !important;
}

/* 10. SIDEBAR / FILTROS */
body.tax-product_cat .widget-area,
body.tax-product_cat .sidebar {
  background-color: transparent !important;
  color: #cbd5e1 !important;
}

body.tax-product_cat .widget-area .widget-title,
body.tax-product_cat .sidebar .widget-title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

body.tax-product_cat .widget-area a,
body.tax-product_cat .sidebar a {
  color: #94a3b8 !important;
  transition: color 0.2s;
}

body.tax-product_cat .widget-area a:hover,
body.tax-product_cat .sidebar a:hover {
  color: #a3d133 !important;
}

/* 11. DESCRIPCION HTML (Bloque de abajo) */
body.tax-product_cat .term-description {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #0b0d0a !important;
}

body.tax-product_cat .term-description .wp-block-group.alignfull {
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

/* 12. PAGINACION */
body.tax-product_cat .woocommerce-pagination {
  margin-top: 40px !important;
}

body.tax-product_cat .woocommerce-pagination .page-numbers {
  background: rgba(255,255,255,0.05) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  transition: all 0.3s;
}

body.tax-product_cat .woocommerce-pagination .page-numbers.current,
body.tax-product_cat .woocommerce-pagination .page-numbers:hover {
  background: #a3d133 !important;
  color: #0b0d0a !important;
  border-color: #a3d133 !important;
}

/* 13. ORDENAR Y CONTADOR */
body.tax-product_cat .woocommerce-ordering select {
  background: rgba(255,255,255,0.05) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-family: 'Inter', sans-serif;
}

body.tax-product_cat .woocommerce-result-count {
  color: #94a3b8 !important;
}

/* 14. RESPONSIVE */
@media (max-width: 900px) {
  body.tax-product_cat ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 500px) {
  body.tax-product_cat ul.products {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}
/* 15. OCULTAR DESCRIPCION CORTA EN EL GRID */
body.tax-product_cat ul.products li.product .product-excerpt {
  display: none !important;
}

