.panelContainer {
  position: fixed;
  top: 150px;
  left: 50%;
  width: calc(100% - 60px);
  max-width: 1920px;
  min-height: 500px;
  margin: 0 auto;
  transform: translateX(-50%);
  display: none;
  z-index: 1500;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  padding: 30px;
  border-radius: 0;
  transition: all 0.3s ease;
}

.show {
  display: block;
}

.panelContent {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: auto;
}

.categoriesContainer {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  flex-wrap: wrap;
}

.subcategorySection {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
  padding: 10px;
  text-align: left;
}

.subcategoryTitle {
  font-size: 16px;
  color: #BB0606;
  margin-bottom: 10px;
  text-transform: uppercase;
  border-bottom: 2px solid #BB0606;
  padding-bottom: 5px;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  box-orient: vertical;
}

.productItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  transition: background-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.productItem:hover {
  background-color: #e6e6e6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.productImage {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.productItem:hover .productImage {
  transform: scale(1.1);
}

.productItem span {
  margin-left: 5px;
  text-align: left;
  font-size: 15px;
  color: #BB0606;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  box-orient: vertical;
}

.closeContainer {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  position: sticky;
  top: 0;
  right: 0;
  z-index: 1600;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 4px;
}

.closeSection {
  cursor: pointer;
  border: none;
  background: none;
  font-size: 16px;
  color: #BB0606;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.closeSection:hover {
  background-color: rgba(187, 6, 6, 0.1);
}

.iconClose {
  margin-right: 8px;
}

.loadingContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.loadingIcon {
  width: 40px;
  height: 40px;
}

.errorContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #BB0606;
}

.retryButton {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #BB0606;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.retryButton:hover {
  background-color: #a00505;
}

.productItemLink {
  text-decoration: none;
  color: inherit;
}

.productItemLink:hover {
  text-decoration: none;
  color: inherit;
}

/* Ajustes para telas menores */
@media (max-width: 1920px) {
  .panelContainer {
    width: calc(100% - 60px);
    max-width: 1920px;
  }
}

@media (max-width: 1440px) {
  .panelContainer {
    width: calc(100% - 60px);
    max-width: 1440px;
  }

  .subcategorySection {
    min-width: 180px;
  }

  .productImage {
    width: 45px;
    height: 45px;
  }

  .productItem span {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .panelContainer {
    width: calc(100% - 40px);
    max-width: 1024px;
  }

  .subcategorySection {
    min-width: 160px;
  }

  .productImage {
    width: 40px;
    height: 40px;
  }

  .productItem span {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .panelContainer {
    width: calc(100% - 30px);
    max-width: 768px;
    padding: 15px;
  }

  .subcategorySection {
    min-width: 140px;
    margin-bottom: 15px;
    padding: 8px;
  }

  .subcategoryTitle {
    font-size: 14px;
  }

  .productImage {
    width: 35px;
    height: 35px;
  }

  .productItem span {
    font-size: 12px;
  }

  .closeContainer {
    padding: 5px;
  }

  .loadingIcon {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .panelContainer {
    width: calc(100% - 20px);
    max-width: 480px;
    padding: 10px;
  }

  .subcategorySection {
    min-width: 120px;
  }

  .productImage {
    width: 30px;
    height: 30px;
  }

  .productItem span {
    font-size: 11px;
  }
}