/* ==========================================================================
   VELVET & ROSE - SYSTEM DESIGN & UTILITIES
   ========================================================================== */

:root {
    /* Cores do Sistema */
    --color-bg-primary: #0a0410;      /* Midnight Plum ultra escuro */
    --color-bg-secondary: #140a1d;    /* Deep Plum para seções e cards */
    --color-bg-card: rgba(26, 15, 36, 0.65); /* Fundo translúcido para glassmorphism */
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-accent: rgba(212, 175, 55, 0.2); /* Borda dourada sutil */
    
    --color-accent-primary: #e64980;  /* Rosa Aveludado Principal */
    --color-accent-hover: #f76707;    /* Alternativa quente para interação */
    --color-accent-rose-dark: #c2255c;
    --color-accent-rose-light: #ffdeeb;
    
    --color-gold: #d4af37;            /* Dourado Boutique */
    --color-gold-hover: #c59b27;
    --color-gold-light: #f9f2d8;
    
    --color-text-main: #f3f0f5;       /* Off-white */
    --color-text-muted: #a395b0;      /* Muted lavender-grey */
    --color-text-inverse: #0a0410;
    
    --color-success: #37b24d;
    --color-error: #f03e3e;
    --color-overlay: rgba(8, 4, 13, 0.82);

    /* Fontes e Tamanhos */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
    
    /* Sombras e Efeitos */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 15px rgba(212, 175, 55, 0.15);
    --shadow-rose: 0 0 15px rgba(230, 73, 128, 0.25);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset básico e Configurações Globais */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #231530;
    border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-primary);
}

/* ==========================================================================
   COMPONENTES DE BOTÃO E INPUT
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-rose-dark));
    color: white;
    box-shadow: var(--shadow-rose);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 73, 128, 0.45);
    background: linear-gradient(135deg, #f05a8d, #d6336c);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-text-main);
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.btn-text:hover {
    color: var(--color-accent-primary);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Inputs Premium */
input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background-color: rgba(20, 10, 30, 0.6);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
    background-color: rgba(20, 10, 30, 0.8);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   AGE GATE MODAL (Natividade HTML5)
   ========================================================================== */

.age-gate-dialog {
    border: none;
    border-radius: var(--radius-xl);
    background: var(--color-bg-secondary);
    color: var(--color-text-main);
    max-width: 520px;
    width: 90%;
    margin: auto;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Desfoque do fundo no dialog */
.age-gate-dialog::backdrop {
    background-color: var(--color-overlay);
    backdrop-filter: blur(15px);
    transition: backdrop-filter var(--transition-slow);
}

.age-gate-content {
    padding: 3rem 2.5rem;
    text-align: center;
}

.age-gate-brand {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--color-gold);
}

.brand-rose {
    color: var(--color-accent-primary);
}

.age-gate-dialog h1 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.age-gate-dialog p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.age-gate-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.age-gate-footer {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 4, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--transition-fast);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-decoration: none;
    letter-spacing: 1px;
    transition: opacity var(--transition-fast);
}
.logo:hover {
    opacity: 0.9;
}
.logo .amp {
    color: var(--color-gold);
    font-style: italic;
    font-family: var(--font-serif);
}

.nav-categories {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.5rem 0.25rem;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-accent-primary));
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-main);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Campo de busca expansível */
.search-box {
    display: flex;
    align-items: center;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
    max-width: 180px;
}

.search-box:focus-within {
    max-width: 250px;
    border-color: var(--color-accent-primary);
    background-color: rgba(255, 255, 255, 0.08);
}

.search-box input {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--color-text-main);
}
.search-box input:focus {
    box-shadow: none;
    border-color: transparent;
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}
.search-btn:hover {
    color: var(--color-text-main);
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    color: var(--color-text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.action-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--color-accent-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-primary);
}

/* Wiggle do carrinho ao adicionar item */
.wiggle {
    animation: wiggle 0.5s ease;
}

