/* =========================================================
DG HEADER UI
Scoped: #dghu-header
========================================================= */
#dghu-header,
#dghu-header * {
  box-sizing: border-box;
}

#dghu-header {
  --dghu-blue: #2ca6ff;
  --dghu-blue-dark: #1d89d8;
  --dghu-text: #17345d;
  --dghu-bg: #2ca6ff;
  --dghu-white: #ffffff;
  --dghu-border: #dbe8f8;
  --dghu-shadow: 0 10px 30px rgba(15, 40, 75, 0.1);
  width: 100%;
  background: var(--dghu-bg);
  padding: 14px 18px;
  font-family: inherit;
}

#dghu-header .dghu-header__inner {
  max-width: 1440px;
  margin: 0 auto;
}

#dghu-header .dghu-header__top {
  display: grid;
  grid-template-columns: auto minmax(300px, 1fr) auto;
  align-items: center;
  gap: 18px;
}

#dghu-header .dghu-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 180px;
}

#dghu-header .dghu-logo img {
  display: block;
  width: auto;
  max-width: 260px;
  max-height: 72px;
  object-fit: contain;
}

#dghu-header .dghu-search {
  min-width: 0;
}

#dghu-header .dghu-search__shell {
  position: relative;
  width: 100%;
}

#dghu-header .dghu-search__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--dghu-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  pointer-events: none;
}

#dghu-header .dghu-search__input {
  width: 100%;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #f9fbff;
  color: var(--dghu-text);
  padding: 0 18px 0 48px;
  outline: none;
  font-size: 18px;
  box-shadow: var(--dghu-shadow);
}

#dghu-header .dghu-search__input::placeholder {
  color: #8fa0b8;
}

#dghu-header .dghu-search__input:focus {
  border-color: #ffffff;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.18),
    var(--dghu-shadow);
}

#dghu-header .dghu-search__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 40, 75, 0.18);
  border: 1px solid #eef4fb;
  overflow: hidden;
  z-index: 90;
}

#dghu-header .dghu-search__status {
  padding: 14px 16px 4px;
  font-size: 13px;
  color: #7990af;
}

#dghu-header .dghu-search__results {
  max-height: 420px;
  overflow: auto;
  padding: 6px 0 8px;
}

#dghu-header .dghu-search__item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--dghu-text);
}

#dghu-header .dghu-search__item:hover {
  background: #f4f9ff;
}

#dghu-header .dghu-search__thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #f4f7fb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#dghu-header .dghu-search__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#dghu-header .dghu-search__meta {
  min-width: 0;
}

#dghu-header .dghu-search__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--dghu-text);
  line-height: 1.25;
}

#dghu-header .dghu-search__sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #7d91ad;
}

#dghu-header .dghu-search__presentation {
  display: block;
  /* margin-top: 4px; */
  font-weight: bold;
  font-size: 12px;
  color: #7d91ad;
}

#dghu-header .dghu-search__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--dghu-blue-dark);
  white-space: nowrap;
}

#dghu-header .dghu-search__all {
  display: block;
  margin: 8px 12px 4px;
  padding: 12px 14px;
  text-decoration: none;
  border-radius: 14px;
  color: var(--dghu-blue-dark);
  background: #eff8ff;
  font-weight: 700;
  text-align: center;
}

#dghu-header .dghu-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#dghu-header .dghu-account,
#dghu-header .dghu-cart {
  height: 56px;
  border: none;
  border-radius: 18px;
  background: #ffffff;
  color: var(--dghu-text);
  box-shadow: var(--dghu-shadow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  cursor: pointer;
  position: relative;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

#dghu-header .dghu-account:hover,
#dghu-header .dghu-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(15, 40, 75, 0.14);
}

#dghu-header .dghu-account__icon,
#dghu-header .dghu-cart__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dghu-text);
}

#dghu-header .dghu-account__text {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

#dghu-header .dghu-account--guest {
  opacity: 0.94;
}

#dghu-header .dghu-cart {
  width: 56px;
  min-width: 56px;
  padding: 0;
}

#dghu-header .dghu-cart__count {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--dghu-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 5px;
}

#dghu-header .dghu-cart__notice {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.18s ease;
}

