/* =========================
   RESET BÁSICO
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f8;
    color: #333;
}

/* =========================
   CONTENEDOR
========================= */
.container {
    max-width: 1200px;
    margin: auto;
}

/* =========================
   HEADER
========================= */
header {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
}

header .navbar {
    padding: 12px 0;
}

/* =========================
   TITULOS
========================= */
h1, h2, h3 {
    font-weight: 600;
    color: #222;
}

/* =========================
   BUSCADOR
========================= */
input[type="text"] {
    border-radius: 6px;
    border: 1px solid #ccc;
}

input[type="text"]:focus {
    outline: none;
    border-color: #3483fa;
    box-shadow: 0 0 0 2px rgba(52,131,250,0.2);
}

/* =========================
   BOTONES
========================= */
.btn-primary {
    background: #3483fa;
    border: none;
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary:hover {
    background: #2968c8;
}

.btn-cart {
    background: #00a650;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
}

.btn-cart:hover {
    background: #008f45;
}
.btn-cart:active {
    transform: scale(0.97);
}

/* =========================
   CARDS PRODUCTOS
========================= */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    transition: 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card img {
    border-bottom: 1px solid #eee;
    padding: 10px;
    background: #fff;
}

.card-title {
    font-size: 1rem;
    font-weight: 500;
}

.card-text {
    font-size: 0.9rem;
    color: #666;
}

/* =========================
   PRECIO
========================= */
.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00a650;
}

/* =========================
   ALERTAS
========================= */
.alert {
    border-radius: 8px;
    font-size: 0.95rem;
}

/* =========================
   PAGINACIÓN
========================= */
.pagination .page-link {
    color: #3483fa;
    border-radius: 6px;
}

.pagination .active .page-link {
    background: #3483fa;
    border-color: #3483fa;
    color: white;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #ffffff;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 0.9rem;
    padding: 20px 0;
}

/* =========================
   WHATSAPP (opcional simple)
========================= */
.whatsapp-float {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: #25d366;
    padding: 10px;
    border-radius: 50%;
}

.whatsapp-float img {
    width: 30px;
}
/* =========================
   TOAST NOTIFICACION
========================= */
.toast-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #00a650;
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;

    opacity: 0;
    transform: translateY(-10px);
    animation: fadeIn 0.3s forwards, fadeOut 0.3s forwards 3s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}