/* ==========================================================
   OGA HOME · Regalos YA
   Whitespacez · diciembre 2026

   1. "Regalos YA" destacado en el menú (reemplaza a NOVEDADES).
   2. Sticker "Bolsa incluida" arriba a la derecha de la foto en
      los productos de la categoría Regalos YA (grillas y ficha).
      oga-regalos.js marca esos productos.
   3. Header siempre en una sola línea (menú con flechas).
   v2: sticker 1,6x más grande (imagen recortada al círculo).
   Necesita static/images/oga-bolsa-sticker-v2.png
   ========================================================== */

/* ---------- 1. Menú ---------- */
a.nav-list-link[href*="/regalos-ya"],
a.nav-list-link[href*="/regalos-ya"]:visited {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 7px 15px 7px 12px !important;
  border-radius: 999px;
  background: #ff7300;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  animation: oga-regalos-pulso 2.6s ease-out infinite;
}

a.nav-list-link[href*="/regalos-ya"] * {
  color: #fff !important;
}

/* Ícono de regalo */
a.nav-list-link[href*="/regalos-ya"]::before {
  content: "";
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C10 3 12 8 12 8s2-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E") no-repeat center / contain;
}

a.nav-list-link[href*="/regalos-ya"]:hover {
  background: #e66700;
  color: #fff !important;
}

@keyframes oga-regalos-pulso {
  0%, 60%, 100% { box-shadow: 0 0 0 0 rgba(255, 115, 0, 0); }
  70% { box-shadow: 0 0 0 0 rgba(255, 115, 0, .45); }
  95% { box-shadow: 0 0 0 9px rgba(255, 115, 0, 0); }
}

/* ---------- 2. Sticker "Bolsa incluida" ---------- */

/* Grillas: home, categorías, búsqueda, relacionados */
.js-item-product.oga-bolsa .js-item-image-padding::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 33%;
  max-width: 116px;
  min-width: 56px;
  aspect-ratio: 1 / 1;
  background: url("../images/oga-bolsa-sticker-v2.png") no-repeat center / contain;
  transform: rotate(6deg);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .18));
  pointer-events: none;
  animation: oga-bolsa-pop .7s cubic-bezier(.2, 1.6, .4, 1) both;
}

/* Ficha de producto */
[data-store^="product-image-"].oga-bolsa .js-swiper-product::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 27%;
  max-width: 174px;
  min-width: 93px;
  aspect-ratio: 1 / 1;
  background: url("../images/oga-bolsa-sticker-v2.png") no-repeat center / contain;
  transform: rotate(6deg);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .2));
  pointer-events: none;
  animation: oga-bolsa-pop .8s cubic-bezier(.2, 1.6, .4, 1) .2s both;
}

/* Entra como un sticker que se pega */
@keyframes oga-bolsa-pop {
  0% { transform: rotate(-14deg) scale(0); opacity: 0; }
  60% { transform: rotate(10deg) scale(1.12); opacity: 1; }
  100% { transform: rotate(6deg) scale(1); opacity: 1; }
}

/* ---------- 3. Header en una sola línea ----------
   El tema mide el menú al cargar para decidir si activa las
   flechas. Si mide antes de que cargue la tipografía, no las
   activa y los íconos bajan a otra línea. El menú nunca entra
   completo en desktop, así que dejamos las flechas siempre. */
@media (min-width: 768px) {
  .head-logo-row > .container > .row {
    flex-wrap: nowrap !important;
  }

  .js-desktop-nav-col {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
  }

  .js-nav-desktop-list {
    margin: 0 30px 0 15px !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
  }

  .js-nav-desktop-list::-webkit-scrollbar {
    display: none;
  }

  .js-nav-desktop-list-arrow {
    display: block !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.nav-list-link[href*="/regalos-ya"],
  .js-item-product.oga-bolsa .js-item-image-padding::after,
  [data-store^="product-image-"].oga-bolsa .js-swiper-product::after {
    animation: none;
  }
}
