:root {
    --bg-dark: #050505;
    --bg-panel: #121212;
    --accent-gold: #d4af37;
    --accent-red: #8a0b0b;
    --text-primary: #f0f0f0;
    --text-secondary: #aaaaaa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- SPLASH SCREEN --- */
#splash-screen {
    position: fixed;
    inset: 0;
    background-color: var(--bg-dark);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#splash-screen img {
    max-width: 200px;
    animation: pulse-gold 2s infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-gold {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Glassmorphism Utility */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Age Gate */
.age-gate-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    background: url('https://images.unsplash.com/photo-1549497557-4b4cb7df5204?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.age-gate-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.age-gate-content {
    position: relative;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.age-gate-content h1 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.age-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-gold), #b89628);
    color: #000;
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
    padding: 12px 30px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-secondary:hover {
    color: #fff;
    border-color: #fff;
}

/* App Container */
.app-container {
    display: block;
    width: 100%;
    transition: filter 0.5s ease;
    position: relative;
    /* Ensure stacking context */
}

/* Helper Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-container.blurred {
    filter: blur(20px);
    pointer-events: none;
    height: 100vh;
    overflow: hidden;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: transparent;
    border-bottom: none;
    transition: all 0.3s ease;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}


.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold);
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background-elements .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-red);
    top: 20%;
    left: 20%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-gold);
    /* Changed from blue to gold */
    bottom: 10%;
    right: 15%;
    animation-delay: 2s;
    opacity: 0.2;
    /* Lower opacity for subtlety */
}

/* Background Snake Animation */
#bg-snake {
    position: fixed;
    z-index: -1;
    width: 150px;
    /* Configurable size? For now fixed or auto */
    height: auto;
    opacity: 0.3;
    /* Subtle transparency */
    pointer-events: none;
    animation: snake-crawl 60s linear infinite;
}

@keyframes snake-crawl {
    0% {
        top: 0;
        left: 0;
        transform: rotate(0deg);
    }

    25% {
        top: 0;
        left: calc(100vw - 150px);
        transform: rotate(0deg);
    }

    26% {
        top: 0;
        left: calc(100vw - 150px);
        transform: rotate(90deg);
    }

    50% {
        top: calc(100vh - 150px);
        left: calc(100vw - 150px);
        transform: rotate(90deg);
    }

    51% {
        top: calc(100vh - 150px);
        left: calc(100vw - 150px);
        transform: rotate(180deg);
    }

    75% {
        top: calc(100vh - 150px);
        left: 0;
        transform: rotate(180deg);
    }

    76% {
        top: calc(100vh - 150px);
        left: 0;
        transform: rotate(270deg);
    }

    99% {
        top: 0;
        left: 0;
        transform: rotate(270deg);
    }

    100% {
        top: 0;
        left: 0;
        transform: rotate(360deg);
    }
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--hero-title-color, #fff);
    /* Default to white if not set */
    /* background: linear-gradient(to right, #fff, var(--accent-gold)); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    /* Added spacing to prevent overlap with button */
}

.btn-hero {
    margin-top: 0;
    /* Removing top margin since we added it to the p */
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--hero-btn-color, #d4af37);
    color: var(--hero-btn-color, #d4af37);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.4s;
}

.btn-hero:hover {
    background: var(--hero-btn-color, #d4af37);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    /* Ideally this shadow color should also be dynamic or semi-transparent based on button color, but keeping simple for now */
}

/* Catalog */
.catalog-section {
    padding: 4rem 5%;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-body);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--category-btn-color, #d4af37);
    color: #000;
    border-color: var(--category-btn-color, #d4af37);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

/* Product Card */
.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.3);
}

.card-image-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
}

.product-card:hover .card-overlay {
    opacity: 1;
}

.btn-card {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transform: translateY(20px);
    transition: 0.4s;
}

.btn-add-cart-corner {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.btn-add-cart-corner:hover {
    background: var(--accent-gold);
    color: #000;
    transform: scale(1.1) rotate(90deg);
}

.product-card:hover .btn-card {
    transform: translateY(0);
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-info .price {
    color: #FFD700;
    /* Dourado Mais Vivo */
    font-weight: bold;
    font-size: 1.1rem;
}

.card-info .category {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.glass-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    margin-top: 4rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        position: absolute;
        width: 100%;
        background: transparent;
        border-bottom: none;
        flex-direction: row;
        justify-content: center;
        padding: 1.5rem;
    }

    .logo {
        margin-bottom: 0;
        font-size: 1.8rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .nav-links,
    .nav-icons>i.fa-search {
        display: none;
    }

    .hero-section {
        height: 100vh;
        padding-top: 0;
    }

    .hero-content {
        margin-top: -50px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
        padding: 0 1rem;
        line-height: 1.2;
    }

    .filters {
        gap: 0.5rem;
        padding-top: 2rem;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .card-image-wrapper {
        height: 180px;
    }

    .card-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        justify-content: flex-end;
        padding-bottom: 15px;
    }

    .btn-card {
        transform: translateY(0);
        font-size: 0.7rem;
        padding: 6px 12px;
        width: 90%;
        margin-bottom: 10px;
        z-index: 10;
        position: relative;
        pointer-events: auto;
    }
}

/* --- ESTILOS NOVOS DO MODAL E BOTÃO FECHAR --- */
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.close-modal:hover {
    background-color: var(--accent-gold);
    color: #000;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.modal-content {
    position: relative;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 90%;
    margin: auto;
}

/* --- Shopping Cart --- */
.cart-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #000;
    /* Fundo Preto */
    color: #FFD700;
    /* Ícone Dourado */
    border: 1px solid #FFD700;
    /* Borda Dourada Opcional */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s;
}

.cart-fab:hover {
    transform: scale(1.1);
}

.cart-fab i {
    font-size: 1.5rem;
}

.cart-fab span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--bg-dark);
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    height: 100dvh;
    /* Better for mobile */
    background: var(--bg-panel);
    border-left: 1px solid var(--glass-border);
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    color: var(--cart-accent-color, #d4af37);
    font-family: var(--font-heading);
}

.cart-header .close-cart {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.cart-header .close-cart:hover {
    color: var(--accent-red);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 150px;
    /* Space for footer */
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--text-secondary);
    gap: 1rem;
}

.cart-empty-state i {
    font-size: 3rem;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background: var(--glass-bg);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    position: relative;
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #fff;
}

.cart-item-info p {
    color: var(--cart-accent-color, #d4af37);
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.cart-item-controls button {
    background: var(--glass-border);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-item-controls button:hover {
    background: var(--accent-gold);
    color: #000;
}

.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
}

.cart-item-remove:hover {
    color: var(--accent-red);
}

.cart-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-panel);
    z-index: 10;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.cart-footer .btn-primary {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
    }
}