/* ----- layout de la galería + thumbs pegadas ----- */
.product-swiper { height: min(70vh, 560px); }
.product-swiper .swiper-wrapper { align-items: center; }
.thumbs-wrap { margin-top: 1rem; position: relative; z-index: 10; } /* evita que se “meta” con la descripción */

/* ----- botones con icono Swiper (NO ocultar ::after) ----- */
.nav-ghost {
  --size: 44px;
  width: var(--size); height: var(--size);
  border-radius: 9999px;
  background: rgba(255,255,255,.9);
  color: #0c1f63;
  box-shadow: 0 10px 22px rgba(0,0,0,.15);
  transition: all .25s ease;
}
.product-swiper .swiper-button-prev:after,
.product-swiper .swiper-button-next:after {
  font-size: 18px; /* tamaño de flecha */
  color: currentColor;
}
.nav-ghost:hover { background:#0c1f63; color:#fff; transform: translateY(-1px); }
@media (max-width:480px){ .nav-ghost { --size: 40px; } }

/* ----- miniaturas “clean card” ----- */
.thumbs-swiper .swiper-wrapper { align-items: center; height: auto; }
.thumbs-swiper .swiper-slide { width: 5.2rem; height: 5.2rem; }
@media (min-width:640px){ .thumbs-swiper .swiper-slide { width:5.8rem; height:5.8rem; } }

.thumb-tile {
  display:grid; place-items:center;
  width:100%; height:100%;
  border-radius:1rem;
  background:#fff;
  border:1px solid #e6ecff;
  box-shadow: 0 6px 18px rgba(0, 28, 100, .06) inset, 0 4px 16px rgba(0,0,0,.03);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.thumb-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 28, 100, .08), 0 6px 18px rgba(0,0,0,.06); }

.thumb-img { max-width:88%; max-height:88%; object-fit:contain; }

/* activo */
.thumbs-swiper .swiper-slide-thumb-active .thumb-tile {
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(0, 28, 100, .14);
  position:relative;
}
.thumbs-swiper .swiper-slide-thumb-active .thumb-tile::after {
  content:""; position:absolute; inset:0; border-radius:1rem; padding:2px;
  background: linear-gradient(135deg, #0c1f63, #bb0811);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events:none;
}

/* ===== FASE 3 HOTFIX VISUAL TIENDA MARKETPLACE V2 ===== */

.sp-shop-toolbar {
  display: grid;
  gap: 1rem;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
}

.sp-shop-toolbar__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.sp-shop-toolbar__eyebrow,
.sp-shop-filters__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sp-azul, #00255a) 58%, #ffffff);
}

.sp-shop-toolbar__controls {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.sp-shop-toolbar__control {
  display: grid;
  gap: 0.38rem;
}

.sp-shop-toolbar__control label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sp-azul, #00255a) 60%, #ffffff);
}

.sp-shop-filters {
  display: grid;
  gap: 1rem;
}

