/* ================================
   PRODUTOS - HERO
================================ */

.page-hero.produtos-hero {
    position: relative;
    min-height: 520px;
    padding: 220px 0 110px;
    background:
        linear-gradient(rgba(15, 47, 58, .78), rgba(15, 47, 58, .78)),
        url("../img/produtos/produtos-hero.jpg") center/cover no-repeat;
}

.page-hero-content {
    max-width: 850px;
}

.page-hero-content h1 {
    color: var(--white);
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    margin-bottom: 22px;
}

.page-hero-content p {
    color: #dce8eb;
    font-size: 19px;
    line-height: 1.8;
    max-width: 720px;
}


/* ================================
   PRODUTOS - CATÁLOGO
================================ */

.produtos-page {
    padding: 100px 0;
    background: var(--light);
}

.produtos-filtros-area {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px;
    margin-bottom: 36px;
    box-shadow: 0 20px 50px rgba(15,47,58,.08);
}

.produtos-filtros-area h2 {
    color: var(--primary);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    margin: 12px 0 24px;
}

.produtos-filtros {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filtro-btn {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--primary);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: .25s;
}

.filtro-btn:hover,
.filtro-btn.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}


/* ================================
   PRODUTOS - LISTA
================================ */

.produtos-lista {
    display: grid;
    gap: 28px;
}

.produto-item {
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(15,47,58,.08);
    transition: .25s;
}

.produto-item:hover {
    transform: translateY(-6px);
}

.produto-card-detalhado {
    display: grid;
    grid-template-columns: 340px 1fr;
    align-items: stretch;
}

.produto-img-box {
    background: #f2f7f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    border-right: 1px solid var(--border);
}

.produto-card-detalhado img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    cursor: zoom-in;
    transition: .25s;
}

.produto-card-detalhado img:hover {
    transform: scale(1.04);
}

.produto-info {
    padding: 34px;
}

.produto-info span {
    display: inline-block;
    background: #e8f4f6;
    color: var(--secondary);
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.produto-info h3 {
    color: var(--primary);
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.produto-info p {
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 12px;
}

.produto-info small {
    display: block;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.produto-info small strong {
    color: var(--primary);
}


/* ================================
   PRODUTOS - MEDIDAS
================================ */

.medidas-box {
    margin: 24px 0;
    padding: 22px;
    background: var(--light);
    border-radius: 22px;
    border: 1px solid var(--border);
}

.medidas-head {
    margin-bottom: 16px;
}

.medidas-head strong {
    display: block;
    color: var(--primary);
    margin-bottom: 4px;
    font-size: 17px;
}

.medidas-head em {
    display: block;
    color: var(--text);
    font-style: normal;
    font-size: 14px;
}

.medidas-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 6px;
}

.medidas-lista p {
    background: var(--white);
    color: var(--primary);
    border: 1px solid rgba(77,184,159,.25);
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 13px;
    margin: 0;
}


/* ================================
   PRODUTOS - BOTÃO
================================ */

.btn-produto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--white);
    padding: 15px 24px;
    border-radius: 50px;
    font-weight: 800;
    transition: .25s;
}

.btn-produto:hover {
    background: var(--primary);
    transform: translateY(-2px);
}


/* ================================
   ZOOM PRODUTO
================================ */

.modal-produto {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
}

.modal-produto.active {
    display: block;
}

.modal-produto-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.86);
}

.modal-produto-content {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1150px, 94%);
    height: min(86vh, 760px);
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
}

.modal-produto-img-area {
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    padding: 34px;
}

.modal-produto-img-area:active {
    cursor: grabbing;
}

.modal-produto-img-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .2s ease;
    transform-origin: center center;
    user-select: none;
    pointer-events: none;
}

.modal-produto-fechar {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    font-size: 18px;
    z-index: 5;
}

.modal-zoom-controls {
    position: absolute;
    left: 18px;
    top: 18px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.modal-zoom-controls button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    transition: .25s;
}

.modal-zoom-controls button:hover {
    background: var(--accent);
}

/* ================================
   ZOOM PRODUTO - LIGHTBOX SIMPLES
================================ */

.modal-produto {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0,0,0,.86);
    z-index: 99999;
}

.modal-produto.active {
    display: block;
}

.modal-produto-overlay {
    position: absolute;
    inset: 0;
}

.modal-produto-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    color: #fff;
    font-size: 14px;
}

.modal-produto-icons button {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

.modal-produto-content {
    position: absolute;
    top: 54px;
    left: 70px;
    right: 70px;
    bottom: 54px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: auto;
    height: auto;
    transform: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.modal-produto-content img {
    max-width: 85vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
}

.modal-produto-content p {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-top: 16px;
    text-align: center;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    z-index: 6;
}

.modal-prev {
    left: 0;
}

.modal-next {
    right: 0;
}

.modal-produto-content {
    overflow: auto;
}

.modal-produto-content img {
    cursor: zoom-in;
    transition: transform .25s ease;
    transform-origin: center center;
}

.modal-produto-content img.zoomed {
    transform: scale(1.65);
    cursor: zoom-out;
    max-width: none;
    max-height: none;
}

@media(max-width:768px){
    .modal-produto-content {
        left: 20px;
        right: 20px;
    }
}


/* ================================
   RESPONSIVO
================================ */

@media (max-width: 980px) {
    .page-hero.produtos-hero {
        padding: 180px 0 80px;
    }

    .produto-card-detalhado {
        grid-template-columns: 1fr;
    }

    .produto-img-box {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .produtos-filtros {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .filtro-btn {
        white-space: nowrap;
    }
}

@media (max-width: 620px) {
    .page-hero.produtos-hero {
        min-height: auto;
        padding: 150px 0 70px;
    }

    .page-hero-content h1 {
        font-size: 38px;
    }

    .page-hero-content p {
        font-size: 16px;
    }

    .produtos-page {
        padding: 70px 0;
    }

    .produtos-filtros-area,
    .produto-info {
        padding: 24px;
        border-radius: 22px;
    }

    .produto-card-detalhado img {
        height: 220px;
    }
}