/* Paleta de Cores Moderna (Dark Theme focado em 3D/Tech) */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --primary-color: #ff6b00;
    /* Laranja Prusa/Tech */
    --primary-hover: #e65c00;
    --text-main: #f5f5f5;
    --text-muted: #a0aec0;
    --whatsapp-color: #25D366;
    --whatsapp-hover: #1ebd5a;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

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

/* Tipografia e Títulos */
h1,
h2,
h3 {
    color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

/* Navegação Global (Header) */
.main-header,
.navbar {
    background-color: #181818;
    border-bottom: 1px solid #2d3748;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.header-container,
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 20px;
    min-height: 70px;
}

.logo,
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img,
.navbar-brand img {
    height: 48px;
    max-height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.logo:hover img,
.navbar-brand:hover img {
    transform: scale(1.02);
}

.logo span,
.navbar-brand span {
    font-weight: 800;
    font-size: 1.3rem;
    background: -webkit-linear-gradient(45deg, var(--primary-color), #ffb077);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav,
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a,
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover,
.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 107, 0, 0.08);
}

/* Botões */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.btn-lg {
    font-size: 1.1rem;
    padding: 15px 30px;
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Botão Flutuante do WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    display: block;
}

/* Hero Section (index.php) */
.hero {
    background: 
        linear-gradient(rgba(49, 49, 49, 0.397), rgba(39, 39, 39, 0.671)) center/cover no-repeat, 
        url('../assets/img/1.jpg') center/cover no-repeat;
        
    padding: 120px 20px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(45deg, var(--primary-color), #ffb077);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Grid de Produtos (produtos.php) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    border: 1px solid #2d3748;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.product-card-img-wrapper {
    overflow: hidden;
}

.product-card-img-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-img-wrapper img {
    transform: scale(1.08);
}

.product-card h3 {
    padding: 1.2rem;
    font-size: 1.1rem;
    text-align: center;
}

/* Filtros e Busca */
.filters-bar {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border: 1px solid #2d3748;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.search-form input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #121212;
    color: white;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.categories-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge,
.tag-btn {
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: filter 0.3s;
}

.tag-btn:hover {
    filter: brightness(1.2);
}

/* Detalhes do Produto (produto.php) */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #2d3748;
}

.product-gallery .main-img-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid #333;
}

.product-gallery .main-img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumb-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumb-img.active,
.thumb-img:hover {
    border-color: var(--primary-color);
}

.product-info h1 {
    margin: 1rem 0;
    font-size: 2.5rem;
}

.product-info .desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Passos "Como Funciona" */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.step-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #2d3748;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem auto;
}

/* Carrossel Básico (index.php) */
.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4rem;
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.carousel-item {
    min-width: 200px;
    background: var(--card-bg);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    border: 1px solid #333;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.carousel-item h3 {
    font-size: 1rem;
    padding: 0.5rem;
    text-align: center;
}

.carousel-arrow {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .header-container,
    .navbar .container {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem 15px;
    }

    .main-nav,
    .nav-links {
        gap: 1rem;
    }

    .whatsapp-btn {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }
}

/* Carrossel (index.php) */
.carousel-wrapper {
    position: relative; /* Importante para os botões ficarem sobrepostos se quiser */
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4rem;
    overflow: hidden; /* Esconde o que sai da área visível */
}

.carousel {
    display: flex;
    gap: 1.5rem; /* Espaço entre os itens */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0; /* Espaço para a sombra não cortar */
    /* Esconde a barra de rolagem em navegadores baseados no WebKit (Chrome, Safari, Edge) */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Esconde a barra de rolagem (Chrome, Safari, Edge) */
.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    /* Define o tamanho fixo de cada item para o cálculo do JS funcionar bem */
    flex: 0 0 250px; 
    min-width: 250px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: white;
    border: 1px solid #2d3748;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--primary-color);
}

.carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-item h3 {
    font-size: 1rem;
    padding: 1rem;
    text-align: center;
    white-space: nowrap; /* Evita que o texto quebre a linha */
    overflow: hidden;
    text-overflow: ellipsis; /* Coloca '...' se o texto for muito grande */
}

.carousel-arrow {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid #2d3748;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0; /* Impede que o botão diminua de tamanho */
}

.carousel-arrow:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Rodapé Global */
.main-footer {
    background-color: #0e0e0e;
    border-top: 1px solid #2d3748;
    padding: 2.5rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-container {
    margin-bottom: 0.75rem;
}

.footer-contacts p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.footer-contacts a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contacts a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Página de Contato */
.contact-container {
    max-width: 600px;
    margin: 3rem auto;
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #2d3748;
    text-align: center;
}

.contact-info {
    margin-top: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-top: 1px solid #2d3748;
    padding-top: 1.5rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 3rem 0;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid #333;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination a.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}