/*
 * Cabecera Versión 3 - Animación extensa de humo en tonos azules,
 * buscador predictivo integrado, botones delineados y barra inferior de categorías con íconos.
 */
.commerce-header {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  padding: 0 !important;
  border-bottom: 0 !important;
  background: #fff;
  box-shadow: 0 8px 28px rgba(6, 58, 114, .14);
  position: sticky;
  top: 0;
  z-index: 40;
}

.commerce-header .header-main {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 66px;
  padding: 10px 22px;
  display: grid;
  grid-template-columns: 258px minmax(340px, 1fr) auto;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 30;
  overflow: visible;
  background:
    radial-gradient(ellipse at 78% 72%, #0878aa 0, transparent 62%),
    radial-gradient(ellipse at 45% 20%, #164d90 0, #0c2b58 76%);
}

.commerce-header .header-smoke,
.commerce-header .header-main::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.commerce-header .header-smoke {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.commerce-header .header-main::after {
  content: "";
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 38, 83, .82), rgba(12, 40, 87, .32) 28%, transparent 58%),
    linear-gradient(180deg, rgba(8, 31, 72, .22), rgba(8, 31, 72, .18));
}

.commerce-header .brand.commerce-brand {
  width: auto;
  flex: initial;
  min-width: 0;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.commerce-header .brand.commerce-brand img {
  display: block;
  width: 220px;
  max-width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  filter: none !important;
}

.commerce-header .search.commerce-search {
  height: 38px;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 3px;
  position: relative;
  z-index: 50;
  overflow: visible;
  border: 1px solid #d6e5f3;
  border-radius: 10px;
  background: #f7fbff;
  box-shadow: 0 3px 10px rgba(4, 23, 51, .15);
  transition: border-color .18s ease, background-color .18s ease;
}

.commerce-header .search.commerce-search .predictive-search {
  z-index: 2000;
}

.commerce-header .search.commerce-search:focus-within {
  border-color: #8dccf9;
  outline: 2px solid #9edbff;
  outline-offset: 2px;
  background-color: #fff;
}

.commerce-header .search.commerce-search input {
  min-width: 0;
  width: auto;
  height: auto;
  min-height: 0;
  flex: 1;
  border: 0 !important;
  border-radius: 7px 0 0 7px !important;
  outline: 0;
  padding: 0 10px;
  background: transparent !important;
  box-shadow: none !important;
  color: #173f6a;
  font-size: 13px;
}

.commerce-header .search.commerce-search input::placeholder {
  color: #5f748c;
  opacity: 1;
}

.commerce-header .search.commerce-search button {
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  height: auto;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(190, 226, 255, .28);
  border-radius: 7px;
  background-color: #0b5b9c;
  background-image: linear-gradient(180deg, rgba(153, 215, 255, .15), transparent);
  color: #fff;
  cursor: pointer;
  transition: background-color .18s ease;
}

.commerce-header .search.commerce-search button:hover {
  background-color: #074e88;
  color: #fff;
}

.commerce-header .search.commerce-search button:active {
  background-color: #073d6d;
}

.commerce-header .search.commerce-search button:focus-visible {
  outline: 2px solid #164b79;
  outline-offset: 1px;
}

.commerce-header .search.commerce-search svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
}

.commerce-header .actions.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  margin-left: 0;
}

