:root {
  --primary: #a0652d;
  --primary-dark: #8a5125;
  --text-dark: #333;
  --accent: #e63946;
  --footer-bg: #222;
  --footer-text: #bbb;
  --border-light: #ddd;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: #fff;
}

/* Navbar */
.navbar-top {
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 0;
}
.navbar-top .navbar-brand img {
  height: 80px;
  transition: height 0.3s;
}
.navbar-bottom {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}
.nav-bottom .nav-link {
  color: var(--text-dark);
  margin: 0 1rem;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.nav-bottom .nav-link:hover,
.nav-bottom .nav-link.active {
  color: var(--primary);
}

/* Botón carrito */
.cart-btn {
  background: transparent;
  border: none;
  position: relative;
  margin-left: 1rem;
  font-size: 1.2rem;
}
.cart-btn .badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  padding: 0.2em 0.5em;
  font-size: 0.75rem;
}

/* Cards de producto */
.product-card {
  border: 1px solid #ccc; /* Borde gris claro */
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  background: #fff;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.product-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}
.product-card:hover img {
  transform: scale(1.1);
}

/* Badge de descuento */
.badge-descuento {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  z-index: 2;
}

/* Precio con descuento */
.precio-antes {
  color: #888;
  text-decoration: line-through;
  font-size: 0.9rem;
  margin-right: 0.4rem;
}
.precio-ahora {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

/* Botón Agregar */
.btn-agregar {
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.btn-agregar:hover {
  background-color: var(--primary-dark);
}

/* Sidebar filtros */
.sidebar {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
}
.sidebar h5 {
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  color: var(--primary);
}
.sidebar-label {
  margin-top: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}
.form-check {
  margin-bottom: 0.5rem;
}
.form-check-label {
  margin-left: 0.3rem;
}

/* Swatches de color */
.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ccc;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: transform 0.2s;
}
.color-swatch.selected,
.color-swatch:hover {
  transform: scale(1.1);
  border: 2px solid var(--primary);
}

/* Tallas */
.size-btn {
  display: inline-block;
  padding: 0.5em 1em;
  margin: 0.2em;
  border: 1px solid var(--border-light);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.2s;
}
.size-btn.selected,
.size-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Selector de cantidad */
.quantity-selector {
  width: 150px;
}
.quantity-selector .btn {
  border: 1px solid #ccc;
}
.quantity-selector .form-control {
  width: 4rem;
}

/* Botones principales */
.btn-primary,
.btn-outline-primary {
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}
.btn-primary {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Paginación */
.pagination .page-link {
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  color: #ccc;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem 0;
}
.footer h5 {
  color: #fff;
}
.footer a {
  color: var(--footer-text);
  margin-right: 1rem;
}
.footer a:hover {
  color: #fff;
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 1000;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.whatsapp-float:hover {
  background-color: #1ebe57;
}

/* Submenús de navegación */
.navbar-bottom .dropdown-menu {
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: transform .3s ease, opacity .3s ease;
}
.navbar-bottom .dropdown.show > .dropdown-menu,
.navbar-bottom .dropdown-menu.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.navbar-bottom .dropdown-toggle::after {
  transition: transform .3s ease;
}
.navbar-bottom .dropdown.show > .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Submenú lateral */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
  transition: opacity 0.3s ease;
}
.dropdown-menu .d-flex img {
  border-radius: 0.25rem;
  max-height: 120px;
}

/* Categorías con imagen */
.category-card {
  transition: transform 0.3s, box-shadow 0.3s;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.category-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.75rem 1.5rem;
  border: 2px solid #fff;
  border-radius: 2rem;
  font-weight: 500;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.category-btn:hover {
  background: rgba(0,0,0,0.6);
  color: #fff;
}
