/* ================================
   CATÁLOGO — LAYOUT GENERAL
   ================================ */

.page-catalog {
  background:
    radial-gradient(circle at top, rgba(199, 167, 112, 0.24), transparent 55%),
    radial-gradient(circle at bottom, rgba(44, 22, 10, 0.28), transparent 60%),
    var(--mirage-bg);
  color: var(--mirage-text-main);
}

.page-catalog main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 150px 16px 90px;
}

/* ================================
   HERO DEL CATÁLOGO
   ================================ */

.page-catalog .hero {
  padding-top: 8px;
  padding-bottom: 18px;
}

.page-catalog .hero-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--mirage-text-muted);
  margin-bottom: 6px;
}

.page-catalog .hero h1 {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.22em;
  font-size: 32px;
  margin: 0 0 6px;
  text-transform: uppercase;
  position: relative;
}

.page-catalog .hero h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 72px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(199, 167, 112, 0) 0%,
    rgba(199, 167, 112, 0.7) 50%,
    rgba(199, 167, 112, 0) 100%
  );
  opacity: 0.8;
  transition: transform 0.35s ease-out, opacity 0.35s ease-out;
}

.page-catalog .hero h1:hover::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.page-catalog .hero p {
  color: var(--mirage-text-soft);
  max-width: 520px;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* ================================
   TOOLBAR
   ================================ */

.page-catalog .toolbar {
  margin-top: 18px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mirage-text-muted);
}

.page-catalog .toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-catalog .toolbar-right {
  font-size: 12px;
}

.page-catalog .hero,
.page-catalog .toolbar {
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

/* ================================
   GRID DEL CATÁLOGO
   ================================ */

.page-catalog #catalog {
  margin-top: 16px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  justify-items: center;
  position: relative;
}

@media (min-width: 1024px) {
  .page-catalog #catalog::before {
    content: "";
    position: absolute;
    top: -20px;
    bottom: -20px;
    left: 50%;
    width: 1px;
    background: linear-gradient(
      to bottom,
      rgba(255, 225, 170, 0) 0%,
      rgba(255, 225, 170, 0.12) 40%,
      rgba(255, 225, 170, 0.12) 60%,
      rgba(255, 225, 170, 0) 100%
    );
    transform: translateX(-50%);
    pointer-events: none;
  }
}

/* ================================
   CARD DE PRODUCTO
   ================================ */

.page-catalog .card {
  position: relative;
  width: 100%;
  max-width: 320px;
  border-radius: 26px;
  padding: 20px 20px 18px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, #191313, #0c0807);
  border: 1px solid rgba(231, 197, 138, 0.18);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.9),
    inset 0 0 30px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  overflow: hidden;

  opacity: 0;
  transform: translateY(18px);
  animation: catalogFadeIn 0.6s ease forwards;
}

.page-catalog #catalog .card:nth-child(1) { animation-delay: 0.05s; }
.page-catalog #catalog .card:nth-child(2) { animation-delay: 0.12s; }
.page-catalog #catalog .card:nth-child(3) { animation-delay: 0.19s; }
.page-catalog #catalog .card:nth-child(4) { animation-delay: 0.26s; }
.page-catalog #catalog .card:nth-child(5) { animation-delay: 0.33s; }

.page-catalog .card:hover {
  transform: translateY(-8px);
  border-color: rgba(231, 197, 138, 0.45);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 1),
    inset 0 0 38px rgba(0, 0, 0, 0.55);
}

/* Contenedor de la botella + overlay */

.page-catalog .card .thumb {
  position: relative;
  margin-bottom: 14px;
}

.page-catalog .card .bottle-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
}

.page-catalog .bottle {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center bottom;
  transition: transform 0.35s ease-out, filter 0.35s ease-out;
}

.page-catalog .bottle-lumen  { background-image: url("../img/lumen.png"); }
.page-catalog .bottle-noctis { background-image: url("../img/noctis.png"); }
.page-catalog .bottle-eros   { background-image: url("../img/eros.png"); }
.page-catalog .bottle-sable  { background-image: url("../img/sable.png"); }
.page-catalog .bottle-aether { background-image: url("../img/aether.png"); }
.page-catalog .bottle-alheli { background-image: url("../img/alheli.png"); }

.page-catalog .card:hover .bottle {
  transform: translateY(-6px);
  filter: drop-shadow(0 32px 70px rgba(0, 0, 0, 1));
}

.page-catalog .card.is-open .bottle-wrap {
  filter: blur(1px) brightness(0.9);
}

/* ================================
   OVERLAY DE NOTAS CLAVE
   ================================ */

.page-catalog .card .reveal {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top,
    rgba(0, 0, 0, 0.10),
    rgba(0, 0, 0, 0.92));
  display: flex;
  align-items: flex-end;
  padding: 16px 18px 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  font-size: 12px;
  color: var(--mirage-text-main);
}

.page-catalog .reveal-inner {
  width: 100%;
  position: relative;
  padding-bottom: 40px;
}

.page-catalog .reveal-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 229, 196, 0.8);
  margin-bottom: 6px;
}

.page-catalog .reveal-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mirage-text-main);
  margin: 0 0 10px;
}

.page-catalog .icon-view {
  position: relative;
}

.page-catalog .reveal-actions {
  position: absolute;
  right: 0;
  bottom: 0;
}

