﻿
.tamanoLetra {
    font-size:12px;    
}

.fondoText {
    background: #F4F4F6 !important;
    border: none;    
    color:black !important;
}

/* Contenedor de productos */
.container2 {
    width: 100%;
    margin: 0;
}

/* Columna de cada producto */
.producto-col {
    padding: 7px;
}

/* Tarjeta */
.producto-card {
    width: 100%;
    height: 360px;
    border-radius: 15px;
    border: 0px solid #aaaaaa;
    background: white;
    text-align: center;
    overflow: hidden;
    padding: 8px;
    transition: all 0.2s ease;
}

    /* Efecto al pasar el mouse */
    .producto-card:hover {
        box-shadow: 0 3px 10px rgba(0,0,0,0.15);
        transform: translateY(-2px);
    }

/* Imagen */
/*.producto-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
}*/

/* Descripción */
.producto-nombre {
    font-size: 12px;
    min-height: 26px;
    line-height: 18px;
    font-weight: bold;
    text-align: left;
   margin-left:5px;
}

.producto-subcategoria {
    font-size: 10px;
    min-height: 18px;
    line-height: 18px;
    font-weight: bold;
    text-align: left;
    color: #A0A0A8;
    margin-left: 5px;
}


/* Precio */
.producto-precio {
    font-weight: bold;
    font-size: 18px;
    text-align: left;
    margin-left: 5px;
}

/* Stock */
.producto-stock {
    font-size: 13px;
    margin-top: 2px;
}

/* Botón */
.producto-btn {
    background: #008C4B;
    color: white;
    border-radius: 20px;
    padding: 5px 15px;
    border: none;
    margin-top: 5px;    
}

/* Celulares */
@media (max-width: 576px) {

    .producto-col {
        padding: 4px;
    }

    .producto-card {
        height: 345px;
        padding: 5px;
        border-radius: 12px;
    }

    .producto-img {
        height: 135px;
    }

    .producto-nombre {
        font-size: 11px;
        line-height: 15px;
        min-height: 26px;
    }

    .producto-precio {
        font-size: 14px;
    }

    .producto-stock {
        font-size: 11px;
    }

    .producto-btn {
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* Celular muy pequeño */
@media (max-width: 380px) {

    .producto-card {
        height: 300px;
    }

    .producto-img {
        height: 120px;
    }

    .producto-btn {
        font-size: 10px;
        padding: 4px 6px;
    }
}

.producto-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
    cursor: pointer;
    /*border-radius: 20px;*/
}






.checkout-container {
    max-width: 1100px;
    margin: 15px auto;
    padding: 0 15px;
    font-family: Arial, sans-serif;
}


/* =========================
   RESUMEN
========================= */

.checkout-header {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.total-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 10px 25px;
    border-radius: 12px;
}

    .total-info > i {
        color: #009b18;
        font-size: 23px;
    }

    .total-info span {
        display: block;
        font-size: 12px;
        color: #777;
    }

    .total-info strong {
        font-size: 20px;
        color: #333;
    }


/* =========================
   FILA SUPERIOR
========================= */

.checkout-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 15px;
    margin-bottom: 15px;
}


/* =========================
   CARDS
========================= */

.checkout-card {
    background: #fff;
    border: 1px solid #e1e5e8;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 7px rgba(0,0,0,.04);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: bold;
    color: #30343b;
}

    .section-title i {
        color: #008c13;
        font-size: 17px;
    }


/* =========================
   SELECT
========================= */

.checkout-card .form-control {
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ccd3da;
    box-shadow: none;
}

    .checkout-card .form-control:focus {
        border-color: #009b18;
        box-shadow: 0 0 0 2px rgba(0,155,24,.08);
    }


/* =========================
   ENVÍO
========================= */

.shipping-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 40px;
}

.shipping-option {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
}

    .shipping-option input {
        margin-right: 5px;
    }

    .shipping-option span {
        font-weight: bold;
    }

    .shipping-option i {
        color: #008c13;
        margin-right: 4px;
    }


