/*
    ajustes detalle de producto prod
*/
    /* .single-product .woocommerce-product-details__short-description{
        display: none !important;
    } */
    .single-product section.related.products{
        display: none !important;
    }
    .single-product .container.main-content .row {
        width: 100%;
    }
    .single-product .table-related-products {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        max-width: none !important;
        justify-content: space-evenly;
        align-items: center;
    }
    .single-product .table-related-products .related-product {
        display: flex;
        flex-direction: column;
        max-height: 450px;
        max-width: 300px;
        justify-content: center;
        margin: 0.5rem;
        background-color: #FFF;
    }
/*
    ajustes detalle de producto prod
*/
.table-equivalencias{
    width: 100%;
    text-align: center;
    max-width: none !important;
    font-size: 12px;
}

.table-equivalencias-row{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch; /* Stretches the children to the full height of the row */
    width: 100%;
}

.table-equivalencias-column{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 10%;
    flex-grow: 1; /* Allows columns to grow and take up equal space */
    min-height: 120px; /* Sets a minimum height for uniformity */
}

.table-equivalencias-column p:nth-of-type(1) {
    background-color: white;
    display: flex;
    align-content: center;
    justify-content: center;
    padding: 15px;
    border: 1px solid #EDEDED;
    font-size: 16px;
    font-family: 'Montserrat' !important;
    font-weight: 100 !important;
}

.table-equivalencias-column p:nth-of-type(2) {
    background-color: #F6F6F6;
    display: flex;
    align-content: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid #EDEDED;
    font-size: 14px;
    font-family: 'Montserrat' !important;
    font-weight: 400 !important;
    min-height: 15vh;
    align-items: center;
}

.table-equivalencias h2 {
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 60px;
}

.title-productos-relacionados {
    text-align: center;
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 10vh;
    margin-top: 80px;
    flex: 100%;
}

.related-product div:nth-of-type(2){
    padding: 15px;
    color: #241F1F;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat';
}

.related-product div:nth-of-type(3){
    color: #737373;
    padding: 0 0 30px 15px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Montserrat';
  }

.table-container img{
    width: 100px;
    height: 100px;
}

.container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tipo{
    display:none !important;
}

.tittle{
    font-size: 50px;
    margin: 20px 0 0 0;
    text-transform: uppercase;
}

#custom-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap !important;
    margin: 20px 0;
    padding: 10px;
    width: 60%;
    border-radius: 3px;
    min-width: 8vw !important;
    max-width: none !important
}

#custom-form div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

#custom-form div input {
    margin: 16px;
    width: 96%;
    border-radius: 3px;
    padding: 10px 10px;
    height: 24px;
    background-color: #E3E3E3;
    border: none;
    font-family: 'Montserrat' !important;
}

#custom-form select {
    display: block;
    width: 100%;
    padding: 15px 10px;
    margin: 16px 0;
    border: none;
    border-radius: 4px;
    color: #737373c9;
    background-color: #E3E3E3;
    appearance: none; /* Quita el estilo por defecto del navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('https://prixparts.com/wp-content/uploads/2024/10/Vector-1.png'); /* Imagen de la flecha */
    background-position: calc(100% - 30px) center; /* Mueve la flecha hacia la izquierda */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    padding-right: 30px; /* Espacio extra para la flecha */
}

#custom-form select::-ms-expand {
    display: none; /* Oculta la flecha en Internet Explorer/Edge */
}

#custom-form-output {
    margin-top: 20px;
    /* padding: 10px;
    border: 1px solid #ccc;
    background-color: #e9e9e9; */
    /* min-width: 8vw !important;
    max-width: none !important; */
    width: 165%;
}

#custom-form button {
    font-weight: bold;
    height: 30px;
}

.table-component {
    overflow-x: auto; /* Desplazamiento horizontal si la tabla es muy ancha */
    max-width: 100%; /* Limitar el ancho máximo del contenedor */
    margin: 20px 0; /* Espacio alrededor */
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}


.table-component table {
    width: 100%; /* Ancho completo */
    border-collapse: collapse; /* Colapsar bordes */
    table-layout: auto; /* Permitir que las celdas ajusten su tamaño según el contenido */
    text-align: left; /* Alinear texto a la izquierda */
}

.table-component caption {
    font-size: 18px;
    margin: 10px;
}


.table-component th {
    border: 1px solid #dededf;
    background-color: #D22027; /* Fondo rojo */
    color: #ffffff; /* Texto blanco */
    padding: 12px;
    font-weight: bold;
    position: sticky; /* Hacer sticky el encabezado */
    top: 0; /* Fijar en la parte superior */
    z-index: 1; /* Asegurar que el encabezado quede visible */
    text-align: center;
    font-size: 12px;
}

.table-component td {
    border: 1px solid #dededf;
    background-color: #ffffff;
    color: #333333;
    padding: 12px;
    max-width: 200px; /* Limitar el ancho máximo */
    word-wrap: break-word; /* Permitir salto de palabra */
    overflow: auto; /* Agregar desplazamiento si el contenido es muy largo */
    text-align: center;
    vertical-align: middle !important;
    font-weight: normal;
    font-family: 'Montserrat';
}

.table-component tbody tr:nth-child(even) td {
    background-color: #f5f5f5; /* Gris claro para filas alternas */
}

