.main-highlights .carousel,
.main-highlights .carousel .carousel-item,
.main-highlights .carousel .carousel-item img {
  height: auto !important;
  width: 100% !important;
}

a:hover,
a {
  text-decoration: none !important;
}

#navbarInner {
  background-color: $white !important;
  display: none !important;
}

.header-top {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  background-color: #fff;
  font-size: 13px;
}



.autocomplete-items {
  z-index: 1500 !important;
}

.menu-container {
  position: relative;
  z-index: 1100;
}

/* wrapper grande, PERO NO DISPARA OPEN */
.category-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  z-index: 1200;
}

/* abre por clase, no por hover */
.category-wrapper.open .categories-menu {
  display: block;
}

.category-toggle {
  width: 256px;
  cursor: pointer;
  user-select: none;
}

.menu-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ===========================
   LISTA IZQUIERDA
=========================== */
.categories-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 256px;
  height: 523px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  display: none;
  z-index: 1400;
  border-radius: 0 0 8px 8px;
}

.category-item {
  padding: 10px 15px;
  border-bottom: 1px solid #f1f1f1;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  transition: .12s ease;
}

.category-item:hover {
  background: #f3f4f6;
}

.category-item.active {
  background: #f3f4f6;
  font-weight: 600;
}

.category-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: #d70000;
  border-radius: 3px;
}

/* ===========================
   PANEL FULL WIDTH
=========================== */
.submenu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 523px;

  padding: 24px;
  padding-left: calc(256px + 24px);

  background: #fff;
  border: 1px solid #ddd;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  overflow-y: auto;

  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  display: block;
  z-index: 1300;
}

.submenu-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.submenu-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  height: 100%;
}

/* links en columnas */
.submenu-links ul {
  padding: 0;
  list-style: none;
  column-width: 220px;
  column-gap: 32px;
  column-fill: balance;
}

.submenu-links li {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 10px;
}

.submenu-links a {
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  line-height: 1.25;
  white-space: normal;
  transition: color .15s ease;
}

.submenu-links a:hover {
  color: #d70000;
}

/* destacados */
.submenu-featured {
  border-left: 1px solid #eee;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-products {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.featured-product {
  display: flex;
  gap: 12px;
  text-decoration: none;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px;
  transition: .15s ease;
  background: #fff;
}

.featured-product:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

.featured-product img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.fp-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.fp-price {
  font-size: 14px;
  font-weight: 700;
  color: #d70000;
}

.featured-cta {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(215, 0, 0, .25);
  font-weight: 700;
  text-decoration: none;
  color: #d70000;
}

.featured-cta:hover {
  background: rgba(215, 0, 0, .06);
}

@media (max-width:1100px) {
  .submenu-inner {
    grid-template-columns: 1fr;
  }

  .submenu-featured {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #eee;
    padding-top: 14px;
  }
}

/* overlay */
#menu-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 179px;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 900;
}

#menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#megaMenuWrapper #navbarSubmenuHeader {
  background-color: transparent !important;
}

#navbarSubmenuHeader a {
  text-decoration: none !important;
}

/* --- TRIGGER (lo que se ve al lado de "Moneda:") --- */
#header-exchange-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  background: #fff;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

/* Mostrar el valor seleccionado sin depender del HTML */
#header-exchange-container::before {
  content: attr(data-currency);
  font-size: 12px;
  font-weight: 600;
  color: #111;
  margin-right: 2px;
}

/* Flechita */
#header-exchange-container::after {
  content: "▾";
  font-size: 10px;
  margin-left: 6px;
  opacity: .7;
}

/* --- OCULTAR el UL en estado cerrado (no queremos que se vea nada del HTML interno) --- */
#header-exchange-container ul {
  display: none;
}

/* --- MENÚ ABIERTO --- */
#header-exchange-container.open ul {
  display: block;
  position: absolute;
  top: 100%;
  /* pegado al trigger: SIN GAP */
  right: 0;
  margin: 0;
  padding: 6px;
  /* el “aire” va adentro, no con margin */
  list-style: none;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
  z-index: 9999;
  min-width: 110px;
}

/* cada opción */
#header-exchange-container.open ul li {
  display: block;
  margin: 0;
}

/* botones como items de dropdown */
#header-exchange-container.open .exchange-selector {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 8px;
}

