/* =========================================
   TEMA LUXÚRIA PREMIUM (Otimizado para Mobile)
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    /* Cores Premium */
    --bg-color: #030303; 
    --card-bg: #0a0a0a; 
    --input-bg: #060606;
    --primary-color: #d11830; 
    --primary-hover: #ff3f5a;
    --border-red: #5c0b12;
    --border-soft: #1f1f1f;
    --text-light: #ffffff;
    --text-muted: #888888;
    
    /* Fontes Minimalistas */
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Variáveis de Estilo */
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    --shadow-red: 0 10px 30px rgba(209, 24, 48, 0.15);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

/* --- RESET BÁSICO --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
}

/* --- UTILITÁRIOS --- */
.text-center { text-align: center; }
.container { padding: 0 15px; }

/* --- CABEÇALHO --- */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; background: rgba(3, 3, 3, 0.85); backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo {
    font-family: var(--font-title); color: var(--text-light);
    font-size: 1.2rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
}
.menu-btn, .icon-btn, .user-actions a {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; justify-content: center; 
    color: var(--text-light); font-size: 1.1rem; cursor: pointer; 
    text-decoration: none; transition: var(--transition);
    background: transparent; border: 1px solid transparent;
}
.menu-btn:hover, .icon-btn:hover, .user-actions a:hover { border-color: var(--border-soft); background: rgba(255,255,255,0.05); }

/* Cor especial para as setinhas de voltar */
header .icon-btn .fa-arrow-left,
.back-btn i {
    color: var(--primary-color) !important;
}
.back-btn { color: var(--text-light); transition: var(--transition); }
.back-btn:hover { color: var(--primary-color); }

/* --- TELA DE BUSCA --- */
.search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(3, 3, 3, 0.98); backdrop-filter: blur(10px);
    z-index: 3000; display: none; opacity: 0; flex-direction: column;
    padding: 20px; overflow-y: auto;
}
.search-header {
    display: flex; gap: 15px; align-items: center; margin-bottom: 30px; margin-top: 20px;
    max-width: 800px; margin-left: auto; margin-right: auto; width: 100%;
}
.search-bar-group { flex: 1; margin-bottom: 0 !important; }
.search-results-container { max-width: 800px; margin: 0 auto; width: 100%; }

/* --- MENU LATERAL --- */
.sidebar {
    position: fixed; top: 0; left: -100%; width: 280px; max-width: 80%; height: 100vh;
    background: #050505; border-right: 1px solid var(--border-soft); z-index: 1200;
    padding: 25px 20px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.sidebar-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px; border-bottom: 1px solid var(--border-soft); padding-bottom: 15px;
}
.sidebar-header h2 { font-family: var(--font-title); color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
#close-menu { font-size: 22px; cursor: pointer; color: var(--text-light); transition: var(--transition); }
#close-menu:hover { color: var(--primary-color); transform: rotate(90deg); }

.category-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.cat-item {
    padding: 12px 0; cursor: pointer; transition: var(--transition); font-size: 0.95rem; 
    color: #cccccc; border-bottom: 1px solid rgba(255,255,255,0.03); display: flex; justify-content: space-between;
}
.cat-item:hover { color: var(--primary-color); padding-left: 10px; }

#sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(3px);
    z-index: 1100; display: none; opacity: 0;
}

main { margin-top: 70px; } 

/* --- SLIDERS HERO --- */
.slider-container {
    position: relative; width: calc(100% - 30px); margin: 0 auto; 
    height: 30vh; min-height: 200px; max-height: 300px; 
    background-color: var(--card-bg); overflow: hidden;
    border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.slider-wrapper { display: flex; height: 100%; }
.slide {
    flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: #111; position: relative; background-size: cover; background-position: center;
}
.slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%); z-index: 1;
}

/* 🟢 BOLINHAS DO SLIDER */
.slider-dots {
    position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 10;
}
.dot {
    width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.3);
    cursor: pointer; transition: var(--transition);
}
.dot.active { background: var(--primary-color); width: 18px; border-radius: 4px; }