/* =========================
   DATOS DE ENTREGA
========================= */

.delivery-card {
    padding: 20px;
}

.delivery-header {
    border-bottom: 1px solid #edf0f2;
    padding-bottom: 13px;
    margin-bottom: 18px;
}

    .delivery-header > div {
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .delivery-header > div > i {
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            background: #edf8ef;
            color: #008c13;
            font-size: 18px;
        }

    .delivery-header strong {
        display: block;
        font-size: 16px;
        color: #30343b;
    }

    .delivery-header small {
        color: #888;
        font-size: 12px;
    }


/* =========================
   CAMPOS
========================= */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-item.full {
    grid-column: 1 / -1;
}

.form-item label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: bold;
    color: #444;
}

    .form-item label i {
        color: #008c13;
        margin-right: 5px;
    }

.form-item .form-control {
    width: 100%;
    height: 42px;
    border: 1px solid #d0d6dc;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
}

.form-item textarea.form-control {
    height: auto;
    resize: vertical;
}


/* =========================
   BOTONES
========================= */

.checkout-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.btn-confirm,
.btn-cancel {
    border: none;
    border-radius: 22px;
    padding: 10px 20px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

.btn-confirm {
    background: #20a943;
}

.btn-cancel {
    background: #dc3545;
}

.btn-confirm:hover {
    background: #188c36;
}

.btn-cancel:hover {
    background: #c82333;
}



@media (max-width: 768px) {

    .checkout-container {
        padding: 0 10px;
        margin-top: 10px;
    }

    .checkout-row {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-item.full {
        grid-column: auto;
    }

    .shipping-options {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .checkout-card {
        padding: 15px;
    }

    .total-info {
        width: 100%;
        justify-content: center;
    }

    .checkout-actions {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 12px 0;
        z-index: 10;
    }

    .btn-confirm,
    .btn-cancel {
        flex: 1;
    }
}



.producto-btn {
    width: 100%;
    margin-top: auto;
    margin-bottom: 5px;
    background: #0AA271;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 10px;
    font-weight: bold;

}




.categorias-lista {
    width: 100%;
    margin-left:15px;
}

.categoria-check {
    padding: 3px 0;
    margin: 0;
}

.check-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    user-select: none;
    /*width: 100%;*/
}

    /* Ocultar checkbox original */
    .check-container input {
        display: none;
    }

/* Checkbox personalizado */
.checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid #bdbdbd;
    border-radius: 4px;
    background: #fff;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Hover */
.check-container:hover .checkmark {
    border-color: #008C4A;
}

/* Seleccionado */
.check-container input:checked + .checkmark {
    background: #008C4A;
    border-color: #008C4A;
}

    /* ✓ */
    .check-container input:checked + .checkmark::after {
        content: "";
        position: absolute;
        left: 5px;
        top: 2px;
        width: 5px;
        height: 9px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

/* Texto */
.categoria-nombre {
    line-height: 18px;
    font-size:12px;
}

.categoria-cantidad {
    margin-left: 4px;
    color: #777;
    font-size: 13px;
    font-weight: 500;
}







.productos-wrapper {
    position: relative;
    width: 100%;
    padding: 0 45px;
}

/* Área donde aparecen los productos */
.productos-contenedor {
    width: 100%;
    overflow: hidden;
}

/* Cada página */
.productos-pagina {
    width: 100%;
}

/* Botones */
.btn-carrusel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #18387c;
    color: white;
    z-index: 10;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-carrusel:hover {
        background: #0d285c;
        transform: translateY(-50%) scale(1.08);
    }

.btn-anterior {
    left: 0;
}

.btn-siguiente {
    right: 0;
}

.btn-carrusel:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Indicador */
.indicador-productos {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    color: #777;
}





/* Footer */
.footer-principal {
    background: #0E1B30;
    color: white;
    padding: 40px 0 20px;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    margin-right: 30px;
}

    .footer-section h3 {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 18px;
        color: white;
    }

    .footer-section p {
        line-height: 1.6;
        margin-bottom: 10px;
    }

.footer-contenido {
    display: block;
}

.footer-info {
    color: white;
}

    .footer-info i {
        color: #FFD700;
        width: 22px;
        margin-right: 8px;
    }

.footer-link {
    color: white;
    text-decoration: none;
    display: inline-block;
}

    .footer-link:hover {
        color: #FFD700;
        text-decoration: none;
    }

.footer-red {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
}

    .footer-red i {
        width: 22px;
        color: #FFD700;
    }

    .footer-red:hover {
        color: #FFD700;
        text-decoration: none;
    }

.footer-icon {
    display: none;
}

.footer-copy {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 15px;
    margin-top: 10px;
    font-size: 13px;
}

@media (max-width: 767px) {

    .footer-principal {
        padding: 15px 15px 10px;
    }

    .footer-container {
        display: block;
    }

    .footer-section {
        min-width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .footer-titulo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 5px;
        margin: 0 !important;
        font-size: 15px !important;
        cursor: pointer;
    }

    .footer-icon {
        display: block;
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .footer-contenido {
        display: none;
        padding: 0 5px 15px;
    }

    .footer-section.activo .footer-contenido {
        display: block;
    }

    .footer-section.activo .footer-icon {
        transform: rotate(180deg);
    }

    .footer-section p {
        font-size: 13px;
        line-height: 1.5;
    }

    .footer-copy {
        font-size: 12px;
        margin-top: 10px;
    }
}







/* Buscador texto */

.buscador-productos {
    position: relative;
    width: 100%;
}

.lista-productos-busqueda {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.producto-busqueda-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

    .producto-busqueda-item:hover {
        background: #f5f5f5;
    }

.producto-busqueda-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 6px;
    margin-right: 10px;
}

.producto-busqueda-info {
    flex: 1;
}

.producto-busqueda-nombre {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.producto-busqueda-precio {
    font-size: 13px;
    font-weight: bold;
    color: #e00000;
    margin-top: 3px;
}



.buscador-productos {
    position: relative;
    width: 100%;
}

.icono-busqueda {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 14px;
    z-index: 2;
}

.input-busqueda {
    padding-left: 35px;
    border-radius: 8px;
}



/* CONFIGURACION FLECHAS CARRUSEL */
#carouselPublicidad .carousel-control-prev,
#carouselPublicidad .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    opacity: 0.8;
}

#carouselPublicidad .carousel-control-prev {
    left: 15px;
}

#carouselPublicidad .carousel-control-next {
    right: 15px;
}

    #carouselPublicidad .carousel-control-prev:hover,
    #carouselPublicidad .carousel-control-next:hover {
        opacity: 1;
    }

#carouselPublicidad .carousel-control-prev-icon,
#carouselPublicidad .carousel-control-next-icon {
    width: 22px;
    height: 22px;
}

