/*
Theme Name: Divi Child
Theme URI: https://seusite.com
Description: Tema filho do Divi
Author: Seu Nome
Author URI: https://seusite.com
Template: Divi
Version: 1.0.0
*/

/* FILTRAGEM DE EQUIPAMENTOS */
#equipment-form {
    display: flex;
    gap: 10px;
}

#equipment-form input,
#equipment-form select,
#equipment-form option,
#equipment-form button {
    padding: 15px;
    background-color: #F2F2F2;
    border-radius: 5px;
    outline: none;
    border: none;
}

#equipment-form button {
    background-color: #009EA5;
    color: #FFFF;
    font-size: 14px;
}

#equipment-form input {
    width: 240px;
}

#equipment-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    width: 100%;
    justify-content: center;
    gap: 50px;
    text-align: center;
}

.equipment-card {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;

    border: 1px solid #f2f2f2e9;
    padding: 10px;
    font-size: 16px;

    min-width: 0;
}

.equipment-card img {
    height: 200px;
    padding-bottom: 10px;
}

.equipment-description {
    /* height: 50px; */
    font-size: 12px;
    width: 300px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 10px 10px;
    font-size: 14px;
    /* margin-bottom: 4px; */
}

.equipment-card span {
    color: #023773;
}

.equipment-card button {
    color: #009EA5;
    border: 2px solid #009EA5;
    border-radius: 5px;
    background-color: #FFFF;
    margin-top: 10px;
}

.equipment-card button:hover {
    border-radius: 5px;
    color: #FFFF;
    background-color: #009EA5;
    cursor: pointer;
}

.empty-result {
    margin: 0 auto;
    width: fit-content;
}

/* EVENTOS */

.event-single {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    font-size: 16px;
    gap: 15px;
}

.post-content {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    gap: 15px;
}

.event-single p {
    text-align: justify;
    padding-bottom: 0;
}

.event-card {
    border: 1px solid #e0e0e0;
    background-color: #fff;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.event-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
}

.event-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.event-card p {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
    line-height: 1.4;
}

.event-card p strong {
    color: #555;
}

.event-card a {
    margin-top: auto;
    padding-top: 15px;
    color: #009EA5;
    text-decoration: underline;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

#events-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

/* PRODUTOS */
.product-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    background-color: #009EA5;
    height: 40vh;
}

.product-header .product-title h3,
.product-header .product-title h1 {
    color: #ffffff;
}

.product-header .product-title h1 {
    font-size: 46px;
    max-width: 500px;
    word-wrap: break-word;
}

.product-banner-img img {
    height: 54vh;
    width: 100%;
}

.tech-specs-container .descricao {
    /* padding: 0px 100px; */
    /* text-align: center; */
    line-height: 26px;
    margin-bottom: 20px;
}

.tech-specs-container .descricao ul li,
.tech-specs-container .characteristics-spec ul li {
    list-style-type: disc;
    margin-left: 20px;
}

.equip-content-container {
    margin: 10vh 10vw;
}

.tech-specs-container {
    font-size: 16px;
}

.tech-specs-container p:first-of-type {
    width: 100%;
    text-align: center;
}

.tech-specs-characteristics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 100%;
    /* garante que imagem não ultrapasse */
    width: 100%;
}

.tech-specs-image {
    width: 100%;
    max-width: 500px;
    /* limita tamanho máximo */
}

.tech-specs-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
    /* limita altura */
}

.tech-specs-characteristics :is(h1 h2 h3) {
    color: #009EA5;
}

.characteristics-spec :is(h1, h2, h3) {
    color: #006596;
}


.characteristics-spec span {
    font-size: 12px;
    color: #ADADAD;
}

/* Aumenta o tamanho dos icones de pagina dos links*/
.characteristics-spec p span {
    font-size: 22px;
}

.variation-container {
    margin-bottom: 10px;
}

.variation-header {
    display: flex;
    margin-top: 5vh;
}

.variation-header {
    color: #009EA5;
}

.variation-table th {
    padding: 35px;
    text-align: left;
}