/* --- VITRINE / GRID DE PRODUTOS --- */
.destaques { padding: 30px 15px; }
.section-title { 
    font-family: var(--font-title); text-align: center; font-size: 1.4rem; 
    margin-bottom: 25px; color: var(--text-light); letter-spacing: 0.1em; text-transform: uppercase; 
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px 8px; 
}
.product-card {
    background-color: transparent; border: none; 
    border-radius: var(--radius-sm); overflow: hidden; transition: var(--transition);
    display: flex; flex-direction: column; position: relative;
}
.product-img-wrapper { 
    width: 100%; aspect-ratio: 4/5; overflow: hidden; background: #000; 
    border-radius: var(--radius-sm); position: relative;
    border: 1px solid rgba(255,255,255,0.03);
}
.product-img { 
    width: 100%; height: 100%; 
    object-fit: contain; /* Mantém a imagem inteira sem cortar */
    transition: transform 0.6s ease; 
}
.product-card:hover .product-img { transform: scale(1.05); }

.product-info { padding: 8px 2px 0 2px; display: flex; flex-direction: column; gap: 4px; }

/* 🟢 CORREÇÃO: NOME DO PRODUTO QUEBRANDO LINHA CORRETAMENTE */
.product-title { 
    font-size: 0.65rem; color: var(--text-light); font-weight: 500; 
    white-space: normal; /* Remove a trava que deixava o texto numa linha só */
    line-height: 1.3; /* Espaçamento entre linhas para não ficar colado */
    font-family: var(--font-title); text-transform: uppercase;
}

.product-price { color: var(--text-muted); font-weight: 400; font-size: 0.75rem; display: flex; align-items: center; gap: 4px; }
.product-price .promo-price { color: var(--primary-color); font-weight: 600; }

/* --- CONTROLO DE QUANTIDADES --- */
.qty-control {
    display: flex; align-items: center; gap: 10px; background: var(--input-bg);
    border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 5px; width: fit-content;
}
.qty-btn {
    background: transparent; border: none; color: var(--text-light);
    width: 30px; height: 30px; border-radius: 4px; cursor: pointer; transition: 0.3s;
    display: flex; justify-content: center; align-items: center; font-size: 1rem;
}
.qty-input { width: 35px; text-align: center; background: transparent; border: none; color: var(--text-light); font-weight: 600; outline: none; }

/* --- TOASTS, MODAIS E BOTÕES --- */
.btn-primary { width: 100%; background: var(--primary-color); color: white; border: none; padding: 14px 15px; border-radius: var(--radius-sm); font-family: var(--font-title); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 0.1em; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-red); }
.btn-outline { background: transparent; border: 1px solid var(--text-muted); color: var(--text-muted); width: 100%; padding: 12px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); font-family: var(--font-title); font-weight: 600; font-size: 0.85rem;}

.cart-btn { position: fixed; bottom: 20px; right: 20px; background: rgba(209, 24, 48, 0.9); backdrop-filter: blur(5px); color: white; width: 55px; height: 55px; border-radius: 14px; display: flex; justify-content: center; align-items: center; font-size: 22px; text-decoration: none; box-shadow: var(--shadow-red); z-index: 999; border: 1px solid rgba(255,255,255,0.1); }
.cart-badge { position: absolute; top: -6px; right: -6px; background: var(--text-light); color: var(--bg-color); font-size: 11px; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 2px solid var(--primary-color); }

.toast-msg { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px); border: 1px solid var(--border-soft); border-left: 4px solid var(--primary-color); color: var(--text-light); padding: 14px 20px; border-radius: var(--radius-sm); font-size: 0.85rem; z-index: 3000; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; width: max-content; }

/* Modal de Idade e Login */
.age-modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.95); z-index: 9999; display: flex; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(10px); }
.age-modal { background: #050505; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 30px 20px; text-align: center; max-width: 360px; }
.auth-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.auth-box { width: 100%; max-width: 400px; background: var(--card-bg); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-lg); padding: 30px 25px; }

/* Inputs */
.input-group { margin-bottom: 15px; position: relative; }
.input-group i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-group input, .form-group input, .form-group textarea, .form-group select { width: 100%; background: var(--input-bg); border: 1px solid var(--border-soft); color: var(--text-light); padding: 14px 16px; font-size: 0.9rem; border-radius: var(--radius-sm); outline: none; transition: var(--transition); }
.input-group input { padding-left: 40px; }