
/* ---------- Search bar full-width ---------- */
.astra-child-search {
  max-width: 1200px;
  margin: 16px auto;
  padding: 0 12px;
}

/* Make search input big on mobile */
.astra-child-search input[type="search"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

/* ---------- Subcategory container (carousel/grid area) ---------- */
.astra-subcats {
  max-width: 1200px;
  margin: 12px auto;
  padding: 12px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
}
.astra-subcat-card {
  min-width: 140px;
  width: 140px;
  text-align: center;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.astra-subcat-card img {
  width:100%;
  height:100px;
  object-fit:cover;
  border-radius:6px;
}
.astra-subcat-card .title { margin-top:8px; font-size:14px; }

/* ---------- "Best Picks" heading ---------- */
.astra-best-picks { max-width:1200px; margin:20px auto 10px; padding:0 12px; }
.astra-best-picks h2 { font-size:20px; margin:0 0 8px; }

/* ---------- Product list - 1 per row (Amazon-like) ---------- */
.astra-product-list {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 12px;
}
.astra-product-item {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  align-items: flex-start;
}
.astra-product-item .image {
  width: 160px;
  flex: 0 0 160px;
}
.astra-product-item .image img { width:100%; height:160px; object-fit:cover; border-radius:6px; }
.astra-product-item .meta {
  flex: 1;
}
.astra-product-item .meta h3 { font-size:16px; margin:0 0 6px; }
.astra-product-item .meta .price { font-weight:700; margin-bottom:8px; }
.astra-product-item .meta .summary { color:#666; margin-bottom:8px; }
.astra-product-item .meta .actions { display:flex; gap:8px; align-items:center; }

/* quick view button */
.astra-quickview-btn {
  background:#ff2d55;
  color:#fff;
  border:none;
  padding:8px 12px;
  border-radius:4px;
  cursor:pointer;
}

/* Make layout responsive */
@media (max-width: 768px) {
  .astra-product-item { flex-direction: column; }
  .astra-product-item .image { width:100%; flex: 0 0 auto; }
  .astra-subcats { padding-left: 12px; padding-right: 12px; }
}

/* Hide default sidebar on this page (we'll create our own compact search) */
body.page-template-custom-category .site-sidebar, body.page-template-custom-category .widget-area {
  display: none !important;
}