@media (hover: hover) and (pointer: fine) {
  .page-catalog .card:hover .reveal {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.page-catalog .card.is-open .reveal {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ================================
   ICONOS (OJITO + BOLSA RITUAL)
   ================================ */

/* Círculo base: se usa tanto para el ojo como para el botón de ritual */
.page-catalog .icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(245, 229, 196, 0.35);
  background: rgba(0, 0, 0, 0.4);
  color: rgba(245, 229, 196, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px; /* aquí vive el emoji 👁 */
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

/* Hover genérico: para el ojito */
.page-catalog .icon-circle:hover {
  background: rgba(245, 229, 196, 0.12);
  border-color: rgba(245, 229, 196, 0.7);
  transform: translateY(-1px);
}

/* --- OJITO EN EL OVERLAY ----------------------------------- */
/* (hereda el estilo base, solo afinamos un poco si quieres)   */
.page-catalog .reveal-actions .icon-circle {
  font-size: 16px; /* se sigue viendo el emoji 👁 */
}

/* --- BOLSA SÓLO EN EL FOOTER DE LA CARD -------------------- */
.page-catalog .card-footer .icon-circle {
  background:
    rgba(0, 0, 0, 0.4)
    url("../img/icon-bag.svg") center/18px 18px no-repeat;
  color: transparent;   /* ocultamos cualquier emoji */
  font-size: 0;
}

.page-catalog .card-footer .icon-circle:hover {
  background:
    rgba(245, 229, 196, 0.12)
    url("../img/icon-bag.svg") center/18px 18px no-repeat;
  border-color: rgba(245, 229, 196, 0.7);
  transform: translateY(-1px);
}


/* ================================
   TEXTOS BAJO LA IMAGEN
   ================================ */

.page-catalog .card .title {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.page-catalog .card:hover .title {
  color: rgba(245, 229, 196, 0.98);
  text-shadow: 0 0 10px rgba(245, 229, 196, 0.35);
}

.page-catalog .card .meta {
  font-size: 13px;
  color: var(--mirage-text-soft);
  margin-bottom: 10px;
  min-height: 40px;
  display: flex;
  align-items: flex-end;
}

/* ================================
   FOOTER DE LA CARD
   ================================ */

.page-catalog .card-footer {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-catalog .card-size {
  font-size: 12px;
  color: var(--mirage-text-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-catalog .card-size::after {
  content: " · EDP";
  opacity: 0.8;
  font-size: 11px;
  letter-spacing: 0.16em;
}

/* ================================
   BOTÓN CARGAR MÁS
   ================================ */

.page-catalog .load-more-wrap {
  margin-top: 22px;
  text-align: center;
}

.page-catalog #load-more {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: var(--mirage-text-main);
  padding: 8px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.18s ease;
}

.page-catalog #load-more:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
  .page-catalog main {
    padding: 120px 14px 70px;
  }

  .page-catalog .toolbar {
    align-items: flex-start;
  }

  .page-catalog .toolbar-right {
    width: 100%;
  }

  .page-catalog #catalog {
    max-width: 100%;
    gap: 20px;
  }
}

/* ================================
   FOOTER SOLO CATÁLOGO
   ================================ */

.page-catalog .site-footer {
  background-color: var(--mirage-bg-card);
  padding: 30px 8%;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 225, 170, 0.1);
  color: var(--mirage-text-muted);
  text-align: center;
  position: relative;
  font-size: 14px;
}

.page-catalog .footer-inner {
  font-size: 14px;
  margin-bottom: 10px;
}

.page-catalog .footer-links {
  margin-top: 10px;
}

.page-catalog .footer-links ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-catalog .footer-links li a {
  color: var(--mirage-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease-out;
}

.page-catalog .footer-links li a:hover {
  color: var(--mirage-accent);
}

/* ================================
   ANIMACIONES
   ================================ */

@keyframes catalogFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   DISCLAMER CATÁLOGO
   ================================ */

.catalog-disclaimer {
  margin: 18px auto 10px;
  max-width: 720px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 229, 196, 0.55);
  text-align: center;
  opacity: 0.9;
}

/* Pulido editorial encabezado */

.page-catalog .hero {
  margin-bottom: 8px;
}

.page-catalog .hero-label {
  margin-bottom: 4px;
  opacity: 0.7;
}

.page-catalog .hero h1 {
  margin-bottom: 10px;
  letter-spacing: 0.24em;
}

.page-catalog .hero p {
  opacity: 0.75;
  max-width: 600px;
  margin-bottom: 14px;
}

.page-catalog .toolbar {
  margin-top: 10px;
  margin-bottom: 6px;
  opacity: 0.8;
}

.page-catalog .toolbar-left .label {
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.65;
}

.page-catalog .toolbar-left .meta {
  font-size: 13px;
  opacity: 0.6;
  line-height: 1.45;
}

.page-catalog .toolbar-right {
  opacity: 0.6;
  font-size: 12.5px;
}

.catalog-disclaimer {
  margin-top: 8px;
}

/* (dejamos estos estilos de botón por si más adelante los usas con otras clases) */

.card-ritual-btn,
.card-add,
.product-card-cart-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 225, 170, 0.5);
  background: radial-gradient(circle at 30% 0%, #42342a 0, #181218 45%, #08060a 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.card-ritual-icon,
.card-add-icon,
.product-card-cart-icon {
  display: block;
  width: 18px;
  height: 18px;
  background-image: url("../img/icon-bag.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.card-ritual-btn:hover,
.card-ritual-btn:focus-visible,
.card-add:hover,
.card-add:focus-visible,
.product-card-cart-btn:hover,
.product-card-cart-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 225, 170, 0.95);
  background: radial-gradient(circle at 20% 0%, #5a4331 0, #1a141b 50%, #09070c 100%);
}

.card-ritual-btn svg,
.card-add svg,
.product-card-cart-btn svg {
  width: 18px;
  height: 18px;
}
