.category-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;  width: 100%;
}

.category-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 15px;
  padding: 10px 0;
  scroll-behavior: smooth;
}
.category-scroll::-webkit-scrollbar {
  display: none;
}
.category-item {
  flex: 0 0 auto; 
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: transform 0.3s;
}
.category-item img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s;
}
.category-item span {
  margin-top: 5px;
  font-size: 13px;
  text-align: center;
  color: #555;
  font-weight: 500;
}
.category-item:hover img {
  transform: scale(1.1);
  border-color: #ff6a00;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.category-item.active img {
  border-color: #ff6a00;
  box-shadow: 0 4px 12px rgba(255,106,0,0.4);
}
.category-item.active span {
  color: #ff6a00;
  font-weight: 600;
}
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }
.scroll-btn:hover {
  background: #ff6a00;
  color: #fff;
  border-color: #ff6a00;
}
@media(max-width:900px) {
  .category-item img { width: 60px; height: 60px; }
}
@media(max-width:600px) {
  .category-item img { width: 50px; height: 50px; }
  .category-item span { font-size: 11px; }
  .scroll-btn { display: none; } 
}
.category-page {
  padding: 30px 20px;
}
.category-hero {
  text-align: center;
  margin-bottom: 40px;
}
.category-hero h2 {
  font-size: 32px;
  font-weight: 700;
}
.category-hero p {
  font-size: 16px;
  color: #555;
  margin-top: 10px;
}
.category-content {
  display: flex;
  gap: 30px;
}
.category-filter {
  width: 250px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  height: fit-content;
}
.category-filter h3 {
  margin-bottom: 20px;
}
.filter-group {
  margin-bottom: 25px;
}
.filter-group h4 {
  margin-bottom: 10px;
}
.filter-group label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
}
.category-products {
  flex: 1;
}
.category-search {
  margin-bottom: 20px;
}
.category-search input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 15px;
}
.products-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding-top: 10px;
}
@media(max-width: 900px) {
  .category-content {
    flex-direction: column;
  }
  .category-filter {
    width: 100%;
    margin-bottom: 20px;
  }
}
@media(max-width: 600px) {
  .category-search input {
    font-size: 14px;
  }
}
.filter-toggle-btn {
  display: none;
  margin-bottom: 15px;
  padding: 10px 15px;
  background: #ff6a00;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.category-filter {
  width: 250px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  height: 100%;
  transition: transform 0.3s ease-in-out;
}
.filter-close-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}
.filter-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 99;
}
@media(max-width: 900px) {
  .filter-toggle-btn {
    display: block;
  }
  .category-content {
    position: relative;
  }
  .category-filter {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    z-index: 100;
    height: 100%;
    overflow-y: auto;
    display: block;
  }
  .category-filter.active {
    transform: translateX(0);
  }
  .filter-close-btn {
    display: block;
  }
  .filter-overlay {
    display: block;
  }
  .category-products {
    margin-left: 0;
  }
}
.filter-toggle-btn {
  display: none; 
  margin-bottom: 15px;
  padding: 10px 15px;
  background: #ff6a00;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

@media(max-width: 900px) {
  .filter-toggle-btn {
    display: block;
  }
  .category-filter {
    width: 100%;
    display: none; 
    margin-bottom: 20px;
  }
  .category-filter.active {
    display: block; 
  }
  .category-content {
    flex-direction: column;
  }
}
@media (min-width: 769px) {
  .category-filter,
  .filter-toggle-btn,
  .filter-overlay {
    display: none;
  }
}
.category-filter {
  position: fixed;
  top: 0;
  left: -100%;
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 1001;
}

.category-filter.active {
  left: 0;
}

.filter-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  float: right;
  cursor: pointer;
}

.filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
}

.filter-toggle-btn {
  margin: 10px 20px;
  padding: 10px 15px;
  background:linear-gradient(135deg,#ff6a00,#ff9f00);
  border: none;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}