/* ============================================================
   LoQuiero — Header CSS v2 (2026)
   Breakpoint único: 1024px  (< 1024px = mobile, ≥ 1024px = desktop)
   ============================================================ */


/* ============================================================
   0) VARIABLES LOCALES DEL HEADER
   ============================================================ */
:root {
  --lqh-bg: var(--loq-canvas);
  --lqh-border: var(--loq-border-soft);
  --lqh-text: var(--loq-text);
  --lqh-muted: var(--loq-text-muted);
  --lqh-accent: var(--loq-brand-cyan);
  --lqh-accent-hover: #158394;
  --lqh-search-bg: var(--loq-surface);
  --lqh-search-border: var(--loq-border-soft);
  --lqh-icon-hover: rgba(26, 164, 184, 0.06);
  --lqh-trust-bg: #000000;
  --lqh-trust-text: #ffffff;
  --lqh-top-h: 70px;
  /* un poco más alto para elegancia */
  --lqh-nav-h: 48px;
  /* nav un poco más espaciosa */
  --lqh-mobile-h: 60px;
  --lqh-transition: 0.22s cubic-bezier(.4, 0, .2, 1);
}

/* Bloqueo de scroll seguro para modales/drawers */
.loq-no-scroll {
  overflow: hidden !important;
}


/* ============================================================
   1) TRUST BAR — Auto-scroll Ticker
   ============================================================ */
.loq-trust-bar {
  width: 100%;
  background: var(--lqh-trust-bg);
  color: var(--lqh-trust-text);
  border-bottom: 1px solid var(--lqh-border);
  overflow: hidden;
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
}

.loq-trust-bar__track {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  animation: loqTrustScroll var(--trust-duration, 22s) linear infinite;
  width: max-content;
  padding: 0 12px;
}

.loq-trust-bar__track:hover {
  animation-play-state: paused;
}

.loq-trust-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.loq-trust-bar__item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}

.loq-trust-bar__item span {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.loq-trust-bar__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  flex-shrink: 0;
}

@keyframes loqTrustScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Desktop: larger gap, slightly bigger text */
@media (min-width: 1024px) {
  .loq-trust-bar__track {
    gap: 28px;
  }

  .loq-trust-bar__item span {
    font-size: 12px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .loq-trust-bar__track {
    animation: none !important;
    justify-content: center;
  }
}


/* ============================================================
   2) STICKY WRAPPER
   ============================================================ */
#site-header {
  display: contents;
}

.loq-header-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.loq-header-wrap.is-hidden-up {
  transform: translateY(-100%);
}

.loq-header {
  background: var(--lqh-bg);
  border-bottom: 1px solid var(--lqh-border);
  transition: box-shadow var(--lqh-transition), background var(--lqh-transition);
}

/* Efecto scroll: sombra + glass sutil */
.loq-header-wrap.is-scrolled .loq-header {
  box-shadow: 0 2px 24px rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}


/* ============================================================
   3) CONTENEDOR INTERNO
   ============================================================ */
.loq-header__container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

@media (min-width: 1024px) {
  .loq-header__container {
    padding: 0 32px;
    gap: 20px;
  }
}


/* ============================================================
   4) TOP ROW (Logo + Search + Actions)
   ============================================================ */
.loq-header__top {
  height: var(--lqh-mobile-h);
  overflow: hidden;
  /* evita que el logo se desborde verticalmente */
}

@media (min-width: 1024px) {
  .loq-header__top {
    height: var(--lqh-top-h);
    overflow: hidden;
  }

  /* Grid simétrico: logo-area | search (centrado real) | actions-area */
  .loq-header__top .loq-header__container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
  }

  /* Logo: dentro de su columna, alineado a la izquierda */
  .loq-header__logo {
    justify-self: start;
  }

  /* Actions: dentro de su columna, alineadas a la derecha */
  .loq-header__actions {
    justify-self: end;
  }
}

/* En mobile: flex row con el logo a la izquierda y acciones a la derecha */
.loq-header__top .loq-header__container {
  height: 100%;
}


/* ============================================================
   5) LOGO
   ============================================================ */
.loq-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  height: 28px;
  /* mobile: compacto */
  max-height: 28px;
  overflow: hidden;
}