#dghu-header .dghu-cart.is-bump {
  animation: dghuCartPulse 0.45s ease;
}

#dghu-header .dghu-cart.is-bump .dghu-cart__notice {
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
}

@keyframes dghuCartPulse {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
#dghu-menu-movil {
  display: none;
  height: 46px;
  width: 46px;
  border-radius: 14px !important;
  justify-content: center;
  align-items: center;
  background: white;
}
#dghu-menu-movil svg {
  height: 25px;
  fill: #17345d !important;
}
@media (max-width: 1024px) {
  #dghu-header {
    padding: 12px 14px;
  }

  #dghu-header .dghu-header__top {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  #dghu-header .dghu-logo {
    min-width: auto;
  }

  #dghu-header .dghu-logo img {
    max-width: 210px;
    max-height: 62px;
  }

  #dghu-header .dghu-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #dghu-header .dghu-actions {
    justify-self: end;
  }

  #dghu-header .dghu-account {
    height: 50px;
    padding: 0 16px;
  }

  #dghu-header .dghu-cart {
    height: 50px;
    width: 50px;
    min-width: 50px;
  }

  #dghu-header .dghu-search__input {
    height: 50px;
    font-size: 16px;
    border-radius: 16px;
  }
}

@media (max-width: 767px) {
  #dghu-header {
    padding: 10px 12px 12px;
  }

  #dghu-header .dghu-header__top {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  #dghu-header .dghu-logo img {
    max-width: 168px;
    max-height: 52px;
  }

  #dghu-header .dghu-account {
    padding: 0 12px;
    border-radius: 16px;
  }

  #dghu-header .dghu-account__text {
    font-size: 13px;
  }

  #dghu-header .dghu-account__text {
    display: none;
  }

  #dghu-header .dghu-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #dghu-header .dghu-search__dropdown {
    top: calc(100% + 8px);
    border-radius: 16px;
  }

  #dghu-header .dghu-search__item {
    grid-template-columns: 46px 1fr;
  }

  #dghu-header .dghu-search__price {
    grid-column: 2;
    justify-self: start;
  }

  #dghu-header .dghu-search__thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  #dghu-header .dghu-search__input {
    height: 48px;
    font-size: 15px;
    border-radius: 15px;
  }
}

/* ===== DGHU v1.0.1 corrections ===== */
#dghu-header {
  min-height: 130px !important;
  padding: 15px 18px !important;
  font-family: "Poppins", sans-serif !important;
}
#dghu-header .dghu-header__inner {
  min-height: 100px;
  display: flex;
  align-items: center;
}
#dghu-header .dghu-logo img {
  width: 285px !important;
  height: 100px !important;
  max-width: 285px !important;
  max-height: 100px !important;
  object-fit: contain;
}
#dghu-header .dghu-header__top {
  width: 100%;
  align-items: center;
}
#dghu-header .dghu-search__input {
  height: 52px !important;
  font-size: 16px !important;
  border-radius: 16px !important;
}
#dghu-header .dghu-account,
#dghu-header .dghu-cart {
  height: 52px !important;
  border-radius: 16px !important;
}
#dghu-header .dghu-account {
  padding: 0 18px !important;
}
#dghu-header .dghu-account__text {
  font-family: "Poppins", sans-serif !important;
  font-weight: 600 !important;
}
#dghu-header .dghu-cart {
  width: auto !important;
  min-width: 52px !important;
  padding: 0 15px !important;
  gap: 8px !important;
}
#dghu-header .dghu-cart__count {
  position: static !important;
  min-width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--dghu-text) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 0 !important;
  line-height: 1 !important;
  display: inline-block !important;
}

#dghu-header .dghu-account-menu {
  position: relative;
}
#dghu-header .dghu-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  background: #fff;
  border: 1px solid #e9f0fb;
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(15, 40, 75, 0.14);
  padding: 10px;
  z-index: 120;
}
#dghu-header .dghu-account-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--dghu-text);
  font-family: "Poppins", sans-serif !important;
  font-size: 14px;
  font-weight: 500;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}
