        :root {
            --primary-color: #d32f2f;
            --secondary-color: #333;
        }
        body {
            background-color: #f8f9fa;
            padding-top: 0;
        }
        .navbar-brand {
            font-weight: bold;
            font-size: 1.5rem;
        }
        .price-tag {
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--primary-color);
        }
        .badge-agotado {
            background-color: #6c757d;
        }
        footer {
            background-color: #212529;
            color: #adb5bd;
            padding: 2rem 0;
            margin-top: 3rem;
        }


/* Mejoras para el buscador */
.bg-light .form-control {
    border: 2px solid var(--primary-color);
    border-right: none;
}

.bg-light .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.25);
}

.bg-light .btn-danger {
    border: 2px solid var(--primary-color);
    background-color: var(--primary-color);
}

.bg-light .btn-danger:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
}

/* Para que la barra de búsqueda tenga más presencia */
.shadow-sm {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

/* Mejorar el placeholder */
.form-control::placeholder {
    color: #6c757d;
    font-style: italic;
}


        
        /* Estilos específicos para producto */
        .product-image-container {
            background-color: #fff;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            border: 1px solid #dee2e6;
        }
        .product-image {
            max-height: 500px;
            width: 100%;
            object-fit: contain;
        }
        .product-title {
            font-size: 1.8rem;
            font-weight: bold;
            margin-bottom: 1rem;
            color: #333;
        }
        .product-meta {
            color: #6c757d;
            font-size: 0.9rem;
            margin-bottom: 1.5rem;
        }
        .product-description {
            line-height: 1.6;
            margin-bottom: 1.5rem;
            color: #555;
        }
        .btn-comprar {
            padding: 12px 30px;
            font-size: 1.1rem;
            font-weight: bold;
        }
        .related-products-title {
            font-size: 1.5rem;
            font-weight: bold;
            margin: 2rem 0 1.5rem;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary-color);
            color: #333;
        }
        .product-card {
            transition: transform 0.3s, box-shadow 0.3s;
            height: 100%;
            border: 1px solid #dee2e6;
        }
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .card-img-product {
            height: 200px;
            object-fit: contain;
            padding: 15px;
            background-color: #f8f9fa;
        }
        
        /* Breadcrumb personalizado */
        .breadcrumb {
            background-color: #f8f9fa;
            padding: 0.75rem 1rem;
            border-radius: 0.375rem;
        }
        .breadcrumb-item a {
            color: var(--primary-color);
            text-decoration: none;
        }
        .breadcrumb-item a:hover {
            text-decoration: underline;
        }
        
        /* WhatsApp button hover */
        .btn-whatsapp:hover {
            background-color: #25D366;
            border-color: #25D366;
            color: white;
        }


.btn-whatsapp {
    color: #128C7E;
    border-color: #128C7E;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
}
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .product-title {
                font-size: 1.5rem;
            }
            .price-tag {
                font-size: 1.5rem;
            }
            .btn-comprar, .btn-whatsapp {
                width: 100%;
                margin-bottom: 10px;
            }
            .product-image {
                max-height: 350px;
            }
        }

/* Separación entre imágenes de producto */
.product-image-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
    margin-bottom: 20px; /* ¡ESTA ES LA CLAVE! */
}

/* Eliminar margen del último contenedor */
.product-image-container:last-child {
    margin-bottom: 0;
}

/* Para asegurar que las imágenes sean responsivas */
.product-image {
    max-height: 400px;
    width: 100%;
    object-fit: contain;
    display: block; /* Elimina espacio fantasma debajo de la imagen */
}