.loq-header__logo-img {
  display: block;
  height: 28px !important;
  max-height: 28px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain;
  object-position: left center;
}

/* WordPress class .custom-logo — forzar tamaño */
.loq-header__logo .custom-logo,
.loq-header__logo img {
  height: 28px !important;
  max-height: 28px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain;
}

/* Desktop: logo levemente más grande */
@media (min-width: 1024px) {
  .loq-header__logo {
    height: 34px;
    max-height: 34px;
  }

  .loq-header__logo-img,
  .loq-header__logo .custom-logo,
  .loq-header__logo img {
    height: 34px !important;
    max-height: 34px !important;
    max-width: 160px !important;
  }
}

.loq-header__logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--lqh-text);
  line-height: 1;
  white-space: nowrap;
}


/* ============================================================
   6) SEARCH BAR (inline — solo desktop)
   ============================================================ */
.loq-searchbar--inline {
  display: none;
  /* oculto en mobile */
}

@media (min-width: 1024px) {
  .loq-searchbar--inline {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .loq-searchbar--inline form {
    width: 100%;
  }
}

.loq-searchbar__inner {
  display: flex;
  align-items: center;
  background: var(--lqh-search-bg);
  border: 1.5px solid var(--lqh-search-border);
  border-radius: 999px;
  padding: 0 6px 0 14px;
  height: 42px;
  gap: 8px;
  transition: border-color var(--lqh-transition), box-shadow var(--lqh-transition), background var(--lqh-transition);
}

.loq-searchbar__inner:focus-within {
  border-color: var(--lqh-accent);
  box-shadow: 0 0 0 4px rgba(26, 164, 184, 0.12);
  background: #fff;
}

.loq-searchbar__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--lqh-muted);
}

.loq-searchbar__input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--lqh-text);
  min-width: 0;
}

.loq-searchbar__input::placeholder {
  color: #94a3b8;
}

.loq-searchbar__submit {
  width: 60px;
  height: 32px;
  border-radius: 999px;
  background: var(--lqh-accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--lqh-transition), transform .08s ease;
}

.loq-searchbar__submit:hover {
  background: var(--lqh-accent-hover);
  transform: scale(1.04);
}

.loq-searchbar__submit svg {
  display: none !important;
}

.loq-searchbar__submit i {
  color: #fff;
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}


/* ============================================================
   7) ACCIONES (iconos + carrito)
   ============================================================ */
.loq-header__actions {
  display: flex;
  align-items: center;
  gap: 0px;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .loq-header__actions {
    margin-left: 0;
    gap: 2px;
  }
}

/* Icono base — outline style, toque moderno */
.loq-header__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  /* pill suave en lugar de 999px */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--lqh-text);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background var(--lqh-transition), transform .1s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.loq-header__icon svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
  display: block;
  flex-shrink: 0;
  stroke-width: 1.6;
  /* trazo fino = look moderno */
}

@media (min-width: 1024px) {
  .loq-header__icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  .loq-header__icon svg {
    width: 20px;
    height: 20px;
  }
}

.loq-header__icon:hover {
  background: var(--lqh-icon-hover);
}

.loq-header__icon:focus-visible {
  outline: 2px solid var(--lqh-accent);
  outline-offset: 2px;
}

/* Iconos SOLO MOBILE (search + hamburger) */
.loq-header__icon--search,
.loq-header__icon--menu {
  display: inline-flex;
}

@media (min-width: 1024px) {

  .loq-header__icon--search,
  .loq-header__icon--menu {
    display: none;
  }
}

/* Wishlist SOLO DESKTOP */
.loq-header__icon--wishlist {
  display: none;
}

@media (min-width: 1024px) {
  .loq-header__icon--wishlist {
    display: inline-flex;
  }
}


/* ============================================================
   8) CARRITO + BADGE
   ============================================================ */
.loq-header__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.loq-cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}


/* ============================================================
   9) NAV BAR (categorías — solo desktop)
   ============================================================ */
.loq-header__nav {
  display: none;
}

@media (min-width: 1024px) {
  .loq-header__nav {
    display: block;
    border-top: 1px solid var(--lqh-border);
  }

  .loq-header__nav .loq-header__container {
    height: var(--lqh-nav-h);
  }
}

/* Menú principal — centrado en desktop */
.loq-mainmenu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.loq-mainmenu>li {
  position: relative;
}

