:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4bb543;
    --warning-color: #fca311;
    --app-radius: 12px;
    --app-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --app-transition: all 0.3s ease;
}

/* app-bottom-nav, nav-item, nav-icon, active */


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /*padding-bottom: 80px;/*
    /* Espacio para la barra de navegación inferior */
}

/* Estilos para modo app en móvil y tablet btn-app */
@media (max-width: 992px) {
    body {
        background-color: #f5f5f7;
    }

    .container {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Header tipo app */
    .app-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: white;
        box-shadow: var(--app-shadow);
        border-radius: 0 0 var(--app-radius) var(--app-radius);
        padding: 10px 15px;
        margin-bottom: 15px;
    }

    /* Productos en grid tipo app */
    .product-card {
        border-radius: var(--app-radius);
        overflow: hidden;
        box-shadow: var(--app-shadow);
        transition: var(--app-transition);
        margin-bottom: 20px;
        background-color: white;
        border: none;
    }

    .product-card:hover {
        transform: translateY(-5px);
    }

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

    /* Bottom navigation bar tipo app */
     /* .app-bottom-nav {
        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;
        border-radius: 20px 20px 0 0;
        padding: 10px 0;
    }

    .nav-item {
        text-align: center;
        color: #666;
        text-decoration: none;
        font-size: 12px;
        transition: var(--app-transition);
    }

    .nav-item.active {
        color: var(--primary-color);
    }

    .nav-icon {
        font-size: 22px;
        display: block;
        margin-bottom: 5px;
    } */

    /* Botones tipo app para el offcanvas*/ 
    /* .btn-app {
        border-radius: 50px;
        padding: 10px 20px;
        font-weight: 600;
        transition: var(--app-transition);
    } */

    .btn-primary {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .btn-primary:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

    /* Ocultar elementos no esenciales en móvil */
    .desktop-only {
        display: none !important;
    }

    /* Menú lateral tipo app  offcanvas*/
    /* .offcanvas {
        border-radius: 20px 0 0 20px;
    } */

    /* Carrito tipo app */
    .cart-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background-color: #ff4757;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Estilos para desktop */
@media (min-width: 993px) {

    .app-bottom-nav,
    .mobile-only {
        display: none !important;
    }

    .product-card {
        height: 100%;
    }

    .product-img {
        height: 200px;
        object-fit: cover;
    }
}

/* Estilos compartidos */
.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4757;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.rating {
    color: #ffc107;
}

.section-title {
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Animaciones para modo app */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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


/*comienza los estilos para las categorias */
 .section-title {
            color: #333;
            font-weight: 600;
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--primary-color);
        }
        
        .categories-container {
            position: relative;
            overflow: hidden;
            padding: 10px 0;
        }
        
        .categories-scroll {
            display: flex;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
            padding-bottom: 10px; /* Espacio para scrollbar personalizada */
            cursor: grab;
        }
        
        .categories-scroll::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }
        
        .categories-scroll.dragging {
            cursor: grabbing;
            scroll-behavior: auto;
            user-select: none;
        }
        
        .category-card {
            flex: 0 0 auto;
            width: 160px;
            margin-right: 15px;
            transition: transform 0.2s, box-shadow 0.2s;
            border-radius: 10px;
        }
        
        .category-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
        }
        
        .category-card .card-body {
            padding: 1.5rem 0.5rem;
        }
        
        .category-card i {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
        }
        
        .category-card p {
            color: #555;
            font-weight: 500;
        }
        
        /* Estilos para los botones de navegación */
        .scroll-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: white;
            border: 1px solid #dee2e6;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            transition: all 0.3s;
        }
        
        .scroll-btn:hover {
            background-color: var(--primary-color);
            color: white;
        }
        
        .scroll-btn-left {
            left: 0;
        }
        
        .scroll-btn-right {
            right: 0;
        }
        
        .scroll-btn.hidden {
            opacity: 0;
            pointer-events: none;
        }
        
        /* Indicador de scroll */
        .scroll-indicator {
            height: 4px;
            background-color: #e9ecef;
            border-radius: 2px;
            margin-top: 15px;
            overflow: hidden;
        }
        
        .scroll-progress {
            height: 100%;
            width: 20%;
            background-color: var(--primary-color);
            border-radius: 2px;
            transition: width 0.3s;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .category-card {
                width: 130px;
            }
            
            .scroll-btn {
                width: 35px;
                height: 35px;
            }
        }

