/**
 * Estilos - Loja Digital
 * Mobile-first, responsivo, sem frameworks
 */

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

:root {
    /* Verde Barnes & Noble - Cor principal */
    --primary-color: #2a5934;
    --primary-dark: #1e4027;
    --primary-light: #366251;

    /* Neutros quentes */
    --bg-color: #ffffff;
    --bg-cream: #f7f5f0;
    --bg-cream-dark: #ebe7df;
    --bg-tan: #c6beb0;
    --bg-dark: #2a5934;

    /* Cinzas sofisticados */
    --text-color: #575454;
    --text-light: #7a7574;
    --text-muted: #a09a94;

    /* Dourado - Acentos */
    --gold: #c2a02e;
    --gold-dark: #a8891f;

    /* Auxiliares */
    --border-color: #c6beb0;
    --border-light: #ebe7df;
    --error-color: #a63d40;
    --warning-color: #c2a02e;
    --success-color: #2a5934;

    /* Sombras suaves */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Border radius */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Tipografia - Títulos com fonte serifada */
h1, h2, h3, .product-title, .product-card-title {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text-color);
}

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

/* Header */
.site-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--bg-tan);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 64px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-img {
        height: 32px;
        max-width: 140px;
    }
}

/* Main */
.main-content {
    flex: 1;
}

/* Footer */
.site-footer {
    background-color: var(--text-color);
    border-top: none;
    padding: 30px 0;
    margin-top: auto;
}

.site-footer p {
    text-align: center;
    color: var(--bg-cream);
    font-size: 0.875rem;
}

.site-footer a {
    color: var(--bg-cream);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-gold {
    background-color: var(--gold);
    color: #1a1a1a;
}

.btn-gold:hover {
    background-color: var(--gold-dark);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Product Section */
.product-section {
    padding: 40px 0;
}

.product-grid {
    display: grid;
    gap: 40px;
}

.product-image {
    display: flex;
    justify-content: center;
}

.ebook-mockup {
    perspective: 1000px;
}

.ebook-cover {
    width: 200px;
    height: 280px;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px 12px 12px 4px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transform: rotateY(-5deg);
}

.ebook-icon {
    font-size: 4rem;
}

.ebook-format {
    margin-top: 10px;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 4px;
}

.product-info h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    margin-bottom: 25px;
}

.benefits-list li {
    padding: 8px 0;
    color: var(--text-color);
}

.price-box {
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.price-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

.price-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 5px 0;
    font-family: Georgia, "Times New Roman", serif;
}

.price-info {
    font-size: 0.875rem;
    color: var(--text-light);
}

.payment-info {
    margin-top: 15px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.pix-badge {
    display: inline-block;
    background-color: #32bcad;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 5px;
}

/* Features Section */
.features-section {
    background-color: var(--bg-cream-dark);
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: white;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-section .btn {
    background-color: var(--gold);
    color: #1a1a1a;
}

.cta-section .btn:hover {
    background-color: var(--gold-dark);
}

/* Checkout Page */
.checkout-section {
    padding: 40px 0;
}

.checkout-form-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.checkout-grid {
    display: grid;
    gap: 30px;
}

.checkout-form-box {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.checkout-form .form-group {
    margin-bottom: 20px;
}

.checkout-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
}

.checkout-form input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid var(--bg-tan);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
    background: var(--bg-color);
}

.checkout-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 89, 52, 0.1);
}

.checkout-form small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.8125rem;
}

.security-badges {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.875rem;
}

.checkout-summary {
    background: var(--bg-color);
    padding: 25px;
    border-radius: var(--radius);
    height: fit-content;
    border: 1px solid var(--border-light);
}

.checkout-summary h3 {
    margin-bottom: 20px;
}

