/* ==========================================================================
   DREAM DRAWER — PRODUCTS 5-COLUMN MINIMALIST CATALOG (SHOPIFY STYLE)
   ========================================================================== */

:root {
  --gold-500: #cc9933;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --border-subtle: #e5e7eb;
}

/* Page Header */
.products-page-header {
  background: #fbfbfb;
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0 20px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--gold-500);
}

/* Layout */
.products-layout {
  display: block;
  width: 100%;
  padding: 24px 0 64px;
}

.products-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}
.products-count {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.products-count b {
  color: var(--text-primary);
}

/* ==========================================================================
   5-COLUMN PRODUCT GRID (EXACT MATCH TO REFERENCE IMAGE)
   ========================================================================== */

.products-grid,
.products-grid.grid-5,
.products-grid.grid-3 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 16px;
  width: 100%;
}

/* Product Card - Clean Minimalist */
.product-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
  cursor: pointer;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.product-card:hover {
  opacity: 0.88;
}

/* Square Image */
.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
  overflow: hidden;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.product-card:hover .product-card-image img {
  transform: scale(1.03);
}

/* Badges */
.product-card-soldout {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}
.badge-soldout {
  background: #ffffff;
  color: #111827;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.02em;
}
.product-card-sale {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}
.badge-sale {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Product Info Text */
.product-card-body {
  padding: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: transparent;
}

.product-card-name {
  font-size: 0.88rem;
  font-weight: 400;
  color: #111827;
  line-height: 1.35;
  margin: 0;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.88rem;
  margin-top: 2px;
}
.price-current {
  font-weight: 400;
  color: #374151;
}
.price-original {
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: line-through;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1300px) {
  .products-grid,
  .products-grid.grid-5,
  .products-grid.grid-3 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px 14px;
  }
}

@media (max-width: 1080px) {
  .products-grid,
  .products-grid.grid-5,
  .products-grid.grid-3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 12px;
  }
}

@media (max-width: 820px) {
  .products-grid,
  .products-grid.grid-5,
  .products-grid.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 10px;
  }
}

@media (max-width: 540px) {
  .products-grid,
  .products-grid.grid-5,
  .products-grid.grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }
}