.variation-table td {
    padding: 10px 35px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

/* Alternar cores das linhas no tbody */
.variation-table tbody tr:nth-child(odd) {
    background-color: #f2f2f2;
    /* cor para linhas ímpares */
}

.variation-table tbody tr:nth-child(even) {
    background-color: #ffffff;
    /* cor para linhas pares */
}

/* Efeito hover opcional */
.variation-table tbody tr:hover {
    background-color: #e0e0e0;
}

/* A última célula (índice 4) tem estilo diferente */
.variation-table tbody tr td:last-child {
    display: inline-block;
    border: none !important;
    padding: 10px;
    color: #007bff;
    cursor: pointer;
    background-color: #FFFF;
}

.buy-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: #006786;
    color: #FFFF;
    padding: 10px;

    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.buy-footer input {
    width: 30px;
    border-radius: 5px;
    text-align: center;
}

.budget-button {
    color: #009EA5;
    background-color: #FFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.clear-button {
    color: #FFFF;
    border: 2px solid #FFFF;
    background-color: transparent;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.budget-form table th,
.budget-form table td {
    text-align: center;
}



/* ORÇAMENTO */

.sac-form,
.budget-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sac-form input,
.budget-form input {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

.loc-doc-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.loc-doc-container select {
    height: 40px;
    border-radius: 5px;
    background-color: #F2F2F2;
    border: none;
    cursor: pointer;
}

.loc-doc-container input:last-of-type {
    width: 100%;
}

.table-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 16px;
    width: 100%;
}

.table-container table {
    border-collapse: collapse;
    width: 100%;
    min-width: 400px;
}

.table-container table th {
    text-align: left;
    padding: 12px 16px;
    background-color: #f8fafd;
    color: #1a2639;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
}

.table-container table td {
    text-align: left;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
    border-bottom: 1px solid #edf2f7;
}



.table-container tr:last-child td {
    border-bottom: none;
}

/* Estilo para a referência (código) */
.table-container td:nth-child(2) {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
    color: #FFFF;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.reference-pill {
    color: #FFFF;
    background-color: #006596;
    width: 50%;
    text-align: center;
    border-radius: 5px;
}

.quantity-pill {
    color: #FFFF;
    background-color: #006596;
    width: 10%;
    text-align: center;
    border-radius: 5px;
}

.dashicons-trash {
    color: #006596;
}

.remove-item-button {
    border: none;
    background-color: none;
    all: unset;
    cursor: pointer;
    margin-left: 10px;
}

/* Estilo para a quantidade */
.table-container td:nth-child(3) {
    display: flex;
    flex-direction: row;
    font-weight: 600;
    color: #FFFF;
}

/* Linha com hover suave (opcional) */
tr:hover td {
    background-color: #f0f4fe;
    transition: background-color 0.2s ease;
}

.add-more-products {
    margin: 20px auto;
}

.client-message {
    resize: none;
    height: 100px;
    border-radius: 5px;
}

.terms-checkbox {
    margin: 10px 0;
}

.budget-form button[type=submit] {
    width: 20%;
    height: 40px;
    background-color: #006596;
    color: #FFFF;
    border-radius: 5px;
    border: none;
    margin: 20px auto;
    cursor: pointer;
}


/* SAC */
.subject-container,
.complaint-option-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.sac-form a {
    width: 120px;
    border-radius: 5px;
    background-color: #989898;
    color: #FFFF;
    padding: 10px;
    text-align: center;
    font-size: 16px;
}

.sac-form a.selected {
    background-color: #009EA5;
    cursor: default;
}

.sac-form a:hover {
    background-color: #009EA5;
}

.suggestions-container,
.services-complaint-container,
.products-complaint-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sac-form button {
    width: 120px;
    border-radius: 5px;
    background-color: #009EA5;
    color: #FFFF;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    border: none;
    margin: 0 auto;
    cursor: pointer;
}

.product-disponibility p {
    padding-bottom: 0;
}

.product-problem-file-label {
    color: #1FAAB0;
    cursor: pointer;
}

.product-problem-file-advise {
    color: #878787;
}

.product-disponibility button {
    margin: 0 45%;
}

.products-complaint-inputs,
.sac-form .sac-contact {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.sac-contact input {
    width: 49%;
    gap: 15px;
}

.product-stats input {
    width: 32%;
    gap: 15px;
}

.validity-input-container input {
    width: 32%;
    gap: 15px;
}

.occurence-inputs input {
    width: 32%;
    gap: 15px;
}

.feedback-textarea {
    resize: none;
    height: 100px;
    width: 100%;
    border-radius: 5px;
}

/* Estilos do container de arquivos  */
.file-list-container {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 40px;
}

.damage-description-container {
    display: none;
}

.has-validity-container {
    display: flex;
    gap: 20px;
    /* margin: 10px 0 20px 0; */
}

.file-item {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 3px;
    margin-bottom: 5px;
}

/* 
.file-item:last-child {
    margin-bottom: 0;
} */

.file-icon {
    margin-right: 8px;
    font-size: 16px;
}

.file-name {
    flex-grow: 1;
    font-size: 14px;
}

.file-size {
    color: #666;
    font-size: 12px;
    margin-right: 10px;
}

.remove-file {
    background: none;
    border: none;
    color: #ff0000;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.remove-file:hover {
    color: #cc0000;
}

.product-problem-file-advise {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.terms {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: underline !important;
    color: inherit !important;
}

.validity-input-container {
    display: none;
    margin-bottom: 10px;
}

/* SPINNER */

.spinner-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.spinner-overlay {
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 25px;
    height: 25px;
    border: 5px solid #ccc;
    border-top: 5px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


/* Pagination */
#pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

#pagination button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 20px;
}

#pagination .active {
    background: #009EA5;
    color: white;
    cursor: default;
}

.hidden {
    visibility: hidden;
}

/* EFEITOS  */

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* @media (max-width: 1100px) {
    #equipment-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
} */

/* @media only screen and (max-width: 1124px) and (min-width: 769px) { */
@media only screen and (max-width: 1124px) {

    /* PRODUCT FILTER */
    #equipment-form {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    #equipment-form input,
    #equipment-form select,
    #equipment-form option,
    #equipment-form button {
        width: 100%;
    }

    #equipment-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        place-items: center;
    }

    .equipment-card {
        width: 80%;
        max-width: 800px;
        min-width: 0;
    }

    /* SINGLE EQUIPMENT */

    .product-header {
        display: flex;
        flex-direction: column-reverse;

        gap: 40px;
        min-height: 45vh;
        height: auto;

        box-shadow: -2px 0 5px rgba(237, 229, 229, 0.1);
    }

    .product-header .product-title {
        text-align: center;
    }

    .product-header img {
        /* display: none; */
        width: 90%;
        height: 100%;
    }

    .tech-specs-characteristics {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
    }

    .variation-container {
        position: relative;
        overflow-x: auto;
        /* Scroll horizontal */
        overflow-y: auto;
        /* Scroll vertical */
        max-width: 100%;
        border-radius: 4px;
        -webkit-overflow-scrolling: touch;
        /* Scroll suave no iOS */
    }

    .variation-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Scroll suave no iOS */

        border: 1px solid #ddd;
        border-radius: 4px;
        border-collapse: separate;
        border-spacing: 0;

        table-layout: fixed;
    }

    .variation-header {
        position: sticky;
        left: 0;
        z-index: 5;
    }

    .variation-table th:last-child,
    .variation-table td:last-child {
        position: sticky;
        right: 0;
        background-color: white;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 5;

        white-space: nowrap;
    }

    /* ORÇAMENTO */

    .loc-doc-container {
        flex-direction: column;
    }

    .loc-doc-container select,
    .loc-doc-container input {
        width: 100%;
    }

    .reference-pill,
    .product-name {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .quantity-pill {
        width: 40%;
    }

    .budget-form button[type=submit] {
        width: 100%;
    }

    /* SAC */
    #suggestion-submit,
    #services-complaint-submit,
    #products-complaint-submit {
        width: 100%;
        margin: 0;
    }

    .products-complaint-inputs {
        flex-direction: column;
    }

    .products-complaint-inputs input {
        width: 100%;
    }

    .valid-product-container,
    .damage-product-container,
    .has-validity-container {
        display: flex;
        margin-bottom: 20px;
        justify-content: space-around;
    }

    .subject-container,
    .complaint-option-container {
        width: 100%;
        justify-content: space-between;
    }

    .subject-container a,
    .complaint-option-container a {
        width: 49%;
    }

}