/*
 * Makerique Boutique theme for OpenCart 4
 * Copyright (c) 2026 Heliopsy. All Rights Reserved.
 * https://makerique.com
 * SPDX-License-Identifier: LicenseRef-Proprietary
 * Proprietary and confidential. Unauthorized copying, distribution, or
 * modification of this file, by any means, is strictly prohibited.
 */

/* ── Homepage product rows (New arrivals / Best sellers / Collections) ───────
   Auto-sourced or hand-picked in event/sections.php, rendered in home.twig.
   A responsive card grid using the theme's --mr-* tokens so it inherits the
   active skin and matches the rest of the storefront. */
.mr-home-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 576px) {
  .mr-home-products { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  .mr-home-products { grid-template-columns: repeat(4, 1fr); }
}

.mr-home-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-decoration: none;
  color: inherit;
}
.mr-home-card__img {
  display: block;
  position: relative;              /* positioned ancestor for badge/label stacks */
  overflow: hidden;
  border-radius: var(--mr-radius, .5rem);
  background: var(--mr-surface-2, #f4f1ec);
  aspect-ratio: 1 / 1;
}
/* Product-type badge (top-left) — mirrors the .product-thumb card placement.
   The pill styles (.mr-badge / .mr-label / .mr-label-stack) are global, so the
   home cards match the category-listing cards exactly. */
.mr-home-card__img .mr-badge-stack {
  position: absolute;
  top: .6rem;
  left: .6rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  z-index: 2;
  pointer-events: none;
}
.mr-home-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.mr-home-card:hover .mr-home-card__img img { transform: scale(1.05); }
.mr-home-card__name {
  font-size: .95rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mr-home-card:hover .mr-home-card__name { color: var(--mr-primary, inherit); }
.mr-home-card__price {
  font-weight: 700;
  color: var(--mr-heading, inherit);
}
.mr-home-card__was {
  font-weight: 400;
  opacity: .6;
  margin-right: .3rem;
}

.mr-home-products-more {
  text-align: center;
  margin-top: 1.5rem;
}
