/* ═══════════════════════════════════════════════════════════════════════════
  AMANO - UTILIDADES Y COMPONENTES ADICIONALES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────────────
   OVERLAY - Fondo oscuro cuando el carrito está abierto
   ────────────────────────────────────────────────────────────────────────── */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 40, 36, 0.4);
  backdrop-filter: blur(4px);
  z-index: 21;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ──────────────────────────────────────────────────────────────────────────
   TOAST NOTIFICATIONS
   ────────────────────────────────────────────────────────────────────────── */

.toast-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 50;
  display: grid;
  gap: 12px;
}

.toast {
  background: var(--pink);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(46, 40, 36, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.4s ease, toastOut 0.4s ease 2.6s forwards;
  max-width: 320px;
}

.toast--success { background: linear-gradient(135deg, #25D366, #128C7E); }
.toast--error { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.toast--info { background: linear-gradient(135deg, var(--pink), var(--pink-strong)); }

.toast__icon { font-size: 20px; }
.toast__message { font-size: 14px; font-weight: 600; }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ──────────────────────────────────────────────────────────────────────────
   PRODUCT BADGES - Etiquetas para productos
   ────────────────────────────────────────────────────────────────────────── */

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.product-badge--new {
  background: linear-gradient(135deg, var(--pink), var(--pink-strong));
  color: #fff;
  box-shadow: 0 4px 15px rgba(180, 124, 86, 0.4);
}

.product-badge--sale {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.product-badge--handmade {
  background: linear-gradient(135deg, var(--terracotta), var(--pink));
  color: var(--wine);
  box-shadow: 0 4px 15px rgba(212, 185, 150, 0.4);
}

/* ──────────────────────────────────────────────────────────────────────────
   WISHLIST BUTTON - Botón de favoritos (futuro)
   ────────────────────────────────────────────────────────────────────────── */

.wishlist-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  font-size: 16px;
}

.wishlist-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

.wishlist-btn.active {
  animation: heartPop 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes heartPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ──────────────────────────────────────────────────────────────────────────
   RATING STARS - Sistema de calificaciones (futuro)
   ────────────────────────────────────────────────────────────────────────── */

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating__star {
  color: #FFB800;
  font-size: 14px;
}

.rating__star--empty {
  color: rgba(46, 40, 36, 0.2);
}

.rating__count {
  font-size: 12px;
  color: var(--muted);
  margin-left: 6px;
}

/* ──────────────────────────────────────────────────────────────────────────
   QUICK VIEW - Vista rápida de productos (overlay en hover)
   ────────────────────────────────────────────────────────────────────────── */

.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46, 40, 36, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  z-index: 1;
}

.card:hover .card__overlay {
  opacity: 1;
}

.card__quick-view {
  width: 100%;
  padding: 10px 16px;
  background: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--wine);
  cursor: pointer;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.card:hover .card__quick-view {
  transform: translateY(0);
}

/* ──────────────────────────────────────────────────────────────────────────
   SCROLL PROGRESS BAR
   ────────────────────────────────────────────────────────────────────────── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--terracotta));
  z-index: 100;
  width: 0%;
  transition: width 0.1s ease;
}

/* ──────────────────────────────────────────────────────────────────────────
   BACK TO TOP BUTTON
   ────────────────────────────────────────────────────────────────────────── */

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--pink), var(--pink-strong));
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(180, 124, 86, 0.3);
  z-index: 44;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(180, 124, 86, 0.5);
}

/* ──────────────────────────────────────────────────────────────────────────
   SPINNER / LOADER
   ────────────────────────────────────────────────────────────────────────── */

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(180, 124, 86, 0.2);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250, 249, 246, 0.9);
  display: grid;
  place-items: center;
  z-index: 60;
}

/* ──────────────────────────────────────────────────────────────────────────
   URGENCY BANNER - Banners de urgencia (stock limitado, etc.)
   ────────────────────────────────────────────────────────────────────────── */

.urgency-banner {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.1));
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c0392b;
  font-size: 13px;
  font-weight: 600;
}

.urgency-banner__icon {
  font-size: 16px;
}

/* ──────────────────────────────────────────────────────────────────────────
   SIZE GUIDE TIP - Información sobre guía de talles
   ────────────────────────────────────────────────────────────────────────── */

.size-guide-tip {
  background: rgba(180, 124, 86, 0.08);
  border: 1px solid rgba(180, 124, 86, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
}

.size-guide-tip__icon {
  font-size: 18px;
  flex-shrink: 0;
}

.size-guide-tip__text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.size-guide-tip__text strong {
  color: var(--wine);
}

/* ──────────────────────────────────────────────────────────────────────────
   TESTIMONIAL CARD - Tarjeta de testimonio
   ────────────────────────────────────────────────────────────────────────── */

.testimonial {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 6px 20px rgba(46, 40, 36, 0.06);
  border: 1px solid rgba(46, 40, 36, 0.06);
}

.testimonial__quote {
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
  position: relative;
  padding-left: 20px;
  font-size: 15px;
}

.testimonial__quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 32px;
  color: var(--terracotta);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-soft);
  background: linear-gradient(135deg, rgba(180, 124, 86, 0.2), rgba(212, 185, 150, 0.2));
}

.testimonial__name {
  font-weight: 700;
  color: var(--wine);
}

.testimonial__location {
  font-size: 13px;
  color: var(--muted);
}

/* ──────────────────────────────────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .toast-container {
    bottom: 80px;
    right: 16px;
    left: 16px;
  }

  .toast {
    max-width: 100%;
  }

  .back-to-top {
    bottom: 80px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   GALLERY SKELETON
   ────────────────────────────────────────────────────────────────────────── */

.gallery-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-skeleton .skeleton {
  border-radius: var(--radius-md);
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* ──────────────────────────────────────────────────────────────────────────
   CONFIRM MODAL
   ────────────────────────────────────────────────────────────────────────── */

.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(46, 40, 36, 0.6);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
}

.confirm-modal.active {
  display: grid;
}

.confirm-modal__dialog {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(46, 40, 36, 0.3);
}

.confirm-modal__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.confirm-modal__title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--wine);
  margin: 0 0 8px;
}

.confirm-modal__text {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 15px;
}

.confirm-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-modal__actions .btn {
  min-width: 100px;
}

/* ──────────────────────────────────────────────────────────────────────────
   BREADCRUMBS
   ────────────────────────────────────────────────────────────────────────── */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--pink);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--pink-strong);
}

.breadcrumbs__separator {
  opacity: 0.5;
}

.breadcrumbs__current {
  color: var(--wine);
  font-weight: 600;
}
