/** Shopify CDN: Minification failed

Line 503:0 Unexpected "<"
Line 542:0 Unexpected "<"
Line 591:0 Unexpected "<"
Line 648:0 Unexpected "<"
Line 1666:0 Expected identifier but found "/"
Line 1907:0 Expected "}" to go with "{"

**/
/* ==== 0) Desactiva COMPLETAMENTE el link fantasma del tema ==== */
/* Usa mucha especificidad y !important para ganar la cascada */
.card-wrapper a.full-unstyled-link::after,
.card .card__content a.full-unstyled-link::after,
.card a.full-unstyled-link::after {
  content: none !important;
  pointer-events: none !important;
}

/* ==== 1) Capas correctas dentro del media ==== */
.card__media { position: relative; }
.card__media .media { position: relative; z-index: 1; }

/* Cuando hay imagen secundaria, evita que tape el overlay */
.media--hover-effect > img { position: relative; z-index: 1; }
.media--hover-effect > img + img { position: absolute; inset: 0; z-index: 1; }

/* ==== 2) Overlay ==== */
.card__media-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(transparent 55%, rgba(0,0,0,.45));
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease-in-out;
  z-index: 50; /* por encima de imágenes y del link fantasma */
}
.card__inner:hover .card__media-overlay,
.card__media:hover .card__media-overlay{
  opacity: 1;
  pointer-events: auto; /* ahora sí capta el click */
}

/* ==== 3) Botón ==== */
.overlay-atc{
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: .6rem 1rem;
  font-size: .9rem;
  line-height: 1;
  background: #6b5b95;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 60;    /* por si otro elemento tiene z-index alto */
}
.overlay-atc[disabled]{ opacity:.6; cursor:not-allowed; }
.overlay-atc.is-loading{ opacity:.7; cursor:progress; }

/* ==== 4) Móvil: iconito arriba a la derecha ==== */
@media (max-width: 749px){
  .card__media-overlay{
    opacity: 1;
    background: none;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: auto;
    padding: 8px;
  }
  .overlay-atc{
    width: 36px; height: 36px; padding: 0; border-radius: 50%;
  }
  .overlay-atc .overlay-atc__label{ display:none; }
}

/* Mata cualquier overlay de click del tema */
.card-wrapper a.full-unstyled-link::after,
.card .card__content a.full-unstyled-link::after,
.card a.full-unstyled-link::after {
  content: none !important;
  pointer-events: none !important;
}

/* Asegura posiciones de capas dentro del media */
.card__media { position: relative; }
.card__media .media { position: relative; z-index: 1; }
.media--hover-effect > img { position: relative; z-index: 1; }
.media--hover-effect > img + img { position: absolute; inset: 0; z-index: 1; }

/* Overlay por encima de todo */
.card__media-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(transparent 55%, rgba(0,0,0,.45));
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease-in-out;
  z-index: 999; /* alto de verdad */
}
.card__inner:hover .card__media-overlay,
.card__media:hover .card__media-overlay{
  opacity: 1;
  pointer-events: auto;
}

.overlay-atc{
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: .6rem 1rem;
  font-size: .9rem;
  line-height: 1;
  background: #6b5b95;
  color: #fff;
  cursor: pointer;
  position: relative;
  z-index: 1000;
}
.overlay-atc[disabled]{ opacity:.6; cursor:not-allowed; }
.overlay-atc.is-loading{ opacity:.7; cursor:progress; }

/* Móvil: iconito */
@media (max-width: 749px){
  .card__media-overlay{
    opacity: 1;
    background: none;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: auto;
    padding: 8px;
    z-index: 999;
  }
  .overlay-atc{
    width: 36px; height: 36px; padding: 0; border-radius: 50%;
  }
  .overlay-atc .overlay-atc__label{ display:none; }
}

/* ===== NUCLEAR CLICK-FIX para la card ===== */

/* 0) Cualquier pseudo overlay del tema no debe captar clics */
.card-wrapper a.full-unstyled-link::after,
.card-wrapper a.full-unstyled-link::before,
.card__inner::after,
.card__inner::before {
  pointer-events: none !important;
}

/* 1) Dentro del área de imagen, todo ignora eventos... */
.card__media,
.card__media .media,
.card__media .media *,
.card__media img {
  pointer-events: none !important;
}

/* ...excepto nuestro overlay y su contenido */
.card__media-overlay,
.card__media-overlay * {
  pointer-events: auto !important;
}

/* 2) Aseguramos que visualmente quede por encima de todo */
.card__media-overlay {
  position: absolute;
  inset: 0;
  z-index: 99999 !important;
}

/* 3) (si tu tema insiste) baja la capa del anchor */
.card-wrapper a.full-unstyled-link {
  position: relative;
  z-index: 0 !important;
}

/* Contenedor imagen: crea contexto de apilado para que z-index funcione */
.card__media {
  position: relative;
  isolation: isolate;
}

/* Overlay visible al hover */
.card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(transparent 60%, rgba(0,0,0,.45));
  opacity: 0;
  transition: opacity .18s ease-in-out;
  pointer-events: none;        /* inactivo por defecto */
  z-index: 2;                  /* por encima de la imagen */
}

.card__inner:hover .card__overlay,
.card__media:hover .card__overlay {
  opacity: 1;
  pointer-events: auto;        /* solo en hover el overlay capta clicks */
}

