/* --- Store Section --- */
.store-main {
  padding-top: 100px; /* Space for header */
  min-height: 100vh;
}

.store-hero {
  text-align: center;
  padding: 40px 20px 60px;
}

.store-title {
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.store-subtitle {
  font-size: 1.1rem;
  color: #444;
  font-family: "Playfair Display", serif;
  letter-spacing: 1px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  padding: 0 40px 100px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: black;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.product-image-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  background-color: #f0f0f0;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.product-details {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  /* font-family: "Segoe UI", sans-serif; -- Removed to use default Playfair */
}

.product-name {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-price {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  margin: 0;
}

/* Sold out overlay example */
.sold-out .product-image-wrapper::after {
  content: "SOLD OUT";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 10px 20px;
  font-family: "Segoe UI", sans-serif;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: 1px solid black;
}

.sold-out .product-img {
  opacity: 0.5;
}
.so-out .product-img {
  opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .store-main {
    padding-top: 80px;
  }

  .product-grid {
    /* Allow 2 columns on mobile by reducing min size */
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px 60px;
  }

  .product-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  /* For very small screens, maybe stack them if preferred, 
       but 2-column is standard for modern e-commerce. 
       Let's stick to 2 columns but ensure text fits */
  .product-name {
    font-size: 1rem;
  }
  .product-price {
    font-size: 0.9rem;
  }
}
