.products-page {
    width: 90vw;
    margin: 0 auto;
}

/* Topo */
.products-top {
    padding: 46px 0 18px 0;
}

.products-top-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
}

.products-top-line {
    height: 1px;
    background: var(--line);
    flex: 1;
    max-width: 520px;
    opacity: 0.9;
}

.products-top-heading {
    font-size: 48px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-transform: uppercase;
    margin: 0;
}

.products-top-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
}

.products-chip {
    text-decoration: none;
    color: var(--ink);
    border: 1px solid rgba(30, 78, 99, 0.45);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.products-chip:hover {
    background: var(--ink);
    color: #d8a13a;
    border-color: var(--ink);
    transform: translateY(-1px);
}

/* Seção */
.products-corp,
.products-res {
    padding: 24px 0 70px 0;
}

.products-section-title {
    margin: 0 0 22px 0;
}

.products-section-heading {
    margin: 0;
    font-size: 34px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 600;
}

.products-section-sub {
    margin: 10px 0 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.35;
}

/* Busca (igual ao print) */
.products-search-wrap {
    margin: 26px 0 34px 0;
}

.products-search {
    width: 100%;
    border: 1px solid rgba(30, 78, 99, 0.40);
    border-radius: 999px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
}

.products-search-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.products-search-icon i {
    font-size: 20px;
    color: rgba(30, 78, 99, 0.85);
}

.products-search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: var(--ink);
}

.products-search-input::placeholder {
    color: rgba(30, 78, 99, 0.65);
}

/* Esconde label acessível */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Grid dos carrosseis */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

/* Bloco de cada tipo */
.product-carousel {
    border: 1px solid rgba(30, 78, 99, 0.18);
    border-radius: 22px;
    padding: 18px 18px 22px 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.product-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.product-carousel-title {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 800;
}

/* Card do produto com setas laterais */
.product-card {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.product-card-body {
    border: 1px solid rgba(30, 78, 99, 0.22);
    border-radius: 22px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
}

.product-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    background: #f2f2f2;
}

.product-image {
    width: 100%;
    object-fit: cover;
    display: block;
}

.product-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
}

/* Setas laterais */
.carousel-arrow {
    width: 50px;
    height: 50px;

    border: none;
    background: transparent;
    padding: 0;

    color: var(--ink);
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: color .2s ease, transform .2s ease;
}

.carousel-arrow:hover {
    color: #d8a13a;
    transform: translateY(-1px);
}

/* Se você estiver usando FontAwesome dentro do botão */
.carousel-arrow i {
    font-size: 30px;
    line-height: 1;
}


/* Botão do card (mesmo estilo dos outros) */
.product-cta {
    width: 100%;
}

/* RESIDENCIAL */
.res-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: start;
    margin-top: 24px;
}

.res-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.res-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    border: 1px solid rgba(30, 78, 99, 0.18);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.res-img:nth-child(1) {
    grid-column: 1 / 3;
    height: 280px;
}

.res-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.res-title {
    margin: 0;
    color: var(--ink);
    font-size: 26px;
    font-weight: 900;
}

.res-text {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.4;
}

.res-cta {
    width: 100%;
    max-width: 520px;
    margin-top: 10px;
}

/* Fade suave ao trocar item do carrossel */
.product-image,
.product-name {
    transition: opacity .25s ease, transform .25s ease;
}

.is-switching .product-image,
.is-switching .product-name {
    opacity: 0;
    transform: translateY(4px);
}


/* =========================
   RESPONSIVO (Notebook / Tablet / Celular)
   ========================= */

/* ---------- NOTEBOOK (<= 1366px) ---------- */
@media (max-width: 1366px) {
    .products-page {
        width: 92vw;
    }

    .products-top {
        padding: 42px 0 16px 0;
    }

    .products-top-heading {
        font-size: 42px;
    }

    .products-top-line {
        max-width: 380px;
    }

    .products-chip {
        padding: 9px 16px;
        font-size: 14px;
    }

    .products-section-heading {
        font-size: 30px;
    }

    .products-section-sub {
        font-size: 17px;
    }

    .products-search {
        padding: 13px 16px;
    }

    .products-search-input {
        font-size: 15px;
    }

    .products-grid {
        gap: 20px;
    }

    .product-carousel {
        border-radius: 20px;
        padding: 16px 16px 18px 16px;
    }

    .product-carousel-title {
        font-size: 20px;
    }

    .product-card {
        grid-template-columns: 52px 1fr 52px;
        gap: 12px;
    }

    .carousel-arrow {
        width: 52px;
        height: 52px;
        font-size: 34px;
    }

    .product-card-body {
        border-radius: 20px;
        padding: 16px;
    }

    

    .product-name {
        font-size: 17px;
    }

    .res-grid {
        gap: 26px;
    }

    .res-title {
        font-size: 24px;
    }

    .res-text {
        font-size: 17px;
    }

    .res-img {
        height: 210px;
        border-radius: 16px;
    }

    .res-img:nth-child(1) {
        height: 260px;
    }
}