/* Fondo clickeable (a la PDP) */
.card__overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;                  /* debajo del botón */
}

/* Botón flotante */
.overlay-atc {
  position: relative;
  z-index: 2;                  /* por encima del link de fondo */
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: .6rem 1rem;
  font-size: .9rem;
  line-height: 1;
  background: #6b5b95;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.overlay-atc--link { text-decoration: none; }
.overlay-atc.is-loading { opacity: .7; cursor: progress; }
.overlay-atc[disabled]  { opacity: .6; cursor: not-allowed; }

/* Móvil: icono arriba a la derecha */
@media (max-width: 749px){
  .card__overlay {
    opacity: 1;
    pointer-events: auto;
    background: none;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 8px;
  }
  .overlay-atc{
    width: 36px; height: 36px; padding: 0; border-radius: 50%;
    display: inline-grid; place-items: center;
  }
  .overlay-atc__label{ display: none; }
}

.card__media { position: relative; isolation: isolate; }

.card__overlay{
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 12px;
  background: linear-gradient(transparent 60%, rgba(0,0,0,.45));
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease-in-out;
  z-index: 2;
}
.card__inner:hover .card__overlay,
.card__media:hover .card__overlay{
  opacity: 1; pointer-events: auto;
}

.card__overlay-link{ position: absolute; inset: 0; z-index: 1; }

.overlay-atc{
  position: relative; z-index: 2;
  display: inline-flex; gap: .5rem; align-items: center;
  border: 0; border-radius: 999px; padding: .6rem 1rem;
  font-size: .9rem; line-height: 1;
  background: #6b5b95; color: #fff; cursor: pointer;
  text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.overlay-atc--link{ text-decoration: none; }
.overlay-atc.is-loading{ opacity:.7; cursor:progress; }
.overlay-atc[disabled]{ opacity:.6; cursor:not-allowed; }

@media (max-width: 749px){
  .card__overlay{
    opacity: 1; pointer-events: auto; background: none;
    align-items: flex-start; justify-content: flex-end; padding: 8px;
  }
  .overlay-atc{ width: 36px; height: 36px; padding: 0; border-radius: 50%;
    display: inline-grid; place-items: center; }
  .overlay-atc__label{ display:none; }
}
/* 1) Desactiva el overlay invisible de Dawn que roba los clics */
.card-wrapper .full-unstyled-link::after {
  pointer-events: none !important;
}

/* 2) Capas del overlay propio */
.card__media { position: relative; }

.card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;           /* botón abajo; ajusta si quieres */
  justify-content: center;
  pointer-events: none;            /* el contenedor no captura clics */
}

.card__overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;                      /* fondo clickeable */
  pointer-events: auto;            /* sí captura clics fuera del botón */
}

/* 3) El botón por encima del link */
.overlay-atc {
  position: relative;
  z-index: 2;
  pointer-events: auto;            /* recibe el click */
  /* estilos mínimos (puedes mantener los tuyos) */
  padding: 10px 14px;
  border-radius: 999px;
  background: #5B389F;
  color: #C8C0F2;
  border: 0;
  cursor: pointer;
}

/* opcional: cuando está disabled */
.overlay-atc[disabled]{
  opacity: .6;
  cursor: default;
  pointer-events: none;
}

.card-wrapper .full-unstyled-link::after,
.card__content .full-unstyled-link::after,
.card__information .full-unstyled-link::after { pointer-events: none !important; }


/* Link sólo hasta arriba de la franja del botón */
.card-cover-link{position:absolute;top:0;left:0;right:0;bottom:56px;z-index:5;}
.quick-atc-slot{position:absolute;left:0;right:0;bottom:0;height:56px;display:flex;align-items:center;justify-content:center;z-index:10;}

/* Aparición al hover */
.card-wrapper .quick-atc-slot .overlay-atc{opacity:0;transform:translateY(6px);transition:opacity .2s,transform .2s;}
.card-wrapper .card__inner:hover .quick-atc-slot .overlay-atc{opacity:1;transform:translateY(0);}

/* Capa del botón en frente */
.quick-atc-layer{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;padding-bottom:12px;pointer-events:none;z-index:10;}
.quick-atc-layer > *{pointer-events:auto;} /* sólo hijos clickeables */

/* Link de fondo a la PDP (debajo del botón) */
.card-cover-link{position:absolute;inset:0;z-index:5;}

/* Aparición al hover */
.card-wrapper .overlay-atc{opacity:0;transform:translateY(6px);transition:opacity .2s ease,transform .2s ease;}
.card-wrapper .card__inner:hover .overlay-atc{opacity:1;transform:translateY(0);}

/* Por si algún z-index te pelea */
.overlay-atc{z-index:12;}

/* asegurar que la imagen ocupe toda el área y no se vea ese hueco */
.product-card-wrapper .card__media{ overflow: hidden; }
.product-card-wrapper .media{ position: relative; width: 100%; height: 100%; }
.product-card-wrapper .media img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 1) Desactiva el overlay ::after de Dawn que tapa todo */
.product-card-wrapper .full-unstyled-link::after{
  content:none !important;
  display:none !important;
}

