* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    background: #f4f9fb;
    color: #333;
}

header {
    background: #00b4d8;
    color: white;
    text-align: center;
    padding: 30px;
}

.categoria {
    will-change: transform;
}


.categoria:hover {
    transform: translateY(-4px);
}


.categoria-toggle {
    width: 100%;
    padding: 22px 30px;
    font-size: 1.4rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--azul-principal), var(--azul-claro));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categoria-toggle::after {
    content: "⌄";
    font-size: 1.5rem;
    transition: transform .3s ease;
}

.categoria-toggle.aberto::after {
    transform: rotate(180deg);
}


.carousel {
    display: flex;
    overflow-x: auto;
}

.carousel img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}


.produto {
    background: var(--cinza-claro);
    border-radius: 16px;
    padding: 20px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.produto-opcoes select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--cinza-medio);
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.produto-opcoes label {
    font-weight: 600;
    margin-top: 10px;
}

.produto:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra);
}

.produto-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.produto-img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: white;
    border-radius: 14px;
    padding: 15px;
}


.produto-opcoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

select {
    padding: 8px;
    border-radius: 6px;
}

.slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Botões */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 26px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

:root {
    --azul-principal: #0077b6;
    --azul-claro: #00b4d8;
    --cinza-claro: #f6f9fc;
    --cinza-medio: #e5eaf0;
    --texto: #2b2b2b;
    --branco: #ffffff;
    --sombra: 0 10px 25px rgba(0, 0, 0, .08);
}

.conteudo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 30px;

    max-height: 0;
    overflow: hidden;
    opacity: 0;

    transition:
        max-height 0.45s ease,
        opacity 0.3s ease;
}

.conteudo.aberto {
    padding: 30px;
    max-height: 3000px;
    /* valor alto para comportar os cards */
    opacity: 1;
}


.produto-img.troca {
    animation: fadeZoom .3s ease;
}

@keyframes fadeZoom {
    from {
        opacity: 0;
        transform: scale(.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .categoria-toggle {
        font-size: 1.2rem;
        padding: 18px;
    }
}