/* ---------- TABLET (<= 1024px) ---------- */
@media (max-width: 1024px) {
    .products-page {
        width: 94vw;
    }

    .products-top-title {
        gap: 12px;
    }

    .products-top-line {
        max-width: 240px;
    }

    .products-top-heading {
        font-size: 36px;
        text-align: center;
    }

    .products-top-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .products-chip {
        padding: 9px 14px;
        font-size: 13px;
    }

    .products-corp,
    .products-res {
        padding: 22px 0 56px 0;
    }

    .products-section-heading {
        font-size: 28px;
    }

    .products-section-sub {
        font-size: 16px;
    }

    .products-search-wrap {
        margin: 22px 0 28px 0;
    }

    .products-search {
        padding: 12px 14px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        /* 2 colunas vira 1 no tablet */
        gap: 18px;
    }

    .product-carousel-title {
        font-size: 20px;
    }

    .product-card {
        grid-template-columns: 52px 1fr 52px;
    }

    .product-image {
        height: 260px;
    }

    .res-grid {
        grid-template-columns: 1fr;
        /* texto embaixo/ao lado vira 1 coluna */
        gap: 22px;
    }

    .res-images {
        grid-template-columns: 1fr 1fr;
    }

    .res-img {
        height: 200px;
    }

    .res-img:nth-child(1) {
        height: 250px;
    }

    .res-cta {
        max-width: 100%;
    }
}

/* ---------- CELULAR (<= 768px) ---------- */
@media (max-width: 768px) {
    .products-page {
        width: 94vw;
    }

    .products-top {
        padding: 34px 0 12px 0;
    }

    .products-top-title {
        gap: 10px;
        margin-bottom: 14px;
    }

    .products-top-line {
        max-width: 140px;
    }

    .products-top-heading {
        font-size: 28px;
        letter-spacing: 0.03em;
        text-align: center;
    }

    .products-top-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .products-chip {
        padding: 10px 14px;
        font-size: 13px;
    }

    .products-section-heading {
        font-size: 24px;
    }

    .products-section-sub {
        font-size: 15px;
        line-height: 1.45;
    }

    .products-search-wrap {
        margin: 18px 0 22px 0;
    }

    .products-search {
        padding: 12px 14px;
        gap: 10px;
    }

    .products-search-icon i {
        font-size: 18px;
    }

    .products-search-input {
        font-size: 15px;
    }

    .product-carousel {
        border-radius: 18px;
        padding: 14px 14px 16px 14px;
    }

    .product-carousel-header {
        margin-bottom: 12px;
    }

    .product-carousel-title {
        font-size: 18px;
    }

    .product-card {
        grid-template-columns: 44px 1fr 44px;
        gap: 10px;
    }

    .carousel-arrow {
        width: 44px;
        height: 44px;
        font-size: 30px;
    }

    .product-card-body {
        border-radius: 18px;
        padding: 14px;
        gap: 10px;
    }

    .product-image {
        height: 220px;
        border-radius: 14px;
    }

    .product-name {
        font-size: 16px;
    }

    .res-images {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .res-img {
        height: 210px;
        border-radius: 16px;
    }

    .res-img:nth-child(1) {
        grid-column: auto;
        height: 230px;
    }

    .res-title {
        font-size: 22px;
    }

    .res-text {
        font-size: 15px;
        line-height: 1.5;
    }

    .res-cta {
        max-width: 100%;
    }
}

/* ---------- CELULAR PEQUENO (<= 480px) - opcional ---------- */
@media (max-width: 480px) {
    .products-top-heading {
        font-size: 24px;
    }

    .products-section-heading {
        font-size: 22px;
    }

    .product-card {
        grid-template-columns: 40px 1fr 40px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .product-image {
        height: 200px;
    }
}