/* 2) Imagen siempre llenando el contenedor (evita ese “hueco” a la derecha) */
.product-card-wrapper .card__media{ overflow:hidden; }
.product-card-wrapper .media{ position:relative; width:100%; height:100%; }
.product-card-wrapper .media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* 3) Capa del botón + link superior (aparece al hover) */
.product-card-wrapper .quick-atc-wrap{
  pointer-events:none;               /* por defecto NO recibe eventos */
  opacity:0;
  transition:opacity .2s ease;
  position:absolute;
  inset:0;
  z-index:30;                        /* por encima de cualquier ::after de Dawn */
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding-bottom:12px;
}
.product-card-wrapper .card__inner:hover .quick-atc-wrap{ opacity:1; }

/* 3.1) Habilita eventos SOLO en los controles que nos interesan */
.product-card-wrapper .quick-atc-wrap .overlay-atc,
.product-card-wrapper .quick-atc-wrap .overlay-atc-form,
.product-card-wrapper .quick-atc-wrap .quick-atc-link{
  pointer-events:auto;
}

/* 3.2) Estilo mínimo del botón (si ya lo tienes, puedes omitir) */
.product-card-wrapper .overlay-atc{
  min-width:180px;
  border-radius:999px;
  padding:.6rem 1rem;
  background:#7d5cff;
  color:#fff;
  font-weight:600;
  border:none;
  cursor:pointer;
}
.product-card-wrapper .overlay-atc[disabled]{ opacity:.55; cursor:not-allowed; }

/* 3.3) El link de fondo no roba hover del botón */
.product-card-wrapper .quick-atc-link{
  position:absolute; inset:0; z-index:0;
}

/* Opcional: si usas media--hover-effect, evita parpadeos raros */
.media--hover-effect > img{ transition:opacity .2s ease; }

/* El contenedor del card ya es ratio; tomamos esa caja para superponer */
.card__inner { position: relative; }

/* Capa del overlay (no afecta layout) */
.quick-atc-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none; /* sólo habilitamos puntero en hijos */
}

/* Mostramos overlay sólo al hover del card */
.card:hover .quick-atc-layer { opacity: 1; }

/* Link a la PDP: cubre todo EXCEPTO la franja donde va el botón */
.quick-atc-link {
  position: absolute;
  top: 0; left: 0; right: 0;
  bottom: 64px;            /* deja libre 64px para el botón */
  z-index: 11;
  pointer-events: auto;
}

/* Wrapper del botón, centrado abajo */
.quick-atc-btnwrap {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 12;
  pointer-events: auto; /* sí recibe clic */
}

/* Botón */
.overlay-atc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #1a1a1a;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  border: 0;
  cursor: pointer;
}
.overlay-atc[disabled] { opacity: .6; cursor: not-allowed; }

/* Versión link (cuando hay variantes) */
.overlay-atc--link {
  text-decoration: none;
}

<style>
  /* 1) Matar el pseudo-overlay de Dawn que cubre toda la card */
  .product-card-wrapper .full-unstyled-link::after,
  .product-card-wrapper .card__content .full-unstyled-link::after {
    content: none !important;     /* en lugar de pointer-events: none, lo quitamos */
  }

  /* 2) Asegurar contexto y orden de capas en la imagen */
  .product-card-wrapper .card__media { position: relative; z-index: 0; }

  /* 3) Capa del overlay de nuestro botón */
  .product-card-wrapper .quick-atc-wrap{
    position: absolute; inset: 0;
    z-index: 50;                  /* por encima de todo lo de la card */
    pointer-events: none;         /* la capa no captura eventos... */
  }

  /* ...pero sus hijos sí */
  .product-card-wrapper .quick-atc-link{          /* link de fondo a la PDP */
    position: absolute; inset: 0;
    z-index: 1;
    pointer-events: auto;
    display: block;
  }
  .product-card-wrapper .overlay-atc-form{        /* formulario del botón */
    position: absolute; left: 0; right: 0; bottom: 12px;
    display: flex; justify-content: center;
    z-index: 2;
    pointer-events: auto;
  }

  /* 4) Animación de aparición del botón */
  .product-card-wrapper .overlay-atc{
    opacity: 0; transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .product-card-wrapper .card__inner:hover .overlay-atc{
    opacity: 1; transform: translateY(0);
  }
</style>

/* Asegura que la capa del overlay no afecte el layout de la imagen */
.product-card-wrapper .card__media { 
  position: relative; 
}

/* El overlay (wrap) debe flotar encima de toda la media */
.product-card-wrapper .quick-atc-wrap{
  position: absolute;
  inset: 0;                 /* top:0 right:0 bottom:0 left:0 */
  z-index: 50;              /* por encima de la imagen */
  pointer-events: none;     /* la capa NO captura clicks, sus hijos sí */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;     /* separación del botón desde abajo */
}

/* Link de fondo a la PDP (toda la imagen clickeable) */
.product-card-wrapper .quick-atc-wrap .quick-atc-link{
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: auto;
}

/* Form del botón ATC (encima del link) */
.product-card-wrapper .quick-atc-wrap .overlay-atc-form{
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex;
  justify-content: center;
  z-index: 2;
  pointer-events: auto;
}

/* Efecto de aparición del botón al hover */
.product-card-wrapper .overlay-atc{
  opacity: 0; 
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.product-card-wrapper .card__inner:hover .overlay-atc{
  opacity: 1; 
  transform: translateY(0);
}

<style>
  /* Estilos para el overlay del botón rápido */
  .card__media {
    position: relative;
    overflow: hidden;
  }

  .quick-atc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
  }

  .quick-atc-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .quick-atc-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px;
    z-index: 2;
    pointer-events: none;
  }

  .quick-atc-button, 
  .quick-atc-link {
    pointer-events: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    width: 90%;
    max-width: 200px;
  }

  .card__inner:hover .quick-atc-button,
  .card__inner:hover .quick-atc-link {
    opacity: 1;
    transform: translateY(0);
  }

  /* Asegurar que el enlace de la card no interfiera */
  .card-wrapper .full-unstyled-link::after {
    pointer-events: none !important;
  }
