#lr-cart-drawer{ position:fixed; inset:0; z-index:100050; pointer-events:none; }
#lr-cart-drawer.is-open{ pointer-events:auto; }

/* scrim */
#lr-cart-drawer .lr-cd__scrim{
  position:absolute; inset:0;
  background: rgba(0,0,0,.35);
  opacity:0; transition: opacity .18s ease;
}
#lr-cart-drawer.is-open .lr-cd__scrim{ opacity:1; }

/* panel */
#lr-cart-drawer .lr-cd__panel{
  position:absolute; top:0; right:0; bottom:0;
  width:min(520px, 92vw);
  transform: translateX(100%);
  transition: transform .22s ease;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.70));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-left: 1px solid rgba(17,17,17,.08);
  box-shadow: -24px 0 64px rgba(0,0,0,.18);
  padding: 18px;
  overflow:auto;
}
#lr-cart-drawer.is-open .lr-cd__panel{ transform: translateX(0); }

.lr-cd__close{
  position:absolute; top:10px; right:10px;
  background:transparent; border:0; font-size:22px; line-height:1;
  padding:8px; border-radius:10px; cursor:pointer;
}
.lr-cd__close:hover{ background:rgba(17,17,17,.06); }

.lr-cd__head{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.lr-cd__title{ margin:0; font-size:18px; }

/* contenido */
.lr-cd__item{ display:flex; gap:12px; align-items:center; margin:10px 0 12px; }
.lr-cd__thumb{ width:82px; height:82px; object-fit:cover; border-radius:12px; border:1px solid rgba(17,17,17,.08); }
.lr-cd__name{ font-weight:700; margin-bottom:4px; }
.lr-cd__price{ color:#59610a; font-weight:600; }
.lr-cd__total{ display:flex; justify-content:space-between; margin-top:6px; padding-top:10px; border-top:1px solid rgba(17,17,17,.08); }

.lr-cd__actions{ display:flex; gap:10px; margin-top:14px; }
.lr-btn-outline, .lr-btn-primary{
  flex:1; display:inline-flex; justify-content:center; align-items:center; height:46px;
  border-radius:14px; text-decoration:none; font-weight:600; color:#111;
  border:1px solid rgba(17,17,17,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.45));
  box-shadow: 0 10px 28px rgba(0,0,0,.06), inset 0 0 0 1px rgba(255,255,255,.35);
}
.lr-btn-primary:hover, .lr-btn-outline:hover{ transform: translateY(-1px); box-shadow:0 12px 36px rgba(0,0,0,.10); }

@media (prefers-reduced-motion: reduce){
  #lr-cart-drawer .lr-cd__panel,
  #lr-cart-drawer .lr-cd__scrim{ transition:none; }
}

/* Botón estilo cristal SIEMPRE, sin morado en ningún estado */
.single-product .single_add_to_cart_button,
.single-product .single_add_to_cart_button.button,
.single-product .single_add_to_cart_button.button.alt,
.single-product .single_add_to_cart_button.loading,
.single-product .single_add_to_cart_button:disabled,
.single-product .single_add_to_cart_button[disabled] {
  background: linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.45)) !important;
  color: #111 !important;
  border: 1px solid var(--sp-brd, rgba(17,17,17,.08)) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.06), inset 0 0 0 1px rgba(255,255,255,.35) !important;
}

/* Hover/active coherentes */
.single-product .single_add_to_cart_button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(0,0,0,.10);
}

/* Spinner de Woo en estado .loading (círculo discreto en #111) */
.single-product .single_add_to_cart_button.loading::after {
  border-color: #111 transparent #111 transparent !important;
}

/* Header con logo + título + close */
#lr-cart-drawer .lr-cd__head{
  display:flex; align-items:center; gap:10px; margin-bottom:12px;
}
#lr-cart-drawer .lr-cd__logo{
  height: 28px; /* o 32px si quieres aún más presencia */
  width: auto;  /* conserva proporción */
  object-fit: contain;
  opacity: 0.95;
  margin-right: 8px;
}

/* Ítems con botón remove sutil */
#lr-cart-drawer .lr-cd__item{
  display:flex; gap:12px; align-items:center; margin:12px 0;
}
#lr-cart-drawer .lr-cd__item .lr-cd__meta{ flex:1; }
#lr-cart-drawer .lr-cd__remove{
  appearance:none; border:0; background:transparent; cursor:pointer;
  color:#aaa; font-size:18px; line-height:1; padding:6px 8px; border-radius:10px;
  transition: color .2s ease, background .2s ease;
}
#lr-cart-drawer .lr-cd__remove:hover{ color:#c00; background:rgba(17,17,17,.06); }

/* Subtotal con mayor jerarquía */
#lr-cart-drawer .lr-cd__total{
  display:flex; justify-content:space-between; align-items:center;
  margin-top:12px; padding-top:12px; border-top:1px solid rgba(17,17,17,.08);
}
#lr-cart-drawer .lr-cd__total > span{ color:#555; }
#lr-cart-drawer .lr-cd__subtotal{ font-size:18px; font-weight:700; color:#111; }

/* Botón de eliminar dentro de cada item */
.lr-cd__item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 12px;
  position: relative;
}

.lr-cd__remove {
  margin-left: auto; /* lo manda a la derecha */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a00; /* rojo elegante */
  flex-shrink: 0;
}

.lr-cd__remove:hover {
  background: rgba(160, 0, 0, 0.08);
}

.lr-cd__remove svg {
  width: 20px;  /* 👈 aumenta tamaño del ícono */
  height: 20px;
  stroke-width: 2;
}
/* Ocultar la X nativa de Woo en los items del mini cart */
.woocommerce-mini-cart-item .remove,
.woocommerce-mini-cart-item .remove_from_cart_button,
.lr-cd__list .remove {
  display: none !important;
}