.sp-shop-filters__intro,
.sp-shop-brands {
  border: 1px solid var(--sp-azul-hielo, #dce6f5);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,255,0.94) 100%);
  box-shadow: 0 14px 32px rgba(0, 28, 100, 0.06);
}

.sp-shop-filters__intro {
  padding: 1rem 1rem 0.95rem;
}

.sp-shop-filters__copy,
.sp-shop-brands__hint {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--sp-azul, #00255a) 68%, #ffffff);
}

.sp-shop-brands {
  padding: 1rem;
}

#counterTop,
#counterBottom {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--sp-azul-hielo, #dce6f5);
  background: var(--sp-blanco, #ffffff);
  color: var(--sp-azul, #00255a);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

#counterBottom {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

#vistaSel,
#ordenSel {
  border: 1px solid var(--sp-azul-hielo, #dce6f5);
  border-radius: 12px;
  background: var(--sp-blanco, #ffffff);
  color: var(--sp-azul, #00255a);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  min-height: 42px;
  box-shadow: 0 3px 10px rgba(0, 28, 100, 0.05);
}

#vistaSel:focus,
#ordenSel:focus,
#qInput:focus,
#brandFind:focus {
  outline: none;
  border-color: var(--sp-naranja, #f7a800);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-naranja, #f7a800) 22%, transparent);
}

#qInput,
#brandFind {
  width: 100%;
  border: 1px solid var(--sp-azul-hielo, #dce6f5);
  border-radius: 12px;
  background: var(--sp-blanco, #ffffff);
  color: var(--sp-azul, #00255a);
  box-shadow: 0 2px 8px rgba(0, 28, 100, 0.04);
}

#qInput {
  min-height: 44px;
}

#brandFind {
  min-height: 36px;
}

#brandChips {
  border: 1px solid var(--sp-azul-hielo, #dce6f5);
  border-radius: 14px;
  padding: 0.65rem;
  background: var(--sp-blanco, #ffffff);
}

#clearBrands {
  color: color-mix(in srgb, var(--sp-azul, #00255a) 80%, #ffffff);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.brand-chip {
  border: 1px solid var(--sp-azul-hielo, #dce6f5);
  border-radius: 10px;
  background: var(--sp-blanco, #ffffff);
  color: var(--sp-azul, #00255a);
  font-weight: 600;
  line-height: 1.2;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.brand-chip:hover {
  border-color: color-mix(in srgb, var(--sp-azul, #00255a) 28%, #ffffff);
  background: color-mix(in srgb, var(--sp-gris-papel, #f4f7fb) 58%, #ffffff);
}

#productosGrid {
  align-items: stretch;
  background: transparent;
}

#productosGrid.grid {
  gap: 0.9rem;
}

#productosGrid.divide-y {
  border-top: 1px solid var(--sp-azul-hielo, #dce6f5);
  border-bottom: 1px solid var(--sp-azul-hielo, #dce6f5);
  background: var(--sp-blanco, #ffffff);
  border-radius: 14px;
  overflow: hidden;
}

#productosGrid [data-product-card] {
  background: var(--sp-blanco, #ffffff) !important;
  border: 1px solid var(--sp-azul-hielo, #dce6f5) !important;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 28, 100, 0.06) !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

#productosGrid [data-product-card]:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--sp-azul, #00255a) 16%, #ffffff) !important;
  box-shadow: 0 8px 18px rgba(0, 28, 100, 0.09) !important;
}

#productosGrid [data-product-card] .aspect-\[4\/3\] {
  border: 1px solid var(--sp-azul-hielo, #dce6f5);
  background: var(--sp-gris-papel, #f4f7fb);
  border-radius: 12px;
  box-shadow: none;
}

#productosGrid [data-product-card] h3 {
  color: var(--sp-azul, #00255a);
}

#productosGrid [data-product-card] h3 a {
  text-decoration: none;
}

#productosGrid [data-product-card] h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

#productosGrid [data-product-card] p {
  line-height: 1.3;
}

#productosGrid .product-card-price-row > div,
#productosGrid .text-xl.font-bold.text-sp-rojo,
#productosGrid .text-lg.font-bold.text-\[\#bb0811\] {
  color: var(--sp-rojo, #c00019) !important;
  font-weight: 800;
  letter-spacing: 0.01em;
}

#productosGrid .product-card-price-row > div {
  font-size: 1.24rem;
}

#productosGrid .product-card-price-row span,
#productosGrid .inline-flex.items-center.gap-1.rounded-full.bg-\[\#0c1f63\]\/5,
#productosGrid .inline-flex.items-center.rounded-full.bg-\[\#bb0811\]\/10 {
  border: 1px solid var(--sp-azul-hielo, #dce6f5);
  background: var(--sp-gris-papel, #f4f7fb) !important;
  color: color-mix(in srgb, var(--sp-azul, #00255a) 82%, #ffffff) !important;
}

#productosGrid .minus-btn,
#productosGrid .plus-btn {
  background: var(--sp-gris-papel, #f4f7fb) !important;
  color: var(--sp-azul, #00255a) !important;
  border-color: var(--sp-azul-hielo, #dce6f5) !important;
}

#productosGrid .minus-btn:hover,
#productosGrid .plus-btn:hover {
  background: var(--sp-naranja-pastel, #ffe5b2) !important;
}

#productosGrid .cantidad-input {
  border-color: var(--sp-azul-hielo, #dce6f5) !important;
  color: var(--sp-azul, #00255a) !important;
  font-size: 0.94rem;
}

#productosGrid .product-card-actions {
  align-items: stretch;
}

#productosGrid .product-card-actions > * {
  width: 100%;
}

#productosGrid .agregar-btn,
#productosGrid .product-card-actions a,
#productosGrid .product-card-list a.inline-flex.h-10,
#productosGrid [data-product-card] > .mt-auto a.inline-flex.h-10 {
  border-radius: 12px !important;
  min-height: 42px;
  line-height: 1;
}

#productosGrid .agregar-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--sp-naranja, #f7a800) 70%, #c78400) !important;
  background: var(--sp-naranja, #f7a800) !important;
  color: var(--sp-azul, #00255a) !important;
  font-weight: 800 !important;
}

#productosGrid .agregar-btn i {
  font-size: 0.9rem;
  line-height: 1;
  flex-shrink: 0;
}

#productosGrid .agregar-btn:hover {
  background: color-mix(in srgb, var(--sp-naranja, #f7a800) 85%, #ffffff) !important;
}

#productosGrid .product-card-actions a,
#productosGrid .product-card-list a.inline-flex.h-10,
#productosGrid [data-product-card] > .mt-auto a.inline-flex.h-10 {
  border: 1px solid var(--sp-azul-hielo, #dce6f5) !important;
  background: var(--sp-blanco, #ffffff) !important;
  color: var(--sp-azul, #00255a) !important;
  font-weight: 700 !important;
}

#productosGrid .product-card-actions a:hover,
#productosGrid .product-card-list a.inline-flex.h-10:hover,
#productosGrid [data-product-card] > .mt-auto a.inline-flex.h-10:hover {
  background: var(--sp-gris-papel, #f4f7fb) !important;
}

#productosGrid .product-card-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  align-items: stretch !important;
}

#productosGrid .product-card-actions > * {
  width: 100% !important;
}

#productosGrid .agregar-btn {
  width: 100% !important;
  min-height: 44px !important;
  border-radius: 12px !important;
  background: var(--sp-naranja, #ffa400) !important;
  color: var(--sp-azul, #001c64) !important;
  border: 1px solid var(--sp-naranja, #ffa400) !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

#productosGrid .agregar-btn i,
#productosGrid .agregar-btn svg {
  flex: 0 0 auto !important;
  line-height: 1 !important;
}

#productosGrid .product-card-actions a:not(.agregar-btn),
#productosGrid .product-card-list a.inline-flex.h-10,
#productosGrid [data-product-card] > .mt-auto a.inline-flex.h-10:not(.agregar-btn) {
  width: 100% !important;
  min-height: 40px !important;
  border-radius: 12px !important;
  background: var(--sp-blanco, #ffffff) !important;
  color: var(--sp-azul, #001c64) !important;
  border: 1px solid var(--sp-azul-hielo, #d9dde8) !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
}

#productosGrid .minus-btn,
#productosGrid .plus-btn {
  min-height: 38px !important;
  min-width: 42px !important;
}

#productosGrid .cantidad-input {
  min-height: 38px !important;
}

#productosGrid .product-card-list {
  border-radius: 14px;
  padding: 1rem;
}

#paginacion {
  margin-top: 1rem;
}

#paginacion a,
#paginacion span {
  border-radius: 10px;
}

@media (max-width: 1023px) {
  .sp-shop-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .sp-shop-toolbar__heading {
    align-items: flex-start;
  }

  .sp-shop-toolbar__controls {
    width: 100%;
  }

  #counterTop,
  #counterBottom {
    font-size: 0.75rem;
  }

  #vistaSel,
  #ordenSel {
    min-height: 40px;
    font-size: 0.85rem;
  }
}

@media (max-width: 767px) {
  .sp-shop-toolbar {
    gap: 0.85rem;
  }

  .sp-shop-toolbar__heading {
    display: grid;
    gap: 0.7rem;
  }

  .sp-shop-toolbar__controls {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .sp-shop-toolbar__control label {
    font-size: 0.7rem;
  }

  .sp-shop-filters__intro {
    padding: 0.9rem;
  }

  .sp-shop-brands {
    padding: 0.85rem;
  }

  #qInput {
    min-height: 42px;
  }

  #brandChips {
    max-height: 40vh;
  }

  #productosGrid.grid {
    gap: 0.72rem;
  }

  #productosGrid [data-product-card] {
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0, 28, 100, 0.06) !important;
  }

  #productosGrid .product-card-price-row > div {
    font-size: 1.08rem;
  }

  #productosGrid .agregar-btn,
  #productosGrid .product-card-actions a {
    min-height: 40px;
  }
}

/* ===== PRODUCT CARDS 2026 ===== */

.sp-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  padding: 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 28, 100, 0.08);
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(0, 28, 100, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  overflow: hidden;
}

.sp-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 28, 100, 0.16);
  box-shadow: 0 22px 48px rgba(0, 28, 100, 0.14);
}

.sp-product-card--grid {
  gap: 1rem;
}

.sp-product-card--list {
  padding: 1.1rem;
}

.sp-product-card__list-layout {
  display: grid;
  gap: 1rem;
}

.sp-product-card__media-col {
  min-width: 0;
}

.sp-product-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 28, 100, 0.08);
  background: #ffffff !important;
  overflow: hidden;
}

.sp-product-card__brand-badge {
  position: absolute;
    top: 0rem;
    left: 0rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.10rem 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 28, 100, 0.12);
    color: var(--sp-azul, #001c64);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 28px rgba(0, 28, 100, 0.08);
    max-width: calc(100% - 2rem);
    pointer-events: none;
}

.sp-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.sp-product-card:hover .sp-product-card__image {
  transform: scale(1.03);
}

.sp-product-card__badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(187, 8, 17, 0.96);
  color: var(--sp-blanco, #ffffff);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(187, 8, 17, 0.2);
  max-width: calc(100% - 2rem);
  pointer-events: none;
}

.sp-product-card__body,
.sp-product-card__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.sp-product-card__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.65rem;
  margin-bottom: 0.75rem;
}

.sp-product-card__brand {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(0, 28, 100, 0.06);
  color: rgba(0, 28, 100, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-product-card__code {
  color: rgba(0, 28, 100, 0.52);
  font-size: 0.78rem;
  font-weight: 600;
}

.sp-product-card__title {
  margin: 0;
  color: var(--sp-azul, #001c64);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sp-product-card__title--list {
  font-size: 1.12rem;
  min-height: unset;
  -webkit-line-clamp: 3;
}

.sp-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.sp-product-card__title a:hover {
  color: var(--sp-rojo, #bb0811);
}

.sp-product-card__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.sp-product-card__price {
  color: var(--sp-azul, #001c64);
  font-size: 1.36rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sp-product-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.6rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 28, 100, 0.12);
  background: rgba(12, 31, 99, 0.08);
  color: var(--sp-azul, #001c64);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.sp-product-card__status:not(.sp-product-card__status--empty)::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0c1f63, #bb0811);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.35);
}

.sp-product-card__status--empty {
  background: rgba(187, 8, 17, 0.12);
  color: rgba(187, 8, 17, 0.95);
  border-color: rgba(187, 8, 17, 0.18);
}

.sp-product-card__footer,
.sp-product-card__side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: auto;
}

.sp-product-card__stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sp-product-card__qty-shell {
  padding-top: 0.25rem;
}

.sp-product-card__qty {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(0, 28, 100, 0.12);
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.sp-product-card .minus-btn,
.sp-product-card .plus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(0, 28, 100, 0.04) !important;
  color: var(--sp-azul, #001c64) !important;
  font-size: 1rem;
  font-weight: 700;
}

.sp-product-card .minus-btn:hover,
.sp-product-card .plus-btn:hover {
  background: rgba(255, 164, 0, 0.18) !important;
}

.sp-product-card .cantidad-input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-left: 1px solid rgba(0, 28, 100, 0.08) !important;
  border-right: 1px solid rgba(0, 28, 100, 0.08) !important;
  background: transparent;
  color: var(--sp-azul, #001c64) !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  appearance: textfield;
}

.sp-product-card .cantidad-input::-webkit-outer-spin-button,
.sp-product-card .cantidad-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.sp-product-card__actions {
  display: flex !important;
  flex-direction: column;
  gap: 0.7rem !important;
}

.sp-product-card__primary,
.sp-product-card__detail,
.sp-product-card__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.9rem;
  border-radius: 0.95rem;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.sp-product-card__primary {
  border: 1px solid var(--sp-naranja, #ffa400) !important;
  background: linear-gradient(135deg, rgba(255, 164, 0, 1) 0%, rgba(255, 183, 35, 1) 100%) !important;
  color: var(--sp-azul, #001c64) !important;
  font-size: 0.94rem;
  font-weight: 800 !important;
  box-shadow: 0 12px 20px rgba(255, 164, 0, 0.22);
}

.sp-product-card__primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(255, 176, 32, 1) 0%, rgba(255, 200, 77, 1) 100%) !important;
}

.sp-product-card__detail,
.sp-product-card__login {
  border: 1px solid rgba(0, 28, 100, 0.12);
  background: rgba(255, 255, 255, 0.88) !important;
  color: var(--sp-azul, #001c64) !important;
  font-size: 0.92rem;
  font-weight: 700;
}

.sp-product-card__detail:hover,
.sp-product-card__login:hover {
  border-color: rgba(0, 28, 100, 0.2);
  background: #f6f8fb !important;
  transform: translateY(-1px);
}

.sp-product-card__hint {
  margin-top: 0.85rem;
  color: rgba(0, 28, 100, 0.58);
  font-size: 0.84rem;
  line-height: 1.5;
}

.home-carousel__slide .sp-product-card {
  min-height: 100%;
}

@media (min-width: 768px) {
  .sp-product-card--list .sp-product-card__list-layout {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(220px, 248px);
    align-items: stretch;
    gap: 1.25rem;
  }

  .sp-product-card--list .sp-product-card__side {
    padding-left: 0.5rem;
  }
}

@media (max-width: 767px) {
  .sp-product-card {
    padding: 0.9rem;
    border-radius: 1.1rem;
  }

  .sp-product-card__title {
    font-size: 0.96rem;
  }

  .sp-product-card__price {
    font-size: 1.22rem;
  }
}

/* ===== PRODUCT CARDS PREMIUM OVERRIDE ===== */

.sp-product-card {
  border-radius: 8px;
  border: 1px solid #d9deea;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%) !important;
  box-shadow: 0 6px 18px rgba(0, 28, 100, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.sp-product-card:hover {
  transform: translateY(-2px);
  border-color: #bfc9df;
  box-shadow: 0 14px 28px rgba(0, 28, 100, 0.12);
}

.sp-product-card--grid {
  gap: 0.8rem;
}

.sp-product-card__media {
  border-radius: 8px;
  border: 1px solid #dbe3f2;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%) !important;
  padding: 0.75rem;
}

.sp-product-card--grid .sp-product-card__media {
  aspect-ratio: 1 / 1;
}

.sp-product-card__brand-badge,
.sp-product-card__badge,
.sp-product-card__brand,
.sp-product-card__status {
  border-radius: 999px;
}

.sp-product-card__brand-badge {
  top: 0.45rem;
  left: 0.45rem;
  padding: 0.2rem 0.52rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cbd7ee;
  color: #10255f;
  font-size: 0.66rem;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(0, 28, 100, 0.1);
}

.sp-product-card__eyebrow {
  margin-bottom: 0.55rem;
}

.sp-product-card__code {
  color: #6a7a9e;
  font-size: 0.75rem;
  font-weight: 700;
}

.sp-product-card__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  min-height: 2.7em;
}

.sp-product-card__price-row {
  margin-top: 0.7rem;
}

.sp-product-card__price {
  color: #0f245f;
  font-size: 1.42rem;
  font-weight: 900;
}

.sp-product-card__status {
  min-height: 1.65rem;
  padding: 0.28rem 0.72rem;
  border: 1px solid #c9d5ef;
  background: #eff4ff;
  color: #15316b;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: none;
}

.sp-product-card__status:not(.sp-product-card__status--empty)::before {
  width: 0.42rem;
  height: 0.42rem;
  box-shadow: none;
}

.sp-product-card__status--empty {
  background: #fff0f1;
  border-color: #f2c7cb;
  color: #aa1a25;
}

.sp-product-card__qty-shell {
  padding-top: 0.15rem;
}

.sp-product-card__qty {
  border-radius: 8px;
  border: 1px solid #cfdbef;
  background: #f6f9ff;
}

.sp-product-card .minus-btn,
.sp-product-card .plus-btn {
  background: #edf2fb !important;
  color: #0f245f !important;
  font-weight: 800;
}

.sp-product-card .minus-btn:hover,
.sp-product-card .plus-btn:hover {
  background: #dfe8fa !important;
}

.sp-product-card .cantidad-input {
  background: #ffffff;
  border-left: 1px solid #d8e1f1 !important;
  border-right: 1px solid #d8e1f1 !important;
  color: #0f245f !important;
  font-weight: 800;
}

.sp-product-card .agregar-btn.sp-product-card__primary {
  min-height: 44px !important;
  border-radius: 8px !important;
  border: 1px solid #e09300 !important;
  background: linear-gradient(180deg, #ffb326 0%, #ffa400 100%) !important;
  color: #0f245f !important;
  font-size: 0.95rem;
  font-weight: 900 !important;
  box-shadow: 0 8px 16px rgba(255, 164, 0, 0.25);
}

.sp-product-card .agregar-btn.sp-product-card__primary:hover {
  background: linear-gradient(180deg, #ffc14f 0%, #ffb11f 100%) !important;
}

.sp-product-card .sp-product-card__detail,
.sp-product-card .sp-product-card__login {
  min-height: 41px !important;
  border-radius: 8px !important;
  border: 1px solid #ccd7ee !important;
  background: #ffffff !important;
  color: #0f245f !important;
  font-size: 0.9rem;
  font-weight: 800;
}

.sp-product-card .sp-product-card__detail:hover,
.sp-product-card .sp-product-card__login:hover {
  border-color: #b9c7e2 !important;
  background: #f5f8ff !important;
}

@media (max-width: 767px) {
  .sp-product-card {
    border-radius: 8px;
    padding: 0.78rem;
  }

  .sp-product-card__media {
    border-radius: 8px;
    padding: 0.62rem;
  }

  .sp-product-card__title {
    font-size: 0.94rem;
  }

  .sp-product-card__price {
    font-size: 1.24rem;
  }
}

/* ===== TASTE PREMIUM PASS (cards + detalle) ===== */

.sp-product-card {
  border-radius: 8px;
  border: 1px solid #d6ddeb;
  background: #ffffff !important;
  box-shadow: 0 10px 22px rgba(0, 28, 100, 0.08);
}

.sp-product-card:hover {
  transform: translateY(-2px);
  border-color: #b8c6df;
  box-shadow: 0 16px 30px rgba(0, 28, 100, 0.12);
}

.sp-product-card__media {
  border-radius: 8px;
  border-color: #dce3f1;
  background: #f7faff !important;
}

.sp-product-card__image {
  filter: saturate(1.02) contrast(1.02);
}

.sp-product-card__brand-badge {
  top: 0.42rem;
  left: 0.42rem;
  border-color: #c6d2ea;
  background: rgba(255, 255, 255, 0.98);
  color: #10255f;
}

.sp-product-card__title {
  color: #0f245f;
  font-weight: 800;
}

.sp-product-card__title a:hover {
  color: #bb0811;
}

.sp-product-card__price {
  color: #0f245f;
}

.sp-product-card__status {
  background: #f0f5ff;
  border-color: #cad6ef;
  color: #0f245f;
}

.sp-product-card__status--empty {
  background: #fff1f2;
  border-color: #f4c9cf;
  color: #b11d28;
}

.sp-product-card__qty {
  border-radius: 8px;
  border-color: #cfdbef;
  background: #f6f9ff;
}

.sp-product-card .minus-btn,
.sp-product-card .plus-btn {
  background: #ebf1fb !important;
}

.sp-product-card .cantidad-input {
  background: #ffffff;
}

.sp-product-card .agregar-btn.sp-product-card__primary {
  border-color: #dc8f00 !important;
  background: linear-gradient(180deg, #ffbb3d 0%, #ffa400 100%) !important;
  color: #0f245f !important;
}

.sp-product-card .sp-product-card__detail,
.sp-product-card .sp-product-card__login {
  border-color: #cdd7ec !important;
  background: #ffffff !important;
  color: #0f245f !important;
}

.sp-product-card .sp-product-card__detail:hover,
.sp-product-card .sp-product-card__login:hover {
  background: #f5f8ff !important;
}

.sp-product-detail {
  background:
    radial-gradient(circle at 10% 6%, rgba(0, 28, 100, 0.05) 0%, transparent 35%),
    radial-gradient(circle at 90% 4%, rgba(187, 8, 17, 0.05) 0%, transparent 36%),
    linear-gradient(180deg, #f7f9fe 0%, #f4f7fd 100%);
}

.sp-product-detail__container {
  width: min(100%, 1340px);
}

.sp-product-detail__breadcrumb {
  font-weight: 600;
}

.sp-product-detail__breadcrumb a {
  transition: color 160ms ease;
}

.sp-product-detail__grid {
  align-items: start;
}

.sp-product-detail__gallery-stage {
  border-radius: 8px !important;
  border: 1px solid #d9e1f0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 16px 34px rgba(0, 28, 100, 0.09) !important;
}

.sp-product-detail__title {
  color: #0f245f;
  letter-spacing: 0;
}

.sp-product-detail__meta > span {
  border: 1px solid #d0dbef;
  border-radius: 999px;
  font-weight: 700;
}

.sp-product-detail__rating {
  margin-top: 0.8rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #d6deee;
  border-radius: 8px;
  background: #ffffff;
  width: fit-content;
}

.sp-product-detail__pricing .text-3xl.font-extrabold.text-\[\#bb0811\] {
  color: #0f245f !important;
}

.sp-product-detail__cta > button[data-add-to-cart] {
  border-radius: 8px !important;
  background: linear-gradient(180deg, #ffb52b 0%, #ffa400 100%) !important;
  color: #0f245f !important;
  border: 1px solid #dc8f00;
  min-height: 44px;
  box-shadow: 0 8px 16px rgba(255, 164, 0, 0.22);
}

.sp-product-detail__cta > button[data-favorite] {
  border-radius: 8px !important;
  border-color: #d2dceb !important;
  background: #ffffff;
  color: #0f245f !important;
  min-height: 44px;
}

.sp-product-detail__cta > button[data-favorite]:hover {
  background: #f6f8fe !important;
  border-color: #b9c9e2 !important;
}

.sp-product-detail__cta > div {
  border-radius: 8px !important;
  border-color: #d0dcef !important;
  background: #f6f9ff !important;
  box-shadow: none !important;
}

.sp-product-detail__cta [data-qty-input] {
  background: transparent;
  font-weight: 800;
  color: #0f245f;
}

.sp-product-detail__benefits > div {
  border-radius: 8px !important;
  border: 1px solid #d8e1f1 !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(0, 28, 100, 0.06);
}

.sp-product-detail__panel {
  border-radius: 8px !important;
  border: 1px solid #d8e1f1 !important;
  background: #ffffff !important;
  box-shadow: 0 14px 30px rgba(0, 28, 100, 0.08) !important;
}

.sp-product-detail__panel h2 {
  color: #0f245f !important;
  letter-spacing: 0;
}

.sp-product-detail__panel p,
.sp-product-detail__panel li,
.sp-product-detail__panel span,
.sp-product-detail__panel label {
  color: #34476f;
}

.sp-product-detail__panel textarea,
.sp-product-detail__panel input,
.sp-product-detail__panel select {
  border-radius: 8px !important;
  border-color: #d2dced !important;
}

.sp-product-detail__panel textarea:focus,
.sp-product-detail__panel input:focus,
.sp-product-detail__panel select:focus {
  border-color: #001c64 !important;
  box-shadow: 0 0 0 3px rgba(0, 28, 100, 0.12) !important;
}

.sp-product-detail__review-item {
  border-radius: 8px !important;
  border: 1px solid #d6e0f1 !important;
  background: #ffffff !important;
}

@media (max-width: 1024px) {
  .sp-product-detail__rating {
    width: 100%;
  }
}

/* ===== HOME + TIENDA: PRODUCT CARD REVIVE PREMIUM ===== */

.sp-product-card--revive {
  position: relative;
  border-radius: 8px;
  border: 1px solid #d4deef;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 1) 100%) !important;
  box-shadow:
    0 10px 20px rgba(0, 28, 100, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.sp-product-card--revive::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(0, 28, 100, 0.04), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.sp-product-card--revive:hover {
  transform: translateY(-2px);
  border-color: #b8c7e2;
  box-shadow:
    0 18px 32px rgba(0, 28, 100, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.sp-product-card--revive.sp-product-card--grid {
  padding: 0.82rem;
  gap: 0.75rem;
}

.sp-product-card--revive .sp-product-card__media {
  border-radius: 8px;
  border: 1px solid #d9e3f4;
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 255, 255, 0.9) 0%, transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%) !important;
  padding: 0.72rem;
}

.sp-product-card--revive.sp-product-card--grid .sp-product-card__media {
  aspect-ratio: 1 / 1;
}

.sp-product-card--revive .sp-product-card__brand-badge {
  top: 0.38rem;
  left: 0.38rem;
  padding: 0.18rem 0.52rem;
  border: 1px solid #cad6ee;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  color: #10255f;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 5px 10px rgba(0, 28, 100, 0.09);
}

.sp-product-card--revive .sp-product-card__eyebrow {
  margin-bottom: 0.45rem;
  min-height: 1.45rem;
}

.sp-product-card--revive .sp-product-card__code {
  color: #687ba1;
  font-size: 0.74rem;
  font-weight: 700;
}

.sp-product-card--revive .sp-product-card__title {
  color: #10255f;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.34;
  min-height: 2.7em;
}

.sp-product-card--revive .sp-product-card__title a:hover {
  color: #bb0811;
}

.sp-product-card--revive .sp-product-card__price-row {
  margin-top: 0.65rem;
  gap: 0.42rem;
}

.sp-product-card--revive .sp-product-card__price {
  color: #0f255f;
  font-size: 1.38rem;
  font-weight: 900;
}

.sp-product-card--revive .sp-product-card__status {
  min-height: 1.55rem;
  padding: 0.26rem 0.64rem;
  border: 1px solid #ccd8ef;
  border-radius: 999px;
  background: #eef4ff;
  color: #13316e;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: none;
}

.sp-product-card--revive .sp-product-card__status:not(.sp-product-card__status--empty)::before {
  width: 0.38rem;
  height: 0.38rem;
  box-shadow: none;
}

.sp-product-card--revive .sp-product-card__status--empty {
  background: #fff1f2;
  border-color: #f3ccd0;
  color: #ad1a24;
}

.sp-product-card--revive .sp-product-card__footer,
.sp-product-card--revive .sp-product-card__side {
  gap: 0.72rem;
}

.sp-product-card--revive .sp-product-card__qty {
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  border-radius: 8px;
  border: 1px solid #cfdaef;
  background: #f6f9ff;
}

.sp-product-card--revive .minus-btn,
.sp-product-card--revive .plus-btn {
  background: #eaf1fc !important;
  color: #0f255f !important;
  font-weight: 800;
}

.sp-product-card--revive .minus-btn:hover,
.sp-product-card--revive .plus-btn:hover {
  background: #dde8fa !important;
}

.sp-product-card--revive .cantidad-input {
  background: #ffffff;
  color: #0f255f !important;
  border-left: 1px solid #d7e1f2 !important;
  border-right: 1px solid #d7e1f2 !important;
  font-size: 0.93rem;
}

.sp-product-card--revive .sp-product-card__actions {
  gap: 0.55rem !important;
}

.sp-product-card--revive .sp-product-card__primary {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid #df9500 !important;
  background: linear-gradient(180deg, #ffbe45 0%, #ffa400 100%) !important;
  color: #0f255f !important;
  font-size: 0.92rem;
  font-weight: 900 !important;
  box-shadow: 0 8px 14px rgba(255, 164, 0, 0.24);
}

.sp-product-card--revive .sp-product-card__primary:hover {
  background: linear-gradient(180deg, #ffc965 0%, #ffb11e 100%) !important;
}

.sp-product-card--revive .sp-product-card__detail,
.sp-product-card--revive .sp-product-card__login {
  min-height: 39px;
  border-radius: 8px;
  border: 1px solid #cfdaef;
  background: #ffffff !important;
  color: #0f255f !important;
  font-size: 0.88rem;
  font-weight: 800;
}

.sp-product-card--revive .sp-product-card__detail:hover,
.sp-product-card--revive .sp-product-card__login:hover {
  border-color: #b8c7e2;
  background: #f5f8ff !important;
}

.sp-product-card--revive .sp-product-card__hint {
  margin-top: 0.6rem;
  font-size: 0.79rem;
  color: #5d7099;
}

.sp-product-card--revive.sp-product-card--list {
  padding: 0.95rem;
}

.sp-product-card--revive.sp-product-card--list .sp-product-card__title {
  font-size: 1.08rem;
  line-height: 1.33;
}

.sp-product-card--revive.sp-product-card--list .sp-product-card__list-layout {
  gap: 0.9rem;
}

@media (min-width: 768px) {
  .sp-product-card--revive.sp-product-card--list .sp-product-card__list-layout {
    grid-template-columns: minmax(210px, 248px) minmax(0, 1fr) minmax(210px, 240px);
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .sp-product-card--revive {
    padding: 0.72rem;
    border-radius: 8px;
  }

  .sp-product-card--revive .sp-product-card__media {
    padding: 0.58rem;
  }

  .sp-product-card--revive .sp-product-card__title {
    font-size: 0.92rem;
  }

  .sp-product-card--revive .sp-product-card__price {
    font-size: 1.22rem;
  }

  .sp-product-card--revive .sp-product-card__primary {
    min-height: 40px;
  }
}

/* Prioridad alta para vista tienda (#productosGrid tiene reglas legacy con !important) */
#productosGrid .sp-product-card--revive {
  border-radius: 8px !important;
  border: 1px solid #d4deef !important;
  background: #ffffff !important;
  box-shadow: 0 10px 20px rgba(0, 28, 100, 0.08) !important;
}

#productosGrid .sp-product-card--revive:hover {
  border-color: #b8c7e2 !important;
  box-shadow: 0 16px 30px rgba(0, 28, 100, 0.12) !important;
}

#productosGrid .sp-product-card--revive .sp-product-card__media {
  border-radius: 8px !important;
  border: 1px solid #d9e3f4 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%) !important;
}

#productosGrid .sp-product-card--revive .sp-product-card__status {
  border: 1px solid #ccd8ef !important;
  background: #eef4ff !important;
  color: #13316e !important;
}

#productosGrid .sp-product-card--revive .sp-product-card__status--empty {
  background: #fff1f2 !important;
  border-color: #f3ccd0 !important;
  color: #ad1a24 !important;
}

#productosGrid .sp-product-card--revive .sp-product-card__qty {
  border-radius: 8px !important;
  border: 1px solid #cfdaef !important;
  background: #f6f9ff !important;
}

#productosGrid .sp-product-card--revive .sp-product-card__primary {
  border-radius: 8px !important;
  border: 1px solid #df9500 !important;
  background: linear-gradient(180deg, #ffbe45 0%, #ffa400 100%) !important;
  color: #0f255f !important;
}

#productosGrid .sp-product-card--revive .sp-product-card__detail,
#productosGrid .sp-product-card--revive .sp-product-card__login {
  border-radius: 8px !important;
  border: 1px solid #cfdaef !important;
  background: #ffffff !important;
  color: #0f255f !important;
}
