/* ===================== Cards globales LoQuiero ===================== */
/* Contenedor lógico (puede ser slider, grid, etc.) */
.loq-cards {
  --title-lines: 2;
  --title-lh: 1.22;
  --title-fs-m: 15px;
  --title-fs-d: 17px;
  --badge-yellow: #FFD400;

  --chip-fs: 11px;
  --chip-radius: 999px;

  font-family: inherit;
}

/* ✅ GRID SIEMPRE: Para archivos y búsquedas */
.loq-cards-grid--always {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .loq-cards-grid--always {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 360px) {
  .loq-cards-grid--always {
    grid-template-columns: 1fr;
  }
}

/* ===================== Heading / sección ===================== */

.loq-cards__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.loq-cards__title {
  margin: 0;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.1;
  color: #111827;
}

/* ===================== Track móvil (slider) ===================== */

.loq-cards-track-bleed {
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
}

.loq-cards-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.4rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.loq-cards-track::-webkit-scrollbar {
  display: none;
}

/* 👉 Cards más angostas para ver ~2,5 en mobile */
.loq-cards-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 170px;
}

/* ===================== Grid desktop ===================== */

@media (min-width:768px) {
  .loq-cards-track-bleed {
    margin: 0;
    padding: 0;
  }

  .loq-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
  }

  .loq-cards-grid-item {
    height: 100%;
  }
}

/* ===================== Card base ===================== */

.offer-card {
  background: var(--card-bg, #FFFFFF);
  border-radius: var(--card-radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 10px 10px 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background-color .16s ease;
}

.offer-card:hover {
  transform: translateY(-3px);
  border-color: #D1D5DB;
}

/* ===================== MODO 4K — ESTILO APPLE / LOQUIERO ===================== */
/* (merge exacto del snippet, SIN CAMBIAR RESULTADO VISUAL) */

.loq-cards--4k .offer-card {
  position: relative;
  background: var(--card-bg, #ffffff);
  border: 0;
  border-radius: var(--card-radius, 24px);
  padding: 12px 14px 0px;
  box-shadow: var(--card-shadow, 2px 4px 12px #00000014);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.loq-cards--4k .offer-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover, 0 18px 46px rgba(15, 23, 42, 0.14));
}

/* ===================== Imagen ===================== */

.offer-card__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
}

.loq-cards--4k .offer-card__media {
  margin-bottom: -15px;
}

.offer-card__media.ratio-basic {
  padding-top: 100%;
}

.offer-card__media .lq-img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.loq-cards--4k .offer-card__media .lq-img {
  width: 100%;
  height: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 1px;
  transform: scale(0.75);
}


/* ===================== Badge Sale — Promo fuerte ===================== */

.lq-badge-sale {
  position: absolute;
  top: 14px;
  right: 12px;
  z-index: 30;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 10px;
  border-radius: 999px;

  /* NARANJA PROMO */
  background: var(--badge-sale-bg, #ff5a3f);
  color: var(--badge-sale-color, #fff);


  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;

  /*box-shadow:
    0 6px 14px rgba(255,106,26,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);*/
}

@media (min-width:768px) {
  .lq-badge-sale {
    top: 14px;
    right: 16px;
    font-size: 12px;
    padding: 5px 12px;
  }
}

/* ===================== Body ===================== */

.offer-card__body {
  padding: 4px 2px 2px;
  display: flex;
  flex-direction: column;
}

/* ===================== TÍTULO DE PRODUCTO ===================== */

.offer-card__title {
  font-family: var(--loq-font-family);
  font-weight: var(--loq-font-medium);
  font-size: var(--loq-text-base-size);
  /* 14px */
  line-height: 1.25;
  color: var(--loq-text);
  letter-spacing: -0.01em;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Contexto visual premium (cards destacadas / 4K) */
.loq-cards--4k .offer-card__title {
  font-weight: var(--loq-font-semibold);
  color: var(--loq-text);
}


/* ===================== Condición ===================== */

.loq-cards--4k .lq-card-condition {
  position: static;
  margin: 2px 0 6px;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #6b7280;
}

/* ===================== PRECIO ===================== */

.offer-card__price {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

/* precio viejo */

.offer-card__price-old {
  font-size: 10px;
  color: #9CA3AF;
  text-decoration: line-through;
  font-weight: 400;
}

/* precio actual */

.offer-card__price-now {
  font-size: 14px;
  font-weight: 400;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

/* =========================================================
   PRECIO EN DÓLARES
========================================================= */

/* precio USD referencia */

.offer-card__usd {
  font-size: 10px;
  font-weight: 500;
  color: #94A3B8;
  margin-top: -3px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.offer-card__usd-price {
  color: #64748B;
  font-weight: 700;
}


/* ===================== CUOTAS ===================== */

.offer-card__installments {
  margin-top: 2px;
  font-size: var(--loq-text-muted-size);
  /* 12px */
  line-height: 1.25;
  color: var(--loq-text-muted);
}

.offer-card__installments-amount {
  font-weight: var(--loq-font-medium);
  /* 500 */
  color: var(--loq-text);
}


/* ===================== Chips ===================== */

.offer-card__chips {
  display: flex;
  flex-direction: row;
  gap: 4px;
  margin-bottom: 15px;
}

.offer-card__chips .lq-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;

  padding: 4px 9px;

  font-size: 8px;
  font-weight: 500;
  line-height: 1;

  border-radius: 5px;

  background: #F3F4F3;
  color: #000;

  letter-spacing: -0.01em;
  z-index: 999;
}

span.lq-chip.lq-chip--cvn {
  display: inline-flex;
  align-items: center;
  width: fit-content;

  padding: 4px 9px;

  font-size: 8px;
  font-weight: 600;
  line-height: 1;

  border-radius: 5px;

  background: #5A37E6 !important;
  color: #fff !important;

  letter-spacing: -0.01em;
  z-index: 999;
}

/* ===================== CVN badge desactivado (como snippet) ===================== */

.offer-card__cvn-badge {
  display: none;
}

/* ===================== Mobile tweaks ===================== */

@media (max-width:480px) {
  .loq-cards-item {
    width: 145px;
  }
}



/* ===================== imagen superpuesta de regalo ===================== */



.offer-card__media {
  position: relative;
  /* necesario para posicionar el icono */
}

.offer-card__accessory {
  position: absolute;
  bottom: 15px;
  right: 4px;
  z-index: 2;
}

.offer-card__accessory-icon {
  width: 60px !important;
  height: 60px;
  object-fit: contain;
  padding: 4px;
}