/* WellnessWorkz - home page (managed by Claude).
   Paired with ww-home.php + ww-hero.js. Delete all three to revert.

   1) .ww-hero          - rotating 3-image hero (container 07fe42a on page 28)
   2) .ww-featured-grid - WooCommerce [products] shortcode, 3 featured products
*/

/* ============ 1. HERO SLIDER ============ */

.ww-hero {
  position: relative;
  overflow: hidden;
}

.ww-hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ww-hero-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.ww-hero-layer.is-active { opacity: 1; }

/* Elementor paints its dark overlay in ::before - keep it above the images
   but below the text, so headings stay legible on every slide. */
.ww-hero::before { z-index: 1 !important; }
.ww-hero > .e-con-inner { position: relative; z-index: 2; }

/* ---- dots ---- */
.ww-hero-dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ww-hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
  transition: background .2s ease, transform .2s ease;
}

.ww-hero-dot:hover { background: rgba(255, 255, 255, .75); }
.ww-hero-dot.is-active { background: #fff; transform: scale(1.25); }
.ww-hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .ww-hero-layer { transition: none; }
}

/* ============ 2. FEATURED PRODUCT GRID ============ */

.ww-featured-grid { margin-top: 8px; }

/* auto-fit, not repeat(3): the shortcode shows however many products are
   flagged Featured, so 2 fills the row cleanly instead of leaving a gap. */
.ww-featured-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* beat WooCommerce's float-based column widths */
.ww-featured-grid ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 18px;
  background: #fff;
  border: 1px solid #e7ecee;
  border-radius: 16px;
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
}

.ww-featured-grid ul.products li.product:hover {
  box-shadow: 0 10px 26px rgba(22, 35, 43, .09);
  transform: translateY(-2px);
}

.ww-featured-grid ul.products li.product img {
  border-radius: 10px;
  margin: 0 auto 14px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f6f8f9;
}

.ww-featured-grid ul.products li.product .woocommerce-loop-product__title {
  font-size: 17px !important;
  font-weight: 600;
  line-height: 1.35;
  color: #16232b;
  padding: 0 !important;
  margin: 0 0 6px;
}

.ww-featured-grid ul.products li.product .price {
  display: block;
  font-size: 16px;
  color: #5a6b76;
  margin-bottom: 14px;
}

.ww-featured-grid ul.products li.product .button {
  display: inline-block;
  background: #16232b;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 11px 24px;
  margin: 0;
}

.ww-featured-grid ul.products li.product .button:hover { opacity: .88; }

.ww-featured-grid .star-rating { margin: 0 auto 10px; }

@media (max-width: 900px) {
  .ww-featured-grid ul.products { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 560px) {
  .ww-featured-grid ul.products { grid-template-columns: 1fr; }
  .ww-hero-dots { bottom: 14px; }
}
