/* ==========================================================
   ESENCY MERCH PAGE STYLESHEET (styles-merch.css)
   ========================================================== */

.merch-section-header h1 {
  text-align: center;
  font-size: 48px;
  color: var(--brand);
  margin: 20px auto;
}

.merch-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

.merch-item {
  text-align: center;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.merch-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.merch-item img {
  width: 300px;
  height: auto;
  object-fit: contain;
  transition: transform .3s ease, opacity .3s ease;
}
.merch-item img:hover {
  transform: scale(1.05);
  opacity: .9;
  cursor: pointer;
}

.product-name {
  font-size: 18px;
  margin-top: 10px;
  font-weight: bold;
}
.product-price {
  font-size: 16px;
  color: var(--brand);
  margin-top: 4px;
}

/* Size dropdown row */
.size-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 12px;
}
.size-row label {
  font-size: 14px;
}
.size-row select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 140px;
  background: #111;
  color: var(--text);
}

/* Add to Cart button */
.merch-item button {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  background: #111;
  color: #fff;
  transition: background 0.3s ease;
}
.merch-item button:hover {
  background: var(--brand);
  color: #000;
}

/* Cart link */
.cart-link {
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
  background-color: #222;
  color: var(--brand);
  transition: background 0.3s ease;
}
.cart-link:hover {
  background-color: var(--accent);
  color: white;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #111;
  color: white;
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