.table-component tbody tr:hover td {
    background-color: #ffe6e7; /* Fondo rosado al pasar el cursor */
}

.hide {
    display: none;
}

.button-text{
    color: #737373;
    align-self: flex-start;
    font-size: 14px;
    margin-left: 3px;
    margin-top: -7px;
}

.input-equivalencia{
    padding: 24px !important;
    width: 100% !important;
    font-size: 14px;
    font-family: inherit;
    line-height: 24px;
    color: #555;
    background-color: #f1f1f1 !important;
    border: none !important;
    transition: all .2s ease;
}

.subtittle{
    color: #000000;
    align-self: flex-start;
    font-size: 22px;
    margin-left: 3px;
    margin-bottom: -7px;
    margin-top: 20px;
}

.btn{
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D22027;
    color: white;
    background-color: #D22027;
    padding: 22px 45px !important;
    border-radius: 5px;
    width: 55%;
    cursor: pointer;
}

.btn:hover{
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    color: white;
    background-color: #D22027;
    padding: 20px 45px;
    border-radius: 5px;
    width: 55%;
}

thead {
    display: contents;
}

@media (min-width: 1366px) and (max-width: 1919px){
    #custom-form-output {
        margin-top: 20px;
        width: 125%;
    }

    .table-component table {
        font-size: 14px;
        text-align: center;
    }

    .table-component td {
        max-width: 150px; /* Limitar el ancho máximo en dispositivos móviles */
    }

    thead {
        display: contents;
    }
}

@media only screen and (max-width: 650px) {
    .container{
        margin: 0 auto;
        position: relative;
        max-width: 880px !important;
    }

    .tittle{
        font-size: 50px;
        margin: 20px 0 0 0;
        text-transform: uppercase;
        text-align: center !important;
        line-height: 55px !important;
    }

    #custom-form{
        width: 95% !important;
    }

    #custom-form-output {
        margin-top: 20px;
        width: 80%;
    }

    table, table tbody, table tr, table th, table td {
        display: block; /* Cambiar tabla a bloque para mejor adaptación */
        width: 100%; /* Asegurar que el ancho ocupe todo el contenedor */
        text-align: left; /* Alinear texto a la izquierda */
    }

    table tr {
    margin-bottom: 10px; /* Separar las filas en móvil */
    }

    table th, table td {
    text-align: left; /* Alinear celdas y encabezados */
    box-sizing: border-box;
    }

    table td[data-label]:before {
    content: attr(data-label); /* Mostrar el nombre de la columna */
    display: block;
    font-weight: bold;
    margin-bottom: 5px; /* Separar el label del contenido */
    }

    /* Asegurar que la tabla esté centrada y alineada correctamente */
    .table-container {
    padding: 0 10px; /* Espaciado interno para evitar que la tabla se pegue al borde */
    }

    table {
    margin: 0 auto; /* Centrar la tabla en móviles */
    }

    thead {
        display: none;
    }

    .table-component td {
        border: 1px solid #dededf;
        background-color: #ffffff;
        color: #333333;
        padding: 12px;
        max-width: 100%; /* Limitar el ancho máximo */
        word-wrap: break-word; /* Permitir salto de palabra */
        white-space: pre-wrap; /* Permitir saltos de línea dentro de la celda */
        overflow: auto; /* Agregar desplazamiento si el contenido es muy largo */
    }

    .table-equivalencias-row {
        flex-direction: column;
        align-items: center; /* Center the columns in mobile view */
    }
    .table-equivalencias-column {
        width: 70%;
        margin-bottom: 20px;
        min-height: auto; /* Reset min-height for mobile view */
    }
}

.table-dimensiones{
    width: 100%;
    text-align: center;
    max-width: none !important;
    font-size: 12px;
    margin-top: 10vh;
}

.table-dimensiones-row{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch; /* Stretches the children to the full height of the row */
    width: 100%;
}

.table-dimensiones-column{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 10%;
    flex-grow: 1; /* Allows columns to grow and take up equal space */
    min-height: 120px; /* Sets a minimum height for uniformity */
}

.table-dimensiones-column p:nth-of-type(1) {
    background-color: white;
    display: flex;
    align-content: center;
    justify-content: center;
    padding: 15px;
    border: 1px solid #EDEDED;
    font-size: 16px;
    font-family: 'Montserrat' !important;
    font-weight: 100 !important;
}

.table-dimensiones-column p:nth-of-type(2) {
    background-color: #F6F6F6;
    display: flex;
    align-content: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid #EDEDED;
    font-size: 14px;
    font-family: 'Montserrat' !important;
    font-weight: 400 !important;
    min-height: 15vh;
    align-items: center;
}

.table-dimensiones h2 {
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 60px;
}

/* Responsive igual que equivalencias */
@media only screen and (max-width: 650px) {
    .table-dimensiones-row {
        flex-direction: column;
        align-items: center; /* Center the columns in mobile view */
    }
    .table-dimensiones-column {
        width: 70%;
        margin-bottom: 20px;
        min-height: auto; /* Reset min-height for mobile view */
    }
}

.single-product #tab-description{
    display: none !important;
}

.archive.search .nectar-shop-header{
    right: unset !important;
}