.catalog-sidebar {
  position: fixed;
  top: 110px;
  left: -285px;
  width: 285px;
  height: calc(100vh - 80px);
  background: #fff;
  transition: left 0.3s ease;
  z-index: 999;
  padding: 20px;
  font-size: 15px;
  overflow-y: auto;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  font-size: 0.75rem;
  will-change: left;
}

.catalog-sidebar.open {
  left: 0;
}

.catalog-sidebar .icon-img {
  opacity: 0.150;
  transition: opacity 0.2s;
}

.catalog-sidebar li:hover>.icon-img,
.catalog-sidebar .has-submenu:hover>.icon-img {
  opacity: 1;
}

.submenu {
  position: fixed;
  top: 110px;
  width: 285px;
  height: calc(100vh - 80px);
  background: #fff;
  padding: 20px 10px;
  display: none;
  z-index: 1110;
  overflow-y: auto;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.submenu.level-2 {
  left: 285px;
}

.submenu.level-3 {
  left: 570px;
}

.arrow-icon {
  width: 12px;
  height: 12px;
  margin-left: auto;
  opacity: 0;
  user-select: none;
  transform: rotate(90deg) !important;
  transition: none !important;
}

li.has-submenu:hover>.arrow-icon {
  opacity: 1;
  transform: rotate(90deg);
}

.submenu.level-2 li.has-submenu:hover button .arrow-icon {
  opacity: 1;
  transform: rotate(90deg);
}

.icon-img {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 6px;
}

.catalog-items li {
  position: relative;
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
  white-space: nowrap;
  border-radius: 8px;
}

.catalog-items li:hover {
  background: #f2f2f2;
  color: #007bff;
  border-radius: 8px;
}

.catbtn_m {
  width: 100%;
  background: none;
  border: none;
  font-size: 0.75rem;
  text-align: left;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #333;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  white-space: normal;
  word-break: break-word;
  gap: 4px;
}

.catbtn_m:hover {
  color: #007bff;
}

.catbtn_m img.arrow-icon {
  align-self: flex-end;
}

li.has-submenu {
  position: relative;
}

#DOoverlay {
  position: fixed;
  top: 110px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 80px);
  background: rgba(50, 50, 50, 0.08);
  backdrop-filter: blur(4px);
  z-index: 998;
  display: none;
  transition: opacity 0.3s ease;
}

#DOoverlay.active {
  display: block;
  opacity: 1;
}

.categoryTitle-split,
.categoryTitle-cassette-ac {
  font-size: 1.0rem;
  margin: 0.5rem 0;
  padding: 0 1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.catModelAndTitle {
  font-size: 0.8rem;
  margin: 0.5rem 0;
  padding: 0 1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.catbtn_m.active_m {
  color: #1976d2;
  font-weight: 1200;
}

.catalog-sidebar,
.submenu,
#DOoverlay {
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.catbtn_m2 {
  display: block;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  font-weight: 500;
  font-size: 0.75rem;
  text-align: center;
  padding: 0;
}

.btn-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.btn-list li button {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-weight: 500;
  font-size: 12px;
  text-align: center;
  height: 20px;
  line-height: 20px;
  padding: 0;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-list li:nth-child(3) button {
  background-color: #4CAF50;
}

.btn-list li:nth-child(3) button:hover {
  background-color: #45a049;
}

.btn-list li:nth-child(2) button {
  background-color: #2196F3;
}

.btn-list li:nth-child(2) button:hover {
  background-color: #1976D2;
}

.btn-list li:nth-child(1) button {
  background-color: #f44336;
}

.btn-list li:nth-child(1) button:hover {
  background-color: #d32f2f;
}

.aacontainer {
  margin-left: 15px;
  margin-right: 15px;
}

.btn-list>li:nth-child(1) {
  display: none;
}

.mobile-back-btn {
  display: none;
}

@media (max-width: 768px) {
  .mobile-back-btn {
    display: flex;
  }

  .btn-list>li:nth-child(1) {
    display: block;
  }

  .catalog-sidebar {
    width: 100%;
    left: -100%;
    top: 110px;
    height: calc(100vh - 110px);
    padding: 0;
    border: none;
    background: #fff;
    z-index: 999;
    transition: left 0.3s ease;
  }

  .catalog-sidebar.open {
    left: 0;
  }

  .submenu,
  .submenu.level-2,
  .submenu.level-3 {
    position: fixed;
    top: 110px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 110px);
    background: #fff;
    display: block !important;
    transition: left 0.3s ease;
    z-index: 1200;
    padding: 0;
    border: none;
    opacity: 1;
    visibility: hidden;
  }

  .submenu.mobile-visible {
    left: 0 !important;
    visibility: visible;
  }

  .submenu.level-3 {
    z-index: 1300;
  }

  .catalog-items li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 12px 20px;
    border-bottom: 1px solid #f2f2f2;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    height: auto;
    transition: background 0.2s ease;
  }

  .catalog-items li:hover {
    background: #f5f5f5;
  }

  .catalog-items li span {
    word-break: break-word;
  }

  .arrow-icon {
    margin-left: auto !important;
    opacity: 1 !important;
    transform: rotate(90deg) !important;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }

  .mobile-back-btn {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    background: #f8f9fa;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .mobile-back-btn:hover {
    background: #e9ecef;
  }

  .mobile-back-btn::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #007bff;
    border-left: 2px solid #007bff;
    transform: rotate(-45deg);
    margin-right: 15px;
    margin-top: 2px;
    transition: transform 0.3s ease;
  }
}

