/* Estilos generales */
body {
    padding-bottom: 60px;
    background-color: #f8f9fa;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
}

/* Footer móvil */
.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-footer .footer-link {
    color: #6c757d;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-footer .footer-link:hover,
.mobile-footer .footer-link.active {
    color: #4947e8;
}

/* Slider */
.carousel-item img {
    height: 300px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 200px;
    }
}

/* Categorías */
.category-card {
    transition: transform 0.3s ease;
    cursor: pointer;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.category-card img {
    height: 120px;
    object-fit: cover;
}

/* Productos */
.product-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4947e8;
}

.product-price-old {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
}

.badge-sale {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4947e8;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Carrito */
.cart-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* Formularios */
.form-control:focus,
.form-select:focus {
    border-color: #4947e8;
    box-shadow: 0 0 0 0.2rem rgba(73, 71, 232, 0.25);
}

.btn-danger {
    background-color: #4947e8;
    border-color: #4947e8;
}

.btn-danger:hover {
    background-color: #3d3bc4;
    border-color: #3d3bc4;
}

.btn-danger:focus,
.btn-danger.active {
    background-color: #4947e8;
    border-color: #4947e8;
    box-shadow: 0 0 0 0.2rem rgba(73, 71, 232, 0.25);
}

.btn-outline-danger {
    color: #4947e8;
    border-color: #4947e8;
}

.btn-outline-danger:hover {
    color: white;
    background-color: #4947e8;
    border-color: #4947e8;
}

.btn-outline-danger:focus,
.btn-outline-danger.active {
    color: #4947e8;
    border-color: #4947e8;
    box-shadow: 0 0 0 0.2rem rgba(73, 71, 232, 0.25);
}

/* Filtros */
.filter-sidebar {
    background: white;
    border-radius: 10px;
    padding: 20px;
}

/* Checkout */
.order-summary {
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.order-summary .total-row {
    border-top: 2px solid #dee2e6;
    padding-top: 15px;
    margin-top: 15px;
}

/* Admin */
.admin-sidebar {
    background: #343a40;
    min-height: 100vh;
    color: white;
}

.admin-sidebar a {
    color: rgba(255,255,255,0.8);
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-sidebar a i {
    margin-right: 10px;
}

/* Estados de pedido */
.badge-pendiente { background-color: #ffc107; color: #000; }
.badge-preparando { background-color: #17a2b8; color: white; }
.badge-enviado { background-color: #007bff; color: white; }
.badge-entregado { background-color: #28a745; color: white; }
.badge-cancelado { background-color: #4947e8; color: white; }

/* Responsive adjustments */
@media (max-width: 576px) {
    .product-card img {
        height: 180px;
    }

    .category-card img {
        height: 100px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Loader */
.loader {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #4947e8;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
