body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f3f3;
}

/* Topo amarelo */
.topo {
    background: #f4c400;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.topo-busca {
    display: flex;
    gap: 10px;
}

.topo-busca input {
    padding: 6px;
    width: 200px;
}

.btn-search {
    padding: 6px 12px;
}

.topo-info p {
    margin: 2px 0;
    text-align: right;
    font-size: 12px;
}

/* Menu preto */
.menu {
    background: #222;
    padding: 12px 20px;
    display: flex;
    gap: 30px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Título */
.titulo {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.voltar {
    color: #555;
    text-decoration: none;
}

/* Produtos */
.produtos-container {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.produto-card {
    background: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.produto-card img {
    width: 230px;
    cursor: pointer;
}

/* CARROSSEL PERFEITO SEM EFEITOS */
.carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.slides img {
    display: none;
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding-top: 10px;
}

.slides img.active {
    display: block;
}

.produto-card h5 {
    margin-top: 20px; /* espaço entre imagem e texto */
    margin-bottom:  10px;
}

.codigo {
   font-size: 20px; /* espaço entre imagem e texto */
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
}

.prev { left: 5px; }
.next { right: 5px; }

/* LIGHTBOX AJUSTADO */
/* LIGHTBOX FINAL E CORRETO */
.modal-img {
    display: none; 
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.modal-img.active {
    display: flex !important;
}


.modal-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 45px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}


/* Topo amarelo */
.topo {
    background: #f4c400;
    padding: 15px;
}
.logo {
    font-size: 28px;
    font-weight: bold;
}

/* Menu preto */
.menu {
    background: #222;
    padding: 12px;
}
.menu a {
    color: white;
    margin-right: 25px;
    text-decoration: none;
    font-weight: bold;
}

/* Cards */
.produto-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.produto-card img { cursor: pointer; }

/* Lightbox */
.modal-img {
    background: rgba(0, 0, 0, .8);
}

.modal-img .modal-content {
    max-height: 80vh;
}

.paginacao {
    text-align: center;
    margin: 30px 0;
}

.paginacao button {
    padding: 8px 15px;
    margin: 0 5px;
    border: none;
    background: #222;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}