.main-menu.menu-light .navigation li a span {
    display: inline !important;
}
body.vertical-layout.vertical-menu.menu-expanded .main-menu {
    width: 270px !important;
}
body.vertical-layout.vertical-menu.menu-expanded .content{
    margin-left: 270px
}
.vertical-overlay-menu .main-menu{
    width: 270px !important;
}
#search {
    margin-bottom: 20px;
}

.modal-header {
    border-bottom: none !important;
}
.modal-footer{
    border-top: none !important;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
@media (max-width: 576px) { /* XS: Pantallas menores a 576px */
    .product-list {
        grid-template-columns: repeat(2, minmax(50%, 1fr)); /* Garantiza columnas del 50% */
        gap: 5px;
    }
}

.product-card {
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e6e6e6;
    cursor: pointer;
    text-align: center;
}
@media (max-width: 576px) { /* XS: Pantallas menores a 576px */
    .product-card {
        border-radius: 8px;
        padding: 5px;
        word-wrap: break-word; /* Fuerza el ajuste de palabras largas */
    }
}


.imagen-producto {
    width: 100%;            /* Ancho fijo de 150px */
    height: 180px;           
    display: flex;           /* Flexbox para centrar la imagen */
    align-items: center;     /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    overflow: hidden;        /* Ocultar el desbordamiento si la imagen es más grande */
    margin-bottom: 20px;
}

.imagen-producto img {
    max-width: 100%;         /* Ajustar el ancho máximo */
    max-height: 100%;        /* Ajustar el alto máximo a 150px */
    object-fit: contain;     /* Escalar la imagen sin deformarla */
}

/* Contenedor de miniaturas */
.thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border: 1px solid transparent;
    border-radius: 8px;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border-color:rgb(200, 200, 200);
}


.product-card.sin-stock {
        opacity: 0.7;
        position: relative;
        cursor: not-allowed;
    }

.sin-stock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 10;
}

.etiqueta-producto {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
}

.product-card {
    position: relative;
    transition: all 0.3s ease;
}

/* Contenedor de miniaturas con scroll */
.thumbnail-container {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 0;
    margin-top: 10px;
    scrollbar-width: thin;
    -ms-overflow-style: none;
}

.thumbnail-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

/* Miniaturas con relación de aspecto fija */
.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.thumbnail:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Mejoras para la imagen principal */
.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mainImage {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: opacity 0.5s ease;
}