/* EP - Estilos Globales Modernos */
:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --accent-color: #ffcc00; /* Dorado Neón */
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --danger: #ff4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: rgba(26, 26, 26, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 400;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/hero-bg.jpg'); /* Si tienes una imagen de fondo */
    background-size: cover;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Grid de Productos */
.section-title {
    text-align: center;
    margin: 40px 0;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Card de Producto */
.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #333;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.product-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    height: 45px;
    overflow: hidden;
}

/* Precios */
.price-section {
    margin-bottom: 20px;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
    margin-right: 10px;
}

/* Botón */
.btn-add {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-add:hover {
    background: #e6b800;
    transform: scale(1.02);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 40px 0;
    background: #1a1a1a;
    border-top: 1px solid #333;
    margin-top: 50px;
}

/* Estilos del Carrito */
.carrito-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.carrito-detalle { flex: 2; min-width: 300px; }
.carrito-resumen { 
    flex: 1; 
    background: var(--card-bg); 
    padding: 25px; 
    border-radius: 15px; 
    height: fit-content;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-color);
}

th { text-align: left; padding: 15px; border-bottom: 1px solid #333; }
td { padding: 15px; border-bottom: 1px solid #222; }

.btn-seguir {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-seguir:hover { color: var(--accent-color); }

/* Estilos Formulario Entrega */
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 5px;
    color: #fff;
    font-size: 0.9rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.resumen-item, .resumen-total {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.resumen-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
    border-top: 1px solid #333;
    padding-top: 10px;
}

/* ... (Tus estilos anteriores siguen igual) ... */

/* Notificación Toast (Flotante) - ESTILOS DEFINITIVOS */
#toast-notification {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--card-bg); /* Fondo oscuro */
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 2000; /* Encima de todo */
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    border: 1px solid var(--accent-color); /* Borde dorado */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
    font-weight: 500;
}

#toast-notification.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* Efecto de "subida" */
}

/* --- CONTROLES DE CANTIDAD (+ / -) --- */
.qty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-qty {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-qty:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.qty-number {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* --- CONTROLES DE CANTIDAD (ESTILO PREMIUM) --- */

/* El contenedor que agrupa los botones y el número */
.qty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Más espacio entre elementos */
    background: #252525; /* Fondo sutil tipo cápsula */
    padding: 5px 10px;
    border-radius: 50px; /* Bordes totalmente redondos */
    border: 1px solid #333;
    width: fit-content; /* Se ajusta al contenido */
    margin: 0 auto; /* Centrado horizontalmente */
}

/* Los botones + y - */
.btn-qty {
    width: 32px;
    height: 32px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 50%; /* Círculo perfecto */
    cursor: pointer;
    font-size: 1.2rem; /* Símbolo más grande */
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding-bottom: 3px; /* Pequeño ajuste visual para centrar el texto verticalmente */
}

/* Efecto Hover (Al pasar el mouse) */
.btn-qty:hover {
    background: var(--accent-color); /* Dorado */
    color: #000; /* Texto negro */
    border-color: var(--accent-color);
    transform: scale(1.1); /* Crece un poquito */
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.4); /* Brillo dorado */
}

/* El número en el medio */
.qty-number {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 25px; /* Evita que salte si cambia de 1 a 10 */
    text-align: center;
    color: #fff;
}

/* --- ESTILOS DEL FOOTER Y WHATSAPP --- */
.footer-contact {
    margin-bottom: 30px;
    text-align: center;
}

.footer-contact h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #25D366; /* Verde Oficial WhatsApp */
    color: #fff !important; /* !important evita que se ponga morado */
    text-decoration: none;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 2px solid #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); /* Resplandor verde suave */
}

.btn-whatsapp:hover {
    background-color: #128C7E; /* Verde Oscuro WhatsApp Business */
    border-color: #128C7E;
    transform: translateY(-3px); /* Efecto de elevación */
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); /* Resplandor más fuerte */
}

.btn-whatsapp svg {
    fill: currentColor; /* El icono toma el color blanco del texto */
    width: 24px;
    height: 24px;
}

/* --- LOGO CON ENLACE --- */
.logo a {
    text-decoration: none; /* Quita el subrayado */
    color: #fff; /* La parte "EP" en blanco */
    transition: opacity 0.3s;
    cursor: pointer;
}

.logo a span {
    color: var(--accent-color); /* La parte ".Market" en amarillo */
}

/* Efecto al pasar el mouse */
.logo a:hover {
    opacity: 0.8; /* Se ilumina un poquito */
}