#carouselPublicidad .carousel-control-prev,
#carouselPublicidad .carousel-control-next {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Mostrar flechas al pasar el mouse */
#carouselPublicidad:hover .carousel-control-prev,
#carouselPublicidad:hover .carousel-control-next {
    opacity: 1;
}

/* Diseño de las flechas */
#carouselPublicidad .carousel-control-prev,
#carouselPublicidad .carousel-control-next {
    width: 45px;
    height: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
}

#carouselPublicidad .carousel-control-prev {
    left: 15px;
}

#carouselPublicidad .carousel-control-next {
    right: 15px;
}

    #carouselPublicidad .carousel-control-prev:hover,
    #carouselPublicidad .carousel-control-next:hover {
        background: rgba(0, 0, 0, 0.7);
    }

#carouselPublicidad .carousel-control-prev-icon,
#carouselPublicidad .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}



/* IMAGENES MINIATURAS */
.miniaturas-producto {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding: 5px;
}

.miniatura-item {
    width: 65px;
    height: 65px;
    flex: 0 0 65px;
    padding: 2px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    transition: all .2s ease;
}

    .miniatura-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 5px;
    }

    /* MINIATURA SELECCIONADA */
    .miniatura-item.active {
        border: 3px solid #18387c;
        box-shadow: 0 0 0 1px rgba(24, 56, 124, .15);
    }

    .miniatura-item:hover {
        border-color: #18387c;
    }




