/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;500;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --bg-color: #0a0a0a;
    --text-color: #f4f4f4;
    --accent-color: #D4AF37; /* Dourado Premium */
    --accent-hover: #b5952f;
    --card-bg: #141414;
    --border-color: #333;
    --font-main: 'Archivo', sans-serif;
    --font-display: 'Playfair Display', serif;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%; /* Removemos o padding vertical */
    height: 80px;  /* Definimos uma ALTURA FIXA para a barra não crescer */
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 10, 10, 0.95); /* Um pouco mais escuro para leitura */
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cart-trigger {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.cart-trigger:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: #000;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/camisa-destaque.jpg') no-repeat center center/cover;
    margin-bottom: 4rem;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1;
    margin-bottom: 1rem;
    animation: fadeUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ddd;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeUp 1.2s ease;
}

/* Botão da Coleção com Efeito Suave */
.btn-cta {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--text-color);
    /* AQUI ESTÁ A CORREÇÃO DO "CORTE BRUSCO" */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeUp 1.4s ease;
}

.btn-cta:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Shop Section */
.shop-container {
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: none;
    color: #666;
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    padding-bottom: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

.filter-btn.active::after, .filter-btn:hover::after {
    width: 100%;
}

/* Product Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.product-image-wrapper {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* --- NOVOS BOTÕES DE AÇÃO --- */
.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    gap: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .product-actions {
    transform: translateY(0);
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--accent-color);
    color: #000;
}

/* Feedback de "Adicionado" */
.btn-icon.added {
    background: #28a745;
    transform: scale(1.1);
}

.btn-buy {
    flex: 1; /* Ocupa o resto do espaço */
    border: none;
    background: var(--text-color);
    color: var(--bg-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    background: var(--accent-color);
    color: #fff;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: #000;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
}

.product-info {
    padding: 1.5rem;
}

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

.product-info h3 {
    font-size: 1.2rem;
    margin: 5px 0;
    font-weight: 500;
}

.product-info .price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Carrinho Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #111;
    z-index: 200;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
}

.cart-header h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
    animation: fadeUp 0.3s ease;
}

.cart-item img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info h4 { font-size: 0.9rem; margin-bottom: 5px; }
.cart-item-info p { color: var(--accent-color); margin-bottom: 10px; }

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #222;
    padding: 2px 5px;
    border-radius: 4px;
    width: fit-content;
}

.quantity-controls button {
    background: none;
    border: none;
    color: #fff;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

.quantity-controls button:hover { color: var(--accent-color); }

.remove-btn {
    background: none;
    border: none;
    color: #444;
    margin-left: auto;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-btn:hover { color: #ff4444; }

.cart-footer {
    padding: 2rem;
    background: #1a1a1a;
    border-top: 1px solid var(--border-color);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--text-color);
    border: none;
    color: var(--bg-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

.empty-cart-msg {
    text-align: center;
    color: #666;
    margin-top: 2rem;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsivo */
@media (max-width: 768px) {
    .cart-sidebar { width: 100%; right: -100%; }
    .hero-content h1 { font-size: 3rem; }
    .filters { gap: 1rem; flex-wrap: wrap; }
    
    /* No mobile, os botões aparecem sempre, não só no hover */
    .product-actions { transform: translateY(0); }
}

/* ... (Mantenha todo o CSS anterior até o @media) ... */

/* --- NOVO: FOOTER PREMIUM --- */
.main-footer {
    background-color: #050505;
    border-top: 1px solid var(--border-color);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: #888;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

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

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px; /* Efeito de movimento sutil */
}

/* Redes Sociais */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Newsletter */
.newsletter-form {
    display: flex;
    border-bottom: 1px solid #444;
}

.newsletter-form input {
    background: none;
    border: none;
    padding: 10px 0;
    color: var(--text-color);
    width: 100%;
    outline: none;
}

.newsletter-form button {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.newsletter-form button:hover {
    transform: translateX(5px);
}

/* Rodapé Inferior */
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #555;
    font-size: 0.85rem;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
    color: #666;
}

/* --- NOVO: BOTÃO WHATSAPP --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366; /* Verde Oficial do WhatsApp */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #20BA56;
    color: #fff;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Ajuste Responsivo para Footer e WhatsApp */
@media (max-width: 768px) {
    /* ... (seus estilos anteriores) ... */
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
/* ... código anterior ... */

/* Header Logo Styles */
.logo-link {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    width: 120px; /* Reserva um espaço lateral para o texto não encostar */
}

.logo-img {
    height: 90px; /* AUMENTADO: Bem maior que a barra (80px) */
    width: auto;
    
    /* O SEGREDO: Posição Absoluta */
    position: absolute; 
    top: -3px; /* Ajuste para colar no topo ou descer um pouco */
    left: 0;
    
    /* Garante que fique por cima de tudo */
    z-index: 101; 
    
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); /* Sombra para destacar do fundo */
    transition: transform 0.3s ease;
}

/* ... código anterior ... */

/* Footer Logo Styles */
.footer-logo {
    height: 80px; /* Um pouco maior no rodapé para destaque */
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
    /* mix-blend-mode opcional dependendo do fundo da imagem */
}

.logo-img:hover {
    transform: scale(1.05); /* Zoom suave */
}

/* Ajuste no Mobile para não cobrir a tela */
@media (max-width: 768px) {
    header {
        height: 70px; /* Barra um pouco menor no celular */
    }
    
    .logo-img {
        height: 80px; /* Logo menor, mas ainda vazando a barra */
        top: -5px;
    }
}
/* --- COMPORTAMENTO DO WHATSAPP QUANDO O CARRINHO ABRE --- */

/* Quando o body tem a classe 'cart-open', o botão do WhatsApp muda */
body.cart-open .whatsapp-btn {
    opacity: 0;             /* Fica invisível */
    visibility: hidden;     /* Não recebe cliques */
    transform: translateY(20px) scale(0.8); /* Efeito de "cair" para baixo */
    pointer-events: none;   /* Garante que não atrapalhe nada */
}

/* --- SELETOR DE TAMANHOS (COM EFEITO REVEAL) --- */
.size-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    
    /* Estado Inicial: Escondido */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0; /* Sem margem para não ocupar espaço */
    
    /* Transição suave de abertura */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado Visível (Ativado pelo JS) */
.size-selector.show {
    max-height: 60px; /* Altura suficiente para os botões */
    opacity: 1;
    margin: 15px 0 5px; /* Adiciona respiro quando abre */
}

.size-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #444;
    background: transparent;
    color: #888;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.size-btn:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

.size-btn.selected {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
    font-weight: 800;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Animação de erro (Shake) */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); border-color: #ff4444; color: #ff4444; }
    75% { transform: translateX(5px); border-color: #ff4444; color: #ff4444; }
}

.size-error {
    animation: shake 0.4s ease-in-out;
}

.product-info {
    padding: 1rem 1.5rem 1.5rem;
    /* Adiciona transição suave caso o card precise crescer */
    transition: padding 0.3s ease; 
}