.loq-mainmenu>li>a {
  display: flex;
  align-items: center;
  height: var(--lqh-nav-h);
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lqh-text);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: background var(--lqh-transition), color var(--lqh-transition);
  gap: 4px;
}

.loq-mainmenu>li>a:hover {
  background: transparent;
  color: var(--lqh-accent);
}

/* Underline animado (Digital Trade Style) */
.loq-mainmenu>li>a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--loq-brand-orange);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: right;
}

.loq-mainmenu>li>a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Separadores entre items */
.loq-mainmenu>li+li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(15, 23, 42, .1);
  pointer-events: none;
}

/* Dropdown nivel 2 */
.loq-mainmenu>li.menu-item-has-children>.sub-menu {
  display: block;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 4px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 14px;
  padding: 6px;
  min-width: 200px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .11), 0 2px 8px rgba(15, 23, 42, .06);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--lqh-transition), transform var(--lqh-transition), visibility var(--lqh-transition);
  list-style: none;
}

.loq-mainmenu>li.menu-item-has-children:hover>.sub-menu,
.loq-mainmenu>li.menu-item-has-children:focus-within>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.loq-mainmenu .sub-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--lqh-text);
  text-decoration: none;
  border-radius: 9px;
  transition: background var(--lqh-transition), color .1s ease;
}

.loq-mainmenu .sub-menu a:hover {
  background: rgba(26, 164, 184, 0.08);
  color: var(--lqh-accent);
}

/* Dropdown nivel 3 */
.loq-mainmenu .sub-menu li.menu-item-has-children {
  position: relative;
}

.loq-mainmenu .sub-menu li.menu-item-has-children>.sub-menu {
  left: 100%;
  top: -6px;
  margin-top: 0;
}


/* ============================================================
   10) SEARCH PANEL MOBILE (dropdown)
   ============================================================ */
.loq-search-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  border-top: 1px solid transparent;
  transition: max-height 0.25s ease, opacity 0.22s ease, border-top-color 0.22s ease;
}

.loq-search-panel.is-open {
  max-height: 80px;
  opacity: 1;
  border-top-color: var(--lqh-border);
}

.loq-search-panel .loq-header__container {
  height: 64px;
}

/* ocultar en desktop */
@media (min-width: 1024px) {
  .loq-search-panel {
    display: none !important;
  }
}


/* ============================================================
   11) SIDE DRAWER (slide desde la izquierda — mobile)
   ============================================================ */
.loq-drawer {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.32s;
}

.loq-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .4);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.loq-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(340px, 88vw);
  height: 100%;
  background: var(--loq-brand-navy);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 8px 0 40px rgba(0, 0, 0, .4);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.22, .61, .36, 1);
}

/* Estado abierto */
.loq-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.loq-drawer.is-open .loq-drawer__overlay {
  opacity: 1;
}

.loq-drawer.is-open .loq-drawer__panel {
  transform: translateX(0);
}

/* Drawer nunca en desktop */
@media (min-width: 1024px) {
  .loq-drawer {
    display: none !important;
  }
}


/* ============================================================
   12) CONTENIDO DEL DRAWER
   ============================================================ */

/* Header */
.loq-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  flex-shrink: 0;
}

.loq-drawer__title {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #ffffff;
}

.loq-drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, .1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--lqh-transition), transform .08s ease;
}

.loq-drawer__close:hover {
  background: rgba(15, 23, 42, .1);
}

.loq-drawer__close:active {
  transform: scale(.94);
}

.loq-drawer__close svg {
  width: 18px;
  height: 18px;
}

/* Buscador en drawer */
.loq-drawer__search {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  flex-shrink: 0;
}

.loq-drawer__search .loq-searchbar__inner {
  height: 40px;
}

/* Navegación scrollable */
.loq-drawer__nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.loq-drawer__list,
.loq-drawer__sublist {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

/* Items nivel 1 */
.loq-drawer__link,
.loq-drawer__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--lqh-transition), color .1s ease;
  gap: 8px;
  text-align: left;
}

.loq-drawer__link:hover,
.loq-drawer__trigger:hover {
  background: rgba(255, 255, 255, .05);
  color: var(--lqh-accent);
}

