/* sty/stylesC.css - Estilos para catálogo de productos y cotizaciones */

/* ==========================================================================
   Base Styles & Resets
   ========================================================================== */
   * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ==========================================================================
   Container
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* ==========================================================================
   Headings
   ========================================================================== */
h1, h2, h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Categorías Filter (Left Sidebar)
   ========================================================================== */
.categorias-filter {
    padding: 1rem;
}

.categorias-filter h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: normal;
}

.categorias-filter ul {
    list-style: none;
}

.categorias-filter ul li {
    margin-bottom: 0.5rem;
}

.categorias-filter ul li a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
}

.categorias-filter ul li a:hover,
.categorias-filter ul li a.active {
    color: #007bff;
}

/* ==========================================================================
   Product Cards (Clientes)
   ========================================================================== */
.product-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card .card-img-top {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 1rem;
}

.product-card .card-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.add-to-list-form {
    margin: 0;
}

.add-to-list-form .form-control {
    width: 60px;
    padding: 0.25rem;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.add-to-list-form .btn-add {
    background-color: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.add-to-list-form .btn-add:hover {
    background-color: #218838;
}

/* ==========================================================================
   Cotización Lista (Clientes)
   ========================================================================== */
.cotizacion-lista-cliente {
    padding: 1rem;
}

.cotizacion-lista-cliente h3 {
    font-size: 1.1rem;
}

.cotizacion-lista-cliente .list-group-item {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.cotizacion-lista-cliente .form-control {
    width: 60px;
    padding: 0.25rem;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ==========================================================================
   Product List (Admin/Empleados)
   ========================================================================== */
.product-list .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.product-list .table th {
    background-color: #007bff;
    color: white;
    font-weight: normal;
    font-size: 0.95rem;
    padding: 0.5rem;
}

.product-list .table td {
    vertical-align: middle;
    font-size: 0.95rem;
    color: #333;
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.product-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* ==========================================================================
   Cotización Lista (Admin/Empleados)
   ========================================================================== */
.cotizacion-lista {
    margin-top: 2rem;
    padding: 1.5rem;
}

.cotizacion-lista h2 {
    font-size: 1.25rem;
    font-weight: normal;
}

.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.table th {
    background-color: #007bff;
    color: white;
    font-weight: normal;
    font-size: 0.95rem;
}

.table td {
    vertical-align: middle;
    font-size: 0.95rem;
    color: #333;
}

.table .form-control {
    width: 60px;
    padding: 0.25rem;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.table .btn-danger {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

.table tfoot {
    font-weight: normal;
}

.table tfoot td {
    background-color: #f8f9fa;
    color: #333;
}

/* ==========================================================================
   Mensajes de Éxito y Error
   ========================================================================== */
.mensaje-exito {
    background-color: #d4edda;
    color: #155724;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.mensaje-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-save {
    background-color: #28a745;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: white;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.btn-save:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    color: white;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .categorias-filter {
        margin-bottom: 1.5rem;
    }

    .product-card .card-img-top {
        height: 120px;
    }

    .product-card .card-title {
        font-size: 0.9rem;
    }

    .product-list .table th,
    .product-list .table td {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .product-img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 1rem;
    }

    .categorias-filter h3 {
        font-size: 1rem;
    }

    .categorias-filter ul li a {
        font-size: 0.9rem;
    }

    .btn-save,
    .btn-danger {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}