/* ============================================
   BRAZUCA STORE - Single Page Styles
   Visual: Light theme, green accents, modern
   ============================================ */

/* CSS Variables */
:root {
    --green: #2d7a3a;
    --green-dark: #1e5c2a;
    --green-light: #e8f5e9;
    --orange: #e8820e;
    --orange-light: #fff3e0;
    --red: #d32f2f;
    --white: #ffffff;
    --grey-50: #fafafa;
    --grey-100: #f5f5f5;
    --grey-200: #eeeeee;
    --grey-300: #e0e0e0;
    --grey-400: #bdbdbd;
    --grey-500: #9e9e9e;
    --grey-600: #757575;
    --grey-700: #616161;
    --grey-800: #424242;
    --grey-900: #212121;
    --text: #333333;
    --text-muted: #777777;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--white); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green);
}
.logo-icon { font-size: 1.4rem; }

.nav { flex: 1; }
.nav-list { display: flex; gap: 1.5rem; justify-content: center; }
.nav-link {
    color: var(--grey-600);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--green);
    border-bottom-color: var(--green);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.6rem;
    background: var(--grey-100);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 500;
    transition: background var(--transition);
}
.lang-toggle:hover { background: var(--grey-200); }

.icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: background var(--transition);
}
.icon-btn:hover { background: var(--grey-100); }
.icon-btn .icon { font-size: 1.1rem; }
.icon-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--green);
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
}

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--grey-800); transition: var(--transition); border-radius: 2px; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 1.5rem;
    gap: 2rem;
}

.hero-text { max-width: 560px; }
.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image { flex-shrink: 0; }
.hero-shirt-img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: white; }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #b71c1c; }
.btn-whatsapp { background: #25D366; color: white; font-size: 1rem; padding: 0.875rem; }
.btn-whatsapp:hover { background: #1da851; }
.btn-block { width: 100%; }

/* ============================================
   BENEFITS
   ============================================ */
.benefits { padding: 3rem 0; background: var(--white); }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--grey-200);
    background: var(--white);
    transition: all var(--transition);
}
.benefit-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.benefit-card.highlight {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
}
.benefit-card.highlight span { color: rgba(255,255,255,0.9); }
.benefit-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.benefit-card strong { font-size: 0.95rem; margin-bottom: 0.25rem; }
.benefit-card span { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 4rem 0; }
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: var(--grey-900);
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 3rem;
}
.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease;
    padding: 1rem 0;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--grey-300);
    font-size: 1.5rem;
    color: var(--grey-700);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.carousel-btn:hover { background: var(--grey-100); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* Product Card */
.product-card {
    min-width: 240px;
    max-width: 280px;
    flex: 0 0 calc(25% - 1.125rem);
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--grey-200);
    transition: all var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--grey-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-image .placeholder { font-size: 4rem; opacity: 0.4; }
.product-favorite {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    color: var(--grey-400);
    font-size: 1rem;
    transition: all var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.product-favorite:hover, .product-favorite.active { color: var(--red); }

.product-info { padding: 1rem; }
.product-name { font-size: 0.95rem; font-weight: 600; color: var(--grey-900); margin-bottom: 0.15rem; }
.product-team { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--green); margin-bottom: 0.75rem; }
.view-product-btn {
    display: block;
    width: 100%;
    padding: 0.6rem;
    background: var(--green);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.view-product-btn:hover { background: var(--green-dark); }

/* ============================================
   TEAMS GRID
   ============================================ */
.teams-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.team-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform var(--transition);
}
.team-badge:hover { transform: scale(1.1); }
.team-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}
.team-badge:hover .team-logo { box-shadow: var(--shadow-lg); }
.team-name { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

/* ============================================
   DELIVERY MAP
   ============================================ */
.delivery-map { background: var(--grey-50); }
.map-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.world-map-img { width: 100%; opacity: 0.7; }

/* ============================================
   CARE SECTION
   ============================================ */
.care-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.care-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--grey-200);
    background: var(--white);
    transition: all var(--transition);
}
.care-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.care-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.care-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--grey-900); }
.care-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { background: var(--grey-50); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.testimonial-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--grey-200);
    transition: box-shadow var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow); }