</style>

/* Fuerza a que la imagen llene la tarjeta, aunque otra regla la esté pisando */
.product-card-wrapper .card__media { 
  position: relative; 
  overflow: hidden;
}

.product-card-wrapper .card__media .media { 
  position: relative; 
  height: 100%; 
}

.product-card-wrapper .card__media .media > img {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* Secundaria del efecto hover: también absoluta encima de la principal */
.product-card-wrapper .card__media .media--hover-effect > img + img {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Mata el pseudo-overlay de los links que podría tapar el botón */
.product-card-wrapper .full-unstyled-link::after { content: none !important; }

/* Orden de capas y clickability del overlay */
.product-card-wrapper .card__media { position: relative; z-index: 0; }
.product-card-wrapper .quick-atc-wrap {
  position: absolute; inset: 0; z-index: 50; pointer-events: none;
}
.product-card-wrapper .quick-atc-link { position: absolute; inset: 0; pointer-events: auto; z-index: 1; }
.product-card-wrapper .overlay-atc-form { position: absolute; left:0; right:0; bottom:12px; display:flex; justify-content:center; pointer-events:auto; z-index: 2; }
.product-card-wrapper .overlay-atc { opacity:0; transform:translateY(6px); transition:opacity .2s, transform .2s; }
.product-card-wrapper .card__inner:hover .overlay-atc { opacity:1; transform:translateY(0); }


.product-card-wrapper .quick-atc-wrap {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.quick-atc-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}

.overlay-atc-form,
.overlay-atc[disabled] {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: auto;
}

.overlay-atc {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease-in-out;
  background: #6b5b95;
  color: white;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.card__inner:hover .overlay-atc {
  opacity: 1;
  transform: translateY(0);
}

/* En mobile: botón siempre visible */
@media (max-width: 749px) {
  .overlay-atc {
    opacity: 1 !important;
    transform: none !important;
    top: 8px;
    right: 8px;
    left: auto;
    bottom: auto;
    width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
  }
  .overlay-atc__label {
    display: none;
  }
}

/* ENVOLTORIO */
.overlay-atc-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  pointer-events: none;
  z-index: 30;
}

/* FONDO LINK PDP */
.overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}

/* FORMULARIO */
.overlay-form {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* BOTÓN PRINCIPAL */
.overlay-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #6b5b95;
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* MOSTRAR AL HOVER */
.card__inner:hover .overlay-button {
  opacity: 1;
  transform: translateY(0);
}

/* SI ESTÁ AGOTADO, SIEMPRE VISIBLE Y SIN INTERACCIÓN */
.overlay-button.soldout {
  background: #888;
  cursor: default;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none !important;
}

/* MOBILE: SIEMPRE VISIBLE COMO ÍCONO O TEXTO */
@media (max-width: 749px) {
  .overlay-button {
    opacity: 1 !important;
    transform: none !important;
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    bottom: auto;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    font-size: 20px;
  }

  .overlay-label {
    display: none;
  }

  .overlay-button.soldout {
    width: auto;
    height: auto;
    padding: 6px 10px;
    font-size: 13px;
    background: #5e5e5e;
    border-radius: 999px;
  }
}

/* Contenedor overlay */
.overlay-atc-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  pointer-events: none;
  z-index: 30;
}

/* Fondo PDP link */
.overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}

