﻿/* Menú fijo superior */
html {
    scroll-behavior: smooth;
}



#menu-catalogo {
    position: sticky;
    top: 118px;
    background-color: white;
    z-index: 998;
    /*padding: 10px 20px;*/
    padding-top: 20px;
    border-bottom: 1px solid #eee;
}

    #menu-catalogo ul {
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0;
        overflow-x: auto;
    }

    #menu-catalogo li {
        margin-right: 20px;
    }

    #menu-catalogo a {
        text-decoration: none;
        font-weight: bold;
        color: black;
        transition: color 0.3s;
    }

        #menu-catalogo a.active {
            border-bottom: 2px solid red;
            color: red;
        }


.catalogo {
    /*padding-left: 10px;
    padding-right: 10px;*/
    font-size: 12px;
}

h2 {
    padding: 80px 20px 10px;
    padding: 10px 10px 10px 10px;
    margin: 0;
    font-size: 1.3em;
    color: #850117;
    font-weight: 700;
    /*scroll-margin-top: 100px;*/
}

.productos-grid {
    display: grid;
    gap: 20px;
    /*padding: 0 10px 10px;*/
    grid-template-columns: 1fr;
    scroll-margin-top: 260px;
}


.total-precio {
    font-weight: 600 !important;
    text-align: center !important;
}

.producto-item {
    /*background-color: #fff;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      transition: transform 0.2s;
      overflow: hidden;*/
    display: flex;
    background-color: #fff;
    /*border-radius: 10px;*/
    /*box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);*/
    /*overflow: hidden;*/
    transition: transform 0.2s;
    padding: 10px;
    gap: 10px;
    /*align-items: center;*/
    border: 1px solid #e9e9e9;
    cursor: pointer;
}

    .producto-item:hover {
        /*transform: scale(1.01);
        box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.3);*/
    }

    .producto-item img {
        width: 100px;
        height: 100px;
        object-fit: contain;
        display: block;
        border: 1px solid #e9e9e9;
        background-color: #fff;
        cursor: zoom-in;
        border-radius: 8px;
    }

    .producto-item .produc-descuentoA {
        position: absolute;
        top: -10px;
        right: 0;
        background: #fcd34d;
        color: #000;
        font-weight: bold;
        padding: 2px 8px;
        border-radius: 8px;
        font-size: 1em;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border: 1px solid #cecece;
        /*bottom:0;*/
    }
        .producto-item .produc-descuentoB {
        position: absolute;
        /*top: -5px;*/
        right: 0;
        background: #28d90d;
        color: #000;
        font-weight: bold;
        padding: 2px 8px;
        border-radius: 8px;
        font-size: 1em;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border: 1px solid #cecece;
        bottom:-10px;
        text-align: center;
    }
.old-price {
    text-decoration: line-through;
    color: #d34213;
    font-size: 1em;
    padding-bottom: 10px;
    font-weight: 600;
}


/* Contenido a la derecha */
.detalle {
    /*flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;*/
    /*display: flex;*/
    flex-direction: column;
    /*justify-content: space-between;*/
    height: 100%;
    padding-right: 10px;
    display: block;
    /*width: 100%;
min-width:100%;*/
    flex: 1;
}

    .detalle p {
        margin: 0;
        padding: 0;
        line-height: 1.2; /* Opcional: mejora legibilidad */
    }

    .detalle h3 {
        font-weight: 600;
        font-size: 1.1em;
        margin: 0;
        color: #333;
        max-width: 100%;
    }

    .detalle .codigo {
        font-size: 0.8rem;
        color: #666;
    }

.detalle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px; /* espacio entre filas y columnas */
    margin-bottom: 8px;
    width: 100%;
    min-width: 100%;
}

    .detalle-grid p {
        margin: 0;
        font-size: 0.9rem;
        color: #666;
        padding: 0;
        line-height: 1; /* Opcional: mejora legibilidad */
    }

.detalle-grid-labelprecios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px; /* espacio entre filas y columnas */
    margin-bottom: 2px;
    width: 100%;
    min-width: 100%;
    text-align: center;
    padding: 0;
}

    .detalle-grid-labelprecios span {
        font-size: 1em;
        font-weight: 600;
        color: black;
    }


.combo {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9em;
    cursor: pointer;
    height: 30px;
}

.btn-qty {
    width: 40px;
    height: 30px;
    background: #850117;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    color: white;
}

.btn-modal {
    height: 40px;
    background: #850117;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    color: white;
    padding:10px;
}

.btn-modal-agregar {
    height: 40px;
    background: #850117;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    color: white;
    padding:10px;
}

.txtqty {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 1.2em;
    width: 20px;
    text-align: center;
    font-weight: 600;
}

.txtqtysel {
    padding: 50px;
    font-size: 1.6em;
    width: 100px;
    text-align: center;
}