/* FORMATO CANTIDAD TOTAL */
.cantidad-control {
    width: 140px;
}

.btn-cantidad {
    width: 38px;
    height: 31px;
    font-weight: bold;
    padding: 0;
}

#CantidadTotal {
    font-weight: bold;
    font-size: 15px;
    background-color: #fff;
}

    /* Quitar las flechas del input number */
    #CantidadTotal::-webkit-inner-spin-button,
    #CantidadTotal::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

#CantidadTotal {
    -moz-appearance: textfield;
}




/* FORMATO PARA DISMINUIR, AUMENTAR CANTIDAD */
.cantidad-control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 95px;
    margin: auto;
}

.btn-cantidad {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    line-height: 20px;
}

.btn-menos {
    border-radius: 10px 0 0 10px;
    border-right: none;
}

.btn-mas {
    border-radius: 0 10px 10px 0;
    border-left: none;
}

.input-cantidad {
    width: 40px;
    height: 24px;
    padding: 0;
    text-align: center;
    border: 1px solid #ddd;
    border-left: 0;
    border-right: 0;
    font-size: 13px;
    background-color: white;
    outline: none;
}




/* FORMATO IMAGEN MINIATURA */
.imagen-mini-producto {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 2px;
    display: block;
    margin: auto;
}



/* FORMATO ACORDEON PARA CATEGORIAS */
.categoria-padre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    color: #636363;
    border-bottom: 0px solid #eeeeee;
    transition: background-color 0.2s ease;
}

    .categoria-padre:hover {
        background-color: #f7f7f7;
    }

.categoria-titulo {
    flex: 1;
}

.icono-acordeon {
    font-size: 11px;
    transition: transform 0.25s ease;
    margin-right: 5px;
}

.categoria-hijos {
    display: none;
    padding: 3px 0 5px 10px;
}

    .categoria-hijos.abierto {
        display: block;
    }

.categoria-padre.abierto .icono-acordeon {
    transform: rotate(180deg);
}






/* =========================
   PANEL FILTROS
========================= */

.filtro-card {
    border: 1px solid #bab7b7;
    border-radius: 15px;
    overflow: hidden;
}

.titulo-filtros {
    font-weight: bold;
    font-size: 14px;
}

    .titulo-filtros i {
        color: #39e21f;
    }

.titulo-sucursal {
    font-weight: bold;
    color: #008C4B;
    font-size: 14px;
}

.select-sucursal {
    border-radius: 20px;
    border-color: #008C4B;
    font-size: 12px;
}


/* =========================
   BOTÓN FILTROS MOBILE
========================= */

.btn-filtros-mobile {
    width: 100%;
    height: 42px;
    border: 1px solid #008C4B;
    background: white;
    color: #008C4B;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    text-align: left;
    padding: 0 15px;
    transition: all .2s ease;
}

    .btn-filtros-mobile i {
        margin-right: 8px;
    }

    .btn-filtros-mobile:hover,
    .btn-filtros-mobile:active {
        background: #008C4B;
        color: white;
    }


/* =========================
   MODAL
========================= */

.modal-filtros {
    border-radius: 18px;
    border: none;
    overflow: hidden;
}

    .modal-filtros .modal-header {
        padding: 12px 18px;
        background: #008C4B;
        color: white;
        border-bottom: none;
    }

    .modal-filtros .modal-title {
        font-size: 16px;
        font-weight: bold;
    }

    .modal-filtros .modal-header .close {
        color: white;
        opacity: 1;
        font-size: 25px;
    }

    .modal-filtros .modal-body {
        padding: 18px;
    }

    .modal-filtros hr {
        margin: 12px 0;
        border-top: 1px solid #eeeeee;
    }


