/*
* Botón ficha de producto
*/

#module-werelatedproductsconfigurator-configurator #wrapper {
    padding-top: 1rem;
}

#container-btn-wereprocon {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.fondoshopper {
    width: 300px;
    background-color: #000000;
    color: #fbe8fb;
    padding: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.shopper {
    font-size: 1.3em;
    margin: 0;
    color: #0B0B0B;
}

.experto {
    font-size: 0.8em;
    margin: 0px 0 0px;
    color: #FF69B4;
}

.fondoshopper>.shopperboton {
    background-color: #FBE8FB;
    color: #000000;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 8px;
}

.shopperboton:hover {
    background: #CCACBA;
}

/*
* Configurador
*/
.container-relproducts {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 30px;
}

/* Cabecera */
.header-relproducts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: sticky;
    top: 139px;
    z-index: 15;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.header-relproducts-left {
    display: flex;
    align-items: center;
    width: 35%;
}

.header-relproducts-right {
    width: 65%;
}

.header-relproducts .header-hidden {
    display: none;
}

.header-relproducts-right-container {
    background-color: #f2efef;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.relproducts-price-summary {
    display: flex;
    gap: 20px;
}

.relproducts-price-summary p {
    margin: 0;
    font-size: 16px;
}

.relproducts-add-to-cart {
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

.relproducts-add-to-cart:hover {
    background-color: #CCACBA;
}

.header-relproducts-image {
    width: 100px;
    height: 100px;
    background-color: #fff;
    min-width: 70px;
    margin-right: 10px;
}

.header-relproducts-image img {
    max-width: 100%;
    max-height: 100%;
}

.header-relproducts-text h1 {
    font-size: 18px;
    margin-right: 10px;
}

/* Contenedor grupos */

.items-relproducts-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.items-relproducts-wrapper h3 {
    text-align: center;
    font-size: 1.7rem;
}

.arrow-relproducts {
    background: rgb(255, 255, 255);
    opacity: 0.7;
    color: #000;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.arrow-relproducts.left {
    left: 0px;
    top: 175px;
}

.arrow-relproducts.right {
    right: 0px;
    top: 175px;
}

.items-relproducts {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    overflow: hidden;
    padding: 4px;
}

.item-relproducts {
    flex: 1;
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 300px;
    border: 1px solid lightgray;

}

.item-relproducts.visible {
    display: flex;
}

.item-relproducts.visible.selected {
    border: 1px solid #994f6c;
    box-shadow: 0px 0px 3px 3px lightgray;
}

.item-relproducts-image {
    width: 180px;
    height: 180px;
    margin-bottom: 10px;
}

.item-relproducts-image img {
    max-width: 100%;
    object-fit: contain;
    max-height: 100%;
}

.item-relproducts-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    width: 100%;
}

.relproducts-product-title {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    word-wrap: break-word;
    height: 40px;
}

.relproducts-price {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    margin-top: auto;
}

.relproducts-product-title {
    margin: 0 0 10px;
}

.relproducts-add {
    margin-top: 10px;
}

/* Botón "Ver opciones" */
.relproducts-view-options {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 4px 4px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 10px;
    text-align: center;
}

.relproducts-view-options:hover {
    background-color: #0056b3;
}

/* Botón "Añadir" */
.relproducts-add {
    background-color: #d7c8ce;
    color: #000;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}

.relproducts-add:hover {
    background-color: #d7c8ce;
    color: #fff;
}

.relproducts-product-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-height: 1.5em;
    max-height: 3em;
}

.attributes-display-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 10px 0;
    min-height: 25px;
}

.attribute-icon {
    margin: 0 3px 0 3px;
}

.attribute-color-icon {
    width: 20px;
    height: 20px;
    border: 1px solid darkgray;
}

.attribute-other-icon {
    width: 20px;
    height: 20px;
    font-weight: bold;
    font-size: 16px;
}

.wrapper-attribute-edit {
    width: 30px;
    height: 25px;
    cursor: pointer;
    margin: 0 5px 0 8px;
    background-color: #e3e3e3;
    border: 1px solid darkgray;
    box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.edit-attribute-icon {
    font-size: 17px;
}

.wrapper-attribute-edit .btn {
    display: inline-block;
    margin-top: 10px;
}

.carrousel {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 15px 0;
}

.carrousel-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: auto;
    border: 1px solid darkgray;
    overflow: hidden;
    position: relative;
    white-space: normal;
}

.carrousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin: 5px;
    cursor: pointer;
    border: 1px solid lightgray;
    width: 25px;
    height: 25px;
    font-size: 12px;
}

.carrousel-item.carrousel-item-selected {
    transform: scale(1.3);
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.selected-button {
    background-color: #994f6c;
    color: white;
}

.selected-button:hover {
    background-color: #957883;
    color: white;
}

.selected-product-attributes-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10px;
}

/* Estilos para el modal con el id específico #imageModal */
#imageModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Estilo para el contenido del modal */
#imageModal .modal-content-img {
    position: relative;
    margin: auto;
    background-color: #fff;
    width: 50%;
    height: 80%;
    text-align: center;
    top: 30px;
}

/* Estilo para la imagen dentro del modal */
#imageModal .modal-image {
    object-fit: contain;
    width: 100%;
    height: auto;
    max-height: 80vh;
}

/* Estilo para el botón de cerrar */
#imageModal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
}

/* Cambiar color del botón de cerrar al pasar el mouse */
#imageModal .close:hover,
#imageModal .close:focus {
    color: #f00;
}

/* Media query para pantallas pequeñas (móviles) */

@media (max-width: 768px) {
    .container-relproducts {
        padding: 0px;
    }

    .header-relproducts-right-mobile.header-sticky {
        position: sticky;
        top: 120px;
        z-index: 15;
        box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.6);
    }

    .header-relproducts-right-mobile.header-sticky .header-relproducts-right-container {
        padding: 10px;
    }

    .header-relproducts {
        position: relative;
        top: 0;
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }

    .header-relproducts-left,
    .header-relproducts-right {
        width: 100%;
    }

    .arrow-relproducts.right,
    .arrow-relproducts.left {
        border-radius: 50%;
        background-color: #e3e3e3;
    }

    .header-relproducts-left {
        gap: 10px;
    }

    .header-relproducts-left .header-relproducts-text h1 {
        font-size: 14px;
    }

    .relproducts-product-title {
        font-size: 12px;
        width: 95%;
        margin: auto;
        text-align: center;
    }

    .header-relproducts-image {
        margin: 0px;
    }

    .relproducts-price-summary {
        flex-direction: row;
        gap: 10px;
        width: 80%;
    }

    .relproducts-add-to-cart {
        width: 50px;
        padding: 10px;
        font-size: 18px;
        padding: 8px;
        border-radius: 8px;
    }

    .items-relproducts {
        flex-wrap: wrap;
    }

    #imageModal .modal-content-img {
        width: 90%;
        height: auto;
        top: 50px;
        padding: 10px;
    }

    #imageModal .close {
        top: 5px;
        right: 10px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .header-relproducts-image {
        width: 80px;
        height: 80px;
    }

    .item-relproducts-image {
        width: 100%;
    }

    .header-relproducts-text h1 {
        font-size: 16px;
    }

    .relproducts-price-summary p {
        font-size: 14px;
    }

    .items-relproducts {
        flex-wrap: nowrap;
    }

    .item-relproducts {
        max-width: 50%;
        padding: 0px;
    }
}