/* assets/css/pages/home.css */

.page--home .hero__grid{
  /* keep hero look consistent but a bit more "homepage" */
  background: aliceblue;
}

.page--home .home-filter-grid{
  display:grid;
  gap: var(--space-3);
}

@media (min-width: 768px){
  .page--home .home-filter-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page--home .home-quick__links{
  display:flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Product grid + tiles (same feel as product-archive, but not scoped to that page) */
.page--home .product-grid{
  display:grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px){
  .page--home .product-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px){
  .page--home .product-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.page--home .product-tile{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.page--home .product-tile__link{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap: 10px;
  padding: 9px 10px;
  padding-bottom: var(--space-3);
  color: inherit;
  text-decoration:none;
}

.page--home .product-tile__link:hover{ text-decoration:none; }

.page--home .product-tile__media{
  width: 100%;
  aspect-ratio: 1 / 1;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.page--home .product-tile__media img{
  width: min(100%);
  height: auto;
  display:block;
  object-fit: contain;
}

.page--home .product-tile__title{
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--color-gray-900);
  line-height: 1.2;
}

.page--home .product-tile__price{
  margin: 0;
  font-weight: 950;
  font-size: 14px;
  color: var(--text);
}

/* Match Product Archive compare row */
.page--home .product-tile__compare{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px var(--space-4);
  border-top: var(--border);
  color: var(--muted);
  font-weight: 750;
  font-size: 13px;
  cursor:pointer;
  user-select:none;
  background: var(--soft);
}

.page--home .product-tile__checkbox{
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-gray-900);
}

.page--home .product-tile__compare:hover{
  background: var(--color-gray-50);
}

/* Brand cards */
.page--home .brand-grid{
  display:grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px){
  .page--home .brand-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.page--home .brand-card{
  border: var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--surface);
  display:grid;
  gap: 6px;
  text-decoration:none;
  color: inherit;
}

.page--home .brand-card:hover{
  text-decoration:none;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  transition: transform .15s ease, box-shadow .15s ease;
}

.page--home .brand-card__icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: var(--soft);
  border: var(--border);
}

.page--home .brand-card__name{ font-weight: 950; color: var(--text); }
.page--home .brand-card__meta{ font-size: 13px; color: var(--muted); }

/* Price cards */
.page--home .price-grid{
  display:grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 768px){
  .page--home .price-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.page--home .price-card{
  border: var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--surface);
  color: inherit;
  text-decoration:none;
  display:grid;
  gap: 8px;
}

.page--home .price-card:hover{
  text-decoration:none;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  transition: transform .15s ease, box-shadow .15s ease;
}

.page--home .price-card__top{
  display:flex;
  align-items:center;
  gap: 10px;
}

.page--home .price-card__icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: var(--soft);
  border: var(--border);
}

.page--home .price-card__desc{ color: var(--muted); font-size: 14px; }