.testimonial-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.testimonial-header h4 { font-size: 0.9rem; font-weight: 600; }
.stars { color: #f5a623; font-size: 0.85rem; }
.testimonial-card p { font-size: 0.85rem; color: var(--text-muted); font-style: italic; line-height: 1.6; }

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    background: var(--green);
    padding: 4rem 0;
    text-align: center;
    color: white;
}
.newsletter-content h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.newsletter-content p { margin-bottom: 1.5rem; opacity: 0.9; font-size: 0.95rem; }
.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    font-size: 0.9rem;
    outline: none;
}
.newsletter-form .btn { border-radius: 0; padding: 0.875rem 1.5rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--grey-900); color: var(--grey-400); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.85rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.social-icons { display: flex; gap: 1rem; font-size: 1.25rem; }
.social-icons a { transition: opacity var(--transition); }
.social-icons a:hover { opacity: 0.7; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--grey-800);
    padding-top: 1.5rem;
    font-size: 0.8rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a:hover { color: var(--white); }

/* ============================================
   PRODUCT MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--grey-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 1;
    transition: background var(--transition);
}
.modal-close:hover { background: var(--grey-200); }
.modal-body { display: flex; gap: 2rem; padding: 2rem; }
.modal-image {
    flex: 0 0 45%;
    aspect-ratio: 1;
    background: var(--grey-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-image .placeholder { font-size: 5rem; opacity: 0.3; }
.modal-info { flex: 1; }
.modal-info h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--grey-900); }
.modal-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
.modal-price { font-size: 1.5rem; font-weight: 700; color: var(--green); margin-bottom: 1.25rem; }
.modal-sizes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.size-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--grey-300);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--white);
    transition: all var(--transition);
    cursor: pointer;
}
.size-btn:hover { border-color: var(--green); color: var(--green); }
.size-btn.selected { background: var(--green); color: white; border-color: var(--green); }

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
}
.cart-overlay.active { display: block; }
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 1600;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
}
.cart-sidebar.active { right: 0; }
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--grey-200);
}
.cart-header h3 { font-size: 1.1rem; font-weight: 700; }
.cart-close { font-size: 1.25rem; color: var(--grey-600); padding: 0.25rem; }
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--grey-100);
    align-items: center;
}
.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: var(--grey-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.cart-item-details { flex: 1; }
.cart-item-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.15rem; }
.cart-item-size { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.cart-item-price { font-size: 0.85rem; font-weight: 600; color: var(--green); }
.cart-item-actions { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.qty-controls { display: flex; align-items: center; gap: 0; border: 1px solid var(--grey-300); border-radius: 6px; overflow: hidden; }
.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grey-50);
    font-size: 0.9rem;
    transition: background var(--transition);
}
.qty-btn:hover { background: var(--grey-200); }
.qty-val { width: 28px; text-align: center; font-size: 0.8rem; font-weight: 600; }
.cart-remove {
    font-size: 0.7rem;
    color: var(--red);
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.cart-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.cart-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--grey-200);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 1.5rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.toast {
    padding: 0.75rem 1.25rem;
    background: var(--grey-900);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.5s forwards;
}
.toast.error { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 999;
    transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .care-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .product-card { flex: 0 0 calc(33.33% - 1rem); }
    .hero-shirt-img { width: 250px; height: 250px; }
}

@media (max-width: 768px) {
    .nav { 
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 1rem;
        transform: translateY(-120%);
        transition: transform var(--transition);
        z-index: 999;
    }
    .nav.active { transform: translateY(0); }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-link { padding: 0.75rem 0; display: block; border-bottom: 1px solid var(--grey-100); }
    .menu-toggle { display: flex; }

    .hero-content { flex-direction: column; text-align: center; padding: 3rem 1.5rem; }
    .hero-ctas { justify-content: center; }
    .hero-image { display: none; }

    .benefits-grid { grid-template-columns: 1fr 1fr; }
    .carousel-wrapper { padding: 0 2.5rem; }
    .product-card { flex: 0 0 calc(50% - 0.75rem); min-width: 180px; }

    .care-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .modal-body { flex-direction: column; padding: 1.5rem; }
    .modal-image { flex: none; }

    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
    .benefits-grid { grid-template-columns: 1fr; }
    .care-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .product-card { flex: 0 0 100%; min-width: unset; }
    .carousel-wrapper { padding: 0 2rem; }
    .newsletter-form { flex-direction: column; border-radius: var(--radius-sm); }
    .newsletter-form .btn { border-radius: var(--radius-sm); }
}
