/* --- VARIÁVEIS E CONFIGURAÇÕES GERAIS --- */
:root {
    --primary: #F28C38; /* Laranja da Navegantes */
    --primary-hover: #d67a2e;
    --dark: #1a1a1a;
    --black: #000000;
    --white: #ffffff;
    --gray-light: #f4f4f4;
    --text-muted: #888;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- NAVBAR E LOGO FLUTUANTE --- */
.navbar {
    background: var(--black);
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 4px solid var(--primary);
}

.navbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.logo-wrapper {
    position: absolute;
    left: 0;
    top: 5px;
    z-index: 1200;
}

.main-logo {
    height: 120px; /* Logo grande que "vaza" da barra */
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    transition: 0.3s ease;
}

.cart-btn {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto; /* Empurra para a direita */
    transition: 0.3s;
}

.cart-btn:hover {
    background: var(--primary-hover);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1510626176961-4b57d4fbad03?q=80&w=1200') center/cover;
    color: var(--white);
    padding: 120px 20px 60px;
    text-align: center;
}

.hero h1 {
    font-family: 'Oswald', sans-serif;
    /* O clamp faz o seguinte: 
       - Mínimo: 1.8rem (para celulares pequenos)
       - Ideal: 5vw (5% da largura da tela - ele cresce e diminui com o navegador)
       - Máximo: 3.5rem (para telas grandes de PC)
    */
    font-size: clamp(1.8rem, 5vw, 3.5rem); 
    
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: normal; /* Permite quebrar se a tela for MUITO pequena */
    width: 100%;
    max-width: 900px; /* Limita a largura para não esticar demais */
    margin-left: auto;
    margin-right: auto;
}

/* Ajuste no container do Hero */
.hero .container {
    max-width: 1200px; /* Garante que o texto tenha espaço para respirar lateralmente */
}


/* --- FILTRO DROPDOWN (MOBILE FRIENDLY) --- */
.filter-wrapper {
    max-width: 400px;
    margin: 40px auto;
    text-align: left;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.select-custom {
    position: relative;
    display: flex;
    align-items: center;
}

#category-select, select {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fff;
    appearance: none;
    outline: none;
    cursor: pointer;
}

.select-custom i {
    position: absolute;
    right: 20px;
    color: var(--primary);
    pointer-events: none;
}

/* --- GRID DE PRODUTOS (1 COLUNA NO MOBILE) --- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr; /* Inicia com 1 coluna */
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.img-wrapper {
    background: var(--gray-light);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.img-wrapper img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    transition: 0.5s;
}

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

.price {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary);
    margin: 10px 0 20px;
}

.add-btn {
    width: 100%;
    padding: 15px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.add-btn:hover {
    background: var(--primary);
}

/* --- FOOTER --- */
.main-footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: var(--primary);
    font-family: 'Oswald', sans-serif;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.map-box {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #333;
}

.gps-btn {
    display: block;
    background: var(--primary);
    color: var(--white);
    padding: 15px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
}

.social-box {
    display: flex;
    gap: 15px;
}

.circle-icon {
    width: 45px;
    height: 45px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
}

.circle-icon:hover {
    background: var(--primary);
}

/* Rodapé dos créditos */
.footer-copy {
    background: var(--black);
    padding: 20px 0;
    font-size: 0.8rem;
    border-top: 1px solid #222;
}

.footer-copy-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.dev-credit {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.dev-credit img {
    height: 25px;
    filter: grayscale(1) brightness(0.7);
    transition: 0.3s;
}

.dev-credit a:hover img {
    filter: grayscale(0) brightness(1);
}

/* --- CARRINHO LATERAL --- */
/* --- CARRINHO LATERAL PREMIUM --- */
#cart-drawer {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: #fff;
    z-index: 2100;
    transition: 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

#cart-drawer.active { right: 0; }

/* Cabeçalho do Carrinho */
.cart-header {
    padding: 30px 25px;
    background: var(--black);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--primary);
}

.cart-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.close-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

/* Área de Itens */
#cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fdfdfd;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #f0f0f0;
}

.cart-item-info { flex: 1; }

.cart-item-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: #888;
}

.cart-item-price {
    font-weight: bold;
    color: var(--primary);
    font-size: 1rem;
}

.btn-remove-item {
    background: #fff0f0;
    color: #e74c3c;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-remove-item:hover {
    background: #e74c3c;
    color: #fff;
}

/* Rodapé do Carrinho */
.cart-footer {
    padding: 25px;
    background: var(--white);
    border-top: 1px solid #eee;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

.total-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.total-label {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#cart-total {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--black);
}

.checkout-btn {
    width: 100%;
    background: #25D366; /* Cor oficial WhatsApp */
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.checkout-btn:hover {
    background: #1eb954;
    transform: translateY(-2px);
}

/* --- RESPONSIVIDADE PARA TABLET/PC --- */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-copy-flex {
        flex-direction: row;
        justify-content: space-between;
    }

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