/* =============================================
   VARIÁVEIS E CONFIGURAÇÕES GLOBAIS
   ============================================= */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #f0f0f0;
    --text-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    line-height: 1.6;
}

/* Header e Navegação - ESTILOS GLOBAIS */
header {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80px;
}

.logo {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.logo img {
    height: 100%;
    max-width: 220px;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #555;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Page Hero (para páginas internas) - GLOBAL */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1595475693740-2d7db4d837ed?ixlib=rb-4.0.3&auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    margin-top: 100px;
}

.page-hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 1.2rem;
}

/* Botões - GLOBAL */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.btn:hover {
    background-color: #333;
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-top: 15px;
}

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

/* Seções Gerais - GLOBAL */
section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Footer - GLOBAL */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 50px 5% 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p, .footer-section a {
    color: #ccc;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9rem;
}

/* Sistema de Promoções - GLOBAL */
.promo-banner {
    background: linear-gradient(45deg, #000000, #333333);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.promo-content i {
    font-size: 1.5rem;
}

.promo-content span {
    font-weight: bold;
    font-size: 1.1rem;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #000;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.braid-price .original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.braid-price .discount-price {
    color: #000;
    font-weight: bold;
    font-size: 1.3rem;
}

.modal-price .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
    margin-right: 15px;
}

.modal-price .discount-price {
    color: #000;
    font-weight: bold;
    font-size: 1.8rem;
}

.discount-text {
    color: #000;
    font-weight: bold;
    margin-top: 5px;
    font-size: 1rem;
}

/* Modal de Detalhes da Trança - GLOBAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: var(--secondary-color);
    max-width: 90%;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.modal-image {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

.modal-image img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.modal-info {
    padding: 30px;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 15px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #000;
    outline: none;
}

/* Controles de Zoom e Navegação - GLOBAL */
.zoom-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.zoom-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.zoom-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.nav-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 20;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Sistema de Jumbo - GLOBAL */
.jumbo-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #000;
}

