.product-filter>.container {
    display: flex;
    gap: 20px;
}

/* ========== SIDEBAR FILTROS ========== */
.filters {
    width: 250px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);

}

.filters h3 {
    color: #1a1a1a;
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #003399;
    padding-bottom: 5px;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #003399;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
}

.filter-toggle::after {
    content: "▼";
    position: absolute;
    right: 0;
    top: 8px;
    transition: transform 0.3s;
}

.filter-toggle.active::after {
    transform: rotate(-180deg);
}

.filter-options {
    display: block;
    padding-left: 10px;
    margin-top: 5px;
}

.filter-options span {
    color: #666;
    margin-left: 5px;
}

.filter-options label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
}

/* ========== HEADER DE PRODUCTOS ========== */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.products-header .products-count {
    font-weight: bold;
    color: #003399;
}

.products-header .products-sort label {
    margin-right: 5px;
    font-size: 14px;
    color: #333;
}

.products-header .products-sort select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

/* ========== PRODUCTOS ========== */
.products {
    flex: 1;
    margin-bottom: 50px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.pagination {
    margin: 20px 0 50px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
}

.pagination a:hover,
.pagination a.active {
    background-color: #003399;
    color: #fff;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;


}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-card h4 {
    font-size: 16px;
    margin: 10px 0 5px;
    color: #003399;
    font-weight: 600;
}

.product-card p {
    font-size: 20px;
    font-weight: bold;
    color: #b67702;

}

.product-actions {
    margin-top: auto;
    width: 100%;
}

.add-to-cart {
    width: 100%;
    padding: 10px 0;
    background-color: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.product-card button,
.add-to-cart {
    margin-top: 10px;
    padding: 8px 12px;
    background: #b67702;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background-color: #f0f8ff;
}

.product-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image-container img {
    transform: scale(1.1);
}

.add-to-cart:hover,
.product-card button:hover {
    background: #128C7E;
    transform: scale(1.05);
}

.product-card .add-to-cart {
    display: none;
}

.product-card:hover .add-to-cart {
    display: inline-block;
}

/* ========== MINI CART MODAL ========== */
#mini-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

#mini-cart.open {
    right: 0;
}

/* HEADER del mini-cart */
.mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    color: #070707;
    padding: 15px;
    border-bottom: 1px solid #002080;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.mini-cart-header a {
    color: #000000;
    font-size: 22px;
    margin-right: 5px;
    text-decoration: none;
    background: transparent;
    transition: transform 0.2s ease;
}

.mini-cart-header a:hover {
    transform: scale(1.2);
}

