/* --- MERCH PAGE ADDITIONS --- */

.nav-active {
  color: #ff0000 !important;
}

/* Merch Hero Section */
.merch-hero {
  height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: 50px;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.95)), url('teaser.jpg');
  background-size: cover;
  background-position: center center;
}

.merch-hero-content {
  max-width: 800px;
  margin-bottom: 20px;
}

.merch-hero-title {
  font-size: 56px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.merch-hero-subtitle {
  color: #888888;
  font-size: 16px;
  letter-spacing: 0.5px;
}

/* Shop Layout Controls */
.merch-shop {
  padding: 50px;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid #222;
  padding-bottom: 20px;
}

.filter-group {
  display: flex;
  gap: 15px;
}

.filter-btn {
  background: transparent;
  border: 1px solid #333;
  color: #888;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  border-color: #cc0000;
  color: #ffffff;
}

.shop-status {
  font-size: 12px;
  letter-spacing: 1px;
  color: #666;
  font-weight: bold;
}

/* Merch Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card {
  background-color: #0b0b0b;
  border: 1px solid #151515;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-bottom: 120%; /* Consistent aspect ratio */
  overflow: hidden;
  background-color: #111;
}

.product-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-image-container .img-bw {
  opacity: 0.85;
  z-index: 1;
}

.product-image-container .img-color {
  opacity: 0;
  z-index: 2;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 4;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 4px 8px;
  border: 1px solid #cc0000;
}

/* Product Meta Information */
.product-info {
  padding: 20px;
  position: relative;
  background: #050505;
  border-top: 1px solid #151515;
}

.product-title {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.product-price {
  font-size: 14px;
  color: #cc0000;
  font-weight: bold;
}

.buy-now {
  margin-top: 15px;
  font-size: 11px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.4;
  transition: all 0.3s ease;
}

/* Card Interaction Animations */
.product-card:hover {
  border-color: #cc0000;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.15);
  transform: translateY(-5px);
}

.product-card:hover .img-bw { opacity: 0; }
.product-card:hover .img-color { opacity: 1; }
.product-card:hover .product-title { color: #cc0000; }
.product-card:hover .buy-now { opacity: 1; color: #ff0000; }

/* Responsive adjustments for Merch Grid */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .merch-hero {
    height: 40vh;
    padding: 20px;
  }
  .merch-hero-title {
    font-size: 38px;
  }
  .merch-shop {
    padding: 30px 20px;
  }
  .shop-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .filter-group {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}