.commerce-header .actions.header-actions .action-btn {
  position: relative;
  height: 38px;
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(213, 235, 255, .28);
  border-radius: 9px;
  background-color: rgba(7, 31, 66, .48);
  box-shadow: inset 0 1px rgba(255, 255, 255, .07);
  color: #f5faff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}

.commerce-header .actions.header-actions .action-btn span:not(.badge) {
  display: inline !important;
}

.commerce-header .actions.header-actions .action-btn:hover {
  background-color: rgba(19, 66, 112, .85);
  border-color: rgba(213, 235, 255, .5);
}

.commerce-header .actions.header-actions .action-btn:focus-visible {
  outline: 2px solid #9edbff;
  outline-offset: 2px;
}

.commerce-header .actions.header-actions .action-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.commerce-header .actions.header-actions .action-btn.whatsapp {
  background-color: #08784d;
  background-image: linear-gradient(180deg, rgba(104, 255, 178, .11), transparent);
  border-color: rgba(157, 255, 207, .38);
  color: #fff;
}

.commerce-header .actions.header-actions .action-btn.whatsapp:hover {
  background-color: #08704b;
  border-color: rgba(157, 255, 207, .63);
}

.commerce-header .actions.header-actions .action-btn span.badge,
.commerce-header .actions.header-actions .badge {
  position: static;
  flex: 0 0 auto;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(151, 214, 255, .2);
  border: 1px solid rgba(190, 226, 255, .24);
  color: #e2f4ff;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.commerce-header .actions.header-actions .action-btn span.badge.has-items,
.commerce-header .actions.header-actions .badge.has-items {
  background: linear-gradient(180deg, #ff3b47 0%, #e11d2a 100%);
  border-color: rgba(255, 255, 255, .45);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 47, 59, .48);
}

.commerce-header .actions.header-actions .action-btn.has-quote-items {
  border-color: rgba(255, 120, 128, .55);
}

.commerce-header .category-bar {
  width: 100%;
  display: block !important;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #fff 0%, #f5f9fd 100%);
  border-bottom: 1px solid #dce7f3;
}

.commerce-header .category-strip {
  width: 100%;
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: .96fr .99fr 1.01fr 1.31fr 1.28fr .83fr 1fr .84fr;
  gap: 4px;
  max-width: 1540px;
  padding: 8px 16px;
  margin-inline: auto;
  background: transparent;
  border-bottom: 0;
  overflow: visible;
}

.commerce-header .category-strip a.category {
  position: relative;
  min-width: 0;
  min-height: 46px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #163e65;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: normal;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.commerce-header .category-strip a.category::after {
  display: none !important;
  content: none !important;
}

.commerce-header .category-strip a.category > span:last-child {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}

.commerce-header .category-strip .category-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background-color: #e9f2fb;
  color: #176299;
}

.commerce-header .category-strip .category-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.commerce-header .category-strip a.category:hover {
  background-color: #eef6ff;
  border-color: #d8e8f8;
  color: #075795;
}

.commerce-header .category-strip a.category:focus-visible {
  outline: 2px solid #1373bf;
  outline-offset: 2px;
}

.commerce-header .category-strip a.category.active {
  background: linear-gradient(135deg, #e6f2ff, #f4f9ff);
  border-color: #c7dff6;
  color: #074879;
  box-shadow: 0 2px 5px rgba(12, 73, 123, .07);
}

.commerce-header .category-strip a.category.active .category-icon {
  background-color: #0b61a8;
  color: #fff;
}

@media (max-width: 1280px) {
  .commerce-header .header-main {
    grid-template-columns: 240px minmax(280px, 1fr) auto;
    gap: 16px;
    padding-inline: 18px;
  }

  .commerce-header .brand.commerce-brand img {
    width: 206px;
  }

  .commerce-header .actions.header-actions .action-btn {
    padding-inline: 11px;
  }
}

@media (max-width: 1279px) {
  .commerce-header .category-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px 8px;
  }
}

@media (max-width: 1030px) {
  .commerce-header .header-main {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas:
      "brand actions"
      "search search";
    gap: 8px 14px;
    padding-block: 9px;
  }

  .commerce-header .brand.commerce-brand { grid-area: brand; }
  .commerce-header .search.commerce-search { grid-area: search; }
  .commerce-header .actions.header-actions { grid-area: actions; }
}

@media (max-width: 824px) {
  .commerce-header .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 10px;
  }

  .commerce-header .category-strip a.category {
    gap: 7px;
    font-size: 12px;
  }

  .commerce-header .category-strip a.category:not(.active, :hover) {
    border-color: #e3edf7;
    background-color: rgba(255, 255, 255, .7);
  }

  .commerce-header .category-strip .category-icon {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
  }

  .commerce-header .category-strip .category-icon svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 720px) {
  .commerce-header {
    position: relative;
  }

  .commerce-header .header-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "search"
      "actions";
    gap: 8px;
    padding: 9px 12px;
  }

  .commerce-header .brand.commerce-brand {
    width: auto;
    height: 42px;
    justify-content: center;
  }

  .commerce-header .brand.commerce-brand img {
    width: 185px;
    max-width: 185px;
  }

  .commerce-header .search.commerce-search {
    height: 40px;
  }

  .commerce-header .actions.header-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-left: 0;
  }

  .commerce-header .actions.header-actions .action-btn {
    display: inline-flex !important;
    height: 40px;
    min-height: 40px;
    padding-inline: clamp(6px, 2vw, 11px);
    gap: 6px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .commerce-header .category-strip a.category {
    min-height: 68px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }

  .commerce-header .category-strip .category-icon {
    width: 27px;
    flex: 0 0 27px;
  }
}

