.container-produtos {
    width: 92%;
    max-width: 1400px;
    margin: 30px auto 50px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2d3d;
}

.page-subtitle {
    color: #6b7280;
    margin-bottom: 24px;
}

/* FILTROS */

.filtros-box {
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .03);
}

.filtros-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.filtro-grupo label {
    font-size: 13px;
    font-weight: 700;
    color: #425466;
}

.filtros-form input,
.filtros-form select,
.filtros-form button,
.filtros-form a {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #dbe4ee;
    padding: 0 14px;
    font-size: 14px;
    box-sizing: border-box;
}

.filtros-form input,
.filtros-form select {
    background: #fff;
    color: #1f2d3d;
    transition: .2s ease;
}

.filtros-form input::placeholder {
    color: #94a3b8;
}

.filtros-form input:focus,
.filtros-form select:focus {
    outline: none;
    border-color: #2f84d0;
    box-shadow: 0 0 0 3px rgba(47, 132, 208, .12);
}

/* ações */

.filtros-acoes {
    display: flex;
    gap: 10px;
    align-items: end;
}

.btn-filtrar {
    border: none !important;
    background: linear-gradient(135deg, #0d5ea8, #2f84d0);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.btn-filtrar:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(13, 94, 168, .18);
}

.btn-limpar {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #0d5ea8;
    font-weight: 700;
    border: 1px solid #dbe4ee;
    transition: .2s ease;
}

.btn-limpar:hover {
    background: #eef5fb;
}

/* PRODUTOS */

.grid-produtos {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.produto-card {
    background: #fff;
    border: 1px solid #d7dbe2;
    border-radius: 20px;
    padding: 14px;
    position: relative;
    transition: .25s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.produto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, .06);
}

.produto-topo {
    position: relative;
    margin-bottom: 12px;
}

.produto-badge-desconto {
    position: absolute;
    top: 0;
    right: 0;
    background: #2e8b57;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    z-index: 2;
}

.produto-imagem-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.produto-imagem {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.produto-slogan {
    display: inline-block;
    background: #fde7e7;
    color: #a11c1c;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    min-height: 24px;
}

.produto-nome {
    font-size: 16px;
    line-height: 1.35;
    color: #3a3a3a;
    margin-bottom: 6px;
    min-height: 64px;
    font-weight: 600;
}

.produto-unidade {
    font-size: 14px;
    color: #7b7b7b;
    margin-bottom: 8px;
}

.produto-rating {
    color: #f5a623;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.produto-rating strong {
    color: #e58a00;
    font-weight: 500;
}

.produto-preco-antigo {
    color: #8d8d8d;
    text-decoration: line-through;
    font-size: 15px;
    margin-bottom: 4px;
    min-height: 20px;
}

.produto-preco-atual {
    font-size: 34px;
    font-weight: 800;
    color: #2d2d2d;
    line-height: 1;
    margin-bottom: 12px;
}

.produto-rodape {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.btn-detalhes {
    flex: 1;
    height: 46px;
    border-radius: 20rem;
    border: 1px solid #adb3b9;
    background: #fff;
    color: #0d5ea8;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}

.btn-detalhes:hover {
    background: #f7fbff;
    border-color: #b8d3ea;
}

.btn-add {
    margin-top: 10px;
    text-align: center;
    height: 40px;
    border-radius: 20rem;
    border: none;
    background: var(--primary-dark);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: .2s ease;
}

.btn-add:hover {
    transform: scale(1.05);
}

.btn-add:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    color: #2f84d0;
}

.sem-produtos {
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 20rem;
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

/* RESPONSIVO */

@media (max-width: 1400px) {
    .filtros-form {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .grid-produtos {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .filtros-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-produtos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .filtros-form {
        grid-template-columns: 1fr;
    }

    .filtros-acoes {
        flex-direction: column;
    }

    .filtros-acoes .btn-filtrar,
    .filtros-acoes .btn-limpar {
        width: 100%;
    }

    .grid-produtos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .container-produtos {
        width: 94%;
    }

    .page-title {
        font-size: 24px;
    }

    .produto-preco-atual {
        font-size: 28px;
    }

    .grid-produtos {
        grid-template-columns: 1fr;
    }
}

        :root {
            --primary: #0d5ea8;
            --primary-dark: #084b86;
            --primary-light: #2f84d0;
            --success: #198754;
            --danger: #dc3545;
            --warning: #f5a623;
            --text: #1f2d3d;
            --muted: #6b7280;
            --border: #dbe4ee;
            --soft: #f6f8fb;
            --white: #ffffff;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            background: #f5f6f8;
            color: var(--text);
            font-family: 'Roboto', Arial, Helvetica, sans-serif;
        }

        a {
            text-decoration: none;
        }

        button {
            font-family: inherit;
        }

        .container-produtos {
            width: 92%;
            max-width: 1400px;
            margin: 28px auto 50px;
        }

        .breadcrumb-box {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
            margin-bottom: 18px;
            color: var(--muted);
            font-size: 14px;
        }

        .breadcrumb-box a {
            color: var(--primary);
            font-weight: 700;
        }

        .produto-detalhe-grid {
            display: grid;
            grid-template-columns: 1.02fr 1fr;
            gap: 24px;
            align-items: start;
        }

        .card-box {
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 22px;
            box-shadow: 0 8px 22px rgba(0, 0, 0, .03);
        }

        .produto-galeria {
            padding: 22px;
            position: sticky;
            top: 20px;
        }

        .produto-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 18px;
        }

        .badge-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 13px;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 800;
        }

        .badge-categoria {
            background: #eef5fb;
            color: var(--primary);
            border: 1px solid #d4e6f7;
        }

        .badge-desconto {
            background: #eaf8ef;
            color: #2e8b57;
            border: 1px solid #cfead8;
        }

        .badge-destaque {
            background: #fff6df;
            color: #a56b00;
            border: 1px solid #f4dfaa;
        }

        .badge-novo {
            background: #efeaff;
            color: #6842d7;
            border: 1px solid #dbd0ff;
        }

        .galeria-box {
            display: grid;
            grid-template-columns: 88px 1fr;
            gap: 14px;
            align-items: start;
        }

        .galeria-thumbs {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 520px;
            overflow-y: auto;
        }

        .galeria-thumb {
            width: 78px;
            height: 78px;
            border: 2px solid #dfe8f2;
            border-radius: 14px;
            background: #fff;
            padding: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: .2s ease;
        }

        .galeria-thumb:hover,
        .galeria-thumb.ativo {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(13, 94, 168, .10);
        }

        .galeria-thumb img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 10px;
        }

        .galeria-main-wrap {
            position: relative;
        }

        .galeria-main {
            min-height: 520px;
            border: 1px solid #edf2f7;
            border-radius: 20px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            padding: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            cursor: zoom-in;
            position: relative;
        }

        .galeria-main::after {
            content: "Clique para ampliar";
            position: absolute;
            right: 14px;
            bottom: 14px;
            background: rgba(17, 24, 39, .78);
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            padding: 8px 12px;
            border-radius: 999px;
            pointer-events: none;
        }

        .galeria-main-zoom {
            width: 100%;
            min-height: 450px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .galeria-main img {
            max-width: 100%;
            max-height: 430px;
            object-fit: contain;
            transition: transform .18s ease;
            transform-origin: center center;
            user-select: none;
            pointer-events: none;
        }

        .galeria-main.zooming img {
            transform: scale(2);
        }

        .galeria-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 42px;
            height: 42px;
            border: none;
            border-radius: 999px;
            background: rgba(255,255,255,.96);
            color: #123b67;
            box-shadow: 0 10px 20px rgba(0,0,0,.10);
            cursor: pointer;
            z-index: 3;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .galeria-nav.prev {
            left: 14px;
        }

        .galeria-nav.next {
            right: 14px;
        }

        .galeria-contador {
            margin-top: 12px;
            text-align: center;
            font-size: 13px;
            font-weight: 700;
            color: #6b7280;
        }

        .produto-info {
            padding: 28px;
        }

        .produto-marca {
            font-size: 14px;
            color: var(--muted);
            margin-bottom: 8px;
            font-weight: 700;
        }

        .produto-titulo {
            font-size: 34px;
            font-weight: 900;
            line-height: 1.15;
            margin: 0 0 12px;
            color: #1f2d3d;
        }

        .produto-slogan {
            display: inline-block;
            background: #fde7e7;
            color: #a11c1c;
            border-radius: 999px;
            padding: 7px 12px;
            font-size: 12px;
            font-weight: 800;
            margin-bottom: 16px;
        }

        .produto-rating {
            color: #f5a623;
            font-size: 15px;
            display: flex;
            align-items: center;
            gap: 7px;
            flex-wrap: wrap;
            margin-bottom: 18px;
        }

        .produto-rating strong {
            color: #db8600;
            font-weight: 800;
        }

        .produto-resumo {
            font-size: 15px;
            color: #516174;
            line-height: 1.8;
            margin-bottom: 20px;
        }

        .produto-meta {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-bottom: 22px;
        }

        .meta-card {
            background: #f8fafc;
            border: 1px solid #e7edf4;
            border-radius: 16px;
            padding: 14px;
        }

        .meta-label {
            font-size: 12px;
            color: #7b8794;
            font-weight: 800;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: .3px;
        }

        .meta-value {
            font-size: 15px;
            color: #1f2d3d;
            font-weight: 800;
        }

        .preco-box {
            background: linear-gradient(135deg, #f8fbff, #eef5fb);
            border: 1px solid #dceaf7;
            border-radius: 20px;
            padding: 22px;
            margin-bottom: 18px;
        }

        .produto-preco-antigo {
            color: #8d8d8d;
            text-decoration: line-through;
            font-size: 16px;
            margin-bottom: 6px;
            min-height: 20px;
        }

        .produto-preco-atual {
            font-size: 42px;
            font-weight: 900;
            color: #1d2b38;
            line-height: 1;
            margin-bottom: 8px;
        }

        .produto-economia {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            background: #ebfff2;
            color: #137a42;
            border: 1px solid #cbead7;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 800;
            margin: 8px 0 10px;
        }

        .produto-preco-info {
            font-size: 14px;
            color: #5b6b7b;
        }

        .estoque-status {
            margin-top: 12px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 800;
            padding: 10px 14px;
            border-radius: 999px;
        }

        .estoque-ok {
            background: #ecfdf3;
            color: #198754;
            border: 1px solid #cfead8;
        }

        .estoque-off {
            background: #fff1f2;
            color: #dc3545;
            border: 1px solid #f3d1d6;
        }

        .compra-box {
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 20px;
            background: #fff;
        }

        .compra-label {
            font-size: 14px;
            font-weight: 800;
            color: #425466;
            margin-bottom: 8px;
        }

        .compra-grid {
            display: grid;
            grid-template-columns: 130px 1fr;
            gap: 12px;
            align-items: end;
        }

        .campo-quantidade {
            width: 100%;
            height: 52px;
            border-radius: 14px;
            border: 1px solid #dbe4ee;
            padding: 0 14px;
            font-size: 15px;
            background: #fff;
            color: #1f2d3d;
        }

        .btn-comprar {
            width: 100%;
            height: 52px;
            border: none;
            border-radius: 999px;
            background: linear-gradient(135deg, #0d5ea8, #2f84d0);
            color: #fff;
            font-size: 16px;
            font-weight: 900;
            cursor: pointer;
        }

        .acoes-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 12px;
        }

        .btn-secundario {
            height: 48px;
            border-radius: 999px;
            border: 1px solid #dbe4ee;
            background: #fff;
            color: #0d5ea8;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .secao {
            padding: 24px;
            margin-top: 24px;
        }

        .secao-titulo {
            font-size: 24px;
            font-weight: 900;
            margin-bottom: 16px;
            color: #1f2d3d;
        }

        .descricao-texto {
            color: #475569;
            line-height: 1.9;
            font-size: 15px;
        }

        .especificacoes-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .spec-item {
            background: #f8fafc;
            border: 1px solid #e7edf4;
            border-radius: 16px;
            padding: 14px;
        }

        .spec-item strong {
            display: block;
            font-size: 12px;
            text-transform: uppercase;
            color: #7b8794;
            margin-bottom: 6px;
            letter-spacing: .3px;
        }

        .spec-item span {
            font-size: 15px;
            color: #1f2d3d;
            font-weight: 700;
        }

        .grid-produtos {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
        }

        .produto-card {
            background: #fff;
            border: 1px solid #d7dbe2;
            border-radius: 20px;
            padding: 14px;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .produto-topo {
            position: relative;
            margin-bottom: 12px;
        }

        .produto-badge-desconto {
            position: absolute;
            top: 0;
            right: 0;
            background: #2e8b57;
            color: #fff;
            font-size: 13px;
            font-weight: 800;
            padding: 6px 10px;
            border-radius: 999px;
            z-index: 2;
        }

        .produto-imagem-link {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 190px;
            border-radius: 16px;
            overflow: hidden;
            background: #fff;
            border: 1px solid #eef2f6;
        }

        .produto-imagem {
            max-width: 100%;
            max-height: 180px;
            object-fit: contain;
        }

        .produto-slogan-card {
            display: inline-block;
            background: #fde7e7;
            color: #a11c1c;
            border-radius: 999px;
            padding: 4px 10px;
            font-size: 12px;
            font-weight: 800;
            margin-bottom: 10px;
        }

        .produto-nome {
            font-size: 16px;
            line-height: 1.35;
            color: #3a3a3a;
            margin-bottom: 6px;
            min-height: 64px;
            font-weight: 700;
        }

        .produto-unidade {
            font-size: 14px;
            color: #7b7b7b;
            margin-bottom: 8px;
        }

        .produto-preco-antigo-card {
            color: #8d8d8d;
            text-decoration: line-through;
            font-size: 15px;
            margin-bottom: 4px;
            min-height: 20px;
        }

        .produto-preco-atual-card {
            font-size: 30px;
            font-weight: 900;
            color: #2d2d2d;
            line-height: 1;
            margin-bottom: 12px;
        }

        .produto-rodape {
            margin-top: auto;
        }

        .btn-detalhes {
            width: 100%;
            height: 46px;
            border-radius: 999px;
            border: 1px solid #adb3b9;
            background: #fff;
            color: #0d5ea8;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .sem-produtos {
            background: #fff;
            border: 1px solid #dbe4ee;
            border-radius: 18px;
            padding: 40px 20px;
            text-align: center;
            color: #666;
        }

        .lightbox {
            position: fixed;
            inset: 0;
            background: rgba(10, 17, 29, .92);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .lightbox.ativo {
            display: flex;
        }

        .lightbox-fechar {
            position: absolute;
            top: 18px;
            right: 18px;
            width: 48px;
            height: 48px;
            border: none;
            border-radius: 999px;
            background: rgba(255,255,255,.12);
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            z-index: 10;
        }

        .lightbox-wrap {
            width: 100%;
            max-width: 1200px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            position: relative;
        }

        .lightbox-img-box {
            width: 100%;
            min-height: 70vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox-img {
            max-width: 100%;
            max-height: 82vh;
            object-fit: contain;
            border-radius: 18px;
        }

        .lightbox-nav {
            width: 56px;
            height: 56px;
            border: none;
            border-radius: 999px;
            background: rgba(255,255,255,.14);
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            flex-shrink: 0;
        }

        .lightbox-legenda {
            position: absolute;
            left: 50%;
            bottom: -12px;
            transform: translateX(-50%);
            color: #dbe4ee;
            font-size: 14px;
            font-weight: 700;
        }

        body.lightbox-aberto {
            overflow: hidden;
        }

        @media (max-width: 1200px) {
            .produto-detalhe-grid {
                grid-template-columns: 1fr;
            }

            .produto-galeria {
                position: static;
            }

            .grid-produtos {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        @media (max-width: 992px) {
            .galeria-box {
                grid-template-columns: 1fr;
            }

            .galeria-thumbs {
                flex-direction: row;
                overflow-x: auto;
                overflow-y: hidden;
                max-height: none;
            }

            .galeria-main.zooming img {
                transform: none !important;
            }

            .grid-produtos {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 768px) {
            .produto-meta,
            .especificacoes-grid,
            .acoes-grid,
            .compra-grid {
                grid-template-columns: 1fr;
            }

            .produto-info,
            .produto-galeria,
            .secao {
                padding: 18px;
            }

            .galeria-main {
                min-height: 320px;
            }

            .galeria-main-zoom {
                min-height: 260px;
            }

            .galeria-main img {
                max-height: 260px;
            }
        }

        @media (max-width: 520px) {
            .grid-produtos {
                grid-template-columns: 1fr;
            }

            .produto-titulo {
                font-size: 24px;
            }

            .produto-preco-atual {
                font-size: 30px;
            }
        }