/* Comercial Ferreira Showroom - Main Stylesheet (Versão Integrada v4.0) */

:root {
    --primary: #E7C833;
    --dark: #1A1A1A;
    --black: #000000;
    --white: #FFFFFF;
    --gray: #F4F4F4;
    --whatsapp: #25D366;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
}

/* Navigation */
nav {
    background-color: var(--black);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.logo span {
    color: var(--white);
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: #000;
}

/* Camada de escurecimento para leitura */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 2;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-btns { flex-direction: column; gap: 10px; }
}
/* Buttons */
.btn {
    background-color: var(--primary);
    color: var(--black);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 800;
    border-radius: 5px;
    display: inline-block;
    transition: var(--transition);
}

.btn:hover {
    transform: scale(1.05);
    background-color: var(--white);
}

/* Grid & Cards Geral */
.section {
    padding: 60px 5%;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--primary);
}

.grid-produtos, .grid-catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Estilos Específicos do Card de Produto com Carrossel */
.produto-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.img-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f0f0f0;
}

.slide-foto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.slide-foto.active {
    opacity: 1;
}

.carrossel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
}

.carrossel-controls button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: auto;
    transition: var(--transition);
}

.carrossel-controls button:hover {
    background: var(--primary);
}

.carrossel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.dot.active {
    background: var(--primary);
    width: 12px;
    border-radius: 4px;
}

.produto-info {
    padding: 20px;
    text-align: left;
}

.produto-tag {
    background-color: var(--primary);
    color: var(--black);
    padding: 3px 8px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 10px;
    display: inline-block;
}

.produto-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.detalhes {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.detalhes span {
    display: block;
    margin-top: 5px;
}

.btn-pedir {
    display: block;
    background-color: var(--whatsapp);
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-pedir:hover {
    background-color: #128C7E;
}

/* Filtros */
.filtros {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--black);
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.7rem;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
}

/* Responsividade Geral */
@media (max-width: 768px) {
    nav { flex-direction: column; gap: 15px; }
    .nav-links { margin-top: 10px; }
    .hero h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.5rem; }
}
.main-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 5% 20px;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info p {
    color: #999;
    line-height: 1.6;
}

.footer-contact h4, .footer-nav h4 {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--primary);
    text-transform: uppercase;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-nav ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #fff;
    background: #333;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
}

.footer-bottom {
    color: #666;
    text-decoration: none;
    border-top: 1px solid #333;
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}

/* Animação de Pulso Suave */
@keyframes skeleton-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.skeleton-card {
    background: #fff;
    border-radius: 15px;
    padding: 0; /* Remove padding para a imagem encostar nas bordas igual ao card real */
    height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.skeleton-img {
    width: 100%;
    height: 280px; /* Mesma altura das fotos reais */
    background: #eee;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-text {
    height: 20px;
    width: 80%;
    border-radius: 4px;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-line {
    height: 14px;
    background: #eee;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-btn {
    height: 45px;
    width: 100%;
    background: #eee;
    border-radius: 8px;
    margin-top: 5px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.btn-primary,
.btn-outline {
    background-color: var(--primary);
    color: var(--black);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 800;
    border-radius: 5px;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary:hover,
.btn-outline:hover {
    transform: scale(1.05);
    background-color: var(--white);
}

.btn-outline {
    background-color: var(--primary);
    color: var(--dark);

}