.category-page {
  padding: 28px 0 55px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.category-page * {
  box-sizing: border-box;
}

.category-content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
/* BRAND SWIPER */
.brand-slider-wrap {
  margin: 0 auto 24px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.brandSwiper {
  width: 100%;
  height: 44px !important;
  overflow: hidden;
  padding: 0 !important;
}

.brandSwiper .swiper-wrapper {
  height: 44px !important;
  align-items: center;
}

.brandSwiper .swiper-slide {
  width: auto !important;
  height: 44px !important;
  display: flex;
  align-items: center;
}

.brand-chip {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  transition: 0.25s ease;
}

.brand-chip:hover,
.brand-chip.active {
  background: linear-gradient(135deg, #0077ff, #005fe0);
  border-color: #0077ff;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 119, 255, 0.22);
}

/* TITLE */
.select-model-title {
  width: fit-content;
  margin: 0 auto 16px;
  padding: 11px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0077ff, #005fe0);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(0, 119, 255, 0.2);
}

/* SEARCH */
.center-search {
  max-width: 500px;
  margin: 0 auto 24px;
  height: 54px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dbeafe;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.center-search:focus-within {
  border-color: #0077ff;
  box-shadow: 0 14px 34px rgba(0, 119, 255, 0.14);
}

.center-search input {
  flex: 1;
  height: 100%;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #071327;
  font-size: 14px;
  font-weight: 600;
}

.center-search button {
  width: 56px;
  height: 54px;
  border: 0;
  background: linear-gradient(135deg, #0077ff, #005fe0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.center-search button svg {
  width: 21px;
  height: 21px;
  display: block;
}

/* TOGGLE */
.middle-category-toggle {
  border-radius: 22px;
  background: #fff;
  border: 1px solid #dbeafe;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.middle-toggle-btn {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border: 0;
  background: #fff;
  color: #071327;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.middle-toggle-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: 0.3s ease;
  flex-shrink: 0;
}

.middle-toggle-btn.active svg {
  transform: rotate(180deg);
}

/* SUBCATEGORY LIST */
.middle-subcategory-list {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    padding 0.25s ease;
}

.middle-subcategory-list.active {
  max-height: 1500px;
  opacity: 1;
  padding: 8px 0 16px;
}

.middle-subcategory-item {
  min-height: 46px;
  padding: 0 20px 0 52px;
  color: #1e293b;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  text-decoration: none;
  transition: 0.22s ease;
}

.middle-subcategory-item::before {
  content: "";
  position: absolute;
  left: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0077ff;
}

.middle-subcategory-item:hover {
  background: rgba(0, 119, 255, 0.06);
  color: #0077ff;
}

/* EMPTY */
.empty-state {
  padding: 55px 20px;
  text-align: center;
}

.empty-icon svg {
  width: 62px;
  height: 62px;
  color: #0077ff;
}

.empty-state h2 {
  margin: 12px 0;
  color: #071327;
  font-size: 28px;
  font-weight: 900;
}

.empty-state p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}

.empty-btn {
  min-height: 46px;
  margin-top: 22px;
  padding: 0 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0077ff, #005fe0);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .category-page {
    padding: 22px 0 45px;
  }

  .brand-slider-wrap {
    margin-bottom: 18px;
  }

  .center-search {
    height: 50px;
    margin-bottom: 20px;
  }

  .center-search button {
    width: 52px;
    height: 50px;
  }

  .select-model-title {
    text-align: center;
    font-size: 14px;
    margin-bottom: 18px;
  }

  .middle-toggle-btn {
    min-height: 54px;
    font-size: 17px;
  }

  .middle-subcategory-item {
    min-height: 43px;
    font-size: 14px;
  }
}
@media(max-width:480px){
  .category-page{
    padding:30px 0px;
  }
}