@keyframes fade-in-title {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f0f4ff, #fef3ff);
  color: #333;
  box-sizing: border-box;
}

* {
  box-sizing: inherit;
}

.categories.centered {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  gap: 0;
  scroll-snap-type: x mandatory;
  padding: 0;
  margin: 0;
  border-top: none;
  border-bottom: none;
  box-shadow: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories.centered::-webkit-scrollbar {
  display: none;
}

.category-button {
  scroll-snap-align: start;
  display: inline-block;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  color: white;
  position: relative;
  border: none;
  border-radius: 0;
  overflow: hidden;
  z-index: 0;
  background: var(--bg-color, #6a11cb);
  min-width: 120px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-clip: padding-box;
  background-size: 200% 100%;
}

.category-button:hover {
  color: #fff;
  box-shadow: 0 0 16px rgba(106, 17, 203, 0.3);
}

.category-button.home     { --bg-color: linear-gradient(90deg, #00c9a7, #00b3ff); }
.category-button.tech     { --bg-color: linear-gradient(90deg, #d0ff00, #b2ff59); color: black; }
.category-button.wellness { --bg-color: linear-gradient(90deg, #d500f9, #ff80ab); }
.category-button.lifestyle{ --bg-color: linear-gradient(90deg, #2979ff, #00e5ff); }
.category-button.hot      { --bg-color: linear-gradient(90deg, #ff6f00, #ffca28); color: black; }
.category-button.deals    { --bg-color: linear-gradient(90deg, #ffee58, #fbc02d); color: black; }
.category-button.clothing { --bg-color: linear-gradient(90deg, #d32f2f, #ff5252); }
.category-button.pets     { --bg-color: linear-gradient(90deg, #00bcd4, #84ffff); }
.category-button.gaming   { --bg-color: linear-gradient(90deg, #5e35b1, #7c4dff); }
.category-button.cars     { --bg-color: linear-gradient(90deg, #c62828, #ff1744); }
.category-button.travel   { --bg-color: linear-gradient(90deg, #00c853, #64dd17); }
.category-button.summer   { --bg-color: linear-gradient(to right, #ffe259, #40c9ff); color: #1a1a1a; font-weight: 600; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4); }
.category-button.july4    { --bg-color: linear-gradient(to right, #fff200, #fff95b); color: #1a1a1a; font-weight: bold; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4); }
.category-button.school   { --bg-color: linear-gradient(90deg, #ffa000, #ffd54f); color: #1a1a1a; font-weight: 600; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4); content: "🚌 School"; }
.category-button.fitness  { background: linear-gradient(90deg, #ff9a9e, #fad0c4); color: #000; }
.category-button.camping  { background: linear-gradient(90deg, #a1c4fd, #c2e9fb); color: #000; }
.category-button.cleaning { background: linear-gradient(90deg, #fdfbfb, #ebedee); color: #000; }
.category-button.kitchen  { background: linear-gradient(90deg, #f6d365, #fda085); color: #000; }
.category-button.outdoor  { background: linear-gradient(90deg, #43cea2, #185a9d); color: #fff; }

.product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: white;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  padding: 12px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 160px;
  height: 45px;
  text-align: center;
}

.product-button:hover {
  background-position: right center;
  box-shadow: 0 4px 20px rgba(106, 17, 203, 0.4);
  transform: scale(1.03);
}

.product-button.buy {
  background: linear-gradient(90deg, #00c9a7, #00b3ff);
}

.product-button.details {
  background: linear-gradient(90deg, #ff6f00, #ffca28);
  color: #000;
}

.product-button.save {
  background: linear-gradient(90deg, #66bb6a, #43a047);
}

.product-button.compare {
  background: linear-gradient(90deg, #8e24aa, #d81b60);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 20px 12px;
  max-width: 1200px;
  margin: auto;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  margin: 6px 0;
}

.product-description {
  font-size: 12px;
  color: #555;
  margin-bottom: 10px;
}

.product-button {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 20px;
  background: linear-gradient(90deg, #00c9a7, #00b3ff);
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
}

.product-button:hover {
  background: linear-gradient(90deg, #00b3ff, #00c9a7);
}

/* ===== PRODUCT CATALOG GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px 16px;
  max-width: 1200px;
  margin: auto;
}

/* ===== PRODUCT CARD STYLE ===== */
.product-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.product-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 12px;
}

.product-card h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 6px 0 8px;
}

.product-card p {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
}

/* ===== PRODUCT BUTTON STYLE ===== */
.product-button {
  font-size: 13px;
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(90deg, #00c9a7, #00b3ff);
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
}

.product-button:hover {
  background: linear-gradient(90deg, #00b3ff, #00c9a7);
}
