@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #121212;
    --secondary: #22c55e; /* Green from logo */
    --accent: #eab308;    /* Yellow/Gold from logo */
    --bg: #0a0a0a;
    --white: #1a1a1a;    /* Cards background in dark mode */
    --text: #f5f5f5;
    --text-light: #a0a0a0;
    --error: #ff4d4d;
    --success: #00c853;
    --shadow: 0 15px 35px rgba(0,0,0,0.06);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 12px;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
    border-radius: var(--radius);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

/* Navbar */
nav {
    height: 100px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

nav.scrolled {
    height: 70px;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--secondary);
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 80px !important; /* Increased from 40px */
    transition: var(--transition);
}

nav.scrolled .logo img {
    max-height: 50px !important;
}

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

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.admin-link {
    font-size: 20px;
    color: var(--text-light);
}

.admin-link:hover {
    color: var(--secondary);
}

.cart-btn {
    position: relative;
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--secondary);
}

.cart-btn:hover {
    transform: translateY(-2px);
    background: var(--secondary);
    color: var(--primary);
}

.cart-count {
    background: var(--accent);
    color: var(--primary);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.btn-user {
    background: none;
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
}

.btn-user:hover {
    color: var(--secondary);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-family: inherit;
}

.auth-needed-msg {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.auth-needed-msg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.auth-needed-msg p {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.5;
}

.auth-needed-msg .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    background: var(--secondary);
    color: var(--primary);
    transition: var(--transition);
}

.auth-needed-msg .btn-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}

/* Hero */
.hero {
    margin-top: 120px;
    margin-bottom: 50px;
    width: 100%;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .hero {
        margin-top: 100px;
        margin-bottom: 30px;
    }
    .hero img {
        height: 220px; /* Medida padrão ideal para mobile */
        object-fit: cover;
    }
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 40px;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

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

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 40px;
    text-align: center;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto;
}

/* Categories */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.cat-chip {
    padding: 10px 24px;
    background: var(--white);
    font-size: 14px;
    border-radius: 30px;
}

.cat-chip.active, .cat-chip:hover {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.product-img {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 24px;
}

.product-cat {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.add-to-cart {
    width: 100%;
    padding: 16px;
    background: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-to-cart:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

.premium-select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.premium-select:focus {
    border-color: var(--secondary);
    outline: none;
    background-color: rgba(255,255,255,0.1);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    transition: 0.5s;
    display: flex;
    justify-content: flex-end;
}

.modal.active {
    right: 0;
}

.modal-content {
    width: 100%;
    max-width: 450px;
    background: var(--white);
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-content.small {
    max-width: 400px;
    height: auto;
    align-self: center;
    border-radius: 24px;
    margin: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h3 { font-size: 24px; }

.close-btn {
    font-size: 32px;
    background: none;
    color: var(--text-light);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 16px; margin-bottom: 5px; }

.cart-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: rgba(255,255,255,0.1);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.cart-summary {
    background: rgba(255,255,255,0.03);
    padding: 24px;
    border-radius: var(--radius);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.grand-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-size: 20px;
    font-weight: 700;
}

.btn-whatsapp {
    width: 100%;
    background: #25d366;
    color: white;
    padding: 16px;
    margin-top: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: scale(1.02);
}

.shipping-calc {
    margin-bottom: 20px;
}

.shipping-calc label {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-bottom: 8px;
}

.gap-10 { gap: 10px; }

.shipping-calc input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    color: white;
    border-radius: 8px;
}

.btn-secondary {
    background: var(--accent);
    color: white;
    padding: 8px 15px;
    font-size: 12px;
}

#shipping-result {
    font-size: 12px;
    margin-top: 8px;
    font-weight: 600;
}

/* Footer */
footer {
    background: #050505;
    color: white;
    padding: 80px 24px 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-col .logo { font-size: 24px; }

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.footer-links a:hover { 
    background: var(--secondary); 
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    font-size: 14px;
}

@media (max-width: 992px) {
    .container { padding: 0 20px; }
    .hero h1 { font-size: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-content { padding: 15px 20px; }
    .hero { 
        height: auto;
        min-height: auto;
    }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; }
    
    .section-title h2 { font-size: 24px; }
    .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
    .product-card .info { padding: 15px; }
    .product-card h3 { font-size: 16px; }
    .product-card .price { font-size: 16px; }
    
    .modal-content { 
        max-width: 100%; 
        padding: 25px 20px;
    }
    
    .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
        text-align: center; 
    }
    .footer-links { justify-content: center; }
    .hide-mobile { display: none; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 32px; }
    .product-grid { grid-template-columns: 1fr; }
    .category-grid { gap: 8px; }
    .cat-chip { padding: 8px 16px; font-size: 13px; }
}

/* Customer Area / Orders */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition);
}

.order-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-date {
    font-size: 13px;
    color: var(--text-light);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending { background: rgba(241, 196, 15, 0.1); color: #f1c40f; }
.status-completed { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.status-cancelled { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }

.order-items {
    margin-bottom: 15px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.btn-user:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: whatsapp-ping 2s infinite ease-out;
}

@keyframes whatsapp-ping {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-float i {
    font-size: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
    color: white;
}


@media (max-width: 768px) {
    .hero {
        margin-top: 70px;
    }
    .hero img {
        min-height: 200px;
        object-fit: cover;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 15px;
        border-radius: 50%;
    }
    .whatsapp-float span {
        display: none;
    }
}

.btn-user {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-user:hover {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}