/* =========================
   BOTONES MODAL
========================= */

.btn-limpiar-filtros {
    border: 1px solid #888;
    background: white;
    color: #555;
    border-radius: 10px;
    font-size: 13px;
}

.btn-aplicar-filtros {
    background: #008C4B;
    color: white;
    border-radius: 10px;
    font-size: 13px;
    padding-left: 18px;
    padding-right: 18px;
}

    .btn-aplicar-filtros:hover {
        color: white;
        background: #006f3c;
    }

.btn-filtros-mobile {
    width: auto;
    min-width: 100px;
    height: 35px;
    border: 1px solid #008C4B;
    background: white;
    color: #008C4B;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    padding: 0 15px;
    transition: all .2s ease;
}

    .btn-filtros-mobile i {
        margin-right: 8px;
    }

    .btn-filtros-mobile:hover,
    .btn-filtros-mobile:active {
        background: #008C4B;
        color: white;
    }





/* ===================================
   BARRA PRINCIPAL
=================================== */

.barra-principal {
    width: 100%;
    background: #EFEFF1;
  /*  border-bottom: 1px solid #e5e5e5;*/
    padding: 10px 0;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.barra-contenido {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}


/* ===================================
   BUSCADOR
=================================== */

.buscador-container {
    position: relative;
    width: 55%;
    max-width: 650px;
}

.input-buscador {
    width: 100%;
    height: 42px;
    border: 1px solid #d5d5d5;
    border-radius: 22px;
    padding: 0 20px 0 45px;
    font-size: 13px;
    outline: none;
    background: #f8f8f8;
    transition: all .2s ease;
}

    .input-buscador:focus {
        background: white;
        border-color: #008C4B;
        box-shadow: 0 0 0 2px rgba(0, 140, 75, .08);
    }

.icono-buscador {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 15px;
    z-index: 2;
}


/* ===================================
   CARRITO
=================================== */

.carrito-container {
    position: relative;
    margin-left: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all .2s ease;
}

    .carrito-container:hover {
        background: #f0f8f4;
    }

.icono-carrito {
    color: #008C4B;
    font-size: 21px;
}


/* ===================================
   CONTADOR
=================================== */

.contador-carrito {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e21f26;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid white;
}

@media (max-width: 767.98px) {

    .barra-principal {
        padding: 8px 0;
        margin-bottom: 10px;
    }

    .barra-contenido {
        padding: 0 10px;
    }

    .buscador-container {
        width: calc(100% - 55px);
        max-width: none;
    }

    .input-buscador {
        height: 40px;
        font-size: 12px;
    }

    .carrito-container {
        margin-left: 8px;
        width: 42px;
        height: 42px;
    }

    .icono-carrito {
        font-size: 20px;
    }

    .icono-inicio {
        left: 5px;
        width: 38px;
        height: 38px;
    }

        .icono-inicio i {
            font-size: 18px;
        }
}



/* 
   FORMATO ICONO DE INICIO SESION
*/
.login-container {
    height: 42px;
    margin-left: 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 21px;
    color: #008C4B;
    cursor: pointer;
    transition: all .2s ease;
}

    .login-container:hover {
        background: #f0f8f4;
    }

.icono-login {
    font-size: 19px;
}

.texto-login {
    font-size: 13px;
    font-weight: bold;
}



/* ================================
   MODAL LOGIN
================================ */

.modal-login {
    border: none;
    border-radius: 18px;
    overflow: hidden;
}


    /* HEADER */

    .modal-login .modal-header {
        background: #008C4B;
        color: white;
        border-bottom: none;
        padding: 15px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        .modal-login .modal-header .close {
            color: white;
            opacity: 1;
            font-size: 25px;
        }

.icono-login-modal {
    font-size: 21px;
    margin-right: 7px;
}

.titulo-login {
    font-size: 17px;
    font-weight: bold;
}


/* BODY */

.modal-login .modal-body {
    padding: 25px;
}

.login-mensaje {
    text-align: center;
    color: #777;
    font-size: 13px;
    margin-bottom: 20px;
}


/* LABEL */

.modal-login label {
    font-size: 13px;
    font-weight: bold;
    color: #444;
}


/* INPUT */

.input-login {
    position: relative;
}

    .input-login > i:first-child {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #008C4B;
        z-index: 2;
    }

    .input-login .form-control {
        height: 42px;
        border-radius: 21px;
        border: 1px solid #d5d5d5;
        padding-left: 40px;
        padding-right: 40px;
        font-size: 13px;
    }

        .input-login .form-control:focus {
            border-color: #008C4B;
            box-shadow: 0 0 0 2px rgba(0, 140, 75, .08);
        }


/* VER PASSWORD */

.ver-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
}

    .ver-password:hover {
        color: #008C4B;
    }


/* BOTÓN */

.btn-login {
    width: 100%;
    height: 42px;
    margin-top: 8px;
    border: none;
    border-radius: 21px;
    background: #008C4B;
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: all .2s ease;
}

    .btn-login:hover {
        background: #006f3c;
        color: white;
    }



.icono-inicio {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #008C4B;
    cursor: pointer;
    transition: all .2s ease;
}

    .icono-inicio i {
        font-size: 20px;
    }

    .icono-inicio:hover {
        background: #f0f8f4;
        color: #006f3c;
    }


#tbpedidofinal,
#tbpedidofinal tr,
#tbpedidofinal td {
    border: none !important;
}

    #tbpedidofinal tbody tr td:first-child {
        
        color: #54545C !important;
    }