#dghu-header .dghu-account-dropdown__item:hover {
  background: rgba(44, 166, 255, 0.08);
  color: var(--dghu-blue-dark);
}
#dghu-header .dghu-account-dropdown__icon {
  width: 18px;
  min-width: 18px;
  text-align: center;
  font-size: 15px;
  color: var(--dghu-blue);
}
#dghu-header .dghu-account-dropdown__item--logout {
  color: #d04f4f;
}
#dghu-header .dghu-account-dropdown__item--logout:hover {
  background: rgba(208, 79, 79, 0.06);
  color: #b63d3d;
}
#dghu-header .dghu-account-dropdown__item--logout .dghu-account-dropdown__icon {
  color: #d04f4f;
}

/* better mobile */
@media (max-width: 1024px) {
  #dghu-header {
    min-height: 110px !important;
    padding: 12px 14px !important;
  }
  #dghu-header .dghu-header__inner {
    min-height: 86px;
  }
  #dghu-header .dghu-logo img {
    width: 220px !important;
    height: 78px !important;
    max-width: 220px !important;
    max-height: 78px !important;
  }
}
@media (max-width: 767px) {
  #dghu-header {
    min-height: 92px !important;
    padding: 10px 12px 12px !important;
  }
  #dghu-header .dghu-header__inner {
    min-height: 72px;
    display: block;
  }
  #dghu-header .dghu-logo img {
    width: 150px !important;
    height: 56px !important;
    max-width: 150px !important;
    max-height: 56px !important;
  }
  #dghu-header .dghu-account,
  #dghu-header .dghu-cart {
    height: 46px !important;
    border-radius: 14px !important;
  }
  #dghu-header .dghu-cart {
    padding: 0 12px !important;
  }
  #dghu-header .dghu-cart__count {
    font-size: 14px !important;
  }
  #dghu-header .dghu-account-dropdown {
    width: 250px;
    border-radius: 16px;
    padding: 8px;
  }
  #dghu-header .dghu-account__text {
    display: none !important;
  }
  #dghu-menu-movil {
    display: flex;
  }
}

/* ===== DGHU v1.0.2 layout fixes ===== */
#dghu-header .dghu-header__top {
  grid-template-columns: auto minmax(280px, 820px) auto !important;
  justify-content: space-between !important;
}

#dghu-header .dghu-search {
  width: 100%;
  max-width: 820px !important;
  justify-self: center !important;
}

#dghu-header .dghu-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  justify-self: end !important;
  flex-shrink: 0 !important;
}

#dghu-header .dghu-cart {
  display: inline-flex !important;
  /* visibility: visible !important; */
  opacity: 1 !important;
}

@media (max-width: 1366px) {
  #dghu-header .dghu-header__top {
    grid-template-columns: auto minmax(260px, 720px) auto !important;
  }
  #dghu-header .dghu-search {
    max-width: 720px !important;
  }
}

@media (max-width: 1024px) {
  #dghu-header .dghu-header__top {
    grid-template-columns: 1fr auto auto !important;
  }
  #dghu-header .dghu-search {
    max-width: none !important;
    width: 100% !important;
  }
}

/* ===== DGHU v1.0.3 cart counter visibility fix ===== */
#dghu-header .dghu-cart {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#dghu-header .dghu-cart__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}

#dghu-header .dghu-cart__count {
  display: none;
}

#dghu-header .dghu-cart.has-count .dghu-cart__count {
  display: inline-block !important;
}

/* ===== DGHU v1.1.1 stable merge ===== */
/* Mantener layout estable del header que sí funcionaba */
#dghu-header {
  min-height: 130px !important;
  padding: 15px 18px !important;
  font-family: "Poppins", sans-serif !important;
}
#dghu-header .dghu-header__inner {
  max-width: 1440px;
  min-height: 100px;
  display: flex;
  align-items: center;
}
#dghu-header .dghu-header__top {
  width: 100%;
  grid-template-columns: auto minmax(300px, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
}
#dghu-header .dghu-logo img {
  width: 285px !important;
  height: 100px !important;
  max-width: 285px !important;
  max-height: 100px !important;
  object-fit: contain !important;
}
#dghu-header .dghu-search {
  min-width: 0 !important;
  max-width: none !important;
}
#dghu-header .dghu-search__input {
  height: 52px !important;
  font-size: 16px !important;
  border-radius: 16px !important;
}
#dghu-header .dghu-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
}
#dghu-header .dghu-account {
  height: 52px !important;
  border-radius: 16px !important;
  padding: 0 18px !important;
}
#dghu-header .dghu-account__text {
  font-family: "Poppins", sans-serif !important;
  font-weight: 600 !important;
}
#dghu-header .dghu-account-menu {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* contador inline, no badge arriba */
#dghu-header .dghu-cart {
  width: auto !important;
  min-width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
  padding: 0 15px !important;
  gap: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#dghu-header .dghu-cart__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}
