:root {
    --bg-dark: #0f0f11;
    --bg-card: #1c1c1f;
    --primary: #d4af37; /* Gold */
    --primary-hover: #b5952f;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --border-color: #333;
    --glass-bg: rgba(28, 28, 31, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, .logo, .brand-title {
    font-family: 'Playfair Display', serif;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff2a8, #d4af37, #9c7b16);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.cart-icon, .login-btn {
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
    transition: color 0.3s;
}

.cart-icon:hover, .login-btn:hover {
    color: var(--primary);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 40px; /* Offset for fixed navbar */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(to bottom, rgba(15, 15, 17, 0.4) 0%, rgba(15, 15, 17, 0.95) 100%), url('hero-bg.png') no-repeat center center;
    background-size: cover;
    z-index: 0;
    animation: floatingWaves 14s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 4rem;
    z-index: 1;
    position: relative;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out;
}

.hero-side-image {
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.15);
    animation: floatImage 6s ease-in-out infinite;
    /* CSS Filters for Best Quality Appearance */
    filter: contrast(1.15) brightness(1.05) saturate(1.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    object-fit: cover;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary);
    animation: fadeInDown 1s ease-out;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 0 2.5rem 0;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Infinite Marquee / Propagandas */
.marquee-container {
    width: 100%;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 15px 0;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.15);
    position: relative;
    z-index: 2;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: max-content;
}

.marquee-content span {
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 2rem)); }
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Products Section */
.products-section {
    padding: 5rem 5%;
}

.brand-container {
    margin-bottom: 5rem;
    text-align: center;
}

.brand-title {
    display: inline-block;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #1a1a1a; /* Texto escuro para parecer gravado no ouro */
    background: linear-gradient(135deg, #fff2a8 0%, #d4af37 35%, #9c7b16 80%, #5e4805 100%);
    padding: 15px 80px;
    border-radius: 6px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.8), /* Sombra projetada */
        inset 0 3px 6px rgba(255,255,255,0.9), /* Brilho superior 3D */
        inset 0 -4px 8px rgba(0,0,0,0.6), /* Sombra inferior 3D */
        0 0 40px rgba(212, 175, 55, 0.2); /* Aura dourada externa */
    text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
    position: relative;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
}

/* Borda interna da placa para luxo extra */
.brand-title::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 3px;
    pointer-events: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: linear-gradient(145deg, #222226, #1c1c1f);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
}

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

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: #222;
    transition: transform 0.5s ease;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-brand {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.price-container {
    margin-top: auto;
    margin-bottom: 1rem;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 10px;
}

.price-new {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
}

.btn-add-cart {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-add-cart:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Modals & Overlays */
.modal-overlay, .global-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    border: 1px solid var(--primary);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: zoomIn 0.3s ease-out;
}

.close-modal, .close-login {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.close-modal:hover, .close-login:hover {
    color: var(--primary);
}

/* Product Modal Layout */
.modal-product-layout {
    display: flex;
    gap: 2rem;
}

.modal-product-image {
    flex: 1;
    max-width: 400px;
}

.modal-product-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.modal-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-product-details h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Shopee style reviews */
.reviews-section {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.review-item {
    background: #252528;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--primary);
}

.stars {
    color: var(--primary);
}

.review-text {
    font-size: 0.95rem;
    color: #ddd;
}

.add-review-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#login-form, #register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 1.5rem;
}

.add-review-form input, .add-review-form textarea, #login-form input, #register-form input {
    background: #252528;
    border: 1px solid var(--border-color);
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-family: inherit;
    width: 100%;
}

.add-review-form input:focus, .add-review-form textarea:focus, #login-form input:focus, #register-form input:focus {
    outline: none;
    border-color: var(--primary);
}


/* Cart Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-card);
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--primary);
}

.sidebar.open {
    right: 0;
}

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

.sidebar-header h2 {
    color: var(--primary);
}

.close-sidebar {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.cart-items {
    padding: 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    background: #252528;
    padding: 10px;
    border-radius: 6px;
    align-items: center;
}

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

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-item-price {
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 5px;
}

.remove-item {
    color: #ff4d4d;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cart-total span {
    color: var(--primary);
}

.btn-checkout {
    width: 100%;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

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

/* Premium Footer */
.premium-footer {
    background: #0a0a0c;
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

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

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 4px 0 0 4px;
    color: white;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form button {
    background: var(--primary);
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    color: var(--bg-dark);
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--primary-hover);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.payment-icons {
    display: flex;
    gap: 1.2rem;
    font-size: 2.2rem;
}

.payment-icons .fa-cc-visa {
    color: #1A7BFF;
}

.payment-icons .fa-cc-mastercard {
    color: #FF5F00;
}

.payment-icons .fa-pix {
    color: #32BCAD;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes floatingWaves {
    0% {
        transform: scale(1) translate(0, 0) rotate(0deg);
        filter: hue-rotate(0deg) brightness(0.95);
    }
    50% {
        transform: scale(1.06) translate(-1.5%, 2%) rotate(0.5deg);
        filter: hue-rotate(4deg) brightness(1.1);
    }
    100% {
        transform: scale(1.12) translate(1%, -1.5%) rotate(-0.5deg);
        filter: hue-rotate(-3deg) brightness(0.95);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 3%;
    }

    .logo {
        font-size: 1.6rem;
    }

    .nav-icons {
        gap: 1rem;
    }

    .login-btn {
        font-size: 0.9rem;
    }

    .hero-layout {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 2rem auto;
    }
    .hero-side-image {
        max-height: 40vh;
    }
    .hero-content h1 { 
        font-size: 2.2rem; 
    }
    .modal-product-layout { flex-direction: column; }
    .nav-links { display: none; }
    
    .brand-title {
        font-size: 1.8rem;
        padding: 12px 30px;
        letter-spacing: 1px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulseWhatsApp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-float .tooltip {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    right: 120%;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    pointer-events: none;
}

.whatsapp-float:hover .tooltip {
 visibility: visible;
 opacity: 1;
}

@keyframes pulseWhatsApp {
 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);
 }
}