.loq-drawer__link:active,
.loq-drawer__trigger:active {
  background: rgba(15, 23, 42, .07);
}

/* Chevron */
.loq-drawer__chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--loq-brand-cyan);
  transition: transform 0.22s ease;
  margin-left: auto;
}

.loq-drawer__item.has-sub.is-open>.loq-drawer__trigger .loq-drawer__chevron {
  transform: rotate(180deg);
  color: var(--lqh-accent);
}

/* Sublistas */
.loq-drawer__sublist {
  display: none;
  padding: 4px 0;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.loq-drawer__item.has-sub.is-open>.loq-drawer__sublist {
  display: block;
}

/* Items hijos */
.loq-drawer__item--child .loq-drawer__link,
.loq-drawer__item--child .loq-drawer__trigger {
  padding-left: 40px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.loq-drawer__item--child .loq-drawer__link:hover,
.loq-drawer__item--child .loq-drawer__trigger:hover {
  color: var(--lqh-accent);
}

/* Link "Ver todo" */
.loq-drawer__link--all {
  font-weight: 600;
  color: var(--loq-brand-orange) !important;
}

/* Safe area iOS */
.loq-drawer__safe {
  flex-shrink: 0;
  height: env(safe-area-inset-bottom, 12px);
  min-height: 12px;
}

/* ============================================================
   13) CART DRAWER (slide desde la derecha)
   ============================================================ */
.loq-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.28s;
}

.loq-cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .4);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.loq-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 88vw);
  height: 100%;
  height: 100dvh;
  background: #fff;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: -8px 0 40px rgba(15, 23, 42, .14);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.22, .61, .36, 1);
}

.loq-cart-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.loq-cart-drawer.is-open .loq-cart-drawer__overlay {
  opacity: 1;
}

.loq-cart-drawer.is-open .loq-cart-drawer__panel {
  transform: translateX(0);
}

/* Header Cart Drawer */
.loq-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  background: #f8fafc !important;
  /* Gris unificado con el footer */
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  flex-shrink: 0;
}

.loq-cart-drawer__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--lqh-text);
}

.loq-cart-drawer__close {
  width: 50px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, .05);
  color: var(--lqh-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--lqh-transition), transform .08s ease;
}

.loq-cart-drawer__close svg {
  width: 20px;
  height: 20px;
}

.loq-cart-drawer__close:hover {
  background: rgba(15, 23, 42, .1);
}

.loq-cart-drawer__content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  height: auto !important;
  /* Permitir que flex calcule el resto */
}

.widget_shopping_cart_content {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
}

/* Estado Vacío */
.woocommerce-mini-cart__empty-message {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  color: var(--lqh-muted);
  font-weight: 500;
}

/* Lista de Productos (Scrollable) */
ul.woocommerce-mini-cart.cart_list {
  flex: 1 1 auto;
  overflow-y: auto;
  margin: 0;
  padding: 20px;
  list-style: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Cada Item Wrapper */
ul.woocommerce-mini-cart.cart_list li.mini_cart_item,
ul.woocommerce-mini-cart.cart_list li.loq-free-gift-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  position: relative;
  margin-left: -10px;
}

ul.woocommerce-mini-cart.cart_list li.mini_cart_item:last-child,
ul.woocommerce-mini-cart.cart_list li.loq-free-gift-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Imagen del Producto */
.lqtc-item-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #f8fafc;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
}

/* Contenido */
.lqtc-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-right: 28px;
  /* space for remove button */
}

/* Título */
.lqtc-item-name {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--lqh-text);
  line-height: 1.3;
  margin-bottom: 2px;
}

.lqtc-item-name a {
  color: inherit;
  text-decoration: none;
}

.lqtc-item-name a:hover {
  color: var(--lqh-accent);
}

/* Condición / Detalles */
.lqtc-item-condition {
  font-size: 13px;
  color: var(--lqh-muted);
  font-weight: 400;
  margin-bottom: 6px;
}

/* Precio */
.lqtc-item-price {
  font-size: 15px;
  color: var(--lqh-text);
  font-weight: 600;
}

/* Fila de precio y cantidad */
.lqtc-item-price-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 12px;
}

/* Selector de cantidad */
.lqtc-qty-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 999px;
  padding: 2px;
  height: 28px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.lqtc-qty-selector:hover {
  background: rgba(15, 23, 42, 0.08);
}