.jumbo-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.jumbo-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.jumbo-option label {
    cursor: pointer;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jumbo-option label i {
    color: #22c55e;
}

.jumbo-discount-text {
    color: #22c55e !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.jumbo-info {
    color: #666;
    font-size: 0.85rem;
}

/* Resumo do Preço - GLOBAL */
.price-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    margin: 20px 0;
    animation: slideDown 0.3s ease-out;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.summary-line:last-child {
    border-bottom: none;
}

.discount-line {
    color: #22c55e;
    font-weight: 600;
}

.total-line {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    padding-top: 12px;
    border-top: 2px solid #000;
}

/* Efeitos visuais para o checkbox - GLOBAL */
.jumbo-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: white;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.jumbo-option input[type="checkbox"]:checked {
    background: #000;
    border-color: #000;
}

.jumbo-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.jumbo-option input[type="checkbox"]:hover {
    border-color: #000;
}

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

/* Exibir código no modal - GLOBAL */
.modal-code {
    display: inline-block;
    background: #000;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 15px;
    vertical-align: middle;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.modal-title-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ANIMAÇÕES DE CARREGAMENTO - GLOBAL */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

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

.loading-text {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.loading-dots {
    display: inline-block;
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes dots {
    0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    40% { color: var(--primary-color); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    60% { text-shadow: .25em 0 0 var(--primary-color), .5em 0 0 rgba(0,0,0,0); }
    80%, 100% { text-shadow: .25em 0 0 var(--primary-color), .5em 0 0 var(--primary-color); }
}

/* Skeleton loading - GLOBAL */
.skeleton-loading {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.skeleton-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.skeleton-image {
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 15px;
}

.skeleton-title {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.skeleton-price {
    height: 24px;
    width: 80px;
    background-color: #f0f0f0;
    border-radius: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Loading states para botões - GLOBAL */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* Estados de loading e erro nos formulários - GLOBAL */
.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.form-control.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.field-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-error::before {
    content: '⚠';
    font-size: 0.7rem;
}

/* HEADER ESTILIZADO E MODERNIZADO - GLOBAL */
header {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 8px 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    padding: 5px 0;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70px;
    transition: all 0.4s ease;
}

header.scrolled .header-container {
    min-height: 60px;
    padding: 8px 5%;
}

.logo {
    height: 65px;
    display: flex;
    align-items: center;
    padding: 5px 0;
    transition: all 0.4s ease;
    position: relative;
}

header.scrolled .logo {
    height: 55px;
}

.logo img {
    height: 100%;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: brightness(1.1);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transition: width 0.4s ease;
}

.logo:hover::after {
    width: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

nav ul li {
    position: relative;
    margin: 0 5px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: block;
    letter-spacing: 0.3px;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.03), transparent);
    transition: left 0.6s ease;
}

nav ul li a:hover::before {
    left: 100%;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

nav ul li a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.02);
}

nav ul li a:hover::after {
    width: 80%;
}

/* Menu ativo aprimorado - GLOBAL */
nav ul li a.active {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.04);
    font-weight: 700;
}

nav ul li a.active::after {
    width: 80%;
    background: var(--primary-color);
    height: 2px;
}

/* Mobile Menu Aprimorado - GLOBAL */
.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.mobile-menu:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(1.05);
}

.mobile-menu:active {
    transform: scale(0.95);
}

/* Menu mobile expandido - GLOBAL */
nav ul.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul.active li {
    margin: 5px 0;
    opacity: 0;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

nav ul.active li:nth-child(1) { animation-delay: 0.1s; }
nav ul.active li:nth-child(2) { animation-delay: 0.15s; }
nav ul.active li:nth-child(3) { animation-delay: 0.2s; }
nav ul.active li:nth-child(4) { animation-delay: 0.25s; }
nav ul.active li:nth-child(5) { animation-delay: 0.3s; }

nav ul.active li a {
    padding: 16px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

nav ul.active li a:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

/* Animações - GLOBAL */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Efeito de brilho sutil no header - GLOBAL */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* Indicador de scroll - GLOBAL */
.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    width: 0%;
    transition: width 0.3s ease;
}

/* Garantir que o body não tenha margin/padding extra - GLOBAL */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ajuste adicional para garantir que o header não ultrapasse - GLOBAL */
html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

/* Logo link - GLOBAL */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Menu ativo - GLOBAL */
nav ul li a.active {
    color: #000;
    font-weight: bold;
    position: relative;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

/* Responsividade - GLOBAL */
@media (max-width: 768px) {
    .header-container {
        padding: 12px 20px;
        min-height: 70px;
    }
    
    .logo {
        height: 60px;
    }
    
    .hero {
        margin-top: 90px;
    }
    
    .page-hero {
        margin-top: 90px;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .filter-container {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    .affiliate-steps, .affiliate-types {
        flex-direction: column;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .modal-image {
        max-height: 60vh;
    }
    
    .modal-image img {
        max-height: 60vh;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .nav-controls {
        padding: 0 10px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .featured-news-image, .featured-news-video {
        height: 200px;
    }
    
    .featured-news-content {
        padding: 20px;
    }
    
    .featured-video-wrapper {
        height: 200px;
    }
    
    .videos-grid, .featured-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .jumbo-section {
        padding: 15px;
    }
    
    .price-summary {
        padding: 15px;
    }
    
    .total-line {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 10px auto;
        border-radius: 0;
    }
    
    .modal-image {
        max-height: 50vh;
    }
    
    .modal-image img {
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 20px;
        min-height: 65px;
    }
    
    header.scrolled .header-container {
        min-height: 55px;
        padding: 6px 20px;
    }
    
    .logo {
        height: 55px;
    }
    
    header.scrolled .logo {
        height: 48px;
    }
    
    .logo img {
        max-width: 180px;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    nav ul {
        display: none;
    }
    
    /* Ajuste do hero para o header mobile */
    .hero {
        margin-top: 85px;
    }
    
    .page-hero {
        margin-top: 85px;
    }
    
    header.scrolled .hero {
        margin-top: 75px;
    }
    
    header.scrolled .page-hero {
        margin-top: 75px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 8px 15px;
        min-height: 60px;
    }
    
    header.scrolled .header-container {
        min-height: 52px;
    }
    
    .logo {
        height: 50px;
    }
    
    header.scrolled .logo {
        height: 45px;
    }
    
    .logo img {
        max-width: 160px;
    }
    
    .mobile-menu {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .hero {
        margin-top: 80px;
    }
    
    .page-hero {
        margin-top: 80px;
    }
}

/* Efeito de loading sutil no hover dos links - GLOBAL */
nav ul li a {
    position: relative;
    overflow: hidden;
}

nav ul li a .link-text {
    position: relative;
    z-index: 2;
}

/* Efeito de profundidade no header - GLOBAL */
header {
    transform: translateZ(0);
}

/* Melhoria na transição do scroll - GLOBAL */
html {
    scroll-padding-top: 90px;
    scroll-behavior: smooth;
}

/* Ajuste fino para dispositivos muito pequenos - GLOBAL */
@media (max-width: 360px) {
    .header-container {
        padding: 6px 12px;
    }
    
    .logo {
        height: 45px;
    }
    
    .logo img {
        max-width: 140px;
    }
    
    .mobile-menu {
        width: 36px;
        height: 36px;
    }
}