#header-exchange-container.open .exchange-selector:hover {
  background: #f4f4f4;
}

/* marcar la seleccionada dentro del menú */
#header-exchange-container.open li.selected .exchange-selector {
  font-weight: 700;
  text-decoration: none;
}

/* opcional: sensación de foco */
#header-exchange-container:focus-within {
  border-color: #cfcfcf;
}

#header-exchange-container>div {
  display: none;
  /* escondemos el HTML interno, usamos ::before como label */
}

#header-exchange-container.open>div {
  display: block;
  /* pero lo mostramos cuando está abierto */
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 9999;
}

.whats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(37, 211, 102, 0.08);
  text-decoration: none;
  transition: all .2s ease;
  margin-right: 15px;
}

.whats span {
  font-weight: 600;
  color: #25D366;
  font-size: 13px;
}

.whats:hover {
  background: rgba(37, 211, 102, 0.18);
}

.header-bar {
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.header-search {
  width: 100%;
  max-width: 560px;
}

.header-search-form {
  position: relative;
  width: 100%;
}

.header-search-input {
  width: 100%;
  height: 58px;
  border: 2px solid #c91e35;
  border-radius: 999px;
  background: #fff;
  padding: 0 72px 0 22px;
  font-size: 1.05rem;
  color: #2c2324;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.header-search-input::placeholder {
  color: #5d5a66;
}

.header-search-input:focus {
  outline: none;
  border-color: #b1172d;
  box-shadow: 0 0 0 4px rgba(201, 30, 53, .10);
}

.header-search-btn {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.header-search-btn img {
  width: 24px;
  height: 24px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  white-space: nowrap;
}

/* Whats pill */
.whats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.10);
  text-decoration: none;
}

.whats span {
  font-size: 13px;
  font-weight: 600;
  color: #1a8f45;
}

/* Currency label */
.currency-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.currency-label {
  font-size: 12px;
  color: #777;
}

/* Divider */
.header-divider {
  width: 1px;
  height: 22px;
  background: #eaeaea;
}

/* Cart */
.cart-sesion {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.items-in-cart {
  font-size: 13px;
}

.js-total-display {
  font-size: 13px;
  font-weight: 600;
}

/* Responsive: achicar Whats en desktop chico */
@media (max-width: 1200px) {
  .whats span {
    display: none;
  }

  .whats {
    padding: 4px 8px;
  }
}

/* Mobile: buscador baja a segunda fila */
@media (max-width: 992px) {
  .header-bar {
    grid-template-columns: auto 1fr auto;
    row-gap: 10px;
  }

  .header-search {
    display: none !important;
  }
}

#login-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Ícono dentro de círculo */
.account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #444;
  /* controla color del icono */
  margin-right: 5px;
}

.account-icon svg,
.cart-icon svg {
  width: 24px;
  height: 24px;
}

/* Texto "Hola," */
.welcome-text {
  font-size: 12px;
  color: #777;
  margin: 0;
}

/* Nombre del usuario */
.user-name {
  font-size: 13px;
  font-weight: 600;
}

/* Trigger del dropdown */
.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  text-decoration: none;
  color: #111;
}

/* Hover suave */
.user-trigger:hover {
  background: #f8f8f8;
}

/* Ajuste caret Bootstrap */
.user-trigger::after {
  margin-left: 6px;
  opacity: .6;
}

.cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #444;
  /* hereda color al svg */
}

/* Wrapper completo login */
.header-account {
  display: inline-flex;
  align-items: center;
}

/* HOVER EN EL CONTENEDOR */
.header-account:hover .account-icon,
.header-account:hover .login-text,
.header-account:hover .user-name,
.header-account:hover .dropdown-toggle {
  color: #c1001f !important;
}

/* Fondo del círculo */
.header-account:hover .account-icon {
  background: #fbeaea;
}

.cart-sesion {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* hover sobre el contenedor */
.cart-sesion:hover .cart-icon,
.cart-sesion:hover .items-in-cart,
.cart-sesion:hover .js-total-display {
  color: #c1001f !important;
}

.cart-sesion:hover .cart-icon {
  background: #fbeaea;
}

#navbarHeader a {
  font-size: 1rem;
  font-weight: 400;
  color: #333 !important;
}
