/* ===========================================
   THEME ALOEMARKET — GOLD VERSION
   Inspirado en aloemarketchile.cl
   =========================================== */

/* ---------- PALETA ---------- */
:root {
  --gold-primary: #C9A449;      /* Dorado elegante */
  --gold-light: #E6C878;        /* Dorado claro */
  --dark-black: #1A1A1A;        /* Negro premium */
  --soft-white: #FAFAFA;        /* Blanco suave */
  --gray-light: #EFEFEF;
}

/* ---------- TIPOGRAFÍA GLOBAL ---------- */
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background-color: #f7f7f7;
  color: #222;
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
}

/* Links */
a {
  color: var(--gold-primary);
}

a:hover {
  color: var(--gold-light);
}

/* ---------- NAVBAR GOLD ---------- */
.navbar {
  background-color: var(--dark-black) !important;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.navbar-brand {
  color: var(--gold-light) !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.navbar-brand span {
  color: var(--gold-primary);
}

.navbar .nav-link {
  color: var(--gold-primary) !important;
  font-weight: 500;
  font-size: 0.95rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--gold-light) !important;
}

/* Badge carrito en navbar */
#cart-count-badge {
  background-color: var(--gold-primary) !important;
  color: #1A1A1A !important;
  font-size: 0.75rem;
}

/* ---------- BOTONES GOLD ---------- */
.btn {
  border-radius: 6px;
  font-weight: 500;
}

/* Principal */
.btn-primary {
  background-color: var(--gold-primary) !important;
  border-color: var(--gold-primary) !important;
  color: #1A1A1A !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.btn-primary:hover {
  background-color: var(--gold-light) !important;
  border-color: var(--gold-light) !important;
  transform: translateY(-1px);
  color: #000 !important;
}

/* Outline */
.btn-outline-primary {
  color: var(--gold-primary) !important;
  border-color: var(--gold-primary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--gold-primary) !important;
  color: #1A1A1A !important;
}

/* ---------- SECCIONES ---------- */
section {
  scroll-margin-top: 80px;
}

.section-soft {
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}

/* ---------- CARDS DE PRODUCTOS ---------- */
.product-card {
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
  background-color: #ffffff;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* Placeholder de imagen */
.placeholder-img,
.product-card .ratio {
  background: linear-gradient(135deg, #f7f7f7, #eaeaea);
  color: #b5b5b5;
  font-size: 0.8rem;
}

/* Body de la card */
.product-card .card-body {
  padding: 0.9rem 1rem 1rem;
}

.product-card h2.h6 {
  font-weight: 600;
}

/* ---------- BADGES ---------- */
.badge {
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  border-radius: 999px;
}

/* Destacado por defecto */
.badge.bg-primary {
  background-color: var(--gold-primary) !important;
  color: #1A1A1A !important;
}

/* Nuevo */
.badge-new {
  background-color: var(--gold-light) !important;
  color: #000 !important;
}

/* ---------- TABLA DEL CARRITO ---------- */
.table thead.table-light {
  background-color: #f3e7c3;
}

.table tbody tr:hover {
  background-color: #fdfbf5;
}

/* ---------- FOOTER GOLD ---------- */
footer {
  background-color: var(--dark-black);
  color: var(--soft-white);
  padding: 2rem 0 1.5rem;
  border-top: 2px solid var(--gold-primary);
  font-size: 0.85rem;
}

footer a {
  color: var(--gold-primary);
  text-decoration: none;
}

footer a:hover {
  color: var(--gold-light);
}

/* Línea fina encima del footer */
.footer-top-line {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--gold-primary),
    var(--gold-light),
    var(--gold-primary)
  );
}

/* ---------- UTILIDADES ---------- */
.bg-soft {
  background-color: var(--soft-white);
}

.section-divider {
  border-top: 1px solid var(--gray-light);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767.98px) {
  .navbar .nav-link {
    padding-left: 0;
  }
}