#tbpedidoconfirmado,
#tbpedidoconfirmado tr,
#tbpedidoconfirmado td {
    border: none !important;
}

    #tbpedidoconfirmado tbody tr td:first-child {
        color: white !important;
    }



    #tbpedidoconfirmado tbody td:nth-child(2) {
        font-size: 16px;
        font-weight: bold;
        text-align: right;
    }



@media (min-width:1000px) {
    .ConfModalQr {
        max-width: 30%;
    }
}

@media (max-width:1000px) {
    .ConfModalQr {
        min-width: 70%;
    }
}



.input-con-label {
    position: relative;
    border: none;
    border-radius: 12px;
    background-color: #F4F4F6;
    padding: 20px 10px 2px 10px;
}

    .input-con-label label {
        position: absolute;
        top: 4px;
        left: 10px;
        margin: 0;
        font-size: 11px;
        font-weight: bold;
        color: #A0A0A8;
        line-height: 1;
    }

    .input-con-label input {
        border: none !important;
        box-shadow: none !important;
        padding: 0;
        height: 25px;
        font-size: 14px;
        background: transparent !important;
        color: #000;
    }



.scroll-pedido {
    overflow-x: auto;
    scrollbar-width: none;
}


/*.categoria-nombre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}*/

.categoria-cantidad {
    margin-left: auto;
    color: #777;
    font-size: 12px;
    font-weight: normal;
}





/* Columna de cada producto */
.producto-col {
    display: flex;
    padding-bottom: 15px;
}

/* Tarjeta del producto */
.producto-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 12px;
    border-radius: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-sizing: border-box;
}

/* Nombre del producto: reservar espacio para 2 filas */
.producto-nombre {
    font-size: 14px;
    line-height: 20px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-bottom: 8px;
}

/* Precio del producto */
.producto-precio {
    font-size: 16px;
    font-weight: bold;
    color: #18387c;
    margin-top: auto;
    margin-bottom: 10px;
}

