:root {
    --primary: #D4AF37;
    /* Gold Metallic */
    --primary-dark: #aa8c2c;
    --primary-light: #f1dfad;
    --bg-dark: #0a0a0a;
    /* Noir */
    --bg-card: #151515;
    --text-light: #f0e9df;
    /* Luxury White */
    --text-muted: #888;
    --black: #000000;
    --shadow-gold: 0 10px 40px rgba(0, 0, 0, 0.5);
    --border: #222;
    --success: #2a9d8f;
    --error: #e63946;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Header & Logo */
.main-header {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container-header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-box img {
    height: 70px;
    /* Tamanho controlado da logo */
    width: auto;
    display: block;
}

.cart-icon {
    font-size: 1.8rem;
    cursor: pointer;
    position: relative;
    color: var(--primary);
}

.cart-icon #cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--primary);
    color: var(--black);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 800;
}

/* Hero Section */
.hero-catalog {
    background: linear-gradient(rgba(0, 0, 0, 0.6), var(--bg-dark)),
        url('https://images.unsplash.com/photo-1594035910387-fea47794261f?q=80&w=1587&auto=format&fit=crop') center/cover no-repeat;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Home / Acessos */
.intro-text {
    text-align: center;
    margin-bottom: 50px;
}

.intro-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card-path {
    background: var(--bg-card);
    padding: 50px 30px;
    text-decoration: none;
    color: var(--text-light);
    text-align: center;
    transition: 0.4s;
    border: 1px solid var(--border);
}

.card-path:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.card-path h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.card-path p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Catalog View */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--bg-card);
    overflow: hidden;
    transition: 0.4s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.prod-img-box {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #000;
}

.prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.5s;
}

.product-card:hover .prod-img-box img {
    opacity: 1;
    transform: scale(1.05);
}

.prod-info {
    padding: 25px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prod-category {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.prod-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.prod-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}

.btn-add-cart {
    width: 100%;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-add-cart:hover {
    background: var(--primary);
    color: #000;
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 25px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Modals - CORREÇÃO CRÍTICA */
.modal {
    display: none;
    /* Escondido por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border: 1px solid var(--border);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary);
}

.cart-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: #000;
    border: 1px solid var(--border);
    color: white;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
}

.btn-checkout,
.btn-checkout-confirm {
    width: 100%;
    background: var(--primary);
    color: #000;
    border: none;
    padding: 18px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-checkout:hover {
    background: var(--primary-dark);
}

.main-footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.main-footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.2rem;
    }

    .logo-box img {
        height: 50px;
    }
}