/* Grade de produtos e blocos de apoio de confeccao.html:
   tabela de peças, peça piloto, pagamento/NF/prazo. */

.products {
    width: 100%;
    background: #000000;
    padding: clamp(3rem, 8vh, 5rem) 0 clamp(4rem, 10vh, 6rem);
    display: flex;
    justify-content: center;
}

.products-container {
    max-width: 520px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 4vh, 2rem);
}

.products-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.products-title-underline {
    width: clamp(180px, 50%, 270px);
    height: 5px;
    background-color: var(--primary-yellow);
    border-radius: 3px;
    margin-top: -0.5rem;
}

.products-description {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    font-weight: 400;
    color: #e5e5e5;
    text-align: center;
    line-height: 1.65;
    max-width: 95%;
}

/* Tabela: rola horizontalmente no mobile em vez de estourar a página */
.products-table-wrapper {
    width: 100%;
    margin-top: clamp(1.5rem, 4vh, 2rem);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: clamp(12px, 3vw, 16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.products-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
}

.products-table caption {
    padding: clamp(0.9rem, 3vw, 1.1rem);
    font-size: clamp(0.8rem, 2.8vw, 0.88rem);
    color: #9a9a9a;
    text-align: left;
    line-height: 1.5;
}

.products-table th,
.products-table td {
    padding: clamp(0.8rem, 2.5vw, 1rem);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.products-table thead th {
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary-yellow);
    font-weight: 700;
    font-size: clamp(0.78rem, 2.6vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.products-table tbody th {
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
}

.products-table td {
    color: #cfcfcf;
    font-weight: 300;
}

.products-table tbody tr:last-child th,
.products-table tbody tr:last-child td {
    border-bottom: none;
}

/* Cartões de apoio: peça piloto, pagamento, NF, prazo */
.products-notes {
    width: 100%;
    margin-top: clamp(2rem, 5vh, 3rem);
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vh, 1.4rem);
}

.product-note {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: clamp(1.2rem, 4vw, 1.6rem);
}

.product-note h3 {
    font-size: clamp(1.05rem, 4vw, 1.2rem);
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.product-note p {
    font-size: clamp(0.9rem, 3.2vw, 1rem);
    font-weight: 300;
    line-height: 1.65;
    color: #e0e0e0;
}

.product-note p + p {
    margin-top: 0.6rem;
}

.product-note strong {
    font-weight: 600;
    color: #ffffff;
}

/* Tablets */
@media (min-width: 768px) {
    .products-container {
        max-width: 680px;
    }

    .products-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .products-description {
        font-size: clamp(1.05rem, 2.5vw, 1.25rem);
        max-width: 85%;
    }

    .products-notes {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .products-container {
        max-width: var(--content-max);
    }

    .products-title {
        font-size: clamp(2.5rem, 3.2vw, 3rem);
    }

    .products-description {
        font-size: 1.2rem;
        max-width: 720px;
    }

    .products-notes {
        grid-template-columns: repeat(3, 1fr);
    }
}