.lqtc-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--lqh-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.08s ease, color 0.15s ease;
  user-select: none;
}

.lqtc-qty-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.lqtc-qty-btn:active {
  transform: scale(0.9);
}

.lqtc-qty-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--lqh-text);
  padding: 0 10px;
  min-width: 14px;
  text-align: center;
}

/* Estado cargando/procesando en el carrito */
.loq-cart-drawer__panel.is-processing {
  pointer-events: none;
}

.loq-cart-drawer__panel.is-processing ul.woocommerce-mini-cart.cart_list {
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

/* Pseudo-producto GRATIS (Beneficio) */
ul.woocommerce-mini-cart.cart_list li.loq-free-gift-item {
  border-top: none !important;
  padding: 0 0 16px 32px !important;
  margin-top: -8px;
  background: transparent;
  border: none;
  position: relative;
}

ul.woocommerce-mini-cart.cart_list li.loq-free-gift-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: -28px;
  width: 16px;
  height: 54px;
  border-left: 2px solid rgba(15, 23, 42, .08);
  border-bottom: 2px solid rgba(15, 23, 42, .08);
  border-bottom-left-radius: 8px;
}

.loq-free-gift-item .lqtc-item-thumb img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
}

.loq-free-gift-item .lqtc-item-name {
  font-size: 14.5px;
  font-weight: 500;
  /* Igual que un producto */
  color: var(--lqh-text);
  margin-bottom: 4px;
  /* Separación con el precio "Gratis" */
}

.loq-free-gift-item .lqtc-item-price {
  color: #00a650;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: -5px;
}

/* Botón Eliminar (X) */
ul.woocommerce-mini-cart.cart_list li.mini_cart_item a.remove {
  position: absolute;
  top: 16px;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .04);
  color: var(--lqh-muted);
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  font-weight: 400;
  transition: all .15s ease;
  z-index: 10;
}

ul.woocommerce-mini-cart.cart_list li.mini_cart_item a.remove:hover {
  background: #ef4444;
  /* Rojo de alerta */
  color: #ffffff;
}

ul.woocommerce-mini-cart.cart_list li.mini_cart_item a.remove:active {
  transform: scale(0.9);
}

/* ===== CUPÓN — Ultra minimal inline link ===== */
.loq-minicart-coupon {
  padding: 0 20px 12px;
  background: #f8fafc !important;
  /* Fondo gris para el bloque de cupón también */
}