@keyframes quoteBadgePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.32); }
  100% { transform: scale(1); }
}

.commerce-header .actions.header-actions .badge.is-pop {
  animation: quoteBadgePop .36s cubic-bezier(.22, 1, .36, 1);
}

button.is-added-feedback {
  background: #089e4b !important;
  border-color: #089e4b !important;
  color: #ffffff !important;
}

/* Mini lista desplegable de Mi cotización */
.commerce-header .actions.header-actions {
  z-index: 60;
}

.quote-mini-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 2100;
  width: min(410px, calc(100vw - 24px));
  background: #ffffff;
  border: 1px solid #c9d9ee;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(6, 38, 82, .26);
  color: #102a4d;
  white-space: normal;
  overflow: hidden;
  text-align: left;
}

.quote-mini-popover[hidden] {
  display: none !important;
}

.quote-mini-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #0b3c75 0%, #0d5a9e 100%);
  color: #ffffff;
}

.quote-mini-popover__head strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.quote-mini-popover__head small {
  display: block;
  margin-top: 2px;
  color: #bfe0ff;
  font-size: 11.5px;
}

.quote-mini-popover__close {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.quote-mini-popover__close:hover {
  background: rgba(255, 255, 255, .22);
}

.quote-mini-popover__loading,
.quote-mini-popover__empty {
  padding: 22px 18px;
  text-align: center;
  color: #506680;
  font-size: 13px;
}

.quote-mini-popover__empty p {
  margin: 0 0 14px;
  color: #506680;
}

.quote-mini-popover__list {
  max-height: 320px;
  overflow-y: auto;
  divide-y: 1px solid #e8f0f8;
}

.quote-mini-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-bottom: 1px solid #eaf1f8;
  background: #ffffff;
  transition: background-color .15s ease;
}

.quote-mini-item:hover {
  background: #f7fbff;
}

.quote-mini-item:last-child {
  border-bottom: 0;
}

.quote-mini-item__thumb {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 1px solid #dde8f3;
  border-radius: 9px;
  background: #ffffff;
}

.quote-mini-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quote-mini-item__info {
  min-width: 0;
}

.quote-mini-item__top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.quote-mini-item__sku {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  background: #eaf4ff;
  color: #075fb8;
  font-size: 10.5px;
  font-weight: 800;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-mini-item__brand {
  color: #6b8098;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.quote-mini-item__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #0d2e57;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.32;
  text-decoration: none;
}

.quote-mini-item__name:hover {
  color: #0874d9;
}

.quote-mini-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  font-size: 11.5px;
  color: #4f6680;
}

.quote-mini-item__amount {
  color: #077f43;
  font-size: 12.5px;
  font-weight: 800;
}

.quote-mini-item__remove {
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #f2cccc;
  border-radius: 6px;
  background: #fff5f5;
  color: #c92a2a;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.quote-mini-item__remove:hover {
  background: #ffe3e3;
  border-color: #ffa8a8;
}

.quote-mini-popover__foot {
  padding: 13px 16px 15px;
  border-top: 1px solid #dce7f3;
  background: #f6faff;
}

.quote-mini-popover__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 11px;
}

.quote-mini-popover__total span {
  font-size: 12px;
  font-weight: 700;
  color: #4b637e;
}

.quote-mini-popover__total strong {
  font-size: 17px;
  font-weight: 900;
  color: #073e78;
}

.quote-mini-popover__actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}

.quote-mini-popover__keep {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #c3d6ea;
  border-radius: 9px;
  background: #ffffff;
  color: #23476e;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.quote-mini-popover__keep:hover {
  background: #eef5fc;
}

