/* style.css */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600&display=swap");

:root {
  --color-bg: #eeeceb;
  --color-neutral: #b5ada3;
  --color-accent: #d2d1d9;
  --color-text: #151414;

  --font-title: "Cormorant Garamond", serif;
  --font-body: "Montserrat", sans-serif;
}

body {
  background: #efe8dd;
  color: var(--color-text);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
}

.carrito {
  font-size: 13px;
  margin-left: 2%;
  color: #7a5540;
}

.logo {
  width: 10%;
  height: 10%;
  margin-left: 44%;
}

h1 {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: #7a5540;
}

h3 {
  font-weight: 500;
  text-align: center;
  color: #7a5540;
}

/* TOP BAR */
/* OVERRIDES FINALES DEL HERO (se cargan después de header.php) */
.hero {
  position: relative;
  text-align: center;
  background: linear-gradient(
      rgba(239, 232, 221, 0.85),
      rgba(239, 232, 221, 0.85)
    ),
    url("assets/img/bg-texture.jpg") center/cover no-repeat;
}

.hero .hero-title {
  font-family: "Cormorant Garamond", serif !important;
  font-size: 4.2rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: #ad836e8f !important;
  margin: 0 0 1rem;
}

.hero .hero-subtitle {
  font-family: "Montserrat", sans-serif !important;
  font-size: 15px;
  color: #5e524794 !important;
  max-width: 650px;
  margin: 0 auto;
}

/* Sutileza de marca: logo muy tenue de fondo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/img/logo.png") center/40% no-repeat;
  opacity: 0.06;
  z-index: 0;
}
.hero .hero-title,
.hero .hero-subtitle {
  position: relative;
  z-index: 1;
}

/* MENÚ SECUNDARIO */
.menu {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 12px 0;
  background: #f2ece4;
}
.menu a {
  text-decoration: none;
  color: #3f3a36;
  font-family: var(--font-body);
  font-weight: 500;
  transition: 0.3s;
}
.menu a:hover {
  color: #6a4eff;
}

/*categorias*/
/* Encabezado de Categoría */
.categoria-header {
  text-align: center;
}

.categoria-header h1 {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--color-text);
}

.categoria-header p {
  font-family: var(--font-body);
  color: var(--color-neutral);
  font-size: 16px;
  letter-spacing: 0.5px;
  margin: 0;
}

/* === CONTENEDOR DEL CARRITO === */
.products-section {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* === TABLA === */
.productos-carrito {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.productos-carrito th {
  font-family: var(--font-title);
  font-weight: 500;
  color: #ad836e;
  font-size: 20px;
  border-bottom: 2px solid #e4d7ca;
  padding-bottom: 10px;
}

.productos-carrito td {
  padding: 18px 8px;
  font-size: 15px;
  color: var(--color-text);
  border-bottom: 1px solid #eee4da;
}

/* === BOTONES DE ACCIÓN === */
.productos-carrito a {
  text-decoration: none;
  color: var(--color-accent);
  font-size: 18px;
  margin: 0 5px;
  transition: 0.2s;
}
.productos-carrito a:hover {
  color: #b08b7c;
}

/* === FILA HOVER === */
.productos-carrito tr:hover td {
  background: #faf7f3;
  transition: background 0.3s ease;
}

/* === TOTAL === */
.total {
  text-align: center;
  font-size: 1.3rem;
  font-family: var(--font-title);
  color: var(--color-accent);
  margin-top: 35px;
}

/* === ICONO DE ELIMINAR === */
.productos-carrito a.eliminar {
  color: #b74b4b;
}
.productos-carrito a.eliminar:hover {
  color: #e36363;
}

/* === BOTONES SVG (+ / - /) === */
.productos-carrito a svg {
  width: 20px;
  height: 20px;
  stroke: #7a5540; /* color arena AURA */
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  opacity: 0.9;
  transition: transform 0.25s ease, stroke 0.25s ease, opacity 0.25s ease;
}

/* Hover: tono más claro y leve ampliación */
.productos-carrito a:hover svg {
  stroke: #b08b7c; /* tono arena claro */
  transform: scale(1.15);
  opacity: 1;
}

/* === CÍRCULOS DE FONDO PARA + y - === */
.productos-carrito td a[href*="agregar"],
.productos-carrito td a[href*="restar"] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(122, 85, 64, 0.213);
  margin: 0 4px;
  transition: background 0.25s ease;
}

.productos-carrito td a[href*="agregar"]:hover,
.productos-carrito td a[href*="restar"]:hover {
  background: rgba(122, 85, 64, 0.12);
}

/* === ÍCONO ELIMINAR === */
.productos-carrito td a[href*="eliminar"] svg {
  stroke: #7a5540;
  stroke-width: 2.3;
  transition: stroke 0.25s ease, transform 0.25s ease;
}

.productos-carrito td a[href*="eliminar"]:hover svg {
  stroke: #b08b7c;
  transform: scale(1.1);
}

/* Ajuste general de espaciado */
.productos-carrito td {
  padding: 14px 8px;
}

/* === ÍCONO DEL CARRITO === */
.add-cart i {
  color: #fff;
  font-size: 18px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.add-cart:hover i {
  transform: scale(1.12);
  opacity: 0.95;
}

/*carrito actualizado*/
.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#cart-count {
  position: absolute;
  top: 0px;
  right: -25px;
  background: #7a5540;
  color: white;
  font-size: 11px;
  font-family: "Montserrat", sans-serif;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.alerta-carrito {
  position: fixed;
  top: 30px;
  right: 30px;
  background: #7a5540;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: fadeInOut 2s ease forwards;
  z-index: 9999;
}
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  10%,
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* === BOTÓN COMPRAR === */
.contenedor-comprar {
  text-align: center;
  margin-top: 30px;
}

.btn-comprar {
  background-color: #7a5540;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-comprar svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  transition: transform 0.3s ease;
}

.btn-comprar:hover {
  background-color: #604334;
  transform: translateY(-2px);
}

.btn-comprar:hover svg {
  transform: translateX(3px);
}

/*categorias*/
/* Dropdown Categorías */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  color: #000;
  text-decoration: none;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 10;
}

.dropdown-content a {
  color: #333;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f6f4f2;
  color: #7a5540;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  color: #7a5540;
}