.mini-cart-header h3 {
    font-size: 18px;
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

.mini-cart-header .close-btn {
    background: transparent;
    border: none;
    color: #ff505f;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mini-cart-header .close-btn:hover {
    color: #ff4d4d;
}

/* LISTA DE PRODUCTOS */
.mini-cart-items {
    flex: 1;
    background-color: #f4f4f4;
    overflow-y: auto;
    padding: 15px 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.cart-item-details {
    flex: 1;
    margin-right: 10px;
}

.cart-item-details strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Cantidad */
.quantity-selector button {
    background-color: #003399;
    color: #fff;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 3px;
    transition: background 0.3s, transform 0.2s;
}

.quantity-selector button:hover {
    background-color: #001f70;
    transform: scale(1.1);
}

.quantity-selector input {
    width: 40px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin: 0 5px;
    padding: 3px 0;
}

/* Precio */
.cart-item-price {
    font-weight: bold;
    margin-right: 10px;
    min-width: 60px;
    text-align: right;
}

/* Eliminar */
.cart-item-remove {
    background: transparent;
    border: none;
    color: #ff4d4f;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
}

.cart-item-remove:hover {
    color: #d9363e;
    transform: scale(1.2);
}

/* FOOTER */
.mini-cart-footer {
    padding: 15px 20px;
    border-top: 1px solid #0a0000;
    background-color: #ffffff;
    text-align: center;
}

.mini-cart-footer .total {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.mini-cart-footer .btn-a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.2s;
}

.mini-cart-footer .btn-a:hover {
    background-color: #128C7E;
}

/* Scrollbar estilizada */
.mini-cart-items::-webkit-scrollbar {
    width: 6px;
}

.mini-cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.mini-cart-items::-webkit-scrollbar-thumb {
    background: #003399;
    border-radius: 3px;
}

/* ========== FIN MINI CART MODAL ========== */

/*boton comprobante*/
.btn-comprobante-flotante {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;

    width: 160px;
    height: 160px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border: 7px solid #ffbd24;
    border-radius: 50%;

    background: #f5a400;
    color: #0a0000;

    text-align: center;
    text-decoration: none;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.30),
        0 0 18px rgba(245, 164, 0, 0.55);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-comprobante-flotante i {
    margin-bottom: 8px;
    font-size: 34px;
}

.btn-comprobante-flotante:hover {
    transform: translateY(-6px) scale(1.04);
    background: #e99700;
    color: #ffffff;

    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(245, 164, 0, 0.75);
}

.btn-comprobante-flotante:active {
    transform: scale(0.96);
}

@media (max-width: 768px) {
    .btn-comprobante-flotante {
        right: 18px;
        bottom: 18px;

        width: 90px;
        height: 90px;

        border-width: 5px;
        font-size: 12px;
    }

    .btn-comprobante-flotante i {
        margin-bottom: 5px;
        font-size: 24px;
    }
}

/* ==========================================
   PRODUCTOS RESPONSIVE
========================================== */

@media screen and (max-width:768px) {

    .product-filter {
        padding: 20px 0;
    }

    .product-filter>.container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 0 15px;
    }

    .filters {
        width: 100%;
        padding: 15px;
    }

    .products {
        width: 100%;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .products-sort {
        width: 100%;
    }

    .products-sort select {
        width: 100%;
    }

    .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        padding: 10px;
    }

    .product-image-container {
        height: 150px;
    }

    .product-card h4 {
        font-size: 14px;
    }

    .product-card p {
        font-size: 18px;
    }

    .product-card .add-to-cart {
        display: block;
    }

    .product-card:hover {
        transform: none;
    }

    .product-card:hover .product-image-container img {
        transform: none;
    }

    .btn-comprobante-flotante {

        width: 90px;
        height: 90px;

        right: 15px;
        bottom: 15px;

        font-size: 11px;
    }

    .btn-comprobante-flotante i {
        font-size: 22px;
    }

}

@media screen and (max-width:480px) {

    .product-list {
        grid-template-columns: 1fr;
    }

    .product-card {
        max-width: 320px;
        margin: auto;
    }

    .product-image-container {
        height: 220px;
    }

}

/* ==========================================
   FILTROS - MARCAS Y CATEGORÍAS
========================================== */

.filter-item {
    display: grid;
    grid-template-columns: 16px 1fr 35px;
    align-items: start;
    column-gap: 7px;
    width: 100%;
    margin-bottom: 7px;
    cursor: pointer;
}

/* Checkbox */
.filter-item input[type="checkbox"] {
    margin: 2px 0 0 0;
}

/* Nombre de marca o categoría */
.filter-name {
    text-align: left;
    line-height: 1.25;
}

/* Cantidad (0), (1), (5), etc. */
.filter-count {
    text-align: right;
    white-space: nowrap;
}

/* CORRECCIÓN FINAL DE FILTROS */

.filter-options .filter-item {
    display: grid !important;
    grid-template-columns: 16px 1fr 35px !important;
    column-gap: 7px !important;
    width: 100% !important;
    align-items: start !important;
}

/* Checkbox */
.filter-options .filter-item input[type="checkbox"] {
    margin: 2px 0 0 0 !important;
}

/* SOLO EL NOMBRE A LA IZQUIERDA */
.filter-options .filter-item .filter-name {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    justify-self: stretch !important;
}

/* EL (0) SE QUEDA A LA DERECHA */
.filter-options .filter-item .filter-count {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    justify-self: end !important;
    white-space: nowrap !important;
}

.product-filter > .container {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.products {
    flex: 1;
    min-width: 0;
}