/* Formulario ATC */
.overlay-form {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* Botón */
.overlay-button {
  z-index: 2;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #6b5b95;
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Mostrar solo en hover */
.card__inner:hover .overlay-button {
  opacity: 1;
  transform: translateY(0);
}

/* Estado "Agotado" */
.overlay-button.soldout {
  background: #888;
  cursor: default;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none !important;
}

/* Móvil: mostrar siempre */
@media (max-width: 749px) {
  .overlay-button {
    opacity: 1 !important;
    transform: none !important;
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    bottom: auto;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    font-size: 20px;
  }

  .overlay-label {
    display: none;
  }

  .overlay-button.soldout {
    width: auto;
    height: auto;
    padding: 6px 10px;
    font-size: 13px;
    background: #5e5e5e;
    border-radius: 999px;
  }
}

/* Posicionamiento del overlay */
.overlay-atc-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  pointer-events: none;
  z-index: 30;
}

/* Formulario ATC */
.overlay-form {
  pointer-events: auto;
  z-index: 2;
}

/* Botón */
.overlay-button {
  z-index: 2;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #6b5b95;
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Mostrar solo en hover en desktop */
.card__inner:hover .overlay-button {
  opacity: 1;
  transform: translateY(0);
}

/* Estado "Agotado" */
.overlay-button.soldout {
  background: #888;
  cursor: default;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none !important;
}

/* Móvil: mostrar siempre */
@media (max-width: 749px) {
  .overlay-button {
    opacity: 1 !important;
    transform: none !important;
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    bottom: auto;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    font-size: 20px;
  }

  .overlay-label {
    display: none;
  }

  .overlay-button.soldout {
    width: auto;
    height: auto;
    padding: 6px 10px;
    font-size: 13px;
    background: #5e5e5e;
    border-radius: 999px;
  }
}



/* 3.1 – Mantener el layout de Dawn: el media ocupa el ratio completo */
.card__inner.ratio { position: relative; }
.card__inner.ratio > .card__media { position: absolute; inset: 0; }
.card__media { overflow: hidden; }
.card__media .media > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* 3.2 – El pseudo-link fantasma de Dawn no debe tapar el botón */
.full-unstyled-link::after {
  content: none !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* 3.3 – Overlay del botón sobre la imagen */
.card__media-overlay{
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%);
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 3;                /* por encima de la imagen/badges */
  pointer-events: none;      /* el contenedor no captura clics */
}
.card:hover .card__media-overlay,
.card__media:hover .card__media-overlay{
  opacity: 1; transform: translateY(0);
  pointer-events: auto;      /* ahora sí permite clics */
}

/* Link a la PDP detrás del botón (para clic en cualquier zona) */
.overlay-link{
  position: absolute; inset: 0; z-index: 1;
}

/* El formulario/botón por delante del link */
.overlay-form{ position: relative; z-index: 2; width: 100%; margin: 0 12px 12px; display: flex; justify-content: center; }

/* Botón */
.overlay-atc{
  width: 100%;
  border: 0; border-radius: .75rem;
  padding: .85rem 1rem;
  font-weight: 700; color: #fff;
  background: #7C56D1; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.overlay-atc:hover{ transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.overlay-atc[disabled]{ background:#666; cursor:not-allowed; opacity:.7; }

/* Móviles: muestra el botón sin depender del hover */
@media (hover: none){
  .card__media-overlay{ opacity: 1; transform: none; background: none; position: static; padding: 8px 0 0; }
}

.overlay-button.is-loading { opacity: .6; pointer-events: none; }
.overlay-button.added      { background: #25a244 !important; }

/* que el link fantasma de Dawn no tape el botón */
.product-card-wrapper .full-unstyled-link::after{ content:none !important; }

/* feedback del botón */
.overlay-button.is-loading{ opacity:.6; pointer-events:none; }
.overlay-button.added{ background:#25a244 !important; }

/* que el link fantasma de Dawn no tape el botón */
.product-card-wrapper .full-unstyled-link::after { content:none !important; }

/* feedback del botón */
.overlay-button.is-loading,
.overlay-atc.is-loading { opacity:.6; pointer-events:none; }
.overlay-button.added,
.overlay-atc.added { background:#25a244 !important; }

/* toast simple */
.atc-toast{
  position: fixed;
  transform: translate(-50%, -8px);
  background: rgba(24,24,27,.98);
  color: #fff;
  font: 600 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 9999;
}
.atc-toast.is-in{ opacity:1; transform: translate(-50%, -14px); }

.product-card-wrapper .full-unstyled-link::after { content:none !important; }
.overlay-button.is-loading,.overlay-atc.is-loading{opacity:.6;pointer-events:none;}
.overlay-button.added,.overlay-atc.added{background:#25a244 !important;}
.atc-toast{position:fixed;transform:translate(-50%,-8px);background:rgba(24,24,27,.98);color:#fff;font:600 12px/1 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;padding:8px 10px;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.28);opacity:0;transition:opacity .2s,transform .2s;z-index:9999;}
.atc-toast.is-in{opacity:1;transform:translate(-50%,-14px);}


/* === BOTÓN OVERLAY MEJORADO === */
.overlay-button {
  /* Base del botón */
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 160px;
  justify-content: center;
  
  /* Gradiente elegante inspirado en Azura Magic */
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  
  /* Sombras múltiples para profundidad */
  box-shadow: 
    0 4px 14px rgba(139, 92, 246, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  
  /* Transiciones suaves */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Estados de visibilidad (mantiene tu lógica actual) */
  opacity: 0;
  transform: translateY(6px);
}

/* Efecto shine mejorado */
.overlay-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.overlay-button:hover::before {
  left: 100%;
}

/* Hover mejorado */
.overlay-button:hover {
  background: linear-gradient(135deg, #5b61f0 0%, #7c3aed 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(139, 92, 246, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Label del botón */
.overlay-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-body-family);
  font-weight: 600;
}

/* Estados especiales */
.overlay-button:disabled,
.overlay-button.soldout {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 1 !important; /* Para soldout siempre visible */
}

.overlay-button:disabled:hover,
.overlay-button.soldout:hover {
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.overlay-button:disabled::before,
.overlay-button.soldout::before {
  display: none;
}

/* Estados de feedback (mantiene tu lógica actual) */
.overlay-button.is-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.overlay-button.added {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 
    0 4px 14px rgba(16, 185, 129, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Mantiene tu lógica de aparición al hover */
.card__inner:hover .overlay-button {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive móvil (mantiene tu lógica actual) */
@media (max-width: 749px) {
  .overlay-button {
    opacity: 1 !important;
    transform: none !important;
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    bottom: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    min-width: auto;
    font-size: 18px;
  }

  .overlay-label {
    display: none;
  }

  .overlay-button.soldout {
    width: auto;
    height: auto;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 20px;
  }
  
  .overlay-button.soldout .overlay-label {
    display: block;
  }
}

/* Variantes de color alternativas (opcional) */
/* 
// Opción dorada mística
.overlay-button {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
}

.overlay-button:hover {
  background: linear-gradient(135deg, #daa520 0%, #cd853f 100%);
  box-shadow: 
    0 8px 25px rgba(212, 175, 55, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.15);
}
*/

/* Accesibilidad mejorada */
.overlay-button:focus-visible {
  outline: 3px solid rgba(139, 92, 246, 0.5);
  outline-offset: 2px;
}

/* Reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .overlay-button,
  .overlay-button::before {
    transition-duration: 0.1s;
  }
  
  .overlay-button:hover {
    transform: none;
  }
}

/* Móvil: mostrar siempre el botón como ícono en la esquina superior derecha */
@media (max-width: 749px) {
  .overlay-button {
    opacity: 1 !important;
    transform: none !important;
    position: absolute;
    top: 8px;                    /* Distancia desde arriba */
    right: 8px;                  /* Distancia desde la derecha */
    left: auto;
    bottom: auto;
    width: 40px;                 /* Tamaño del botón */
    height: 40px;
    padding: 0;
    justify-content: center;
    align-items: center;         /* Centrar el ícono verticalmente */
    font-size: 18px;             /* Tamaño del ícono */
    border-radius: 50%;          /* Botón circular */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* Sombra sutil */
    z-index: 10;                 /* Asegurar que esté por encima */
  }

  .overlay-label {
    display: none;               /* Ocultar texto en móvil */
  }

  /* Para estado "Agotado" en móvil */
  .overlay-button.soldout {
    width: auto;
    height: 32px;
    padding: 6px 12px;
    font-size: 12px;
    background: #888;
    border-radius: 16px;
    top: 8px;
    right: 8px;
  }

  /* Asegurar que el contenedor overlay tenga la altura correcta */
  .overlay-atc-wrapper {
    position: absolute;
    inset: 0;                    /* Cubre toda la tarjeta */
    pointer-events: none;
    z-index: 30;
  }
}

/* Asegurar que la tarjeta tenga el contexto correcto en móvil */
@media (max-width: 749px) {
  .product-card-wrapper .card__media {
    position: relative;
    overflow: visible;           /* Permite que el botón se vea completamente */
  }
  
  .product-card-wrapper .card__inner {
    position: relative;
  }
  
  /* Contenedor del overlay con posición absoluta correcta */
  .overlay-atc-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 30;
  }
  
  /* El botón debe estar bien posicionado dentro de su contenedor */
  .overlay-form {
    position: absolute;
    top: 8px;
    right: 8px;
    pointer-events: auto;
    z-index: 2;
  }
}

.card__media-overlay{
  align-items: flex-end;        /* mantener abajo */
  justify-content: flex-end;    /* CAMBIO: de center a flex-end (derecha) */
  padding: 12px;                
}

.overlay-atc-wrapper {
  align-items: flex-end;        /* abajo */
  justify-content: flex-end;    /* CAMBIO: derecha */
  padding-bottom: 12px;
  padding-right: 12px;          /* NUEVO: separación del borde derecho */
}

/* Móvil: icono en esquina inferior izquierda */
@media (max-width: 749px){
  .card__media-overlay{
    opacity: 1;
    background: none;
    justify-content: flex-start;    /* izquierda en lugar de flex-end */
    align-items: flex-end;          /* abajo en lugar de flex-start */
    pointer-events: auto;
    padding: 8px;
  }
  .overlay-atc{
    width: 36px; height: 36px; padding: 0; border-radius: 50%;
    display: inline-grid; place-items: center;
  }
  .overlay-atc__label{ display:none; }
}

/* En móviles: mostrar el botón siempre (opción A) */
@media (hover:none){
  .card__media-overlay{
    opacity:1; transform:none; background:none; 
    position: static; padding:.5rem 0 0;
    /* Para móvil: posicionar en esquina inferior izquierda */
    position: absolute;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 8px;
  }
  .product-card--hover-atc .quick-add{ display:none; }
}

/* Móvil: icono abajo a la derecha */
@media (max-width: 749px) {
  .card__overlay,
  .card__media-overlay,
  .overlay-atc-wrapper {
    opacity: 1;
    pointer-events: auto;
    background: none;
    align-items: flex-end;    /* Cambiar de flex-start a flex-end */
    justify-content: flex-end; /* Mantener a la derecha */
    padding: 8px;             /* Padding uniforme */
  }
  
  .overlay-atc,
  .overlay-button {
    width: 40px; 
    height: 40px; 
    padding: 0; 
    border-radius: 50%;
    display: inline-grid; 
    place-items: center;
    opacity: 1 !important;
    transform: none !important;
    /* Remover posicionamiento absoluto para seguir el flex */
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
  }
  
  .overlay-atc__label,
  .overlay-label {
    display: none;
  }
}

@media (max-width: 749px) {
  .overlay-atc,
  .overlay-button {
    opacity: 1 !important;
    transform: none !important;
    position: absolute;
    bottom: 8px;    /* Abajo */
    right: 8px;     /* A la derecha */
    top: auto;      /* Anular top */
    left: auto;     /* Anular left */
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
  }
  
  .overlay-atc__label,
  .overlay-label {
    display: none;
  }
}

/* Móvil: icono en esquina inferior derecha */
@media (max-width: 749px) {
  .card__overlay,
  .card__media-overlay,
  .overlay-atc-wrapper {
    opacity: 1;
    pointer-events: auto;
    background: none;
    align-items: flex-end;        /* ABAJO */
    justify-content: flex-end;    /* DERECHA */
    padding: 8px;
  }
  
  .overlay-atc,
  .overlay-button {
    width: 40px; 
    height: 40px; 
    padding: 0; 
    border-radius: 50%;
    display: inline-grid; 
    place-items: center;
    opacity: 1 !important;
    transform: none !important;
    position: relative;  /* Mantener relativo para que siga el flex */
  }
  
  .overlay-atc__label,
  .overlay-label {
    display: none;
  }
}

@media (max-width: 749px) {
  /* Forzar posición absoluta en esquina inferior derecha */
  .overlay-atc,
  .overlay-button {
    position: absolute !important;
    bottom: 8px !important;
    right: 8px !important;
    top: auto !important;
    left: auto !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .overlay-atc__label,
  .overlay-label {
    display: none !important;
  }
}



/* --- MÓVIL: icono flotante abajo-derecha del card --- */
@media (hover:none), (max-width: 749px){
  /* el formulario se coloca abajo a la derecha del card */
  .product-card-wrapper .overlay-form{
    left:auto; right:10px; bottom:10px;
    justify-content:flex-end;
  }
  /* botón circular estilo FAB */
  .product-card-wrapper .overlay-button{
    width: 48px; height: 48px; padding:0; border-radius:9999px;
    justify-content:center;
    background:#5B389F; color:#C8C0F2; 
    box-shadow:0 8px 18px rgba(0,0,0,.28);
  }
  /* ocultamos el texto para ahorrar espacio (queda accesible por aria-label) */
  .product-card-wrapper .overlay-button .overlay-label{
    position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;
  }

  /* en móvil no hay hover: el botón siempre visible */
  .product-card-wrapper .card__inner .overlay-button{opacity:1; transform:none}
}

/* estados ya existentes (reutilizo tus clases) */
.overlay-button.is-loading{opacity:.6; pointer-events:none}
.overlay-button.added{background:#25a244 !important}

/* MÓVIL: más esquinado a la derecha/abajo */
@media (hover:none), (max-width: 749px){
  .product-card-wrapper .overlay-form{
    right: calc(4px + env(safe-area-inset-right));  /* antes 10px */
    bottom: calc(6px + env(safe-area-inset-bottom)); /* antes 10px */
    left: auto;
    justify-content: flex-end;
  }
  .product-card-wrapper .overlay-button{
    width: 46px;
    height: 46px;
  }
}

/* Mientras tanto, usa esta versión simple y efectiva */
@media (max-width: 749px) {
  .overlay-atc,
  .overlay-button {
    position: absolute !important;
    bottom: 8px !important;
    right: 8px !important;
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    
    /* Fondo sólido oscuro para contraste */
    background-color: #2d1f4f !important;
    background-image: url('/cdn/shop/files/Bolsa_de_monedas_carrito_de_compras.webp?v=1755888530') !important;
    background-size: 75% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    
    /* Bordes brillantes */
    border: 3px solid #ffd700 !important;
    box-shadow: 
      0 3px 10px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    
    opacity: 1 !important;
    transform: none !important;
  }
}

/* === REMOVER BORDES DE PRODUCT CARDS === */

/* 1) Anular las variables CSS de Dawn que controlan los bordes */
.product-card-wrapper .card,
.contains-card--product {
  --border-width: 0 !important;
  --border-opacity: 0 !important;
  --shadow-horizontal-offset: 0 !important;
  --shadow-vertical-offset: 0 !important;
  --shadow-blur-radius: 0 !important;
  --shadow-opacity: 0 !important;
  --shadow-visible: 0 !important;
}

/* 2) Forzar la remoción directa de bordes y sombras */
.product-card-wrapper .card,
.product-card-wrapper .card--card,
.product-card-wrapper .card--standard,
.product-card-wrapper .card--media,
.contains-card--product .card {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* 3) Remover bordes en hover también */
.product-card-wrapper .card:hover,
.product-card-wrapper .card--card:hover,
.product-card-wrapper .card--standard:hover {
  border: 0 !important;
  box-shadow: none !important;
}

/* 4) Si usa pseudo-elementos para crear los bordes, también los eliminamos */
.product-card-wrapper .card::before,
.product-card-wrapper .card::after {
  display: none !important;
}

@media (max-width: 749px) {
.overlay-button.soldout {
/ fondo gris, transparencia, esquinas redondeadas, centrado abajo-derecha /
background: rgba(120, 120, 120, 0.73) !important;
color: #fff !important;
opacity: 1 !important;
font-size: 13px;
width: auto !important;
height: 32px !important;
padding: 6px 16px !important;
border-radius: 20px !important;
position: absolute !important;
bottom: 10px !important;
right: 10px !important;
left: auto !important;
top: auto !important;
box-shadow: 0 2px 6px rgba(0,0,0,0.16);
display: flex !important;
align-items: center;
justify-content: center;
pointer-events: none;
/* animación opcional */
transition: all 0.22s cubic-bezier(.4,0,.2,1);
}
.overlay-label {
display: block !important; /* asegura visible en este modo */
font-weight: 600;
font-size: 13px;
text-shadow: 0 1px 5px rgba(0,0,0,.14);
letter-spacing: 0.02em;
}


@media (max-width: 749px){
/* Contenedor base con posición para ubicar el sticker */
.product-card-wrapper .card__media{
position: relative;
}

/* Sticker: oculto por defecto */
.product-card-wrapper .soldout-sticker{
position: absolute;
bottom: 8px;
right: 8px;
z-index: 8;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 6px 10px;
border-radius: 999px;
font-size: 12px;
line-height: 1;
font-weight: 700;
color: #ffffff;
background: #7a7a7a; /* gris base */
box-shadow: 0 4px 10px rgba(0,0,0,.15);
letter-spacing: .2px;
}

/* Por compatibilidad con tu overlay y z-index de la imagen */
.product-card-wrapper .card__media .media{
position: relative;
z-index: 1;
}
}
/* Móvil: soldout como pastilla discreta en esquina */
@media (max-width: 749px) {
.overlay-button.soldout {
/* fondo gris, transparencia, esquinas redondeadas, centrado abajo-derecha */
background: rgba(120, 120, 120, 0.73) !important;
color: #fff !important;
opacity: 1 !important;
font-size: 13px;
width: auto !important;
height: 32px !important;
padding: 6px 16px !important;
border-radius: 20px !important;
position: absolute !important;
bottom: 10px !important;
right: 10px !important;
left: auto !important;
top: auto !important;
box-shadow: 0 2px 6px rgba(0,0,0,0.16);
display: flex !important;
align-items: center;
justify-content: center;
pointer-events: none;
/* animación opcional */
transition: all 0.22s cubic-bezier(.4,0,.2,1);
}
.overlay-label {
display: block !important; /* asegura visible en este modo */
font-weight: 600;
font-size: 13px;
text-shadow: 0 1px 5px rgba(0,0,0,.14);
letter-spacing: 0.02em;
}
}

/* Sticker simple “Agotado” */
@media (max-width: 749px) {
/* Contenedor base con posición */
.product-card-wrapper .card__media {
position: relative;
}
/* Sticker */
.product-card-wrapper .soldout-sticker {
position: absolute;
bottom: 8px;
right: 8px;
z-index: 8;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 6px 10px;
border-radius: 999px;
font-size: 12px;
line-height: 1;
font-weight: 700;
color: #ffffff;
background: #7a7a7a; /* gris base */
box-shadow: 0 4px 10px rgba(0,0,0,.15);
letter-spacing: .2px;
}
.product-card-wrapper .card__media .media {
position: relative;
z-index: 1;
}
}

/* --- Quita estilos antiguos y fuerza fondo/color coherente --- */
.overlay-button, .overlay-atc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.13), 0 2px 6px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  position: relative;
  z-index: 2;
}
.card__inner:hover .overlay-button,
.card__inner:hover .overlay-atc {
  opacity: 1;
  transform: translateY(0);
}
.overlay-button.is-loading, .overlay-atc.is-loading {
  pointer-events: none;
  opacity: .6;
}
.overlay-button.added, .overlay-atc.added {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}
.overlay-button.soldout, .overlay-atc[disabled] {
  background: #9ca3af !important;
  color: #fff !important;
  cursor: not-allowed;
  opacity: 1 !important;
}
@media (max-width: 749px) {
  .overlay-button, .overlay-atc {
    opacity: 1 !important;
    transform: none !important;
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    font-size: 18px;
  }
  .overlay-label {
    display: none !important;
  }
  .overlay-button.soldout {
    width: auto;
    height: 32px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 20px;
    background: #888 !important;
  }
}

/* Badge siempre arriba a la izquierda sobre el card-product */
.card__badge, .product-card-wrapper .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  bottom: auto;
  z-index: 9;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}

.badge--bottom-left {
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  bottom: auto !important;
}

/* Badge Oferta: ARRIBA a la izquierda (esquina superior izquierda) */
.card-badge-oferta {
  position: absolute; 
  left: 10px;     /* Distancia desde la izquierda */
  top: 10px;      /* CAMBIO: arriba en lugar de bottom */
  z-index: 20;
  background: #ff2b86;  /* rosa fucsia fuerte */
  color: #fff;
  font-size: 12px; 
  font-weight: 700; 
  letter-spacing: .03em; 
  padding: 6px 12px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  text-transform: uppercase;
}

/* Móvil: también en esquina superior izquierda */
@media (max-width: 749px) {
  .card-badge-oferta {
    font-size: 11px; 
    left: 8px;      /* Distancia desde la izquierda en móvil */
    top: 8px;       /* CAMBIO: arriba en lugar de bottom */
    padding: 5px 10px;
  }
}