@keyframes wiggle {
    0% { transform: scale(1); }
    20% { transform: scale(1.2) rotate(-8deg); }
    40% { transform: scale(1.2) rotate(8deg); }
    60% { transform: scale(1.2) rotate(-6deg); }
    80% { transform: scale(1.1) rotate(6deg); }
    100% { transform: scale(1) rotate(0); }
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */

.hero-section {
    position: relative;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4rem;
    background-color: #0b0512;
    background-image: radial-gradient(circle at 80% 40%, rgba(212, 175, 55, 0.06) 0%, rgba(230, 73, 128, 0.08) 35%, transparent 70%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 4, 16, 0.95) 0%, rgba(10, 4, 16, 0.6) 50%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    display: block;
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-family: var(--font-serif);
    font-size: 3.8rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--color-text-main) 40%, #e0d0eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.benefit-tag {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   CATÁLOGO DE PRODUTOS
   ========================================================================== */

.store-front {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

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

.section-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.filter-group label {
    margin-bottom: 0;
}

#sort-select {
    width: auto;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.85rem;
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* GRID DE PRODUTOS */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

/* CARD DO PRODUTO */
.product-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-normal);
    backdrop-filter: blur(8px);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-accent);
    box-shadow: var(--shadow-md), var(--shadow-gold);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 320px;
    background: linear-gradient(180deg, rgba(20, 10, 30, 0.4) 0%, rgba(10, 4, 18, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Representação gráfica do produto via CSS se não houver imagens */
.product-placeholder-graphic {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    filter: drop-shadow(0 0 20px rgba(230, 73, 128, 0.3));
    transition: transform var(--transition-slow);
}

.product-card:hover .product-placeholder-graphic {
    transform: scale(1.1) rotate(5deg);
}

.badge-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(10, 4, 16, 0.85);
    border: 1.5px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    z-index: 2;
}

.discrete-shipping-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(10, 4, 16, 0.6);
    backdrop-filter: blur(4px);
    color: var(--color-text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.product-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 4, 16, 0.5);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-normal);
    z-index: 3;
}

.product-card:hover .product-hover-overlay {
    opacity: 1;
}

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

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}
.product-rating span.rating-count {
    color: var(--color-text-muted);
    margin-left: 0.25rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.btn-add-cart-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-add-cart-icon:hover {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: white;
    transform: scale(1.1);
}

/* ==========================================================================
   GAVETA DO CARRINHO (Sliding Drawer)
   ========================================================================== */

.cart-drawer-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.cart-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.cart-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background-color: var(--color-bg-secondary);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    z-index: 1001;
}

/* Classes ativas controladas via JS */
.cart-drawer-container.active {
    pointer-events: auto;
}
.cart-drawer-container.active .cart-drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}
.cart-drawer-container.active .cart-drawer {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.drawer-header h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
}
#btn-close-cart {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}
#btn-close-cart:hover {
    color: var(--color-text-main);
}

.drawer-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Estado vazio */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--color-text-muted);
}
.cart-empty svg {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.1);
}
.cart-empty p {
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Itens no Carrinho */
.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    align-items: center;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
    max-width: 90px;
}

.quantity-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-weight: 600;
    width: 28px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}
.quantity-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
}

.quantity-val {
    width: 32px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}
.btn-remove-item:hover {
    color: var(--color-error);
}

/* Footer do Carrinho */
.drawer-footer {
    padding: 2rem;
    border-top: 1px solid var(--color-border);
    background-color: rgba(10, 4, 16, 0.4);
}

.cart-total-section {
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.total-row #cart-subtotal {
    color: var(--color-gold);
}