/* Botón Agregar siempre abajo */
.producto-btn {
    width: 100%;
    margin-top: auto;
    color: white;
    border-radius: 20px;
    padding: 8px;
    font-weight: bold;
}

/* Imagen del producto */
.producto-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
   /* border-radius:20px;*/
}



.card-barra-principal {
    background-color: #ffffff;
    border: none;
    border-radius: 25px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.10);
    overflow: visible;
    margin-top: 20px;
}

.barra-principal {
    width: 100%;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 10px 15px;
}

.barra-contenido {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}




.imagen-producto-zoom {
    cursor: zoom-in;
    transform-origin: center center;
    transition: none !important;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

    .imagen-producto-zoom.zoom-activo {
        cursor: grab;
    }



#demo .carousel-control-prev,
#demo .carousel-control-next {
    width: 40px !important;
    height: 40px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%);
    background-color: transparent !important;
    border-radius: 50%;
    opacity: 1;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flecha izquierda */
#demo .carousel-control-prev {
    left: 5px;
}

/* Flecha derecha */
#demo .carousel-control-next {
    right: 5px;
}







@media (max-width: 767px) {

    /* CARD PRINCIPAL */
    .card-barra-principal {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 8px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .barra-principal {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* CONTENEDOR */
    .barra-contenido {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 45px auto;
        column-gap: 10px;
        row-gap: 8px;
        align-items: start !important;
        width: 100% !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* LOGO ARRIBA A LA IZQUIERDA */
    .icono-inicio {
        grid-column: 1;
        grid-row: 1;
        justify-self: start !important;
        align-self: start !important;
      
        max-width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        transform: none !important;
        line-height: 0;
    }

        .icono-inicio img {
            display: block !important;
            width: 150px !important;
            max-width: 100% !important;
            height: 45px !important;
            object-fit: contain;
            object-position: left center;
            margin: 0 !important;
            padding: 0 !important;
        }

    /* CARRITO ARRIBA A LA DERECHA */
    .carrito-container {
        grid-column: 2;
        grid-row: 1;
        justify-self: end !important;
        align-self: center !important;
        margin: 0 5px 0 0 !important;
        padding: 0 !important;
        position: relative !important;
        transform: none !important;
    }

    /* BUSCADOR ABAJO, DENTRO DEL CARD */
    .buscador-container {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    .input-buscador {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .card.card-barra-principal,
    .card.card-barra-principal .barra-principal,
    .card.card-barra-principal .barra-contenido {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .card.card-barra-principal {
        padding: 0 !important;
        margin: 0 !important;
        min-height: 0 !important;
    }

        .card.card-barra-principal .barra-principal {
            padding: 0 !important;
            margin: 0 !important;
        }

    .card.card-barra-principal {
        margin-top: 15px !important;
    }

}


/*@media (max-width: 767px) {

    .barra-contenido {
        display: grid !important;
        grid-template-columns: 1fr auto;
        grid-template-rows: 45px auto;
        align-items: start !important;
        column-gap: 10px;
        row-gap: 8px;
        width: 100%;
    }*/

    /* LOGO: FIJO ARRIBA A LA IZQUIERDA */
    /*.icono-inicio {
        grid-column: 1;
        grid-row: 1;
        display: block !important;
        align-self: start !important;
        justify-self: start;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        transform: none !important;
        line-height: 0;
    }

        .icono-inicio img {
            display: block;
            width: 150px !important;
            height: 45px !important;
            margin: 0 !important;
            padding: 0 !important;
            object-fit: contain;
        }*/

    /* CARRITO: FIJO ARRIBA A LA DERECHA */
    /*.carrito-container {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: center !important;
        margin: 0 !important;
        position: relative;
        transform: none !important;
    }*/

    /* BUSCADOR: SEGUNDA FILA COMPLETA */
    /*.buscador-container {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        position: relative;
        transform: none !important;
    }

    .input-buscador {
        width: 100%;
        box-sizing: border-box;
    }
}*/