/* Merchandise Section */
.kp-merchandise {
  padding: 80px 0;
  background: #f8f9fa;
}

.kp-merchandise__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.kp-merchandise__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.2;
}

.kp-merchandise__subtitle {
  font-size: 1.125rem;
  color: #6c757d;
  text-align: center;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Filter Buttons */
.kp-merchandise__filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.kp-merchandise__filter {
  background: white;
  border: 2px solid #e9ecef;
  color: #6c757d;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.kp-merchandise__filter:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
}

.kp-merchandise__filter--active {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

.kp-merchandise__filter--active:hover {
  background: #5a6fd8;
  border-color: #5a6fd8;
  color: white;
}

/* Grid Layout */
.kp-merchandise__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Product Item */
.kp-merchandise__item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.kp-merchandise__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.kp-merchandise__image {
  aspect-ratio: 1;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.kp-merchandise__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.kp-merchandise__item:hover .kp-merchandise__image img {
  transform: scale(1.05);
}

.kp-merchandise__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9ecef;
  color: #adb5bd;
  font-size: 3rem;
}

/* Product Content */
.kp-merchandise__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kp-merchandise__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.kp-merchandise__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #28a745;
  margin: 0 0 20px 0;
}

/* Buy Button */
.kp-merchandise__buy-btn {
  background: #25D366;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: auto;
  display: inline-block;
}

.kp-merchandise__buy-btn:hover {
  background: #20b358;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.kp-merchandise__buy-btn:focus {
  outline: 2px solid #20b358;
  outline-offset: 2px;
}

/* Filter Animation */
.kp-merchandise__item {
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
}

.kp-merchandise__item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .kp-merchandise {
    padding: 60px 0;
  }
  
  .kp-merchandise__container {
    padding: 0 16px;
  }
  
  .kp-merchandise__title {
    font-size: 2rem;
  }
  
  .kp-merchandise__subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }
  
  .kp-merchandise__filters {
    margin-bottom: 40px;
  }
  
  .kp-merchandise__filter {
    padding: 10px 20px;
    font-size: 0.8125rem;
  }
  
  .kp-merchandise__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .kp-merchandise__content {
    padding: 20px;
  }
  
  .kp-merchandise__name {
    font-size: 1rem;
  }
  
  .kp-merchandise__price {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .kp-merchandise__title {
    font-size: 1.75rem;
  }
  
  .kp-merchandise__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
  
  .kp-merchandise__filters {
    gap: 8px;
  }
  
  .kp-merchandise__filter {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}

/* Large screens - 3 columns max */
@media (min-width: 1024px) {
  .kp-merchandise__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large screens - still 3 columns */
@media (min-width: 1200px) {
  .kp-merchandise__grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
  }
}