/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #4A4A4A;
    background-color: #FAF7F2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cores Personalizadas */
:root {
    --velvet-beige: #F5E6D3;
    --velvet-rose: #E8C5C5;
    --velvet-brown: #5f3e18;
    --velvet-cream: #FAF7F2;
    --velvet-gold: #D4AF37;
    --velvet-telegram: #2AABEE;
    --text-primary: #4A4A4A;
    --text-secondary: #6B6B6B;
}

/* Utilitários */
.icon { width: 24px; height: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: none; border-radius: 8px; font-weight: 500; text-decoration: none; cursor: pointer; transition: all 0.3s ease; font-size: 16px; justify-content: center; }
.btn-primary { background: linear-gradient(135deg, var(--velvet-gold) 0%, #B8941F 100%); color: white; }
.btn-primary:hover { background: linear-gradient(135deg, #B8941F 0%, var(--velvet-gold) 100%); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3); }
.btn-secondary { background: transparent; color: var(--velvet-gold); border: 2px solid var(--velvet-gold); }
.btn-secondary:hover { background: var(--velvet-gold); color: white; }

/* Header */
.header { position: sticky; top: 0; z-index: 1000; background: var(--velvet-cream); border-bottom: 1px solid var(--velvet-beige); box-shadow: 0 2px 10px rgba(212, 184, 150, 0.1); }
.top-bar { display: flex; justify-content: flex-end; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--velvet-beige); font-size: 14px; color: var(--velvet-brown); }
.top-bar-right { display: flex; gap: 24px; }
.top-bar-item { display: flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; transition: color 0.3s ease; }
.top-bar-item:hover { color: var(--velvet-gold); }
.main-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 20px; }
.logo-section { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-image { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.logo-title { font-size: 24px; font-weight: 700; color: var(--velvet-brown); }
.logo-subtitle { font-size: 12px; color: var(--velvet-brown); }
.desktop-nav { display: flex; gap: 32px; margin: 0 auto; } /* Centraliza o menu no espaço disponível */
.nav-link { color: var(--velvet-brown); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.nav-link:hover { color: var(--velvet-gold); }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.cart-button { position: relative; background: none; border: none; cursor: pointer; padding: 8px; color: var(--velvet-brown); }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--velvet-gold); color: white; border-radius: 50%; width: 20px; height: 20px; display: none; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger-line { width: 24px; height: 2px; background: var(--velvet-brown); transition: all 0.3s ease; }
.mobile-menu { display: none; background: var(--velvet-cream); border-top: 1px solid var(--velvet-beige); box-shadow: 0 5px 15px rgba(0,0,0,0.05); position: absolute; width: 100%; left: 0; }
.mobile-nav { display: flex; flex-direction: column; gap: 16px; padding: 0 20px 20px 20px; }
.mobile-nav-link { color: var(--velvet-brown); text-decoration: none; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--velvet-beige); transition: color 0.3s ease; }

/* Barra de Pesquisa */
.search-container { position: relative; flex-grow: 1; max-width: 400px; }
.search-input { width: 100%; padding: 10px 16px; border: 1px solid var(--velvet-beige); border-radius: 20px; font-size: 14px; transition: all 0.3s ease; }
.search-input:focus { outline: none; border-color: var(--velvet-gold); box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
.mobile-search-container { padding: 20px; }

/* Dropdown de Resultados da Busca */
.search-results-dropdown { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: #ffffff; border: 1px solid var(--velvet-beige); border-radius: 0 0 12px 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); z-index: 1100; max-height: 400px; overflow-y: auto; }
.search-results-dropdown.show { display: block; }
.search-result-item { display: flex; align-items: center; padding: 10px 15px; text-decoration: none; color: var(--text-primary); border-bottom: 1px solid #f0f0f0; transition: background-color 0.2s; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background-color: #f9f9f9; }
.search-result-image { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; margin-right: 15px; }
.search-no-results { padding: 15px; color: var(--text-secondary); text-align: center; }

/* Hero Section */
.hero { background: linear-gradient(135deg, var(--velvet-cream) 0%, var(--velvet-beige) 100%); padding: 80px 0; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-title { font-size: 56px; font-weight: 700; line-height: 1.1; margin-bottom: 24px; color: var(--velvet-brown); }
.hero-description { font-size: 20px; color: var(--velvet-brown); margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; }
.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-img { width: 100%; max-width: 400px; height: auto; border-radius: 24px; box-shadow: 0 20px 40px rgba(212, 184, 150, 0.2); }

/* Seções de Categoria e Produto */
.category-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-title { font-size: 40px; font-weight: 700; margin-bottom: 16px; color: var(--velvet-brown); }
.section-description { font-size: 20px; color: var(--velvet-brown); max-width: 600px; margin: 0 auto; }
.produtos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.produto-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; background: white; border: 1px solid var(--velvet-beige); border-radius: 16px; overflow: hidden; transition: all 0.4s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.produto-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(212, 184, 150, 0.25); }
.produto-card-link { text-decoration: none; color: inherit; }
.produto-image-container { position: relative; }
.produto-image { width: 100%; height: 300px; object-fit: cover; }
.produto-badge { position: absolute; top: 16px; left: 16px; background: var(--velvet-gold); color: white; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.produto-content { padding: 24px; text-align: center; }
.produto-name { font-size: 18px; font-weight: 600; color: var(--velvet-brown); margin-bottom: 8px; }
.produto-price { font-size: 24px; font-weight: 700; color: var(--velvet-gold); }
.produto-card-actions { padding: 0 24px 24px 24px; margin-top: auto; }

/* Página de Detalhes do Produto */
.produto-detail-page { padding: 80px 0; }
.produto-detail-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: flex-start; }
.produto-detail-image-wrapper { display: flex; justify-content: center; align-items: center; }
.produto-detail-image { width: 100%; max-width: 450px; height: auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.produto-detail-info h2 { font-size: 36px; color: var(--velvet-brown); margin-bottom: 16px; }
.produto-code { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.produto-detail-info .price { font-size: 32px; font-weight: 700; color: var(--velvet-gold); margin-bottom: 24px; }
.produto-detail-info .description { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; }
.produto-detail-info .btn { width: 100%; }

/* Footer e Carrinho */
.footer { background: var(--velvet-cream); border-top: 1px solid var(--velvet-beige); padding: 48px 0 24px; }
.cart-checkout-section { text-align: center; padding: 40px 20px; background: var(--velvet-beige); border-radius: 16px; margin-bottom: 40px; }
#cartSummary ul { list-style: none; padding: 0; margin: 16px 0; }
.cart-summary-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--velvet-cream); }
.cart-summary-total { margin-top: 16px; font-size: 1.1em; }
.remove-from-cart-btn { background-color: #f8d7da; color: #721c24; border: none; width: 24px; height: 24px; border-radius: 50%; font-weight: bold; font-size: 16px; cursor: pointer; line-height: 24px; text-align: center; transition: background-color 0.2s; }
.remove-from-cart-btn:hover { background-color: #f5c6cb; }
.checkout-buttons { display: flex; justify-content: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.checkout-buttons button:disabled { background: #ccc !important; border-color: #ccc !important; color: #666 !important; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.checkout-buttons button:disabled:hover { filter: none; }
.footer-bottom { border-top: 1px solid var(--velvet-beige); padding-top: 24px; text-align: center; }
.copyright { font-size: 14px; color: var(--text-secondary); }
.footer-links { list-style: none; display: flex; justify-content: center; gap: 24px; margin-top: 16px; }
.footer-link { text-decoration: none; color: var(--text-secondary); }

/* Páginas Estáticas (Políticas, etc) */
.static-page-content { padding: 80px 0; }
.static-page-content h3 { margin-top: 30px; margin-bottom: 15px; }

/* Responsividade */
@media (max-width: 1024px) {
    .desktop-nav { display: none; }
    .main-header { flex-wrap: wrap; }
    .search-container { order: 3; width: 100%; margin: 16px 0 0 0; max-width: none; }
    .mobile-menu-toggle { display: flex; }
}
@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-image { order: -1; margin-bottom: 40px; }
    .produto-detail-content { grid-template-columns: 1fr; }
}
/* Estilos para a notificação com ações */
.notification-popup {
    position: fixed;
    bottom: -200px; /* Começa fora da tela */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: white;
    color: var(--text-primary);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 10001;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 4px solid var(--velvet-gold);
    text-align: center;
}
.notification-popup.error {
    border-top-color: #c82333;
}
.notification-popup.show {
    bottom: 20px; /* Desliza para dentro da tela */
}
.notification-popup p {
    margin: 0;
    font-size: 16px;
}
.notification-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: center;
}
.btn-notification-primary, .btn-notification-secondary {
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}
.btn-notification-primary {
    background-color: var(--velvet-gold);
    color: white;
}
.btn-notification-primary:hover {
    filter: brightness(1.1);
}
.btn-notification-secondary {
    background-color: #f0f0f0;
    color: var(--text-secondary);
}
.btn-notification-secondary:hover {
    background-color: #e0e0e0;
}