/*
 Theme Name: GeneratePress Child
 Description: Tema hijo de GeneratePress optimizado
 Author: Sergio
 Template: generatepress
 Version: 1.0
*/

/* ====== Oculta la cantidad de productos en las categorías ====== */
.woocommerce-loop-category__title mark.count { display: none; }

/* ====== Oculta el link descargas de la página de login ====== */
   li.woocommerce-MyAccount-navigation-link--downloads a {
        display: none !important;
    }
/* ====== Base de secciones ====== */
.pj-section {
  width: 100%;
  max-width: 1280px;
  margin: 40px auto;     /* separa secciones */
  padding: 40px 16px;
  box-sizing: border-box;
}

.pj-section-full {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* ====== Tipografía ====== */
.pj-section h2,
.pj-section h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
  color: #222;
}
.pj-section p {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #444;
}

/* ======== Banner principal ======== */
.pj-slider-banner-home {
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}
.pj-banner-slide { position: relative; text-align: center; }
.pj-slide-img {
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: cover;
  display: block;
}
.pj-banner-btn {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  transition: background 0.25s ease;
  backdrop-filter: saturate(140%) blur(2px);
}
.pj-banner-btn:hover { background: rgba(212,76,49,0.9); }

/* ======== Carrusel de categorías ======== */
.pj-categorias-carousel { padding: 10px 0 20px; }
.pj-cat-slide { display: flex; justify-content: center; }
.pj-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.pj-cat-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.pj-cat-title {
  margin: 8px 0 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
  text-align: center;
}

/* ======== Carrusel de productos ======== */
.pj-product-slide { display: flex; justify-content: center; }

.pj-product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  transition: transform .2s ease;
  width: 100%;
  max-width: 280px;   /* limita ancho en desktop */
}
.pj-product-card:hover { transform: translateY(-3px); }

.pj-product-thumb { aspect-ratio: 1/1; overflow: hidden; }
.pj-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pj-product-title {
  font-size: 14px;
  font-weight: 600;
  margin: 8px 8px 0;
  min-height: 36px;
  line-height: 1.3;
}
.pj-product-price {
  margin: 4px 8px 10px;
  font-size: 14px;
  color: #d44c31;
  font-weight: 700;
}

/* ======== Swiper (paginación + flechas) ======== */
.swiper-pagination-bullet {
  background: #888;
  opacity: 0.7;
  transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
  background: #d44c31;
  opacity: 1;
}
.swiper-button-next,
.swiper-button-prev {
  color: #333;
  transition: color 0.25s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover { color: #d44c31; }

/* ======== Responsive ======== */
@media (max-width: 1024px) {
  .pj-section { padding: 30px 12px; }
  .pj-section h2 { font-size: 22px; }
  .pj-slide-img { max-height: 480px; }
  .pj-banner-btn { font-size: 16px; padding: 12px 22px; }
  .pj-product-card { max-width: 220px; }
}
@media (max-width: 768px) {
  .pj-section { padding: 20px 10px; }
  .pj-section h2 { font-size: 20px; }
  .pj-slide-img { max-height: 320px; }
  .pj-banner-btn { font-size: 14px; padding: 10px 18px; bottom: 10%; }
  .pj-product-card { max-width: 100%; } /* productos a ancho completo */
}