.detalle-grid .precio-unitario {
    font-weight: bold;
    color: #850117;
    font-size: 1.2em;
    margin: 0;
    padding: 0;
    line-height: 0.5;
}

.detalle-grid .precio-unitario-om {
    font-weight: bold;
    color: black;
    font-size: 0.9em;
    margin: 0;
    padding: 0;
    line-height: 0.5;
}

.add-to-cart {
    border: none;
    /*padding: 6px 12px;*/
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.4s ease;
    /*width: 100px;*/
    height: 30px;
    background-color: #850117;
    color: white;
    text-transform: none;
    width: 70px;
    font-size: 18px;
    padding: 0 10px 0;
}

    .add-to-cart i {
        pointer-events: none; /* Deja que el clic suba al padre LinkButton */
    }

    .add-to-cart:hover {
        background-color: #34b72a;
        color: white;
        color: #000;
        text-transform: none;
    }

.swipe-wrapper {
    position: sticky;
    top: 120px; /* Ajusta según el alto de tu header */
    background: white;
    /*padding: 10px;*/
    display: flex;
    align-items: center;
    z-index: 995;
    padding-top: 20px;
    /*padding-bottom: 50px;*/
    font-size: 12px;
    height: 60px;
    border-left: 1px solid #cecece;
    border-right: 1px solid #cecece;
}

.swipe-container {
    background-color: white;
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    /*gap: 10px;*/
    flex: 1;
    box-shadow: 0 2px 2px rgba(0,0,0,0.2);
}

.swipe-item {
    flex: 0 0 auto;
    padding: 10px 30px;
    background: #f0f0f0;
    /*border-radius: 25px;*/
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s;
    border-right: 1px solid #e0e0e0;
}

    .swipe-item:hover {
        background: #e0e0e0;
    }

    .swipe-item.active {
        background: #850117;
        color: white;
    }

.swipe-btn {
    background: #ddd;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

    .swipe-btn:hover {
        background: #ccc;
    }

.swipe-categorias.dragging {
    cursor: grabbing;
    user-select: none;
}

#swipe-categorias::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Opera */
}

#swipe-categorias {
    -ms-overflow-style: none; /* Internet Explorer y Edge */
    scrollbar-width: none; /* Firefox */
    overflow-x: auto; /* Asegura scroll horizontal */
    overflow-y: hidden;
    white-space: nowrap;
}

.empty-data-container {
    text-align: center;
    padding: 30px;
    color: #555;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .empty-data-container img {
        width: 150px;
        margin-bottom: 15px;
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }

        .empty-data-container img:hover {
            opacity: 1;
        }

    .empty-data-container p {
        font-size: 18px;
        font-weight: 600;
    }

.bullet {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%; /* círculo */
    margin: 0 5px 0 0; /* solo margen a la derecha */
    vertical-align: text-top; /* alinea verticalmente al texto */
    line-height: 1; /* evita alturas extra */
}

.bullet-span {
    font-size: x-small;
    color: black;
    vertical-align: text-top; /* alinea verticalmente al texto */
    line-height: 1; /* evita alturas extra */
}

.bullet-status_d {
    background-color: #28a745; /* verde */
    font-size: xx-small;
    color: red;
    vertical-align: text-top;
}

.bullet-status_n {
    background-color: #dc3545; /* rojo */
}

.bullet-status_i {
    background-color: #ffc107; /* amarillo */
}

bullet-status_s {
    background-color: #666; /* amarillo */
}


/* CARRITO */

.cart_text1 {
    font-size:0.9em;
}

.cart_total {
    font-size:1.1em;
    font-weight: 700;
}
.cart_name {
    font-size:1.1em;
    font-weight: 700;
    text-transform: uppercase;
    color:#850117;
}



@keyframes blink {
  0% { color: #28a745; }
  50% { color: black ; }
  100% { color: #28a745; }
}

.blink {
  animation: blink 0.7s infinite;
  font-size:1.2em;
  font-weight:600;

}
.no-blink {
  font-size:1.1em;
  font-weight:600;

}




@media screen and (max-width: 570px) {
    .productos-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 0;
    }

    .producto-item {
        border: none;
        border-bottom: 1px solid #850117;
    }

        .producto-item:hover {
            transform: none;
            box-shadow: none;
        }

    .swipe-wrapper {
        top: 107px;
    }
}

@media (min-width: 571px) and (max-width: 720px) {
    .productos-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 0;
    }

    .producto-item {
        border: none;
        border-bottom: 1px solid #e9e9e9;
        padding-bottom: 5px;
        padding-top: 5px;
    }

        .producto-item:hover {
            transform: none;
            box-shadow: none;
        }
}

@media (min-width: 721px) and (max-width: 990px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .producto-item {
        border: none;
        border-bottom: 1px solid #e9e9e9;
        padding-bottom: 5px;
        padding-top: 5px;
    }

        .producto-item:hover {
            transform: none;
            box-shadow: none;
        }
}

@media (min-width: 991px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