.quote-mini-popover__cta {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(180deg, #0b68bd 0%, #07539c 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(7, 83, 156, .25);
}

.quote-mini-popover__cta:hover {
  background: linear-gradient(180deg, #095ca8 0%, #064685 100%);
}

/* Corrección de herencia de estilos antiguos (.header-actions a y .header-actions b) dentro del popover */
.quote-mini-popover a.quote-mini-item__thumb {
  width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 4px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #dde8f3 !important;
  border-radius: 9px !important;
  background: #ffffff !important;
}

.quote-mini-popover a.quote-mini-item__name {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #0d2e57 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  text-decoration: none !important;
}

.quote-mini-popover a.quote-mini-item__name:hover {
  color: #0874d9 !important;
  text-decoration: underline !important;
}

.quote-mini-popover b,
.quote-mini-popover .quote-mini-item__qty {
  position: static !important;
  display: inline !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #0d2e57 !important;
  font-weight: 800 !important;
}

.quote-mini-popover a.quote-mini-popover__cta {
  min-height: 38px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(180deg, #0b68bd 0%, #07539c 100%) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

/* Selector de cantidad (- / +) dentro del desplegable de Mi cotización */
.quote-mini-item__qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.quote-mini-stepper {
  display: inline-grid;
  grid-template-columns: 24px minmax(26px, auto) 24px;
  align-items: center;
  height: 24px;
  border: 1px solid #bfd3e8;
  border-radius: 7px;
  background: #f5f9fe;
  overflow: hidden;
}

.quote-mini-stepper__btn {
  width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #0b4f94 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer;
}

.quote-mini-stepper__btn:hover:not(:disabled) {
  background: #e1effd !important;
  color: #063970 !important;
}

.quote-mini-stepper__btn:disabled {
  opacity: .45;
  cursor: wait;
}

.quote-mini-stepper__val {
  min-width: 26px;
  padding: 0 4px;
  border-left: 1px solid #d5e4f3;
  border-right: 1px solid #d5e4f3;
  background: #ffffff;
  color: #0d2e57 !important;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.quote-mini-item__unit {
  color: #4f6680;
  font-size: 11.5px;
}

/*
 * Menú lateral de categorías - Diseño Versión 3 (con animación de humo en el encabezado,
 * íconos de trazo 1.65px, tarjetas de subcategorías en 2 columnas y botón de cierre).
 */
.catalog-sidebar {
  position: relative;
  z-index: 25;
}

.catalog-sidebar__card {
  width: 100%;
  border: 1px solid #d8e6f4;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(20, 54, 95, .10);
}

.catalog-sidebar .sidebar-heading {
  width: 100%;
  min-height: 58px;
  height: auto;
  border: 0;
  border-bottom: 1px solid #b8d7f1;
  border-radius: 13px 13px 0 0;
  overflow: hidden;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 92% 100%, #1769a0, transparent 68%),
    linear-gradient(110deg, #0c2b58, #164d90);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
}

.catalog-sidebar .sidebar-heading .header-smoke,
.catalog-sidebar .sidebar-heading::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.catalog-sidebar .sidebar-heading .header-smoke {
  width: 100%;
  height: 100%;
}

.catalog-sidebar .sidebar-heading::after {
  content: "";
  background: linear-gradient(90deg, rgba(11, 38, 83, .82), rgba(8, 31, 72, .20));
}

.catalog-sidebar .sidebar-heading-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
  color: #ffffff;
}

.catalog-sidebar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-sidebar .sidebar-heading-icon,
.catalog-sidebar .category-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.catalog-sidebar .sidebar-heading-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(188, 225, 255, .36);
  background: rgba(188, 225, 255, .11);
  color: #eff8ff;
}

.catalog-sidebar nav {
  border: 0 !important;
  border-radius: 0 0 13px 13px !important;
  box-shadow: none !important;
  background: transparent !important;
}

.catalog-sidebar .category-list {
  margin: 0;
  padding: 6px;
  border-radius: 0 0 13px 13px;
  background: linear-gradient(180deg, #ffffff, #f9fbfe);
}

.catalog-sidebar .sidebar-category {
  position: relative;
}

.catalog-sidebar .sidebar-category + .sidebar-category {
  border-top: 1px solid #edf3f9;
}

.catalog-sidebar .sidebar-category > a.category-link {
  height: auto;
  min-height: 41px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 14px;
  align-items: center;
  column-gap: 9px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-radius: 8px;
  color: #163e65;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.catalog-sidebar .category-icon {
  width: 28px;
  height: 28px;
  background: #e9f2fb;
  color: #176299;
}

.catalog-sidebar .category-name.category-label {
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: break-word;
}

.catalog-sidebar svg.category-chevron {
  width: 14px;
  height: 14px;
  color: #6184a5;
  transition: transform .18s ease, color .18s ease;
}

.catalog-sidebar .sidebar-category:not(.is-dismissed):hover > a.category-link,
.catalog-sidebar .sidebar-category:not(.is-dismissed).has-focus > a.category-link,
.catalog-sidebar .sidebar-category:not(.is-dismissed).is-open > a.category-link {
  border-color: #c7dff6;
  background-color: #edf6ff;
  color: #074879;
}

.catalog-sidebar .sidebar-category:not(.is-dismissed):hover > a.category-link .category-chevron,
.catalog-sidebar .sidebar-category:not(.is-dismissed).has-focus > a.category-link .category-chevron,
.catalog-sidebar .sidebar-category:not(.is-dismissed).is-open > a.category-link .category-chevron {
  color: #0b61a8;
}

.catalog-sidebar .sidebar-category:not(.is-dismissed):hover > a.category-link .category-icon,
.catalog-sidebar .sidebar-category:not(.is-dismissed).has-focus > a.category-link .category-icon,
.catalog-sidebar .sidebar-category:not(.is-dismissed).is-open > a.category-link .category-icon {
  background-color: #0b61a8;
  color: #ffffff;
}

.catalog-sidebar .sidebar-submenu.submenu {
  display: none;
  margin: 1px 3px 7px;
  padding: 6px;
  border: 1px solid #dce9f6;
  border-radius: 10px;
  background: #f5f9fe;
}

.catalog-sidebar .sidebar-category:not(.is-dismissed):hover .sidebar-submenu.submenu,
.catalog-sidebar .sidebar-category:not(.is-dismissed).has-focus .sidebar-submenu.submenu,
.catalog-sidebar .sidebar-category:not(.is-dismissed).is-open .sidebar-submenu.submenu {
  display: block;
}

/* Puente invisible entre la categoría y el submenú flotante para que no se cierre al cruzar los 14px */
@media (min-width: 901px) {
  .catalog-sidebar .sidebar-submenu.submenu::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20px;
    width: 20px;
  }

  .catalog-sidebar .sidebar-submenu.submenu {
    position: absolute;
    z-index: 40;
    top: 0;
    left: calc(100% + 14px);
    width: min(460px, calc(100vw - 360px));
    margin: 0;
    padding: 13px;
    border-color: #d5e5f5;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(12, 43, 88, .12);
  }

  .catalog-sidebar .sidebar-category:nth-last-child(-n + 4) .sidebar-submenu.submenu {
    top: auto;
    bottom: 0;
  }
}

.catalog-sidebar .submenu-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 11px;
  margin-bottom: 9px;
  border-bottom: 1px solid #e5eef8;
}

.catalog-sidebar .submenu-heading h2 {
  flex: 1;
  margin: 0;
  color: #123f6b;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.catalog-sidebar .submenu-heading h2 a {
  padding: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  text-decoration: none !important;
  background: transparent !important;
}

.catalog-sidebar .submenu-heading h2 a:hover {
  color: #0b61a8 !important;
}

.catalog-sidebar .submenu-close {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #edf4fc;
  color: #456d94;
  cursor: pointer;
}

.catalog-sidebar .submenu-close:hover {
  background: #e2effc;
  color: #174d7e;
}

.catalog-sidebar .submenu-close svg {
  width: 15px;
  height: 15px;
}

.catalog-sidebar .subcategory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0;
  margin: 0;
}

.catalog-sidebar .sidebar-submenu a.subcategory-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 42px;
  height: 100%;
  padding: 7px 9px;
  border: 1px solid #e2edf8;
  border-radius: 8px;
  background: #ffffff;
  color: #234b72;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: break-word;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.catalog-sidebar .sidebar-submenu a.subcategory-link:hover {
  border-color: #bdd8f2;
  background: #edf6ff;
  color: #074879;
}

.catalog-sidebar svg.subcategory-arrow {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: #4275a4;
}

@media (max-width: 900px) {
  .catalog-sidebar:not(.is-open) nav {
    display: none;
  }

  .catalog-sidebar.is-open nav {
    display: block;
  }

  .catalog-sidebar .submenu-heading {
    display: none;
  }

  .catalog-sidebar .sidebar-submenu.submenu {
    position: static;
    width: auto;
    margin: 2px 4px 8px;
    padding: 8px;
    box-shadow: none;
    border: 1px solid #dce9f6;
    border-radius: 10px;
    background: #f5f9fe;
  }
}

@media (max-width: 420px) {
  .catalog-sidebar .subcategory-list {
    grid-template-columns: 1fr;
  }
}
