/* =====================================================================
   39-pp-home-product-cards.css
   Redesign homepage .pp-section.alt product cards:
   - 2-line title clamp so cards stay aligned
   - Price stacked above a full-width branded button
   - PODPAWS clay→clay-dark gradient buttons (replacing default blue)
   - Clean white card shell with subtle hover lift

   Scoped to .pp-section.alt so it does NOT override .pp-shop-layout
   cards styled by 35-pp-shop-redesign.css / 11-section-11.css.
   Mobile preserves the 27-section horizontal carousel.
   ===================================================================== */

/* -------------------------------------------------------------------
   1. CARD SHELL
   ------------------------------------------------------------------- */
.pp-section.alt ul.products li.product {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  box-shadow: 0 2px 10px rgba(43, 36, 32, .06) !important;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease) !important;
}

.pp-section.alt ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow) !important;
}

.pp-section.alt ul.products li.product .astra-shop-thumbnail-wrap {
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #F6ECE2, #EAD9CC) !important;
}

.pp-section.alt ul.products li.product img,
.pp-section.alt ul.products li.product .attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* -------------------------------------------------------------------
   2. SUMMARY LAYOUT — vertical stack: category / title / price / button
   ------------------------------------------------------------------- */
.pp-section.alt ul.products li.product .astra-shop-summary-wrap {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  padding: 14px 16px 16px !important;
}

.pp-section.alt ul.products li.product .ast-loop-product__link {
  display: block !important;
  text-decoration: none !important;
}

.pp-section.alt ul.products li.product .ast-woo-product-category {
  font-size: .68rem !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
  order: 0 !important;
}

/* -------------------------------------------------------------------
   3. TITLE — clamp to 2 lines
   ------------------------------------------------------------------- */
.pp-section.alt ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--serif) !important;
  font-size: .95rem !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: var(--charcoal) !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.7em !important;
  order: 1 !important;
}

/* -------------------------------------------------------------------
   4. PRICE
   ------------------------------------------------------------------- */
.pp-section.alt ul.products li.product .price {
  order: 2 !important;
  color: var(--clay-dark) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.pp-section.alt ul.products li.product .price .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* -------------------------------------------------------------------
   5. BUTTON — full-width branded pill
   ------------------------------------------------------------------- */
.pp-section.alt ul.products li.product .button {
  order: 3 !important;
  align-self: stretch !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .5em !important;
  width: 100% !important;
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: .9rem !important;
  padding: 11px 16px !important;
  border-radius: 50px !important;
  border: none !important;
  background: linear-gradient(135deg, var(--clay), var(--clay-dark)) !important;
  color: #fff !important;
  text-align: center !important;
  text-decoration: none !important;
  margin: 0 !important;
  box-shadow: 0 6px 18px rgba(194, 91, 91, .28) !important;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease) !important;
  float: none !important;
}

.pp-section.alt ul.products li.product .button:hover,
.pp-section.alt ul.products li.product .button:focus {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 24px rgba(194, 91, 91, .38) !important;
  background: linear-gradient(135deg, var(--clay-dark), var(--clay)) !important;
  color: #fff !important;
}

/* Hide the redundant floating hover icon button */
.pp-section.alt ul.products li.product .ast-on-card-button {
  display: none !important;
}

/* -------------------------------------------------------------------
   6. DESKTOP GRID
   ------------------------------------------------------------------- */
@media(min-width: 769px) {
  .pp-section.alt ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .pp-section.alt ul.products li.product {
    width: auto !important;
    min-width: 0 !important;
    float: none !important;
  }
}

/* -------------------------------------------------------------------
   7. MOBILE CAROUSEL TWEAKS
   27-section-27.css turns this into a 300px horizontal scroll carousel.
   Keep that behaviour, just tighten padding/typography inside cards.
   ------------------------------------------------------------------- */
@media(max-width: 768px) {
  .pp-section.alt ul.products li.product {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
  }

  .pp-section.alt ul.products li.product .astra-shop-summary-wrap {
    padding: 12px 14px 14px !important;
  }

  .pp-section.alt ul.products li.product .woocommerce-loop-product__title {
    font-size: .9rem !important;
    min-height: 2.43em !important;
    margin-bottom: 8px !important;
  }

  .pp-section.alt ul.products li.product .price {
    font-size: .95rem !important;
    margin-bottom: 8px !important;
  }

  .pp-section.alt ul.products li.product .button {
    font-size: .85rem !important;
    padding: 10px 14px !important;
  }
}

@media(max-width: 560px) {
  .pp-section.alt ul.products li.product {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
  }
}