#dghu-header .dghu-cart__count {
  position: static !important;
  min-width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--dghu-text) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 0 !important;
  line-height: 1 !important;
  display: none;
}
#dghu-header .dghu-cart.has-count .dghu-cart__count {
  display: inline-block !important;
}

/* dropdown tal como funcionaba, sin deformar fila */
#dghu-header .dghu-account-dropdown {
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
}
#dghu-header .dghu-account-dropdown[hidden] {
  display: none !important;
}
#dghu-header .dghu-account-dropdown:not([hidden]) {
  display: block !important;
}

@media (max-width: 1024px) {
  #dghu-header {
    min-height: 110px !important;
    padding: 12px 14px !important;
  }
  #dghu-header .dghu-header__inner {
    min-height: 86px;
  }
  #dghu-header .dghu-header__top {
    grid-template-columns: 1fr auto auto !important;
    gap: 10px !important;
  }
  #dghu-header .dghu-logo img {
    width: 220px !important;
    height: 78px !important;
    max-width: 220px !important;
    max-height: 78px !important;
  }
  #dghu-header .dghu-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 767px) {
  #dghu-header {
    min-height: 92px !important;
    padding: 10px 12px 12px !important;
  }
  #dghu-header .dghu-header__inner {
    min-height: 72px;
    display: block;
  }
  #dghu-header .dghu-logo img {
    width: 150px !important;
    height: 56px !important;
    max-width: 150px !important;
    max-height: 56px !important;
  }
  #dghu-header .dghu-account,
  #dghu-header .dghu-cart {
    height: 46px !important;
    border-radius: 14px !important;
  }
  #dghu-header .dghu-account__text {
    display: none !important;
  }
}

.dghu-search__cart-ctrl {
  width: 147px !important;
}
.dghu-qty-ctrl {
  align-items: center;
  border: 1px solid #2ca6ff;
  border-radius: 99px;
}

.dghu-card__qtybtn {
  flex: 0 0 42px !important;
  position: relative;
  overflow: hidden;
  min-width: 42px;
  height: 42px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #2ca6ff !important;
}

.dghu-card__qtybtn:hover {
  background: rgba(44, 166, 255, 0.12) !important;
  border-radius: 50% !important;
}
.dghu-card__btn {
  background: #2ca6ff !important;
  border-color: #2ca6ff !important;
  color: #fff !important;
  border-radius: 99px !important;
}

.dghu-hidden {
  display: none !important;
}
.dghu-card__qtynum {
  font-size: 15px;
  font-weight: 500;
  color: #173a6c;
  flex: 1;
  text-align: center;
}
.dghu-search__have_stock {
  background: red;
  color: white;
  padding: 0 5px;
  font-size: 14px;
}

/* ================================================================
   DGHU v1.2.0 — Mobile/Tablet redesign — estilo Boticas y Salud
   Usa html body para máxima especificidad y ganar todos los !important
   anteriores que usan solo #dghu-header
   ================================================================ */

