/*
Theme Name: Astra Child
Description: Custom child theme with WooCommerce templates
Author: Developer
Template: astra
Version: 1.0
*/

/* ===== Products-only category page styling ===== */
.hm-container { max-width:1200px; margin:0 auto; padding:0 20px; box-sizing:border-box; }

/* Page header */
.hm-category-header { padding:28px 0 12px; }
.hm-category-title { font-size:28px; color:#111; margin:0; }

/* Grid */
.hm-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 18px 0 48px;
  align-items: stretch;
}

/* Single card */
.hm-prod-card { box-sizing:border-box; width:100%; }
.hm-prod-link { display:block; text-decoration:none; color:inherit; height:100%; }
.hm-prod-inner {
  background: #111;                     /* dark card background */
  border-radius: 12px;
  padding: 18px;
  height:100%;
  border: 2px solid rgba(214,59,57,0.16); /* subtle red border */
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition: transform .22s ease, box-shadow .22s ease;
}
.hm-prod-inner:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,0.55); }

/* Media (image) */
.hm-prod-media { display:flex; align-items:center; justify-content:center; min-height:120px; margin-bottom:12px; }
.hm-prod-media img { max-width:140px; max-height:140px; object-fit:contain; }

/* Body */
.hm-prod-body { text-align:center; padding-top:6px; }
.hm-prod-title { color:#fff; font-size:16px; margin:10px 0; font-weight:600; min-height:44px; }
.hm-prod-price { color:#f0f0f0; font-weight:600; margin-bottom:8px; font-size:14px; opacity:0.95; }

/* CTA */
.hm-prod-cta .hm-btn {
  display:inline-block;
  background:#d63b39;
  color:#fff;
  padding:8px 14px;
  border-radius:6px;
  font-size:13px;
  margin-top:10px;
}

/* No products text */
.hm-no-products { color:#666; text-align:center; padding:40px 0; }

/* Responsive */
@media (max-width: 1024px) {
  .hm-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hm-products-grid { grid-template-columns: 1fr; }
  .hm-category-title { font-size:24px; }
  .hm-prod-media img { max-width:120px; max-height:120px; }
}