.pe-table {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d6e4ff;
  background: #ffffff;
  font-size: 14px;
}

.pe-row {
  display: flex;
  border-bottom: 1px solid #e8f0ff;
}

.pe-row:last-child {
  border-bottom: none;
}

.pe-header {
  background: #e5f0ff;
  font-weight: 600;
}

.pe-cell,
.pe-price {
  padding: 10px;
  display: flex;
  align-items: center;
  border-right: 1px solid #e8f0ff;

  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.25;
}

.pe-row .pe-cell:last-child,
.pe-row .pe-price:last-child {
  border-right: none;
}

.w180 {
  width: 180px;
}

.w150 {
  width: 150px;
}

.w120 {
  width: 120px;
}

.w100 {
  width: 100px;
}

.pe-price {
  cursor: pointer;
  transition: 0.2s;
}

.pe-price:hover {
  background: #d6e9ff;
}

.fab-filter {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  z-index: 90;
  transition: transform 0.2s, background 0.2s;
}

.fab-filter:hover {
  transform: translateY(-3px);
  background: #0056b3;
}

.fab-filter img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.filter-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

.filter-content {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filter-header h3 {
  margin: 0;
  font-size: 18px;
}

.close-filter {
  font-size: 28px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #555;
}

.filter-modal select,
.filter-modal input[type="number"] {
  width: 100%;
  padding: 12px 15px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #1f2937;
  outline: none;
  transition: all 0.3s ease;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.filter-modal select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 15px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  padding-right: 40px;
}

.filter-modal select:hover,
.filter-modal input[type="number"]:hover {
  background-color: #fff;
  border-color: #d1d5db;
}

.filter-modal select:focus,
.filter-modal input[type="number"]:focus {
  background-color: #fff;
  border-color: #007bff;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
}

.price-inputs {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-modal input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

select,
input[type="number"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}

select:focus,
input:focus {
  border-color: #007bff;
}

.price-inputs {
  display: flex;
  gap: 10px;
}

.apply-btn {
  width: 100%;
  background: #007bff;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 768px) {
  .fab-filter {
    bottom: 80px;
    right: 20px;
    padding: 8px 16px;
    font-size: 14px;
  }

  .fab-filter img {
    width: 16px;
    height: 16px;
  }

  .btn-list>li:nth-child(1) {
    display: block;
  }

}

@media (max-width: 600px) {

  .pe-table {
    font-size: 12px;
    overflow-x: auto;
    margin: 10px;
    box-sizing: border-box;
  }

  .pe-cell,
  .pe-price {
    padding: 8px;
    line-height: 1.2;
  }

  .w150 {
    width: 120px;
  }

  .w100 {
    width: 85px;
  }

  .pe-header {
    font-size: 12px;
  }

  .pe-price {
    font-size: 12px;
  }

  .btn-list>li:nth-child(1) {
    display: block;
  }

}