/* All Products Page Styles */

/* Light Theme Overrides */
body.light-theme {
  background: var(--cream, #F7F2E8);
  color: var(--primary);
}

.shop-header {
  padding: -6px 0px 0px;
  text-align: center;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shop-header h1 {
  color: var(--gold);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.shop-header p {
  color: rgba(7, 27, 17, 0.7);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.shop-controls {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: flex-start;
  padding: 0 20px;
}

.sort-select {
  background: var(--primary);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 12px 24px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5C57F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 14px;
  padding-right: 50px;
  transition: all 0.3s ease;
}

.sort-select:hover {
  box-shadow: 0 4px 12px rgba(7, 27, 17, 0.2);
}

.products-grid-container {
  padding: 20px 40px 120px;
  max-width: 1280px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

.product-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #fcfcfc;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-container img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--terracotta);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.wishlist-overlay-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  z-index: 10;
}

.wishlist-overlay-btn:hover {
  transform: scale(1.1);
  color: #ff4747;
}

.wishlist-overlay-btn.active {
  color: #ff4747;
}

.wishlist-overlay-btn.active svg {
  fill: #ff4747;
}

.product-card-info {
  padding: 30px;
  text-align: left;
}

.product-card-info .stars {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 12px;
  letter-spacing: 0.15em;
}

.product-card-title {
  margin: 0 0 8px;
}

.product-card-title a {
  color: var(--primary);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.product-card-title a:hover {
  color: var(--terracotta);
}

.product-card-subtitle {
  color: rgba(7, 27, 17, 0.6);
  font-size: 0.9rem;
  margin-bottom: 25px;
  line-height: 1.4;
}

.product-card-price {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 25px;
}

.product-card-btn {
  width: 100%;
  padding: 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  background: var(--primary);
  color: var(--white);
  transition: all 0.3s ease;
}

.product-card-btn:hover {
  background: var(--gold);
  color: var(--primary);
}

/* Make it responsive */
@media (max-width: 768px) {
  .shop-header {
    padding: 140px 20px 40px;
  }

  .products-grid-container {
    padding: 20px 20px 80px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}