/**
 * ATON LEATHER GOODS — SHOP & CATALOG STYLES
 */

.shop-header {
  padding-top: 160px;
  padding-bottom: 60px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-3xl);
  padding-block: var(--space-3xl);
}

.shop-layout.full-width {
  grid-template-columns: 1fr;
}

/* Filter Sidebar */
.filter-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: var(--space-xl);
  border-radius: var(--radius-xs);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.filter-list li {
  margin-bottom: var(--space-sm);
}

.filter-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.filter-link:hover, .filter-link.active {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Shop Controls Bar */
.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.product-count-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.shop-sort-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  font-size: 0.8125rem;
  color: var(--text-primary);
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   PRODUCT CARDS (LUXURY EDITORIAL)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-2xl);
}

.products-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-luxury);
}

.product-card-media {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect ratio */
  background: #ffffff;
  overflow: hidden;
}

.product-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.product-card-img.img-primary {
  z-index: 1;
  opacity: 1;
}

.product-card-img.img-secondary {
  z-index: 2;
  opacity: 0;
}

.product-card:hover .product-card-img.img-primary {
  transform: scale(1.04);
}

.product-card:hover .product-card-img.img-secondary {
  opacity: 1;
  transform: scale(1.04);
}

/* Badges */
.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

.badge-gold {
  background: var(--accent-gold);
  color: #0c0b0a;
}

.badge-sale {
  background: var(--aton-cognac);
  color: #ffffff;
}

.badge-new {
  background: var(--aton-espresso);
  color: var(--aton-cream);
  border: 1px solid var(--border-subtle);
}

/* Quick Actions Overlay */
.product-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-action-btn {
  width: 38px;
  height: 38px;
  background: rgba(14, 13, 12, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.card-action-btn:hover, .card-action-btn.active {
  background: var(--accent-gold);
  color: #0c0b0a;
  border-color: var(--accent-gold);
  transform: scale(1.1);
}

.product-card-info {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  border-top: 1px solid var(--border-subtle);
}

.product-card-category {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.product-card-name {
  font-size: 1.125rem;
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: auto;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.price-original {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
}

.product-card-footer {
  padding: 0 var(--space-lg) var(--space-lg);
}

@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    display: none; /* Accessible via mobile filter drawer */
  }
  .products-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  .product-card-info {
    padding: var(--space-sm);
  }
  .product-card-name {
    font-size: 0.9375rem;
  }
}
