/**
 * Core WooCommerce Catalog and Card Presentation Styles
 */

.luxury-shop-archive {
  padding-top: var(--space-macro-desktop);
  padding-bottom: var(--space-macro-desktop);
}

.luxury-catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--wp--preset--color--champagne);
}

.products.columns-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Reusable Product Card Styling */
.luxury-product-card {
  position: relative;
  background: transparent;
}

.luxury-product-card__link {
  display: block;
}

.luxury-product-card__media {
  position: relative;
  overflow: hidden;
  background-color: var(--wp--preset--color--sand);
  aspect-ratio: 3/4;
  margin-bottom: 1rem;
}

.luxury-product-card__img-primary,
.luxury-product-card__img-secondary {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--duration-base) var(--ease-editorial);
}

.luxury-product-card__img-secondary {
  opacity: 0;
}

.luxury-product-card:hover .luxury-product-card__img-secondary {
  opacity: 1;
}

.luxury-product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: var(--wp--preset--color--pure-white);
  padding: 0.25rem 0.5rem;
  color: var(--wp--preset--color--obsidian);
}

.luxury-product-card__brand {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--wp--preset--color--charcoal);
}

.luxury-product-card__title {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 1rem;
  font-weight: 400;
  color: var(--wp--preset--color--obsidian);
  margin-bottom: 0.5rem;
}

.luxury-product-card__price ins {
  text-decoration: none;
  font-weight: 500;
}
.luxury-product-card__price del {
  color: var(--wp--preset--color--charcoal);
  margin-right: 0.5rem;
}

@media (max-width: 1024px) {
  .products.columns-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
