/* =========================================================
   High 5 Over 55 — SHOP PAGE STYLESHEET
   Loaded ONLY on the dedicated Shop / My Favorites page.

   Reuses .shop / .shop-header / .shop-grid / .shop-card as-is
   from home.css for the top category grid (doubles as in-page
   navigation — clicking a card anchors down to its section).

   New here: .product-grid / .product-card / .affiliate-note —
   nothing like these existed yet, since the homepage teaser
   only ever needed category cards, not individual product
   listings.

   ENQUEUE — add to functions.php:
     if ( is_page( 'shop-my-favorites' ) ) {   // confirm real slug
         wp_enqueue_style( 'h5o55-shop',
             get_stylesheet_directory_uri() . '/css/shop.css',
             array( 'h5o55-global' ), '1.0.0' );
     }
   ========================================================= */

/* ── Page intro ── */

.shop {padding: 10px 0 !important;}

.shop-page-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 20px;
  padding: 60px 36px 0;
}

/* ── Affiliate disclosure — kept visible near the top,
   not just in the footer, per FTC guidance ── */
.affiliate-note {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
  padding: 0 36px;
  font-size: 12.5px;
  color: var(--ink-soft, #4E5E52);
}
.affiliate-note a {
  color: var(--terra3);
  text-decoration: underline;
}

/* ── Per-category section ── */
.shop-section {
  padding: 70px 0;
  scroll-margin-top: 90px; /* so anchor jumps don't hide under a sticky nav */
}
.shop-section:nth-child(even) {
  background: var(--cream2);
}
.shop-section-header {
  max-width: var(--max-w);
  margin: 0 auto 36px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.shop-section-icon {
  font-size: 28px;
}
.shop-section-header h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  color: var(--j2);
  margin: 0;
}
.shop-section-desc {
  max-width: var(--max-w);
  margin: -20px auto 32px;
  padding: 0 36px;
  font-size: 15px;
  color: #4A6650;
  font-weight: 300;
}

/* ── Product grid + card ── */
.product-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(91,175,116,.15);
  box-shadow: 0 4px 28px rgba(10,31,18,.07);
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(10,31,18,.14);
  border-color: var(--j8);
}
.product-media {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream2);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Fallback for products without a real photo — matches the
   existing .post-media-ph pattern used for blog posts */
.product-media-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(160deg, var(--j10), var(--j9));
}
.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--j2);
  margin: 0 0 8px;
  line-height: 1.3;
}
.product-body p {
  font-size: 13.5px;
  font-weight: 300;
  color: #4A6650;
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--cream2);
  padding-top: 14px;
}
.product-price {
  font-size: 13px;
  font-weight: 500;
  color: var(--j2);
}
.product-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--terra3);
  text-decoration: none;
}
.product-link:hover {
  color: var(--terra2);
}

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(3,1fr); }
  .product-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .shop-grid { grid-template-columns: repeat(2,1fr); padding: 0 20px; }
  .product-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .shop-section-header { padding: 0 20px; }
  .shop-section-desc { padding: 0 20px; }
}

