/* =============================
   Category Selector Plugin - Styles
   ============================= */

.csp-wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  box-sizing: border-box;
}

.csp-main-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.csp-tabs {
  text-align: center;
  margin-bottom: 2rem;
}

.csp-tab {
  display: inline-block;
  background-color: var(--csp-color-bg, #333);
  color: var(--csp-color-text, #fff);
  border: none;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.csp-tab:hover,
.csp-tab.active {
  background-color: var(--csp-color-hover, #555);
}

.csp-products {
  position: relative;
  overflow: hidden;
}

.csp-carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.csp-slide {
  display: flex;
  flex-wrap: nowrap;
  min-width: 100%;
}

.csp-product {
  flex: 1 0 25%;
  box-sizing: border-box;
  padding: 1rem;
  text-align: center;
}

.csp-product img {
  max-width: 100%;
  height: auto;
}

.csp-product-title {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.csp-price {
  display: block;
  margin-bottom: 0.5rem;
  color: #111;
  font-weight: bold;
}

.csp-prev,
.csp-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--csp-color-arrows, #000);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.csp-prev:hover,
.csp-next:hover {
  opacity: 1;
}

.csp-prev {
  left: 0.5rem;
}

.csp-next {
  right: 0.5rem;
}

/* Responsive Design */

@media (max-width: 1024px) {
  .csp-product {
    flex: 1 0 33.333%;
  }
}

@media (max-width: 768px) {
  .csp-product {
    flex: 1 0 50%;
  }
}

@media (max-width: 480px) {
  .csp-product {
    flex: 1 0 100%;
  }
}

.csp-products-category {
  display: none;
}

.csp-products-category.active {
  display: block;
}