.shipping-info {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ==========================================================================
   PRODUCT DETAIL MODAL
   ========================================================================== */

.product-modal {
    border: none;
    border-radius: var(--radius-xl);
    background: var(--color-bg-secondary);
    color: var(--color-text-main);
    max-width: 900px;
    width: 90%;
    margin: auto;
    box-shadow: var(--shadow-lg), 0 0 50px rgba(0,0,0,0.6);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.product-modal::backdrop {
    background-color: var(--color-overlay);
    backdrop-filter: blur(10px);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    height: 100%;
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(10, 4, 16, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}
.modal-close-btn:hover {
    color: var(--color-text-main);
    background-color: rgba(10, 4, 16, 0.9);
}

.product-modal-gallery {
    background: linear-gradient(180deg, rgba(20, 10, 30, 0.3) 0%, rgba(10, 4, 18, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
}
.product-modal-gallery .product-placeholder-graphic {
    width: 220px;
    height: 220px;
}

.product-modal-info {
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

.product-modal-info h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.modal-price-rating {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.modal-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-features-list {
    margin-bottom: 2.5rem;
    list-style: none;
}
.modal-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}
.modal-features-list li::before {
    content: '✦';
    color: var(--color-gold);
    font-size: 0.8rem;
}

.modal-actions {
    display: flex;
    gap: 1.25rem;
    margin-top: auto;
}
.modal-quantity {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.02);
}
.modal-quantity .quantity-btn {
    width: 36px;
    height: 48px;
    font-size: 1rem;
}
.modal-quantity .quantity-val {
    width: 40px;
    font-size: 1rem;
}

.modal-actions .btn-primary {
    flex-grow: 1;
}

/* ==========================================================================
   TELA DE CHECKOUT
   ========================================================================== */

.checkout-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
}

.checkout-back-link {
    margin-bottom: 2rem;
}

.checkout-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.checkout-form {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.form-section {
    margin-bottom: 3rem;
}
.form-section:last-of-type {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.privacy-label {
    font-size: 0.8rem;
    background-color: rgba(55, 178, 77, 0.1);
    color: var(--color-success);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 600;
}

.form-section-tip {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.form-row {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.col-12 { width: 100%; }
.col-8 { width: 66.66%; }
.col-6 { width: 50%; }
.col-5 { width: 41.66%; }
.col-4 { width: 33.33%; }
.col-3 { width: 25%; }
.col-2 { width: 16.66%; }

/* Seletor de Pagamento */
.payment-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.payment-option {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    background-color: rgba(255, 255, 255, 0.01);
}

.payment-option:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.payment-option.active {
    border-color: var(--color-gold);
    background-color: rgba(212, 175, 55, 0.03);
}

.payment-option input[type="radio"] {
    margin-top: 0.25rem;
    accent-color: var(--color-gold);
}

.payment-info {
    display: flex;
    flex-direction: column;
}
.payment-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.25rem;
}
.payment-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.payment-fields {
    background-color: rgba(10, 4, 16, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.pix-instructions {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: 1rem 0;
}

/* Lateral do Resumo no Checkout */
.checkout-summary {
    background-color: var(--color-bg-secondary);
    border: 1px dashed var(--color-border-accent);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: sticky;
    top: 100px;
}
.checkout-summary h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.summary-items {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 0.5rem;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.summary-item-name {
    color: var(--color-text-main);
}
.summary-item-qty {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}
.summary-item-price {
    font-weight: 600;
}

.summary-totals {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}

.shipping-cost.free {
    color: var(--color-success);
    font-weight: 600;
}

.discount-line {
    color: var(--color-accent-primary);
}

.total-line {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-top: 1rem;
}

.checkout-security-badges {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.security-badge svg {
    color: var(--color-gold);
}

/* ==========================================================================
   TELA DE SUCESSO DO PEDIDO
   ========================================================================== */

.success-section {
    max-width: 650px;
    margin: 4rem auto 6rem;
    padding: 0 2rem;
}

.success-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.success-icon {
    margin-bottom: 2rem;
}

.success-card h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
}

.order-number-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}
.order-number-text strong {
    color: var(--color-gold);
}

.success-card p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.success-discretion-box {
    background-color: rgba(10, 4, 16, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 2.5rem;
}
.success-discretion-box h4 {
    color: var(--color-gold);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.success-discretion-box p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}
.success-discretion-box ul {
    list-style: none;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.success-discretion-box li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}
.success-discretion-box li::before {
    content: '✓';
    color: var(--color-success);
    position: absolute;
    left: 0;
}

.success-pix-area {
    margin-bottom: 2.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
}
.success-pix-area h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.pix-qr-mock {
    background-color: white;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    display: inline-block;
    margin: 1.25rem 0;
}
.qr-code-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.pix-copy-paste {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
}
.pix-copy-paste input {
    font-family: monospace;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(10, 4, 16, 0.6);
}

/* ==========================================================================
   RODAPÉ DO SITE
   ========================================================================== */

.main-footer {
    background-color: #06020a;
    border-top: 1px solid var(--color-border);
    padding: 5rem 2rem 2rem;
    color: var(--color-text-muted);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}
.footer-logo .amp {
    color: var(--color-gold);
    font-style: italic;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.shipping-badge {
    display: inline-flex;
    background-color: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--color-border-accent);
    color: var(--color-gold);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}
.footer-col a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-col a:hover {
    color: var(--color-accent-primary);
}

.contact-col p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 2rem;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.copyright {
    font-size: 0.8rem;
}
.disclaimer {
    font-size: 0.75rem;
    color: rgba(230, 73, 128, 0.5);
    max-width: 800px;
}

/* ==========================================================================
   RESPONSIVIDADE E ADAPTAÇÕES DE DISPOSITIVOS
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-section {
        height: 60vh;
        padding: 3rem;
    }
    .hero-section h1 {
        font-size: 3rem;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .checkout-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-categories {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    .nav-link {
        white-space: nowrap;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box {
        flex-grow: 1;
        max-width: none;
    }
    .search-box:focus-within {
        max-width: none;
    }
    
    .hero-section {
        height: auto;
        min-height: 420px;
        padding: 3rem 1.5rem;
    }
    .hero-section h1 {
        font-size: 2.3rem;
    }
    .hero-benefits {
        margin-bottom: 2rem;
    }
    
    .store-front {
        padding: 3rem 1rem;
    }
    .store-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
    .product-modal-gallery {
        padding: 2rem;
        height: 250px;
    }
    .product-modal-gallery .product-placeholder-graphic {
        width: 150px;
        height: 150px;
    }
    .product-modal-info {
        padding: 2rem 1.5rem;
    }
    
    .age-gate-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .payment-selector {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.25rem;
    }
    .form-group {
        width: 100% !important;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ==========================================================================
   SISTEMA DE AUTENTICAÇÃO (Login / Cadastro)
   ========================================================================== */

.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    padding: 1.25rem;
    min-width: 240px;
    z-index: 120;
    display: none;
    flex-direction: column;
    backdrop-filter: blur(10px);
}
.user-dropdown.active {
    display: flex;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name-display {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-gold);
}

.user-email-display {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    word-break: break-all;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0.75rem 0;
}

.dropdown-item {
    background: transparent;
    border: none;
    color: var(--color-text-main);
    text-align: left;
    padding: 0.5rem 0;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.dropdown-item:hover {
    color: var(--color-accent-primary);
}

/* Modal de Autenticação */
.auth-modal {
    border: none;
    border-radius: var(--radius-xl);
    background: var(--color-bg-secondary);
    color: var(--color-text-main);
    max-width: 440px;
    width: 90%;
    margin: auto;
    box-shadow: var(--shadow-lg), 0 0 50px rgba(0,0,0,0.6);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
}
.auth-modal::backdrop {
    background-color: var(--color-overlay);
    backdrop-filter: blur(10px);
}

.auth-modal-content {
    padding: 3rem 2.5rem;
    position: relative;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.auth-tab {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 0;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}
.auth-tab.active {
    color: var(--color-gold);
}
.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width var(--transition-normal);
}
.auth-tab.active::after {
    width: 100%;
}

.auth-pane {
    animation: paneFadeIn 0.3s ease;
}

@keyframes paneFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.auth-switch-prompt {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 1.75rem;
}

.auth-error-msg {
    background-color: rgba(240, 62, 62, 0.08);
    border: 1px solid var(--color-error);
    color: #ff8787;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-top: 1.25rem;
    text-align: center;
}
