:root {
    --primary: #00a650;
    --primary-hover: #008542;
    --bg-light: #f4f7f6;
}

body { background-color: var(--bg-light); font-family: 'Inter', sans-serif; margin: 0; padding: 0; }

/* NAVBAR PROFESIONAL */
.navbar-custom { background: #fff; border-bottom: 1px solid #eee; padding: 15px 0; }
.search-bar { border-radius: 25px 0 0 25px !important; border: 2px solid var(--primary) !important; box-shadow: none !important; }
.btn-search { border-radius: 0 25px 25px 0 !important; background: var(--primary); color: white; border: none; padding: 0 25px; transition: 0.3s; }
.btn-search:hover { background: var(--primary-hover); }

/* GRILLA DE PRODUCTOS */
.product-card {
    background: #fff;
    border-radius: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #efefef;
    overflow: hidden;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); border-color: var(--primary); }

/* Contenedor de Imagen Fijo para evitar saltos */
.img-container {
    width: 100%;
    height: 306px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fff;
}
.img-container img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* INFO DEL PRODUCTO */
.product-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }

/* Título forzado a 2 líneas exactas con altura fija */
.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    height: 2.8em; /* Altura fija para 2 líneas */
    line-height: 1.4em;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.price-box { margin-top: auto; padding-top: 10px; } /* Esto empuja el precio al fondo */
.price-now { font-size: 1.3rem; font-weight: 800; color: #000; display: block; }
.price-old { font-size: 0.85rem; color: #999; text-decoration: line-through; }

/* BOTÓN VER DETALLES */
.card-footer { background: none; border: none; padding: 0 15px 20px 15px; }
.btn-grid {
    width: 100%;
    background: var(--primary);
    color: white !important;
    border: none;
    border-radius: 7px;
    padding: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-decoration: none;
    display: block;
    text-align: center;
}

/* ANIMACIÓN SHAKE (SACUDIDA) */
@keyframes shake-animation {
    0% { transform: translateX(0); }
    10% { transform: translateX(-4px) rotate(-1deg); }
    20% { transform: translateX(4px) rotate(1deg); }
    30% { transform: translateX(-4px) rotate(-1deg); }
    40% { transform: translateX(4px) rotate(1deg); }
    50% { transform: translateX(0); }
    100% { transform: translateX(0); }
}
.btn-shaker { 
    animation: shake-animation 1.5s infinite; 
    animation-delay: 2s;
}

/* WhatsApp Flotante */
.btn-whatsapp {
    position: fixed; bottom: 25px; right: 25px;
    background: #25d366; color: white; border-radius: 50%;
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    font-size: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 999; text-decoration: none;
}