/* El link “¿Tenés un cupón?” */
.loq-minicart-coupon__toggle {
  display: inline-block;
  font-size: 12px;
  color: var(--lqh-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.loq-minicart-coupon__toggle:hover {
  opacity: 0.85;
}

/* Panel colapsado */
.loq-minicart-coupon__form-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

.loq-minicart-coupon__form-wrap.is-open {
  max-height: 68px;
  opacity: 1;
  pointer-events: auto;
}

.loq-minicart-coupon__form {
  display: flex;
  gap: 6px;
  padding-top: 8px;
}

.loq-minicart-coupon__input {
  flex: 1;
  height: 36px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
  background: rgba(15, 23, 42, .02);
  transition: border-color 0.2s;
}

.loq-minicart-coupon__input:focus {
  border-color: var(--lqh-accent);
  background: #fff;
}

.loq-minicart-coupon__btn {
  height: 36px;
  padding: 0 14px;
  background: rgba(15, 23, 42, .06);
  color: var(--lqh-text);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.loq-minicart-coupon__btn:hover {
  background: rgba(15, 23, 42, .10);
}

.loq-minicart-coupon__btn.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Estado: cupón activo */
.loq-minicart-coupon__active {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.loq-minicart-coupon__tag {
  font-size: 12px;
  color: #10b981;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.loq-minicart-coupon__remove {
  font-size: 11px;
  color: var(--lqh-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.5;
}

.loq-minicart-coupon__remove:hover {
  opacity: 0.9;
}

/* Mensaje de respuesta AJAX */
.loq-minicart-coupon__msg {
  display: none;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

.loq-minicart-coupon__msg.is-error {
  display: block;
  color: #ef4444;
}

.loq-minicart-coupon__msg.is-success {
  display: block;
  color: #10b981;
}

/* ===== ENVÍO GRATIS — Bloque prominente con marca ===== */
.loq-minicart-shipping {
  margin: 0 16px 4px;
  padding: 14px 16px;
  background: #052C3C !important;
  border-radius: 14px;
  border-top: none;
  position: relative;
  overflow: hidden;
}

/* Decoración de fondo */
.loq-minicart-shipping::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(26, 164, 184, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.loq-minicart-shipping__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(26, 164, 184, 0.2);
  border-radius: 8px;
  flex-shrink: 0;
  color: #1AA4B8;
  margin-bottom: 10px;
}

.loq-minicart-shipping__icon svg {
  width: 16px;
  height: 16px;
}

.loq-minicart-shipping__content {
  width: 100%;
}

.loq-minicart-shipping__text {
  font-size: 13px !important;
  color: rgba(255,255,255,0.7) !important;
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.loq-minicart-shipping__text strong {
  font-weight: 700;
  color: #ffffff !important;
}

/* Estado: envío gratis alcanzado */
.loq-minicart-shipping.is-free {
  background: linear-gradient(135deg, #052C3C 0%, #0a4a5e 100%) !important;
}

.loq-minicart-shipping.is-free .loq-minicart-shipping__text {
  color: rgba(255,255,255,0.8) !important;
}

.loq-minicart-shipping.is-free .loq-minicart-shipping__text,
.loq-minicart-shipping.is-free .loq-minicart-shipping__text strong {
  color: #ffffff !important;
}

.loq-minicart-shipping.is-free .loq-minicart-shipping__icon {
  background: rgba(26, 164, 184, 0.3);
  color: #1AA4B8;
}

/* Barra de progreso */
.loq-minicart-shipping__bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  width: 100%;
}

.loq-minicart-shipping__progress {
  height: 100%;
  background: linear-gradient(90deg, #1AA4B8, #52c8dc);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(.22,.61,.36,1);
  box-shadow: 0 0 8px rgba(26, 164, 184, 0.5);
}

.loq-minicart-shipping.is-free .loq-minicart-shipping__progress {
  background: linear-gradient(90deg, #1AA4B8, #52c8dc);
  box-shadow: 0 0 12px rgba(26, 164, 184, 0.7);
}

/* Ocultar fila de costo —  ya no la necesitamos */
.woocommerce-mini-cart__info-row {
  display: none;
}

/* Subtotal — integrado como un label, no un bloque */
.woocommerce-mini-cart__total {
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 12px !important;
  margin: 0 !important;
  border-top: none;
  background: #f8fafc !important;
  /* Mantener fondo gris */
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  /* Slate 600 */
}

.woocommerce-mini-cart__total .amount {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  /* Slate 900 */
  letter-spacing: -0.02em !important;
}

/* Bloque botón + cupón */
.woocommerce-mini-cart__buttons {
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 16px 18px calc(24px + env(safe-area-inset-bottom, 20px)) !important;
  /* Más margen abajo */
  background: #f8fafc !important;
  /* Fondo gris unificado */
  border-top: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.03) !important;
  z-index: 10;
}

/* Ocultar el botón genérico de Ver Carrito */
.woocommerce-mini-cart__buttons .button:not(.checkout) {
  display: none !important;
}

/* Botón de Finalizar Compra — Marca ShopsDigital Cyan */
.woocommerce-mini-cart__buttons a.checkout,
.woocommerce-mini-cart__buttons .checkout {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 54px !important;
  padding: 0 24px !important;
  background-color: #1AA4B8 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 20px rgba(26, 164, 184, 0.35) !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.woocommerce-mini-cart__buttons a.checkout:hover,
.woocommerce-mini-cart__buttons .checkout:hover {
  background-color: #158394 !important;
  filter: none !important;
  box-shadow: 0 6px 28px rgba(26, 164, 184, 0.45) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

.woocommerce-mini-cart__buttons a.checkout:active,
.woocommerce-mini-cart__buttons .checkout:active {
  transform: scale(.98) !important;
  box-shadow: 0 2px 10px rgba(26, 164, 184, 0.3) !important;
}

/* Cache Refresh: 1776280781 */
/* Sticky Footer Fix: 1776281080 */
/* Global Refresh: 1776281827 */
/* Brand Update: 202605-v5 */
