/* ── DETALLES LAYOUT ── */
.detalles-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 1rem;
}

.detalles-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Autour One', cursive;
  letter-spacing: 0.06em;
}

.detalles-body {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

/* ── CART ITEMS ── */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 1;
}

#carrito-vacio {
  font-size: 1.5rem;
  color: var(--text-muted);
  padding: 2rem 0;
}

.cart-item {
  display: flex;
  gap: 1.6rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
  transition: border-color 0.2s;
}
.cart-item:hover { border-color: var(--accent); }

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #1c1c1c;
  border-radius: 8px;
  padding: 8px;
  flex-shrink: 0;
}

.item-details { flex: 1; }

.item-details h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.item-details p {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.item-details p span {
  color: var(--text-muted);
  font-weight: 500;
}

.item-details p.subtotal {
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.6rem;
}

/* ── CART SUMMARY ── */
.cart-summary {
  width: 300px;
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.6rem);
}

.cart-summary h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-summary p {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
}
.cart-summary p strong { color: var(--text); }

.btn-whatsapp {
  width: 100%;
  padding: 12px 20px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin-top: 1.5rem;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-1px); }

.btn-volver {
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin-top: 0.8rem;
  transition: border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-volver:hover { border-color: var(--accent); color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .detalles-header { padding: 2rem 1.6rem 1rem; }
  .detalles-body { flex-direction: column; padding: 1.5rem 1.6rem 3rem; }
  .cart-summary { width: 100%; position: static; }
}