.summary-product {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.summary-icon {
    font-size: 2.5rem;
}

.summary-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.summary-details p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-total strong {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.summary-payment {
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Pix Payment */
.checkout-success {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.checkout-success h1 {
    margin-bottom: 20px;
}

.order-summary {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.order-summary p {
    margin: 5px 0;
}

.pix-container {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.qr-code-box {
    background: white;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    display: inline-block;
    margin-bottom: 20px;
}

.qr-code-image {
    max-width: 200px;
    height: auto;
}

.pix-instructions {
    text-align: left;
    margin: 20px 0;
}

.pix-instructions h3 {
    margin-bottom: 10px;
}

.pix-instructions ol {
    padding-left: 20px;
}

.pix-instructions li {
    margin: 8px 0;
    color: var(--text-light);
}

.pix-copy-paste {
    margin: 25px 0;
}

.pix-copy-paste label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.copy-field {
    display: flex;
    gap: 10px;
}

.copy-field input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--bg-light);
}

.copy-feedback {
    display: block;
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--success-color);
}

.pix-timer {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.pix-timer p {
    margin-bottom: 10px;
}

.timer-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.timer-progress {
    height: 100%;
    background: var(--primary-color);
    width: 100%;
    transition: width 1s linear;
}

.payment-status {
    margin-top: 25px;
}

.status-checking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Thank You Page */
.thankyou-section {
    padding: 60px 0;
}

.thankyou-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: white;
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: var(--error-color);
    color: white;
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.thankyou-box h1 {
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.order-details {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    margin: 25px 0;
    text-align: left;
}

.order-details h3 {
    margin-bottom: 15px;
}

.order-details p {
    margin: 8px 0;
}

.download-section {
    margin: 30px 0;
}

.download-info {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.875rem;
}

.download-info p {
    margin: 5px 0;
}

.tips-box {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
    padding: 20px;
    margin-top: 30px;
    text-align: left;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.tips-box h4 {
    margin-bottom: 10px;
}

.tips-box ul {
    padding-left: 20px;
}

.tips-box li {
    margin: 5px 0;
    color: var(--text-light);
}

/* Error Section */
.error-section {
    padding: 60px 0;
}

.error-box {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.error-box h1 {
    margin-bottom: 15px;
}

.error-box p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Legal Section (Política de Privacidade, Termos, etc.) */
.legal-section {
    padding: 50px 0 70px;
    background: var(--bg-cream);
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
    background: white;
    padding: 50px 60px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
}

.legal-content h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.legal-content .last-update {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--primary-color);
}

.legal-content h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 35px;
    margin-bottom: 15px;
    padding: 10px 16px;
    background: var(--bg-cream);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 6px 6px 0;
}

.legal-content h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 22px;
    margin-bottom: 10px;
}

.legal-content p {
    line-height: 1.85;
    color: #4a4a4a;
    margin-bottom: 16px;
    text-align: justify;
}

.legal-content ul {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
    color: #4a4a4a;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.75;
    padding: 6px 12px 6px 28px;
    position: relative;
    background: var(--bg-cream);
    border-radius: 6px;
}

.legal-content li::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.legal-content li strong {
    color: var(--text-color);
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-light);
    transition: border-color 0.2s;
}

.legal-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.legal-footer {
    margin-top: 45px;
    padding-top: 20px;
    border-top: 2px solid var(--border-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.legal-footer a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: none;
    font-size: 0.9rem;
}

.legal-footer a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .legal-section {
        padding: 30px 0 40px;
    }

    .legal-content {
        padding: 30px 22px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .legal-content h1 {
        font-size: 1.4rem;
    }

    .legal-content h2 {
        font-size: 1.05rem;
        padding: 8px 12px;
    }

    .legal-content li {
        padding: 5px 10px 5px 24px;
    }

    .legal-content li::before {
        left: 10px;
        top: 13px;
        width: 5px;
        height: 5px;
    }
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert-error {
    background: #f5e6e6;
    border: 1px solid var(--error-color);
    color: #7a2c2e;
}

.alert-success {
    background: #e8f0ea;
    border: 1px solid var(--success-color);
    color: var(--primary-dark);
}

.alert-info {
    background: var(--bg-cream);
    border: 1px solid var(--bg-tan);
    color: var(--text-color);
}

.alert-warning {
    background: #faf6e8;
    border: 1px solid var(--gold);
    color: #7a5c0a;
}

/* Responsive */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .checkout-grid {
        grid-template-columns: 1fr 350px;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =====================================================
   HEADER COM NAVEGAÇÃO E MENU DO USUÁRIO
   ===================================================== */

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    display: none;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        gap: 5px;
    }
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.2s;
}

.user-menu-toggle:hover {
    background: var(--border-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 200;
}

.user-menu:hover .user-menu-dropdown,
.user-menu-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
}

.user-menu-item:hover {
    background: var(--bg-light);
}

.user-menu-item.admin {
    background: #fef3c7;
    color: #92400e;
}

.user-menu-item.logout {
    color: var(--error-color);
    border-top: 1px solid var(--border-color);
}

.user-menu-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 5px 0;
}

/* User Dropdown (Alternative Style) */
.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: Georgia, "Times New Roman", serif;
}

.user-name {
    font-weight: 500;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 200;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header strong {
    display: block;
    margin-bottom: 3px;
}

.dropdown-header small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.user-dropdown a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background: var(--bg-light);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 5px 0;
}

.user-dropdown .admin-link {
    background: #e8f0ea;
    color: var(--primary-dark);
}

.user-dropdown .logout-link {
    color: var(--error-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 15px 0;
}

.mobile-nav.show {
    display: flex;
}

.mobile-nav a {
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:hover {
    background: var(--bg-light);
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

/* Banner LGPD */
.lgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a2e;
    color: #e2e8f0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
    transform: translateY(100%);
    transition: transform 0.35s ease;
    padding: 16px 0;
}

.lgpd-banner.lgpd-banner--visible {
    transform: translateY(0);
}

.lgpd-banner__content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.lgpd-banner__text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.lgpd-banner__link {
    color: var(--gold, #c9a84c);
    text-decoration: underline;
    white-space: nowrap;
}

.lgpd-banner__link:hover {
    color: var(--gold-light, #e0c36a);
}

.lgpd-banner__actions {
    flex-shrink: 0;
}

.lgpd-banner__btn {
    background: var(--gold, #c9a84c);
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.lgpd-banner__btn:hover {
    background: var(--gold-dark, #a8893a);
}

@media (max-width: 600px) {
    .lgpd-banner__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .lgpd-banner__btn {
        width: 100%;
        text-align: center;
    }
}

/* Dev Banner */
.dev-banner {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1a1a1a;
    padding: 8px 0;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.dev-banner a {
    color: #1a1a1a;
    text-decoration: underline;
}

/* =====================================================
   PÁGINAS DE AUTENTICAÇÃO
   ===================================================== */

.auth-section {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.75rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-oauth:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

.btn-oauth img,
.btn-oauth svg {
    width: 20px;
    height: 20px;
}

.btn-google { border-color: #db4437; }
.btn-google:hover { background: #fef2f2; }

.btn-facebook { border-color: #1877f2; }
.btn-facebook:hover { background: #eff6ff; }

.btn-apple { border-color: #000; }
.btn-apple:hover { background: #f3f4f6; }

/* Social Login Buttons */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-social:hover {
    background: var(--bg-light);
}

.btn-social svg {
    flex-shrink: 0;
}

.btn-social.btn-google:hover { background: #fef2f2; border-color: #db4437; }
.btn-social.btn-facebook:hover { background: #eff6ff; border-color: #1877f2; }
.btn-social.btn-apple:hover { background: #f3f4f6; border-color: #000; }

/* Auth Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Auth Form */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-color);
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid var(--bg-tan);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
    background: var(--bg-color);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 89, 52, 0.1);
}

.auth-form input.error {
    border-color: var(--error-color);
}

.form-error {
    color: var(--error-color);
    font-size: 0.8125rem;
    margin-top: 5px;
}

.form-row-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input {
    width: auto;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s;
}

.strength-fill.weak { width: 33%; background: var(--error-color); }
.strength-fill.medium { width: 66%; background: var(--warning-color); }
.strength-fill.strong { width: 100%; background: var(--success-color); }

.strength-text {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* =====================================================
   HERO DA LOJA
   ===================================================== */

.hero-shop {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-shop h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.hero-shop p {
    opacity: 0.9;
    font-size: 1.125rem;
}

@media (min-width: 768px) {
    .hero-shop h1 {
        font-size: 2.5rem;
    }
}

/* =====================================================
   SEÇÃO DA LOJA
   ===================================================== */

.shop-section {
    padding: 40px 0;
}

.shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--radius);
    align-items: center;
    border: 1px solid var(--border-light);
}

.shop-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-filters .filter-group label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.shop-filters .filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--bg-tan);
    border-radius: var(--radius-sm);
    background: white;
    font-size: 0.9rem;
}

.shop-filters .filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-results {
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Product Card (Index) */
.product-card .product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card .product-cover {
    position: relative;
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, var(--bg-cream-dark), var(--bg-tan));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-cover img {
    transform: scale(1.05);
}

.product-card .cover-placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

.product-card .product-category {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    margin: 15px 15px 5px;
}

.product-card .product-title {
    font-size: 1rem;
    margin: 0 15px 8px;
    line-height: 1.4;
}

.product-card .product-excerpt {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0 15px 15px;
    line-height: 1.5;
}

.product-card .product-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.product-card .product-footer .btn {
    width: 100%;
    text-align: center;
}

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

/* =====================================================
   CATÁLOGO DA LOJA
   ===================================================== */

.store-section {
    padding: 40px 0;
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.store-header h1 {
    font-size: 1.75rem;
}

.store-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Filters Bar */
.store-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

.filter-group select,
.filter-group input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    position: relative;
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, var(--bg-light), var(--border-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-image .placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-featured {
    background: #8b5cf6;
    color: white;
}

.badge-owned {
    background: var(--success-color);
    color: white;
}

.product-card-content {
    padding: 20px;
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-card-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card-title a {
    color: var(--text-color);
    text-decoration: none;
}

.product-card-title a:hover {
    color: var(--primary-color);
}

.product-card-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.product-card .btn {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid var(--bg-tan);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    background: var(--bg-color);
}

.pagination a:hover {
    background: var(--bg-cream-dark);
    border-color: var(--primary-color);
}

.pagination .active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */

.breadcrumb-section {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--text-light);
}

/* =====================================================
   PÁGINA INDIVIDUAL DO PRODUTO
   ===================================================== */

.product-detail-section {
    padding: 40px 0;
}

.product-detail-grid {
    display: grid;
    gap: 40px;
}

.product-detail-image {
    display: flex;
    justify-content: center;
}

.product-cover-large {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.cover-placeholder-large {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    gap: 10px;
}

.cover-placeholder-large span:last-child {
    font-size: 1.5rem;
    font-weight: 600;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.product-detail-desc {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.product-detail-price {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.product-detail-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-detail-price .payment-method {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-actions .btn {
    text-align: center;
}

.product-features {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.product-features h3 {
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.feature-list li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
}

/* Product Detail Styles */
.product-category-badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.product-price-box {
    background: var(--bg-light);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}

.product-price-box .price-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

.product-price-box .price-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 5px 0;
}

.product-price-box .price-method {
    font-size: 0.875rem;
    color: var(--text-light);
}

.already-owns-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
}

.already-owns-box p {
    color: #166534;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.product-benefits .benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 15px 10px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.product-benefits .benefit-icon {
    font-size: 1.5rem;
}

.product-benefits .benefit span:last-child {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Preview PDF */
.product-preview-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.product-preview-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.product-preview-iframe {
    width: 100%;
}

.product-preview-iframe embed {
    display: block;
    width: 100%;
    height: 600px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.product-preview-mobile {
    display: none;
    text-align: center;
}

.product-preview-mobile p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .product-preview-iframe,
    .product-preview-iframe embed {
        display: none !important;
        height: 0;
        width: 0;
        overflow: hidden;
    }

    .product-preview-mobile {
        display: block;
    }
}

.product-description-full {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.product-description-full h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.product-description-full .description-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

.product-description-full .description-content p {
    margin-bottom: 1.2em;
    text-align: justify;
}

@media (max-width: 768px) {
    .product-benefits {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   BIBLIOTECA DO USUÁRIO
   ===================================================== */

.library-section {
    padding: 40px 0;
}

.library-header {
    margin-bottom: 30px;
}

.library-header h1 {
    font-size: 1.75rem;
    margin-bottom: 5px;
}

.library-header p {
    color: var(--text-light);
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.library-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
}

.library-item-image {
    width: 100px;
    min-height: 140px;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.library-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-item-image .placeholder {
    font-size: 2rem;
    color: white;
}

.library-item-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.library-item-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.library-item-title a {
    color: var(--text-color);
    text-decoration: none;
}

.library-item-title a:hover {
    color: var(--primary-color);
}

.library-item-category {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.library-item-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 10px;
}

.library-item-actions {
    margin-top: 15px;
}

.library-item-actions .btn {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Library Cards */
.library-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.library-card:hover {
    box-shadow: var(--shadow);
}

.library-cover {
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.library-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-cover .cover-placeholder {
    font-size: 4rem;
    color: white;
}

.library-info {
    padding: 20px;
    flex: 1;
}

.library-category {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.library-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.library-info .purchase-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.library-actions {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.library-actions .btn-block {
    text-align: center;
}

/* Empty Library */
.empty-library {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.empty-library .empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-library h2 {
    margin-bottom: 10px;
}

.empty-library p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Library Info Box */
.library-info-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 40px;
}

.library-info-box h4 {
    color: #92400e;
    margin-bottom: 12px;
}

.library-info-box ul {
    padding-left: 20px;
    color: #78350f;
}

.library-info-box li {
    margin: 8px 0;
}

/* =====================================================
   PERFIL DO USUÁRIO
   ===================================================== */

.profile-section {
    padding: 40px 0;
}

.profile-container {
    max-width: 600px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    font-family: Georgia, "Times New Roman", serif;
}

.profile-info h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.profile-info p {
    color: var(--text-light);
}

.profile-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.profile-card h2 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.profile-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* =====================================================
   MENSAGENS E NOTIFICAÇÕES
   ===================================================== */

.message-box {
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.message-box.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.message-box.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.message-box.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.message-box.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.message-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* =====================================================
   RESPONSIVE - MOBILE FIRST
   ===================================================== */

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .user-menu-toggle span:not(.user-avatar) {
        display: none;
    }

    .store-filters {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .product-card-content {
        padding: 15px;
    }

    .product-card-title {
        font-size: 0.95rem;
    }

    .library-item {
        flex-direction: column;
    }

    .library-item-image {
        width: 100%;
        min-height: 100px;
    }

    .auth-box {
        padding: 30px 20px;
    }
}

@media (min-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 300px 1fr;
    }

    .product-actions {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =====================================================
   CARROSSEL DA HOME
   ===================================================== */

.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--primary-color); /* Fundo verde nos cantos */
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Desktop - Carrossel limitado com fundo verde nos cantos */
@media (min-width: 992px) {
    .hero-carousel {
        padding: 0px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .carousel-container {
        width: 100%;
        max-width: 1200px;
        height: 400px;
        overflow: hidden;
        margin: 0 auto;
    }

    .carousel-track {
        width: 100%;
        height: 400px;
    }

    .carousel-slide,
    .carousel-slide:first-child,
    .carousel-slide.active {
        flex: 0 0 100%;
        width: 100%;
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .carousel-slide img,
    .carousel-slide:first-child img,
    .carousel-slide.active img {
        width: auto;
        height: 400px;
        max-height: 400px;
        object-fit: contain;
        display: block;
    }

    .slide-content {
        padding: 30px 0;
    }

    .slide-content h2 {
        font-size: 1.75rem;
    }

    .carousel-indicators {
        bottom: 15px;
    }
}

/* Telas grandes */
@media (min-width: 1400px) {
    .carousel-container {
        max-width: 1400px;
        height: 400px;
    }
}

.slide-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

@media (min-width: 992px) {
    .slide-link {
        width: 100%;
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    text-align: center;
}

.slide-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.125rem;
    margin-bottom: 20px;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.slide-content .btn {
    display: inline-block;
}

/* Controles do Carrossel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Indicadores (dots) */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
    background: white;
}

/* Responsivo */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .slide-content {
        padding: 20px 0;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .carousel-indicators {
        bottom: 10px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .slide-content h2 {
        font-size: 1.25rem;
    }

    .slide-content p {
        font-size: 0.9rem;
        display: none;
    }

    .slide-content .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

/* ============================================
   Quiz - Teste de Apostas
   ============================================ */

.quiz-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-cream-dark) 100%);
}

.quiz-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Telas do Quiz */
.quiz-screen {
    display: none;
    animation: fadeIn 0.3s ease;
}

.quiz-screen.active {
    display: block;
}

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

/* Tela de Intro */
.quiz-intro {
    text-align: center;
    background: var(--bg-color);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.quiz-badge {
    display: inline-block;
    background: var(--bg-cream);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.quiz-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.quiz-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.quiz-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.quiz-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.feature-icon {
    font-size: 1.1rem;
}

.quiz-start-btn {
    margin-bottom: 20px;
}

.quiz-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Barra de Progresso */
.quiz-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-cream-dark);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 14.28%;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}

/* Perguntas */
.quiz-questions-container {
    background: var(--bg-color);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.quiz-question {
    display: none;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.quiz-question.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.question-number {
    display: inline-block;
    background: var(--bg-cream);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.question-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.375rem;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 40px;
}

.question-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-answer {
    flex: 1;
    max-width: 200px;
    padding: 20px 40px;
    font-size: 1.125rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-answer:hover {
    border-color: var(--primary-color);
    background: var(--bg-cream);
}

.btn-answer.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Loading */
.quiz-loading {
    text-align: center;
    background: var(--bg-color);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-cream-dark);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 25px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.quiz-loading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 25px;
}

.loading-bar {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: var(--bg-cream-dark);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.1s linear;
    width: 0%;
}

/* Captura de Email */
.quiz-capture {
    background: var(--bg-color);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.result-preview {
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}

.result-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.result-badge-baixo {
    background: #e8f5e9;
    color: #2e7d32;
}

.result-badge-alerta {
    background: #fff8e1;
    color: #f57c00;
}

.result-badge-alto {
    background: #ffebee;
    color: #c62828;
}

.result-badge-crise {
    background: #c62828;
    color: white;
}

.result-preview-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.result-preview-title span {
    color: var(--primary-color);
    font-weight: bold;
}

.result-preview-text {
    color: var(--text-light);
    font-size: 1rem;
}

.capture-form-container h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.capture-form .form-group {
    margin-bottom: 20px;
}

.capture-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 6px;
}

.capture-form label .optional {
    font-weight: normal;
    color: var(--text-muted);
}

.capture-form input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.capture-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 89, 52, 0.1);
}

.capture-form input::placeholder {
    color: var(--text-muted);
}

.form-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 15px;
}

/* Resultado Final */
.quiz-result {
    background: var(--bg-color);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.result-content {
    text-align: center;
    margin-bottom: 40px;
}

.result-level {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.result-level-baixo {
    background: #e8f5e9;
    color: #2e7d32;
}

.result-level-alerta {
    background: #fff8e1;
    color: #f57c00;
}

.result-level-alto {
    background: #ffebee;
    color: #c62828;
}

.result-level-crise {
    background: #c62828;
    color: white;
}

.result-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.625rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.result-text {
    text-align: left;
    color: var(--text-light);
    line-height: 1.7;
}

.result-text p {
    margin-bottom: 15px;
}

.result-text strong {
    color: var(--text-color);
}

.result-cta {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-cream);
    border-radius: var(--radius);
}

.result-cta p {
    margin-bottom: 15px;
}

.result-urgent {
    margin: 30px 0;
    padding: 25px;
    background: #ffebee;
    border-radius: var(--radius);
    border-left: 4px solid #c62828;
}

.cvv-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #c62828;
    margin: 10px 0;
}

.cvv-number a {
    color: inherit;
    text-decoration: none;
}

.cvv-info {
    font-size: 0.875rem;
    color: var(--text-light);
}

.result-guide {
    margin-top: 30px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: var(--radius);
    text-align: left;
}

.result-guide h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    color: #2e7d32;
    margin-bottom: 8px;
}

.result-guide p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.result-next-step {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-cream);
    border-radius: var(--radius);
    border-left: 4px solid var(--gold);
}

.result-next-step p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.result-steps {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-cream);
    border-radius: var(--radius);
    text-align: left;
}

.result-steps h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.result-steps ol {
    list-style: none;
    counter-reset: steps;
    margin: 0;
    padding: 0;
}

.result-steps li {
    counter-increment: steps;
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

.result-steps li:last-child {
    margin-bottom: 0;
}

.result-steps li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Oferta do Ebook */
.ebook-offer {
    margin-top: 40px;
    padding-top: 40px;
}

.offer-divider {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.offer-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.offer-divider span {
    position: relative;
    background: var(--bg-color);
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.offer-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.offer-book {
    flex-shrink: 0;
}

.offer-cover {
    width: 150px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.offer-details {
    flex: 1;
}

.offer-details h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.offer-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.offer-benefits {
    list-style: none;
    margin-bottom: 25px;
}

.offer-benefits li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.offer-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.offer-price {
    margin-bottom: 20px;
}

.price-value {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
}

.offer-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offer-buttons .btn-secondary {
    font-size: 0.9rem;
    padding: 12px 20px;
}

.offer-guarantee {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* Recursos de Apoio */
.support-resources {
    margin-top: 40px;
    padding: 25px;
    background: var(--bg-cream);
    border-radius: var(--radius);
}

.support-resources h4 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.support-resources ul {
    list-style: none;
}

.support-resources li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.support-resources a {
    color: var(--primary-color);
    text-decoration: none;
}

.support-resources a:hover {
    text-decoration: underline;
}

/* Compartilhar */
.share-section {
    margin-top: 30px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.share-section p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Responsivo - Quiz Mobile */
@media (max-width: 768px) {
    .quiz-section {
        padding: 20px 15px;
        align-items: flex-start;
    }

    .quiz-intro,
    .quiz-questions-container,
    .quiz-loading,
    .quiz-capture,
    .quiz-result {
        padding: 35px 25px;
    }

    .quiz-title {
        font-size: 1.625rem;
    }

    .quiz-subtitle {
        font-size: 1rem;
    }

    .quiz-features {
        gap: 20px;
    }

    .quiz-feature {
        font-size: 0.8rem;
    }

    .question-text {
        font-size: 1.125rem;
    }

    .question-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-answer {
        max-width: none;
        padding: 18px 30px;
    }

    .result-preview-title {
        font-size: 1.375rem;
    }

    .result-content h2 {
        font-size: 1.375rem;
    }

    .offer-content {
        flex-direction: column;
        text-align: center;
    }

    .offer-book {
        margin: 0 auto;
    }

    .offer-benefits {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .quiz-intro,
    .quiz-questions-container,
    .quiz-loading,
    .quiz-capture,
    .quiz-result {
        padding: 30px 20px;
    }

    .quiz-title {
        font-size: 1.5rem;
    }

    .quiz-features {
        flex-direction: column;
        gap: 12px;
    }

    .question-text {
        font-size: 1.0625rem;
        margin-bottom: 30px;
    }

    .btn-answer {
        padding: 16px 25px;
        font-size: 1rem;
    }
}

/* ========================================
   Badge "Grátis" - Homepage
   ======================================== */

.price-free {
    display: inline-block;
    background: var(--success-color);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Página do Produto - Grátis */
.product-price-box-free {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-color: var(--success-color);
}

.price-free-large {
    color: var(--success-color) !important;
    font-size: 2rem !important;
}

/* ========================================
   Footer - Redes Sociais
   ======================================== */

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-cream);
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.footer-social .social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    text-decoration: none;
}

.footer-social .social-link svg {
    fill: currentColor;
}

/* ========================================
   Página de Contato
   ======================================== */

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 89, 52, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-channels {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-light);
}

.contact-channels h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.contact-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact-link-whatsapp {
    background: #25d366;
    color: white;
}

.contact-link-whatsapp:hover {
    background: #20bd5a;
}

.contact-link-telegram {
    background: #0088cc;
    color: white;
}

.contact-link-telegram:hover {
    background: #007ab8;
}

.contact-link svg {
    flex-shrink: 0;
}

/* Alert styles for contact form */
.legal-content .alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.legal-content .alert-success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.legal-content .alert-error {
    background: #fce4ec;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

/* ========================================
   Barra de Busca - Homepage
   ======================================== */

.filter-search {
    flex: 1;
    min-width: 200px;
}

.search-form {
    display: flex;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
}

.search-input-wrap input[type="text"] {
    width: 100%;
    padding: 8px 70px 8px 12px;
    border: 1px solid var(--bg-tan);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: white;
    color: var(--text-color);
    transition: border-color 0.2s;
}

.search-input-wrap input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(42, 89, 52, 0.1);
}

.search-input-wrap input[type="text"]::placeholder {
    color: var(--text-muted);
}

.search-btn {
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    padding: 0 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-clear {
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--bg-cream-dark);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.search-clear:hover {
    background: var(--error-color);
    color: white;
}

@media (max-width: 768px) {
    .shop-filters {
        flex-direction: column;
    }

    .filter-search {
        width: 100%;
        min-width: 0;
    }

    .shop-filters .filter-group {
        width: 100%;
    }

    .shop-filters .filter-group select {
        flex: 1;
    }

    .filter-results {
        margin-left: 0;
        text-align: center;
    }
}

/* ========================================
   "Em Breve" - Ribbon e Card
   ======================================== */

.product-card-coming-soon {
    opacity: 0.85;
}

.product-card-coming-soon .product-link {
    cursor: default;
    color: inherit;
    text-decoration: none;
}

.product-card-coming-soon .product-cover {
    position: relative;
    overflow: hidden;
}

.coming-soon-ribbon {
    position: absolute;
    top: 18px;
    right: -35px;
    z-index: 2;
    background: #f59e0b;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 40px;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Produto em Destaque
   ======================================== */

.product-card-featured {
    border: 2px solid var(--gold);
    box-shadow: 0 0 12px rgba(194, 160, 46, 0.2);
}

.product-card-featured:hover {
    box-shadow: 0 0 20px rgba(194, 160, 46, 0.35);
}

.featured-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    background: var(--gold);
    color: white;
    font-size: 16px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   GARANTIA DE SATISFAÇÃO
   ============================================================ */
.guarantee-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.guarantee-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.guarantee-box strong {
    display: block;
    font-size: 15px;
    color: #166534;
    margin-bottom: 4px;
}

.guarantee-box p {
    margin: 0;
    font-size: 13px;
    color: #15803d;
    line-height: 1.5;
}

/* ============================================================
   SEÇÃO SOBRE O AUTOR
   ============================================================ */
.author-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--bg-tan);
}

.author-section h2 {
    margin-bottom: 24px;
}

.author-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.author-card:last-child {
    margin-bottom: 0;
}

.author-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--bg-tan);
}

.author-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-cream);
    color: var(--text-muted);
    font-size: 40px;
}

.author-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--text-color);
}

.author-info p {
    margin: 0;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 600px) {
    .author-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   SEÇÃO DE DEPOIMENTOS
   ============================================================ */
.testimonials-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--bg-tan);
}

.testimonials-section h2 {
    margin-bottom: 24px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: var(--bg-cream);
    border: 1px solid var(--bg-tan);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.testimonial-stars {
    margin-bottom: 10px;
    font-size: 18px;
}

.testimonial-stars .star-filled {
    color: #f59e0b;
}

.testimonial-stars .star-empty {
    color: #d1d5db;
}

.testimonial-card blockquote {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.7;
    font-style: italic;
}

.testimonial-card cite {
    font-size: 13px;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CARROSSEL PÚBLICO (produto.php) — depoimentos e autores
   ============================================================ */
.pub-carousel {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light, #e5e0d5);
}

.pub-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.pub-carousel-header h2 {
    margin: 0;
}

.pub-carousel-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pub-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color, #d1ccc4);
    background: white;
    color: var(--text-dark, #3a2f28);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    padding: 0;
}

.pub-carousel-btn:hover {
    background: var(--bg-cream, #f4efe6);
    border-color: var(--primary-color, #2a5934);
}

.pub-carousel-vp {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pub-carousel-vp::-webkit-scrollbar {
    display: none;
}

.pub-carousel-track {
    display: flex;
    gap: 20px;
}

.pub-carousel-slide {
    flex: 0 0 260px; /* fallback; JS sets precise width on load */
    min-width: 0;
    scroll-snap-align: start;
}

/* Author card inside carousel */
.pub-carousel-slide .author-card {
    height: 100%;
}

@media (max-width: 768px) {
    .pub-carousel-slide {
        flex: 0 0 100%;
    }
}

/* Authors carousel — count-specific variants */
/* Desktop: hide nav when all authors fit on screen */
.authors-carousel--1 .pub-carousel-nav,
.authors-carousel--2 .pub-carousel-nav,
.authors-carousel--3 .pub-carousel-nav {
    display: none;
}

/* Desktop slide widths (JS also recalculates via data-per-page-desktop) */
.authors-carousel--1 .pub-carousel-slide {
    flex: 0 0 100%;
}
.authors-carousel--2 .pub-carousel-slide {
    flex: 0 0 calc(50% - 10px);
}
.authors-carousel--3 .pub-carousel-slide {
    flex: 0 0 calc(33.333% - 14px);
}

/* Mobile: 1 slide at a time and show nav for 2-3 authors */
@media (max-width: 600px) {
    .authors-carousel--2 .pub-carousel-nav,
    .authors-carousel--3 .pub-carousel-nav {
        display: flex;
    }
    .authors-carousel--2 .pub-carousel-slide,
    .authors-carousel--3 .pub-carousel-slide {
        flex: 0 0 100%;
    }
}

/* ── PWA Banner "Adicionar à tela inicial" ──────────────────────────────────── */
.pwa-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-top: 3px solid #2a5934;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.pwa-banner__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    flex-shrink: 0;
}
.pwa-banner__text {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}
.pwa-banner__text strong {
    display: block;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 2px;
}
.pwa-banner__share-icon {
    font-size: 15px;
    color: #007aff;
}
.pwa-banner__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.pwa-banner__btn {
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    line-height: 1;
}
.pwa-banner__btn--install {
    background: #2a5934;
    color: #fff;
}
.pwa-banner__btn--close {
    background: #f0f0f0;
    color: #555;
    padding: 8px 10px;
    font-size: 12px;
}
@media (min-width: 769px) {
    .pwa-banner { display: none !important; }
}
