/* ==========================================================
   Kalas Shop — estilos complementarios a Tailwind
   Aquí van únicamente los estilos que Tailwind no resuelve
   de forma limpia con clases utilitarias: pseudo-elementos,
   animaciones y composiciones de tarjetas reutilizadas.
   Colores hexadecimales usados aquí = paleta de marca:
   ink/wine #670627 · blush #FFBEC6 · blush-dark #B36276 · cream #FFF8FA
   ========================================================== */

html {
  scroll-behavior: smooth;
}

body {
  scroll-padding-top: 80px; /* compensa el header fijo al hacer scroll a anclas */
}

/* -------------------- Carrusel del hero -------------------- */

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 248, 250, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-dot:hover {
  background: rgba(255, 248, 250, 0.8);
}

.hero-dot.active {
  background: #ffbec6;
  transform: scale(1.3);
}

/* -------------------- Header -------------------- */

#site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(103, 6, 39, 0.08);
}

.nav-link {
  position: relative;
  color: #fff8fa; /* cream, para leerse sobre el header vino */
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #ffbec6; /* blush */
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #ffbec6;
}

.nav-link:hover::after {
  width: 100%;
}

/* -------------------- Tarjetas de categoría -------------------- */

.category-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  overflow: hidden;
  isolation: isolate;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
  background: linear-gradient(to top, rgba(103, 6, 39, 0.6) 0%, rgba(103, 6, 39, 0) 55%);
}

.category-overlay span {
  color: #fff8fa;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

/* -------------------- Tarjetas de producto -------------------- */

.product-card {
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(103, 6, 39, 0.08);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.product-card:hover {
  box-shadow: 0 14px 32px rgba(103, 6, 39, 0.16);
  transform: translateY(-4px);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.06);
}

/* Botón "Añadir al carrito": aparece deslizándose desde abajo al hacer
   hover sobre la tarjeta, y además cambia de color al pasar el mouse
   directamente sobre el botón. */
.add-to-cart {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(100%);
  background: rgba(103, 6, 39, 0.94);
  color: #fff8fa;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 0;
  text-align: center;
  transition: transform 0.35s ease, background-color 0.25s ease;
  cursor: pointer;
  border: none;
}

.product-card:hover .add-to-cart {
  transform: translateY(0);
}

.add-to-cart:hover {
  background: #ffbec6; /* blush: rosa de marca en hover directo del botón */
  color: #670627; /* ink: vino de marca */
}

.product-info {
  padding: 1.1rem 1.25rem 1.4rem;
}

.product-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #670627;
  margin-bottom: 0.35rem;
}

.product-info p {
  font-size: 0.95rem;
  color: #b36276;
  font-weight: 500;
}

/* -------------------- Botones flotantes -------------------- */

.floating-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(103, 6, 39, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 24px rgba(103, 6, 39, 0.36);
}

/* -------------------- Utilidades -------------------- */

::selection {
  background: #ffbec6;
  color: #670627;
}
