/* ====== BASE GENERAL ====== */
:root {
  --maka-bg: #f7f3ee;         /* Fondo suave */
  --maka-primary: #77815C;    /* Verde olivo (como tu prototipo) */
  --maka-accent: #d6ad75;     /* Dorado suave */
  --maka-dark: #333333;
  --maka-muted: #777777;
  --maka-radius: 14px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background-color: var(--maka-bg);
  color: var(--maka-dark);
}

/* Links */
a {
  color: var(--maka-primary);
}
a:hover {
  color: #5f6849;
}


/* ====== NAVBAR ====== */
.navbar {
  font-size: 0.95rem;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1rem;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--maka-dark);
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--maka-primary);
}

#carrito-count-mobile,
#carrito-count-desktop {
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}



/* ====== HERO INDEX ====== */
.hero-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
}

.hero-title {
  font-size: 1.9rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--maka-muted);
}

.hero-section .btn {
  border-radius: 999px;
  padding-inline: 1.5rem;
}

/* Imagen del hero */
.hero-section .product-card {
  border-radius: 20px;
}
.hero-section .product-card img {
  height: 260px;
  object-fit: cover;
}


/* ====== CARDS DE PRODUCTOS ====== */
.product-card {
  border-radius: var(--maka-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card .h6 {
  font-size: 0.95rem;
}

.product-card .text-muted.small {
  font-size: 0.75rem;
}

/* Botón agregar al carrito */
.product-card .btn {
  border-radius: 999px;
  font-size: 0.85rem;
}


/* ====== CATÁLOGO ====== */
@media (min-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }
}

@media (max-width: 575.98px) {
  /* 2 columnas en móvil */
  .row.g-3 > [class*="col-6"] {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }
}


/* ====== CARRITO ====== */

#carrito-vacio {
  border-radius: var(--maka-radius);
  background-color: #fff;
  color: var(--maka-muted);
}

#carrito-contenido .card {
  border-radius: var(--maka-radius);
  border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Ítems del carrito */
#carrito-items .list-group-item {
  border: none;
  border-radius: 16px;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  background-color: #ffffff;
}

#carrito-items .list-group-item:last-child {
  margin-bottom: 0;
}

/* Imagen */
#carrito-items img {
  border-radius: 12px;
}

/* Botón eliminar */
#carrito-items .btn-eliminar {
  font-size: 1rem;
}

/* Botones de cantidad */
#carrito-items .btn-group .btn {
  border-radius: 999px !important;
}

#carrito-items .btn-group .btn-outline-secondary {
  border-color: #cccccc;
  color: #555;
}

#carrito-items .btn-group .btn-outline-secondary:hover {
  background-color: #f0f0f0;
}

/* Etiquetas de precios */
#carrito-total {
  font-size: 1.1rem;
}

/* Botones en el resumen */
#btn-vaciar-carrito,
#btn-ir-checkout {
  border-radius: 999px;
}

#btn-ir-checkout {
  background: linear-gradient(135deg, var(--maka-primary), var(--maka-accent));
  border: none;
}

#btn-ir-checkout:hover {
  filter: brightness(1.03);
}

/* Pequeños ajustes responsivos */
@media (max-width: 575.98px) {
  #carrito-items .list-group-item {
    padding: 0.75rem;
  }
}


/* ====== FOOTER ====== */
.footer {
  background-color: #111111;
  color: #f5f5f5;
  font-size: 0.85rem;
}

.footer h5 {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer p {
  margin-bottom: 0.25rem;
}

.footer .social-icons a {
  font-size: 1.1rem;
  opacity: 0.85;
}

.footer .social-icons a:hover {
  opacity: 1;
  color: var(--maka-accent);
}

