/* Estilo de los productos en el catálogo */
.pos-product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Estilo de cada producto */
.pos-product-card {
    background-color: #fff;
    padding: 15px;
    width: 18%; /* Ajusta el tamaño del producto en la grilla */
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.pos-product-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.pos-product-card h4 {
    font-size: 16px;
    margin: 10px 0;
}

.pos-product-card p {
    font-size: 14px;
    color: #333;
}

.pos-product-card:hover {
    transform: scale(1.05);
    background-color: #f1f1f1; /* Color de fondo cuando se pasa el mouse */
}

/* Para pantallas grandes (escritorio y tabletas en orientación horizontal) */
@media screen and (min-width: 1024px) {
    .pos-product-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 productos por fila */
    }
}

/* Para tabletas en orientación vertical */
@media screen and (max-width: 1024px) {
    .pos-product-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 productos por fila */
    }
}

/* Para móviles grandes */
@media screen and (max-width: 768px) {
    .pos-product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 productos por fila */
        gap: 15px; /* Reducir el espacio entre productos */
    }

    .pos-product-card {
        width: 48%; /* Para asegurarse de que los productos se ajusten bien */
        padding: 12px;
    }
}

/* Para móviles pequeños */
@media screen and (max-width: 480px) {
    .pos-product-grid {
        grid-template-columns: 1fr; /* 1 producto por fila */
        gap: 12px; /* Reducir el espacio entre productos */
    }

    .pos-product-card {
        width: 100%; /* Para que los productos ocupen toda la fila */
        padding: 10px;
    }

    .pos-product-card h4 {
        font-size: 14px;
        margin: 8px 0;
    }

    .pos-product-card p {
        font-size: 12px;
    }

    /* Mejorar la visibilidad del campo de búsqueda */
    .pos-search-input,
    .pos-category-filter,
    .pos-search-button {
        font-size: 16px;
        padding: 12px;
        margin-bottom: 12px;
        width: 100%;
    }
}

/* Estilo del carrito en el panel derecho */
.pos-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px; /* Este tamaño se ajustará según el dispositivo */
    height: 100%;
    background-color: #f7f7f7;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    padding: 20px;
    overflow-y: auto;
    z-index: 9999;
    border-radius: 10px;
}

/* Para móviles pequeños */
@media screen and (max-width: 480px) {
    .pos-cart {
        width: 100%;  /* El carrito ocupará todo el ancho en pantallas pequeñas */
        position: relative;
        box-shadow: none;
        border-radius: 10px;
    }

    .pos-cart h3 {
        font-size: 18px; /* Ajustar el tamaño de título */
        margin-bottom: 15px;
    }

    .cart-content {
        font-size: 14px; /* Mejorar la visibilidad del contenido */
    }

    .pos-cart .cart-content {
        font-size: 14px; /* Ajuste del tamaño de la fuente en el carrito */
    }

    /* Mejorar los botones en la parte inferior */
    .pos-search-button,
    .pos-search-input {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }
}
/* Estilo de los productos en el catálogo */
.pos-product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Estilo de cada producto */
.pos-product-card {
    background-color: #fff;
    padding: 15px;
    width: 18%; /* Ajusta el tamaño del producto en la grilla */
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.pos-product-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.pos-product-card h4 {
    font-size: 16px;
    margin: 10px 0;
}

.pos-product-card p {
    font-size: 14px;
    color: #333;
}

.pos-product-card:hover {
    transform: scale(1.05);
    background-color: #f1f1f1; /* Color de fondo cuando se pasa el mouse */
}

/* Estilos para el carrito en el panel derecho */
.pos-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px; /* Este tamaño se ajustará según el dispositivo */
    height: 100%;
    background-color: #f7f7f7;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    padding: 20px;
    overflow-y: auto;
    z-index: 9999;
    border-radius: 10px;
}

/* Responsividad */
@media screen and (max-width: 768px) {
    .pos-product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 productos por fila */
        gap: 15px;
    }

    .pos-product-card {
        width: 48%;
    }
}

@media screen and (max-width: 480px) {
    .pos-product-grid {
        grid-template-columns: 1fr; /* 1 producto por fila */
        gap: 12px;
    }

    .pos-product-card {
        width: 100%;
        padding: 10px;
    }

    .pos-cart {
        width: 100%;
        position: relative;
    }

    .pos-cart h3 {
        font-size: 18px;
    }

    .cart-content {
        font-size: 14px;
    }
}
/* Estilo de los productos en el catálogo */
.pos-product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Estilo de cada producto */
.pos-product-card {
    background-color: #fff;
    padding: 15px;
    width: 18%; /* Ajusta el tamaño del producto en la grilla */
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.pos-product-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.pos-product-card h4 {
    font-size: 16px;
    margin: 10px 0;
}

.pos-product-card p {
    font-size: 14px;
    color: #333;
}

.pos-product-card:hover {
    transform: scale(1.05);
    background-color: #f1f1f1; /* Color de fondo cuando se pasa el mouse */
}

/* Estilos para el carrito en el panel derecho */
.pos-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px; /* Este tamaño se ajustará según el dispositivo */
    height: 100%;
    background-color: #f7f7f7;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    padding: 20px;
    overflow-y: auto;
    z-index: 9999;
    border-radius: 10px;
}

/* Responsividad */
@media screen and (max-width: 768px) {
    .pos-product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 productos por fila */
        gap: 15px;
    }

    .pos-product-card {
        width: 48%;
    }
}

@media screen and (max-width: 480px) {
    .pos-product-grid {
        grid-template-columns: 1fr; /* 1 producto por fila */
        gap: 12px;
    }

    .pos-product-card {
        width: 100%;
        padding: 10px;
    }

    .pos-cart {
        width: 100%;
        position: relative;
    }

    .pos-cart h3 {
        font-size: 18px;
    }

    .cart-content {
        font-size: 14px;
    }
}