@media (max-width: 1024px) {

  /* --- Fondo blanco en lugar de azul --- */
  html body #dghu-header {
    background: #ffffff !important;
    border-bottom: 2px solid #dbe8f8 !important;
    min-height: auto !important;
    padding: 10px 14px 0 14px !important;
  }

  html body #dghu-header .dghu-header__inner {
    min-height: auto !important;
    display: block !important;
  }

  /* --- Fila 1: flex row, Logo izq, acciones + hamburguesa der --- */
  html body #dghu-header .dghu-header__top {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 8px !important;
    width: 100% !important;
    grid-template-columns: none !important;
    padding-bottom: 10px !important;
  }

  /* Logo: primer elemento, izquierda */
  html body #dghu-header .dghu-logo {
    order: 1 !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  html body #dghu-header .dghu-logo img {
    width: auto !important;
    height: 46px !important;
    max-width: 170px !important;
    max-height: 46px !important;
    object-fit: contain !important;
  }

  /* Acciones (usuario + carrito): al centro-derecha */
  html body #dghu-header .dghu-actions {
    order: 2 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }

  /* Hamburguesa: último elemento, extremo derecho */
  html body #dghu-menu-movil {
    order: 3 !important;
    display: flex !important;
    flex: 0 0 auto !important;
    height: 40px !important;
    width: 40px !important;
    border-radius: 8px !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  html body #dghu-menu-movil svg {
    height: 22px !important;
    fill: #17345d !important;
  }

  /* Botones usuario y carrito: solo ícono, fondo transparente */
  html body #dghu-header .dghu-account,
  html body #dghu-header .dghu-cart {
    height: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    color: #17345d !important;
    gap: 0 !important;
  }

  html body #dghu-header .dghu-account:hover,
  html body #dghu-header .dghu-cart:hover {
    background: rgba(44,166,255,0.1) !important;
    transform: none !important;
    box-shadow: none !important;
  }

  html body #dghu-header .dghu-account__text {
    display: none !important;
  }

  html body #dghu-header .dghu-account__icon svg,
  html body #dghu-header .dghu-cart__icon svg {
    stroke: #17345d !important;
  }

  /* Badge carrito */
  html body #dghu-header .dghu-cart {
    position: relative !important;
  }

  html body #dghu-header .dghu-cart__count {
    position: absolute !important;
    top: 4px !important;
    right: 3px !important;
    min-width: 17px !important;
    height: 17px !important;
    border-radius: 999px !important;
    background: #2ca6ff !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 0 3px !important;
    line-height: 17px !important;
    display: none !important;
  }

  html body #dghu-header .dghu-cart.has-count .dghu-cart__count {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* --- Fila 2: Buscador full-width con lupa a la DERECHA --- */
  html body #dghu-header .dghu-search {
    order: 10 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-column: unset !important;
    grid-row: unset !important;
    padding-bottom: 10px !important;
  }

  /* Lupa a la derecha */
  html body #dghu-header .dghu-search__icon {
    left: auto !important;
    right: 14px !important;
    pointer-events: none !important;
    color: #17345d !important;
  }

  html body #dghu-header .dghu-search__input {
    height: 44px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
    padding: 0 46px 0 16px !important;
    background: #f2f6fc !important;
    border: 1.5px solid #dbe8f8 !important;
    box-shadow: none !important;
    color: #17345d !important;
  }

  html body #dghu-header .dghu-search__input:focus {
    background: #fff !important;
    border-color: #2ca6ff !important;
    box-shadow: 0 0 0 3px rgba(44,166,255,0.13) !important;
  }

  html body #dghu-header .dghu-search__dropdown {
    border-radius: 12px !important;
  }
}

/* === Ajustes extra para móvil pequeño (< 480px) === */
@media (max-width: 480px) {
  html body #dghu-header {
    padding: 8px 10px 0 10px !important;
  }

  html body #dghu-header .dghu-logo img {
    height: 40px !important;
    max-height: 40px !important;
    max-width: 150px !important;
  }

  html body #dghu-header .dghu-account,
  html body #dghu-header .dghu-cart,
  html body #dghu-menu-movil {
    height: 36px !important;
    width: 36px !important;
    min-width: 36px !important;
  }

  html body #dghu-header .dghu-search__input {
    height: 40px !important;
    font-size: 14px !important;
  }
}

