/* Estilos específicos para a página de Toldos com Laterais */

.cozinhas-container {
    padding: 120px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-voltar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #95a5a6;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 30px;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.btn-voltar:hover {
    background: #7f8c8d;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* Grid para 5 produtos - 3 na primeira linha, 2 na segunda */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.produto-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.produto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.produto-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.produto-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.produto-card:hover .produto-image img {
    transform: scale(1.05);
}

/* Centralizar os produtos 4 e 5 na segunda linha com carrossel no meio */
.produto-card:nth-child(4) {
    grid-column: 1 / 2;
    justify-self: center;
}

.produto-card:nth-child(5) {
    grid-column: 3 / 4;
    justify-self: center;
}

/* Carrossel no meio da segunda linha */
.carousel-container {
    grid-column: 2 / 3;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #f8f9fa;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.carousel-info {
    padding: 25px;
    text-align: center;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bdc3c7;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: #3498db;
}

.produto-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.produto-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-align: center;
}

.produto-info p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-detalhes {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.btn-detalhes:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* Responsivo */
@media (max-width: 1200px) {
    .produtos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 1000px;
    }
    
    /* Reset posicionamento para telas menores */
    .produto-card:nth-child(4),
    .produto-card:nth-child(5) {
        grid-column: auto;
        justify-self: center;
    }
    
    .carousel-container {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 1024px) {
    .produtos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .cozinhas-container {
        padding: 100px 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .produtos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 600px;
    }
    
    .produto-image {
        height: 200px;
        padding: 15px;
    }
    
    .produto-info {
        padding: 20px;
    }
    
    .produto-info h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .btn-voltar {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .produto-info h3 {
        font-size: 1.4rem;
    }
    
    .btn-detalhes {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

