.producto-cdo {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.producto-cdo img {
    max-width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 10px;
}
.producto-cdo h4 {
    font-size: 15px;
    height: 38px;
    margin: 8px 0 0 0;
}
.producto-cdo .sku {
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}
.producto-cdo .precio {
    font-weight: bold;
    font-size: 14px;
}
.producto-cdo .descripcion {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}
.btn-wsp {
    margin-top: 10px;
    padding: 1px 12px;
    background: #A80634;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    display: inline-block;
}
#catalogo-cdo-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.producto-cdo .stock {
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
}

.catalogo-paginacion button {
    background-color: #A80634;
    color: white;
    border: none;
    padding: 1px 16px;
    margin: 5px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
}
.catalogo-paginacion button:hover {
    background-color: #A80634;
    color:white;
}
.catalogo-paginacion span#cdo-page {
    font-weight: bold;
    font-size: 16px;
    margin: 0 10px;
}

.cdo-gallery {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}
.gal-thumb {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
}

#cdo-loader {
    position: absolute;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cdo-spinner {
    width: 40px;
    height: 40px;
    border: 5px solid #E91E63;
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Agrega esto al final de catalogo-cdo.css */
.cdo-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.cdo-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.cdo-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cdo-modal-close:hover {
    color: black;
}

.ver-mas {
    color: #E91E63;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    margin-top: 5px;
}

.ver-mas:hover {
    color: #D81B60;
}

/* Modal en móviles */
@media (max-width: 768px) {
    .cdo-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }

    .producto-cdo {
        padding: 10px;
    }

    .descripcion {
        font-size: 12px;
    }

    .ver-mas {
        font-size: 11px;
    }

    .gal-thumb {
        height: 100px;
    }

    .producto-cdo img {
        height: 100px;
    }
}

/* Mejoras de toques en móviles */
.btn-wsp, .ver-mas {
    -webkit-tap-highlight-color: transparent;
}

.ver-mas {
    font-weight: bold;
}

.producto-cdo.cdo-seleccionado {
    border: 2px solid #00c853;
    box-shadow: 0 0 8px #00c85377;
}
.seleccionar-item {
    margin-top: 8px;
    background: #D8004F;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}
.burbuja-cotizar {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #00c853;
    color: white;
    padding: 5px 10px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    font-weight: bold;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 0 12px #00c853aa;
}
.burbuja-cotizar .cantidad-seleccionados {
    background: white;
    color: #00c853;
    border-radius: 50%;
    padding: 1px 10px;
    margin-left: 10px;
    font-weight: bold;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    width: 50% !important;
    opacity: 1 !important;
}

.lb-nav a.lb-prev:before,
.lb-nav a.lb-next:before {
    content: '';
}

.lb-nav a.lb-prev:after,
.lb-nav a.lb-next:after {
    font-size: 32px !important;
    color: #fff !important;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.lb-nav a.lb-prev:after {
    content: '‹';
    left: 15px;
    position: absolute;
}

.lb-nav a.lb-next:after {
    content: '›';
    right: 15px;
    position: absolute;
}

/*GRID CATALOGO EN HOME*/

.catalogo-cdo-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.catalogo-cdo-home-grid .producto-cdo {
    height: 100%;
}

@media (max-width: 768px) {
    .producto-cdo {
        padding: 10px;
        flex-direction: column;
        align-items: center;
    }

    .producto-cdo .btn-cotizar {
        font-size: 14px;
        padding: 10px 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .burbuja-cotizar {
        position: fixed;
        right: 10px !important;
        left: 10px !important;
        bottom: 20px !important;
        justify-content: center;
        font-size: 15px;
        padding: 10px 15px;
        max-width: calc(100% - 20px);
    }

    .burbuja-cotizar .cantidad-seleccionados {
        padding: 2px 10px;
        font-size: 14px;
    }

    .catalogo-cdo-home-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Ajustes generales adicionales */
.burbuja-cotizar {
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 0 12px rgba(0, 200, 83, 0.4);
    word-break: keep-all;
    text-align: center;
}

.btn-cotizar.active {
    background-color: #128C7E;
    transition: all 0.3s ease;
}

.producto-cdo .btn-cotizar span {
    display: inline-block;
    vertical-align: middle;
}