/* ── DROPDOWN DE CUENTA: mobile header (#dghu-mobile-header) ── */
#dghu-mobile-header .dghu-account-menu {
  position: relative;
}
#dghu-mobile-header .dghu-account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: 240px;
  max-width: calc(100vw - 20px);
  background: #fff;
  border: 1px solid #e9f0fb;
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(15, 40, 75, 0.14);
  padding: 10px;
  z-index: 9999;
}
#dghu-mobile-header .dghu-account-dropdown[hidden] {
  display: none !important;
}
#dghu-mobile-header .dghu-account-dropdown:not([hidden]) {
  display: block !important;
}
#dghu-mobile-header .dghu-account-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #17345d;
  font-family: "Poppins", sans-serif !important;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease;
}
#dghu-mobile-header .dghu-account-dropdown__item:hover {
  background: rgba(44, 166, 255, 0.08);
  color: #17345d;
}
#dghu-mobile-header .dghu-account-dropdown__icon {
  width: 18px;
  min-width: 18px;
  text-align: center;
  font-size: 15px;
  color: #2ca6ff;
}
#dghu-mobile-header .dghu-account-dropdown__item--logout {
  color: #d04f4f;
}
#dghu-mobile-header .dghu-account-dropdown__item--logout:hover {
  background: rgba(208, 79, 79, 0.06);
  color: #b63d3d;
}
#dghu-mobile-header .dghu-account-dropdown__item--logout .dghu-account-dropdown__icon {
  color: #d04f4f;
}

/* ── BUSCADOR MOBILE HEADER (#dghu-mobile-header) ── */
#dghu-mobile-header .dghu-search__shell {
  position: relative;
  width: 100%;
}

#dghu-mobile-header .dghu-search__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 40, 75, 0.18);
  border: 1px solid #eef4fb;
  overflow: hidden;
  z-index: 9999;
}

#dghu-mobile-header .dghu-search__status {
  padding: 12px 14px 4px;
  font-size: 13px;
  color: #7990af;
  font-family: "Poppins", sans-serif;
}

#dghu-mobile-header .dghu-search__results {
  max-height: 65vh;
  overflow-y: auto;
  padding: 6px 0 8px;
}

#dghu-mobile-header .dghu-search__item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  text-decoration: none;
  color: #17345d;
  border-bottom: 1px solid #f0f5fc;
}

#dghu-mobile-header .dghu-search__item:last-child {
  border-bottom: none;
}

#dghu-mobile-header .dghu-search__item:hover,
#dghu-mobile-header .dghu-search__item:active {
  background: #f4f9ff;
}

#dghu-mobile-header .dghu-search__thumb {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #f4f7fb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#dghu-mobile-header .dghu-search__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#dghu-mobile-header .dghu-search__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#dghu-mobile-header .dghu-search__presentation {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #7d91ad;
  font-family: "Poppins", sans-serif;
}

#dghu-mobile-header .dghu-search__title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #17345d;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Poppins", sans-serif;
}

#dghu-mobile-header .dghu-search__sub {
  display: block;
  font-size: 11px;
  color: #7d91ad;
  font-family: "Poppins", sans-serif;
}

#dghu-mobile-header .dghu-search__price {
  font-size: 13px;
  font-weight: 700;
  color: #1d89d8;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
}

#dghu-mobile-header .dghu-search__have_stock {
  background: #e53e3e;
  color: white;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  margin-top: 2px;
}

#dghu-mobile-header .dghu-search__all {
  display: block;
  margin: 6px 10px 4px;
  padding: 11px 14px;
  text-decoration: none;
  border-radius: 12px;
  color: #1d89d8;
  background: #eff8ff;
  font-weight: 700;
  text-align: center;
  font-size: 13px;
  font-family: "Poppins", sans-serif;
}

/* Controles carrito en mobile search */
#dghu-mobile-header .dghu-search__cart-ctrl {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 110px;
}

#dghu-mobile-header .dghu-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid #2ca6ff;
  border-radius: 99px;
}

#dghu-mobile-header .dghu-card__qtybtn {
  flex: 0 0 36px;
  min-width: 36px;
  height: 36px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #2ca6ff !important;
  border-radius: 50% !important;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#dghu-mobile-header .dghu-card__qtybtn:hover {
  background: rgba(44, 166, 255, 0.12) !important;
}

#dghu-mobile-header .dghu-card__qtynum {
  font-size: 14px;
  font-weight: 600;
  color: #17345d;
  min-width: 24px;
  text-align: center;
}

#dghu-mobile-header .dghu-atc-btn.dghu-card__btn {
  background: #2ca6ff !important;
  border: none !important;
  color: #fff !important;
  border-radius: 99px !important;
  padding: 7px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
}

#dghu-mobile-header .dghu-hidden {
  display: none !important;
}
